body.template-editorial {
  --brand-bg: #eef1f6;
  --brand-bg2: #e4e9f0;
  --brand-bg3: #d8e0ea;
  --brand-primary: #172033;
  --brand-primary-2: #27324a;
  --brand-primary-3: #41506a;
  --brand-accent: #b68d63;
  --brand-accent-2: #d8c1a5;
  --brand-text: #111722;
  --brand-text-2: #495264;
  --brand-text-3: #798194;
  background:
    radial-gradient(circle at 8% 12%, rgba(182,141,99,0.18), transparent 0 22%),
    radial-gradient(circle at 88% 18%, rgba(23,32,51,0.16), transparent 0 24%),
    radial-gradient(circle at 80% 86%, rgba(182,141,99,0.10), transparent 0 26%),
    linear-gradient(180deg, #f6f8fb 0%, #edf1f6 58%, #e7ecf3 100%);
  color: var(--brand-text);
}

body.template-editorial::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.35), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.34), transparent 30%);
  opacity: 0.8;
  z-index: 0;
}

body.template-editorial nav,
body.template-editorial .hero,
body.template-editorial section,
body.template-editorial footer {
  position: relative;
  z-index: 1;
}

body.template-editorial nav {
  width: min(1460px, calc(100% - 1.5rem));
  left: 50%;
  transform: translateX(-50%);
  top: 0.75rem;
  height: 78px;
  padding: 0 1.25rem 0 1.4rem;
  border: 1px solid rgba(23,32,51,0.10);
  border-radius: 22px;
  background: rgba(245,248,252,0.56);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 18px 50px rgba(23,32,51,0.08);
}

body.template-editorial .logo {
  font-size: 1.18rem;
  letter-spacing: -0.04em;
}

body.template-editorial .nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text-2);
}

body.template-editorial .nav-pill {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2)) !important;
  border: 1px solid rgba(255,255,255,0.08);
}

body.template-editorial .hero {
  width: min(1460px, calc(100% - 1.5rem));
  margin: 4.75rem auto 1.25rem;
  min-height: calc(100vh - 5.5rem);
  padding: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.25rem;
}

body.template-editorial .hero-left,
body.template-editorial .hero-right {
  border: 1px solid rgba(23,32,51,0.10);
  border-radius: 30px;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 22px 60px rgba(23,32,51,0.08);
}

body.template-editorial .hero-left {
  padding: 4.4rem 3.25rem;
  display: flex;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.46), rgba(255,255,255,0.28)),
    radial-gradient(circle at top right, rgba(182,141,99,0.10), transparent 34%);
}

body.template-editorial .hero-right {
  padding: 1.25rem;
  display: grid;
  align-content: stretch;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(23,32,51,0.06), rgba(255,255,255,0.32)),
    rgba(255,255,255,0.34);
}

body.template-editorial .hero-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-text-2);
}

body.template-editorial .hero-eyebrow-line {
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-accent), transparent);
}

body.template-editorial .hero-title {
  max-width: 8ch;
  font-size: clamp(4.4rem, 10vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  text-wrap: balance;
}

body.template-editorial .hero-title em,
body.template-editorial .section-title em,
body.template-editorial .cta-left h2 em {
  color: var(--brand-accent);
}

body.template-editorial .hero-body,
body.template-editorial .section-desc,
body.template-editorial .t-quote,
body.template-editorial .service-dialog-panel p,
body.template-editorial .proc-step p,
body.template-editorial .cl span,
body.template-editorial .f-group input,
body.template-editorial .f-group textarea {
  color: var(--brand-text-2);
}

body.template-editorial .hero-btns,
body.template-editorial .hero-numbers {
  margin-top: 1.6rem;
}

body.template-editorial .btn-fill,
body.template-editorial .f-submit,
body.template-editorial .nav-pill {
  background: linear-gradient(135deg, var(--brand-primary), #243149) !important;
  box-shadow: 0 18px 34px rgba(23,32,51,0.18);
}

body.template-editorial .btn-text {
  color: var(--brand-primary);
}

body.template-editorial .hero-photo {
  min-height: 100%;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(23,32,51,0.08), rgba(23,32,51,0.28)),
    url("https://images.unsplash.com/photo-1511578314322-379afb476865?w=1400&q=85") center/cover;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

body.template-editorial .hero-photo::after {
  background: linear-gradient(160deg, rgba(23,32,51,0.10), rgba(182,141,99,0.18));
}

body.template-editorial .hero-card {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(9,14,24,0.40);
  backdrop-filter: blur(20px);
  color: #fff;
}

body.template-editorial .hero-card p,
body.template-editorial .hero-card span {
  color: rgba(255,255,255,0.8);
}

body.template-editorial .hero-card-icon {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

body.template-editorial section {
  width: min(1460px, calc(100% - 1.5rem));
  margin: 1.1rem auto;
  padding: 2rem;
  border: 1px solid rgba(23,32,51,0.09);
  border-radius: 28px;
  background: rgba(255,255,255,0.40);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 20px 60px rgba(23,32,51,0.06);
}

body.template-editorial .svc-head,
body.template-editorial .port-top,
body.template-editorial .reveal,
body.template-editorial .svc-grid,
body.template-editorial .port-mosaic,
body.template-editorial .process-layout,
body.template-editorial .testi-row,
body.template-editorial .cta-wrap,
body.template-editorial .contact-grid {
  width: 100%;
}

body.template-editorial .section-title {
  font-size: clamp(2.7rem, 4.8vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

body.template-editorial .eyebrow {
  color: var(--brand-primary-2);
  letter-spacing: 0.18em;
}

body.template-editorial .svc-head,
body.template-editorial .port-top {
  align-items: end;
}

body.template-editorial .filter-wrap {
  gap: 0.6rem;
  padding: 0.5rem;
  border-radius: 18px;
  border: 1px solid rgba(23,32,51,0.08);
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(16px);
}

body.template-editorial .fp {
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-text-2);
  border: 1px solid transparent;
}

body.template-editorial .fp.on {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  color: #fff;
}

body.template-editorial .svc-grid {
  gap: 1rem;
}

body.template-editorial .svc-card,
body.template-editorial .pm,
body.template-editorial .t-card,
body.template-editorial .proc-step,
body.template-editorial .cl,
body.template-editorial .form-wrap,
body.template-editorial .service-dialog,
body.template-editorial .message-dialog,
body.template-editorial .live-preview,
body.template-editorial .settings-card,
body.template-editorial .settings-subcard {
  border: 1px solid rgba(23,32,51,0.10);
  background: rgba(255,255,255,0.44);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 16px 42px rgba(23,32,51,0.08);
}

body.template-editorial .svc-card {
  min-height: 300px;
  padding: 1.4rem;
  border-radius: 24px;
}

body.template-editorial .svc-card::before {
  background: linear-gradient(120deg, rgba(23,32,51,0.08), rgba(182,141,99,0.12));
}

body.template-editorial .svc-badge {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

body.template-editorial .svc-icon {
  width: 64px;
  height: 64px;
  font-size: 1.35rem;
  background: rgba(23,32,51,0.06);
}

body.template-editorial .svc-name {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

body.template-editorial .svc-desc,
body.template-editorial .svc-price {
  color: var(--brand-text-2);
}

body.template-editorial .svc-btn {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  color: #fff;
}

body.template-editorial .port-mosaic {
  gap: 1rem;
}

body.template-editorial .pm {
  border-radius: 24px;
  overflow: hidden;
  min-height: 260px;
}

body.template-editorial .pm-info {
  background: linear-gradient(180deg, transparent, rgba(9,14,24,0.88));
}

body.template-editorial .pm-cat {
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.template-editorial .pm-name {
  font-size: 1.15rem;
}

body.template-editorial .proc-img,
body.template-editorial .cta-right {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(23,32,51,0.10);
  background: rgba(255,255,255,0.30);
}

body.template-editorial .proc-badge {
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(23,32,51,0.10);
}

body.template-editorial .proc-step,
body.template-editorial .cl,
body.template-editorial .t-card {
  border-radius: 22px;
}

body.template-editorial .proc-n,
body.template-editorial .cl-icon,
body.template-editorial .t-av {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  color: #fff;
}

body.template-editorial #testimonials {
  background:
    linear-gradient(180deg, rgba(23,32,51,0.98), rgba(13,18,30,0.98)),
    radial-gradient(circle at top right, rgba(182,141,99,0.10), transparent 35%);
  color: #eef2f7;
}

body.template-editorial #testimonials .eyebrow,
body.template-editorial #testimonials .section-title,
body.template-editorial #testimonials .t-name,
body.template-editorial #testimonials .t-role,
body.template-editorial #testimonials .t-quote {
  color: #eef2f7;
}

body.template-editorial .t-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}

body.template-editorial #cta {
  background:
    linear-gradient(135deg, rgba(23,32,51,0.98), rgba(34,41,57,0.98)),
    radial-gradient(circle at top left, rgba(182,141,99,0.10), transparent 35%);
  color: #f6f7fb;
}

body.template-editorial .cta-left h2,
body.template-editorial .cta-left p {
  color: #f6f7fb;
}

body.template-editorial .cta-right {
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    radial-gradient(circle at 30% 30%, rgba(182,141,99,0.25), transparent 25%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.12), transparent 28%);
}

body.template-editorial .hero-btns .btn-text,
body.template-editorial .link-arrow {
  color: var(--brand-primary);
}

body.template-editorial .form-wrap {
  background: rgba(255,255,255,0.56);
}

body.template-editorial .f-group input,
body.template-editorial .f-group textarea {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(23,32,51,0.12);
}

body.template-editorial .f-group input:focus,
body.template-editorial .f-group textarea:focus {
  border-color: rgba(23,32,51,0.28);
  box-shadow: 0 0 0 4px rgba(23,32,51,0.06);
}

body.template-editorial .service-dialog,
body.template-editorial .message-dialog {
  background: rgba(245,248,252,0.96);
}

body.template-editorial .service-dialog-panel {
  background: rgba(23,32,51,0.04);
}

body.template-editorial .service-feature-list li::before {
  background: var(--brand-accent);
}

body.template-editorial footer {
  width: min(1460px, calc(100% - 1.5rem));
  margin: 1.1rem auto 1.5rem;
  padding: 2rem 2.2rem;
  border-radius: 28px;
  background: rgba(240,240,240,0.92);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(17,17,17,0.08);
  color: var(--footer-text-color, var(--brand-text));
  box-shadow: 0 14px 35px rgba(17,17,17,0.06);
}

body.template-editorial .foot-logo-leaf {
  background: var(--brand-accent);
}

body.template-editorial .foot-col h5,
body.template-editorial .foot-logo,
body.template-editorial .foot-bottom p,
body.template-editorial .foot-col a,
body.template-editorial .foot-links a {
  color: var(--footer-link-color, #111) !important;
}

body.template-editorial .foot-links a,
body.template-editorial .foot-col p,
body.template-editorial .foot-copy {
  color: rgba(238,242,247,0.76);
}

body.template-editorial .foot-top {
  border-bottom-color: rgba(17,17,17,0.08);
}

body.template-editorial .foot-brand p {
  color: var(--footer-text-color, var(--brand-text-2));
}

body.template-editorial .foot-bottom p {
  color: var(--footer-text-color, var(--brand-text-2));
}

body.template-editorial .foot-col ul li a {
  color: var(--footer-link-color, #111) !important;
  opacity: 0.9;
}

body.template-editorial .foot-col ul li a:hover {
  color: var(--footer-link-hover-color, #000) !important;
  opacity: 1;
}

body.template-editorial .foot-links a:hover,
body.template-editorial .foot-social a:hover {
  color: var(--footer-link-hover-color, #fff);
}

body.template-editorial .settings-card,
body.template-editorial .settings-subcard,
body.template-editorial .live-preview {
  border-radius: 20px;
}

body.template-editorial .menu-btn,
body.template-editorial .ghost-btn,
body.template-editorial .table-link,
body.template-editorial .f-submit,
body.template-editorial .btn-fill,
body.template-editorial .nav-pill {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.template-editorial .menu-btn:hover,
body.template-editorial .ghost-btn:hover,
body.template-editorial .table-link:hover,
body.template-editorial .f-submit:hover,
body.template-editorial .btn-fill:hover,
body.template-editorial .nav-pill:hover {
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  body.template-editorial .hero,
  body.template-editorial section {
    width: min(1200px, calc(100% - 1.2rem));
  }

  body.template-editorial .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body.template-editorial .hero-left,
  body.template-editorial .hero-right {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  body.template-editorial nav {
    width: calc(100% - 1rem);
    height: auto;
    padding: 0.9rem 1rem;
    border-radius: 18px;
  }

  body.template-editorial .hero {
    width: calc(100% - 1rem);
    margin-top: 4.9rem;
  }

  body.template-editorial .hero-left {
    padding: 2.2rem 1.2rem;
  }

  body.template-editorial .hero-title {
    max-width: none;
    font-size: clamp(2.75rem, 12vw, 4.6rem);
    overflow-wrap: anywhere;
  }

  body.template-editorial section,
  body.template-editorial footer {
    width: calc(100% - 1rem);
    padding: 1.3rem;
  }
}

@media (max-width: 720px) {
  body.template-editorial nav {
    height: 72px;
    width: calc(100% - 1rem);
    flex-direction: row;
  }

  body.template-editorial .nav-links {
    flex-wrap: initial;
    justify-content: initial;
  }

  body.template-editorial .hero {
    padding-top: 72px;
  }

  body.template-editorial .hero-left {
    padding: 2.4rem 1rem;
  }

  body.template-editorial .hero-title {
    font-size: clamp(2.55rem, 12.5vw, 3.9rem);
    line-height: 0.98;
  }

  body.template-editorial .hero-photo {
    min-height: 320px;
  }

  body.template-editorial .svc-card,
  body.template-editorial .pm,
  body.template-editorial .t-card,
  body.template-editorial .proc-step,
  body.template-editorial .cl,
  body.template-editorial .form-wrap {
    border-radius: 18px;
  }
}

/* White-only override: keep the editorial template bright and minimal. */
body.template-editorial {
  --brand-bg: #ffffff;
  --brand-bg2: #ffffff;
  --brand-bg3: #f7f7f7;
  --brand-primary: #111111;
  --brand-primary-2: #1d1d1d;
  --brand-primary-3: #444444;
  --brand-accent: #c8c8c8;
  --brand-accent-2: #e7e7e7;
  --brand-text: #111111;
  --brand-text-2: #4c4c4c;
  --brand-text-3: #8a8a8a;
  background: #fff;
}

body.template-editorial::before {
  display: none;
}

body.template-editorial nav,
body.template-editorial .hero,
body.template-editorial section {
  background: #fff;
  border-color: #ececec;
  box-shadow: 0 14px 40px rgba(17,17,17,0.05);
}

body.template-editorial .hero-left,
body.template-editorial .hero-right,
body.template-editorial .hero-card,
body.template-editorial .svc-card,
body.template-editorial .pm,
body.template-editorial .t-card,
body.template-editorial .proc-step,
body.template-editorial .cl,
body.template-editorial .form-wrap,
body.template-editorial .service-dialog,
body.template-editorial .message-dialog,
body.template-editorial .live-preview,
body.template-editorial .settings-card,
body.template-editorial .settings-subcard,
body.template-editorial .proc-img,
body.template-editorial .cta-right,
body.template-editorial .filter-wrap {
  background: #fff;
  border-color: #ececec;
  box-shadow: 0 12px 28px rgba(17,17,17,0.05);
  backdrop-filter: blur(18px);
}

body.template-editorial .hero-right {
  background: rgba(255,255,255,0.86);
}

body.template-editorial .hero-photo {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.20)),
    url("https://images.unsplash.com/photo-1511578314322-379afb476865?w=1400&q=85") center/cover;
}

body.template-editorial .hero-photo::after {
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
}

body.template-editorial .hero-card {
  background: rgba(255,255,255,0.82);
  color: var(--brand-text);
}

body.template-editorial .hero-card p,
body.template-editorial .hero-card span,
body.template-editorial .t-quote,
body.template-editorial .proc-step p,
body.template-editorial .section-desc,
body.template-editorial .cl span,
body.template-editorial .f-group input,
body.template-editorial .f-group textarea,
body.template-editorial .service-dialog-panel p {
  color: var(--brand-text-2);
}

body.template-editorial .hero-title,
body.template-editorial .section-title,
body.template-editorial .cta-left h2,
body.template-editorial .service-dialog h3,
body.template-editorial .svc-name,
body.template-editorial .pm-name,
body.template-editorial .t-name,
body.template-editorial .t-role {
  color: var(--brand-text);
}

body.template-editorial .hero-eyebrow,
body.template-editorial .eyebrow,
body.template-editorial .svc-badge,
body.template-editorial .pm-cat,
body.template-editorial .field-hint,
body.template-editorial .logo-text small,
body.template-editorial .nav-links a,
body.template-editorial .link-arrow,
body.template-editorial .btn-text {
  color: var(--brand-text-2);
}

body.template-editorial .hero-eyebrow-line,
body.template-editorial .fp.on,
body.template-editorial .svc-btn,
body.template-editorial .btn-fill,
body.template-editorial .nav-pill,
body.template-editorial .f-submit,
body.template-editorial .proc-n,
body.template-editorial .cl-icon,
body.template-editorial .t-av {
  background: #111 !important;
  color: #fff !important;
}

body.template-editorial .hero-title em,
body.template-editorial .section-title em,
body.template-editorial .cta-left h2 em {
  color: #111;
}

body.template-editorial #testimonials {
  background: #fff;
  color: var(--brand-text);
}

body.template-editorial #testimonials .eyebrow,
body.template-editorial #testimonials .section-title,
body.template-editorial #testimonials .t-name,
body.template-editorial #testimonials .t-role,
body.template-editorial #testimonials .t-quote {
  color: var(--brand-text);
}

body.template-editorial #testimonials .t-card {
  background: #fff;
  border-color: #ececec;
}

body.template-editorial #cta {
  background: #fff;
  color: var(--brand-text);
}

body.template-editorial .cta-left h2,
body.template-editorial .cta-left p {
  color: var(--brand-text);
}

body.template-editorial .cta-right {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.45)),
    radial-gradient(circle at 30% 30%, rgba(17,17,17,0.04), transparent 25%),
    radial-gradient(circle at 70% 60%, rgba(17,17,17,0.02), transparent 28%);
}

body.template-editorial .btn-fill,
body.template-editorial .f-submit,
body.template-editorial .nav-pill {
  box-shadow: 0 12px 28px rgba(17,17,17,0.10) !important;
}

body.template-editorial footer {
  background: rgba(240,240,240,0.92);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(17,17,17,0.08);
  color: var(--brand-text);
  box-shadow: 0 14px 35px rgba(17,17,17,0.06);
}

body.template-editorial .foot-col h5,
body.template-editorial .foot-logo,
body.template-editorial .foot-bottom p,
body.template-editorial .foot-col a,
body.template-editorial .foot-links a {
  color: var(--footer-link-color, #111) !important;
}

body.template-editorial .foot-col p,
body.template-editorial .foot-copy,
body.template-editorial .foot-links a {
  color: var(--brand-text-2);
}

body.template-editorial .foot-top {
  border-bottom-color: rgba(17,17,17,0.08);
}

body.template-editorial .foot-brand p {
  color: var(--brand-text-2);
}

body.template-editorial .foot-logo {
  color: var(--brand-text);
}

body.template-editorial .foot-bottom p {
  color: var(--footer-text-color, var(--brand-text-2));
}

body.template-editorial .foot-col ul li a {
  color: var(--footer-link-color, #111) !important;
  opacity: 0.88;
}

body.template-editorial .foot-col ul li a:hover {
  color: var(--footer-link-hover-color, #000) !important;
  opacity: 1;
}

body.template-editorial .socials .soc {
  background: #fff;
  color: #111;
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: 0 8px 18px rgba(17,17,17,0.06);
}

body.template-editorial .socials .soc.linkedin {
  background: #0A66C2;
  color: #fff;
}

body.template-editorial .socials .soc.instagram {
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 45%, #8134AF 100%);
  color: #fff;
}

body.template-editorial .socials .soc.facebook {
  background: #1877F2;
  color: #fff;
}

body.template-editorial .socials .soc.youtube {
  background: #FF0000;
  color: #fff;
}

body.template-editorial .foot-links a:hover,
body.template-editorial .foot-social a:hover {
  color: var(--brand-text);
}
