/*
Theme Name: Saros Investigazioni Milano
Theme URI: https://www.investigazioniamilano.it/
Author: Gruppo Saros Investigazioni
Author URI: https://www.grupposarosinvestigazioni.it/
Description: Tema WordPress custom basato sul mockup Saros Investigazioni Milano. Include home page, pagine servizio, header/footer responsive, CTA sticky e metadati SEO di base.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: saros-milano
*/

/* ======================================================
   Gruppo Saros Investigazioni — Milano
   Design system
   ====================================================== */

:root {
  /* Colors */
  --navy-900: #0f1a30;
  --navy-800: #1a2744;
  --navy-700: #243358;
  --navy-600: #344674;
  --navy-100: #d8def0;
  --navy-50:  #eef1f9;

  --paper:    #faf8f3;
  --paper-2:  #f3efe6;
  --paper-3:  #ebe5d6;
  --ink:      #0f1a30;
  --ink-soft: #3a4566;
  --ink-mute: #6b7390;
  --line:     rgba(15, 26, 48, 0.12);
  --line-soft:rgba(15, 26, 48, 0.06);

  --brass:    oklch(0.72 0.10 75);
  --brass-soft: oklch(0.86 0.06 75);
  --brass-deep: oklch(0.55 0.10 70);

  --danger:   oklch(0.55 0.18 25);

  /* Typography */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Spacing */
  --container: 1240px;
  --container-narrow: 980px;
  --pad-x: clamp(20px, 4vw, 56px);

  /* Shadows */
  --shadow-soft: 0 1px 2px rgba(15,26,48,.04), 0 8px 28px rgba(15,26,48,.08);
  --shadow-deep: 0 24px 60px rgba(15,26,48,.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

button { font-family: inherit; cursor: pointer; }

/* Typography */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(40px, 6vw, 84px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass-deep);
  margin: 0;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

p { margin: 0 0 1em 0; color: var(--ink-soft); }
p.lead { font-size: 19px; line-height: 1.55; color: var(--ink); max-width: 60ch; }

em.empath {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--navy-800);
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: clamp(64px, 9vw, 120px) 0; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ============== HEADER ============== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__topbar {
  background: var(--navy-900);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.site-header__topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px;
  gap: 16px;
}
.site-header__topbar a { color: var(--paper); opacity: .85; }
.site-header__topbar a:hover { opacity: 1; color: var(--brass-soft); }
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}
.topbar-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.78 0.16 145); box-shadow: 0 0 0 3px oklch(0.78 0.16 145 / .25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px oklch(0.78 0.16 145 / .25); }
  50% { box-shadow: 0 0 0 6px oklch(0.78 0.16 145 / .05); }
}

.site-header__main .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 52px; height: 52px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--navy-800); letter-spacing: 0.02em; }
.brand__sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-mute); margin-top: 4px; text-transform: uppercase; }

nav.primary { display: flex; gap: 28px; align-items: center; }
nav.primary a {
  font-size: 14px; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0;
}
nav.primary a:hover { color: var(--navy-800); }
nav.primary a.has-menu::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-left: 6px; vertical-align: 2px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: all .2s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--navy-800); color: var(--paper);
}
.btn--primary:hover { background: var(--navy-900); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn--ghost {
  background: transparent; color: var(--navy-800); border-color: var(--navy-800);
}
.btn--ghost:hover { background: var(--navy-800); color: var(--paper); }
.btn--brass {
  background: var(--brass); color: var(--navy-900);
}
.btn--brass:hover { background: var(--brass-deep); color: var(--paper); }
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Mobile menu trigger */
.mobile-toggle { display: none; background: none; border: 0; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: all .2s; }

/* ============== HERO ============== */
.hero {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: clamp(60px, 8vw, 110px) 0 clamp(70px, 9vw, 140px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black 30%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__content { max-width: 620px; }
.hero__pre {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.hero__pre .seal {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brass);
}
.hero__title { margin-bottom: 22px; }
.hero__title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(180deg, transparent 65%, var(--brass-soft) 65%);
  padding: 0 4px;
}
.hero__sub {
  font-size: 19px; line-height: 1.55; color: var(--ink-soft);
  max-width: 52ch; margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero__meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 24px; gap: 24px;
}
.hero__meta .meta-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 500;
  color: var(--navy-800); line-height: 1;
}
.hero__meta .meta-lbl {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute);
  margin-top: 8px;
}

/* hero visual */
.hero__visual {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  background: var(--navy-900);
}
.hero__visual picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}
.hero__visual__caption {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(15,26,48,0) 0%, rgba(15,26,48,.75) 100%);
  border-radius: 2px;
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero__visual__caption { font-size: 16px; left: 14px; right: 14px; bottom: 14px; }
}

/* trust strip */
.trust-strip {
  background: var(--navy-900);
  color: var(--paper);
  padding: 22px 0;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em;
}
.trust-strip .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px;
  align-items: center;
}
.trust-strip .item { display: flex; align-items: center; gap: 10px; opacity: .9; }
.trust-strip .check {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brass);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy-900); font-weight: 700; font-size: 10px;
}

/* ============== SECTION HEAD ============== */
.section-head {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.section-head__num {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-deep);
}
.section-head__title { margin: 0; }
.section-head__title em { font-style: italic; font-weight: 400; }
.section-head__sub {
  font-size: 18px; color: var(--ink-soft); max-width: 50ch; margin: 16px 0 0;
}

/* ============== SERVICES ============== */
.services {
  background: var(--paper);
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.service-card {
  position: relative;
  padding: 40px 36px 36px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  transition: background .25s ease;
  display: flex; flex-direction: column;
  min-height: 480px;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--paper-2); }
.service-card:hover .service-card__cta { color: var(--brass-deep); }
.service-card__num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em;
  color: var(--brass-deep);
  margin-bottom: 28px;
}
.service-card__icon {
  width: 56px; height: 56px;
  border: 1px solid var(--navy-800);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--navy-800);
}
.service-card__title {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  margin-bottom: 16px;
  color: var(--ink);
}
.service-card__desc {
  color: var(--ink-soft); font-size: 15px; line-height: 1.6;
  margin-bottom: 28px;
}
.service-card__list {
  list-style: none; padding: 0; margin: 0 0 32px; flex: 1;
}
.service-card__list li {
  font-size: 14px; padding: 10px 0; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-soft);
}
.service-card__list li:last-child { border-bottom: 1px dashed var(--line); }
.service-card__list a {
  color: var(--navy-800);
  font-weight: 600;
}
.service-card__list a:hover {
  color: var(--brass-deep);
}
.service-card__list li .tag {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brass-deep);
}
.service-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  color: var(--navy-800);
  border-bottom: 1px solid var(--navy-800);
  padding-bottom: 4px; align-self: flex-start;
  transition: color .2s ease, border-color .2s ease;
}
.service-card__cta:hover { color: var(--brass-deep); border-color: var(--brass-deep); }

/* ============== WHY US ============== */
.why {
  background: var(--navy-900);
  color: var(--paper);
}
.why .section-head { border-top-color: rgba(255,255,255,.15); }
.why .section-head__num { color: var(--brass-soft); }
.why h2, .why h3 { color: var(--paper); }
.why p { color: rgba(250,248,243,.75); }
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.why-item .icon {
  width: 48px; height: 48px; margin-bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--brass);
  border-radius: 50%; color: var(--brass);
}
.why-item h3 { font-size: 22px; margin-bottom: 10px; }
.why-item p { font-size: 14px; }

.why-stats {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-stats .num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 6vw, 76px); line-height: 1; color: var(--paper);
}
.why-stats .num sub {
  font-family: var(--font-mono); font-size: 14px;
  font-weight: 500; vertical-align: super; color: var(--brass);
  margin-left: 4px;
}
.why-stats .lbl {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brass-soft); margin-top: 12px;
}

/* ============== PROCESS ============== */
.process { background: var(--paper-2); }
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.process-step {
  background: var(--paper);
  padding: 36px 28px;
}
.process-step .step-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--brass-deep); letter-spacing: 0.15em;
  margin-bottom: 24px;
}
.process-step h3 { font-size: 22px; margin-bottom: 12px; }
.process-step p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.process-step .duration {
  margin-top: 20px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.08em;
  border-top: 1px dashed var(--line); padding-top: 12px;
}

/* ============== CASES ============== */
.cases {
  background: var(--paper);
}
.cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.case-card {
  background: var(--paper-2);
  padding: 32px;
  border-left: 2px solid var(--brass);
  position: relative;
}
.case-card .meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 20px;
}
.case-card .meta .type { color: var(--brass-deep); font-weight: 600; }
.case-card h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.3; margin-bottom: 16px;
  color: var(--ink);
}
.case-card .body { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
.case-card .outcome {
  font-family: var(--font-mono); font-size: 12px;
  padding: 8px 12px; background: var(--paper);
  display: inline-block; border: 1px solid var(--line);
  color: var(--navy-800); font-weight: 600;
}

/* ============== TESTIMONIALS ============== */
.testimonials { background: var(--paper-3); }
.test-rating {
  display: flex; align-items: center; gap: 16px; margin-bottom: 50px;
  padding: 20px 24px; background: var(--paper);
  border: 1px solid var(--line); max-width: 460px;
}
.test-rating .score {
  font-family: var(--font-display); font-size: 38px;
  font-weight: 500; line-height: 1; color: var(--navy-800);
}
.test-rating .stars { color: var(--brass-deep); letter-spacing: 2px; }
.test-rating .info {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.08em;
}
.test-rating .info strong { color: var(--ink); font-weight: 600; }

.test-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.test-card {
  background: var(--paper);
  padding: 28px;
  position: relative;
}
.test-card::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 80px; line-height: 1;
  color: var(--brass-soft);
  position: absolute; top: 0; left: 16px;
}
.test-card .body {
  font-family: var(--font-display);
  font-style: italic; font-size: 18px; line-height: 1.5;
  color: var(--ink); margin: 30px 0 24px; position: relative;
}
.test-card .author {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--line); padding-top: 14px;
  display: flex; justify-content: space-between;
}
.test-card .author strong { color: var(--ink); font-weight: 600; }

/* ============== FAQ ============== */
.faq { background: var(--paper); }
.faq-list { max-width: 880px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; cursor: pointer;
  font-family: var(--font-display); font-size: 22px;
  color: var(--ink);
  transition: color .2s ease;
  gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--navy-800); }
.faq-item summary .icon {
  width: 28px; height: 28px;
  border: 1px solid var(--line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono); color: var(--ink-soft);
  transition: all .2s;
}
.faq-item[open] summary .icon { background: var(--navy-800); color: var(--paper); border-color: var(--navy-800); }
.faq-item .answer {
  padding: 0 0 28px 0; max-width: 70ch;
  color: var(--ink-soft); font-size: 15px; line-height: 1.65;
}
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ============== AREAS (SEO Milano neighborhoods) ============== */
.areas { background: var(--navy-800); color: var(--paper); }
.areas .section-head { border-top-color: rgba(255,255,255,.15); }
.areas .section-head__num { color: var(--brass-soft); }
.areas h2 { color: var(--paper); }
.areas h3 { color: var(--paper); }
.areas p { color: rgba(250,248,243,.75); }
.areas-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
}
.area-cell {
  background: var(--navy-800);
  padding: 22px 20px;
  font-family: var(--font-mono); font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: 0.04em;
  transition: background .2s;
}
.area-cell:hover { background: var(--navy-700); }
.area-cell .cap {
  font-size: 10px; opacity: .55; letter-spacing: 0.08em;
}

/* ============== CONTACT ============== */
.contact {
  background: var(--paper);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info h2 { margin-bottom: 24px; }
.contact-info .lead { margin-bottom: 36px; }
.contact-channels {
  display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.channel {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.channel:last-child { border-bottom: none; }
.channel .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy-800); flex-shrink: 0;
}
.channel .lbl {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-mute); margin-bottom: 4px;
}
.channel .val {
  font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 500;
}
.channel .val a:hover { color: var(--brass-deep); }
.channel .meta-mini { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.contact-form {
  background: var(--paper-2);
  padding: clamp(32px, 4vw, 48px);
  border-top: 3px solid var(--navy-800);
}
.contact-form h3 { font-size: 26px; margin-bottom: 8px; }
.contact-form .sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  font-family: var(--font-sans); font-size: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 2px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy-800);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; font-size: 12px; color: var(--ink-soft); }
.checkbox-row input { width: 16px; height: 16px; margin-top: 2px; }
.form-success {
  display: none; padding: 16px 18px; background: oklch(0.95 0.04 145);
  border-left: 3px solid oklch(0.55 0.16 145); color: oklch(0.35 0.12 145);
  margin-top: 16px; font-size: 14px;
}
.form-success.shown { display: block; }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--navy-900); color: var(--paper);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand__name { color: var(--paper); }
.footer-brand .brand__sub { color: rgba(255,255,255,.5); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 14px; max-width: 36ch; margin-top: 18px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--brass-soft); margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-col a:hover { color: var(--brass-soft); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,.45); letter-spacing: 0.08em;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--brass-soft); }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--paper); transition: all .2s;
  text-decoration: none;
}
.footer-social a svg { width: 18px; height: 18px; display: block; }
.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--brass);
  color: var(--navy-900);
  border-color: var(--brass);
  transform: translateY(-1px);
}

/* ============== STICKY CTA ============== */
.sticky-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.sticky-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  background: var(--navy-900); color: var(--paper);
  font-family: var(--font-mono); font-size: 12px;
  font-weight: 600; letter-spacing: 0.06em;
  box-shadow: var(--shadow-deep);
  transition: all .2s;
}
.sticky-btn:hover { transform: translateY(-2px); }
.sticky-btn--wa { background: oklch(0.65 0.16 150); }
.sticky-btn--phone { background: var(--brass); color: var(--navy-900); }

/* ============== SERVICE PAGE ============== */
.service-hero {
  background: var(--navy-900); color: var(--paper);
  padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 100px);
  position: relative; overflow: hidden;
}
.service-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 80% 30%, black 30%, transparent 70%);
}
.service-hero .container { position: relative; }
.breadcrumb {
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(255,255,255,.55); letter-spacing: 0.08em;
  margin-bottom: 36px;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--brass-soft); }
.breadcrumb .sep { margin: 0 10px; opacity: .5; }
.service-hero h1 {
  color: var(--paper); max-width: 14ch; margin-bottom: 24px;
}
.service-hero h1 em {
  font-style: italic; font-weight: 400; color: var(--brass-soft);
}
.service-hero .lead { color: rgba(255,255,255,.85); max-width: 60ch; }
.service-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.service-hero__cta .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,.4); }
.service-hero__cta .btn--ghost:hover { background: var(--paper); color: var(--navy-900); border-color: var(--paper); }

.service-body { background: var(--paper); }
.service-body__grid {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 64px; align-items: start;
}
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); margin: 48px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 24px; margin: 32px 0 12px; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li {
  position: relative; padding: 12px 0 12px 32px;
  border-bottom: 1px dashed var(--line);
  font-size: 16px; color: var(--ink-soft);
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 16px; height: 1px; background: var(--brass-deep);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 32px 0; padding: 22px 28px;
  border-left: 3px solid var(--brass);
  background: var(--paper-2);
  font-family: var(--font-display); font-style: italic;
  font-size: 22px; line-height: 1.4; color: var(--ink);
}

.service-aside {
  position: sticky; top: 120px;
  display: flex; flex-direction: column; gap: 20px;
}
.aside-card {
  background: var(--paper-2); padding: 28px;
  border-top: 3px solid var(--navy-800);
}
.aside-card h4 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brass-deep); margin: 0 0 14px;
}
.aside-card .big {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 500; color: var(--ink); margin-bottom: 6px;
}
.aside-card p { font-size: 13px; margin-bottom: 0; }
.aside-card .btn { margin-top: 18px; width: 100%; justify-content: center; }
.aside-card.dark { background: var(--navy-900); color: var(--paper); border-top-color: var(--brass); }
.aside-card.dark h4 { color: var(--brass-soft); }
.aside-card.dark .big { color: var(--paper); }
.aside-card.dark p { color: rgba(255,255,255,.7); }

.legal-block {
  margin-top: 56px; padding: 28px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  font-size: 14px; color: var(--ink-soft);
}
.legal-block strong { color: var(--ink); }

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__visual { order: -1; aspect-ratio: 4/3; }
  .hero__visual img { object-position: 70% 25%; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--line); min-height: auto; }
  .service-card:last-child { border-bottom: none; }
  .why-grid, .why-stats { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid, .test-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .service-body__grid { grid-template-columns: 1fr; }
  .service-aside { position: static; }
  nav.primary { display: none; }
  .mobile-toggle { display: block; }
  .site-header__topbar .topbar-left { display: none; }
}
@media (max-width: 720px) {
  .site-header__main .brand__txt { display: none; }
  .site-header__main .brand img { width: 44px; height: 44px; }
  .site-header__main .container { gap: 10px; }
}
@media (max-width: 600px) {
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .sticky-cta { right: 12px; bottom: 12px; }
  .sticky-btn span { display: none; }
  .sticky-btn { padding: 14px; }
}


/* WordPress helpers */
.admin-bar .site-header { top: 32px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.primary .menu { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.primary .current-menu-item > a, .primary a[aria-current="page"] { color: var(--brass-deep); }
.content-page { padding: clamp(64px, 9vw, 110px) 0; }
.content-page .entry-content { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
.landing-hero .eyebrow { margin-bottom: 18px; }
.landing-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 34px;
}
.landing-links a,
.aside-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  color: var(--navy-800);
  font-weight: 600;
}
.landing-links a:hover,
.aside-links a:hover {
  border-color: var(--brass);
  background: var(--paper-2);
}
.aside-links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.landing-faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.landing-faq summary {
  cursor: pointer;
  font-weight: 700;
}
@media (max-width: 980px) {
  nav.primary.open {
    display: flex;
    position: absolute;
    left: var(--pad-x);
    right: var(--pad-x);
    top: calc(100% - 1px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  nav.primary.open .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  nav.primary.open a {
    display: block;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line-soft);
  }
  nav.primary.open a:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 600px) {
  .landing-links { grid-template-columns: 1fr; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ============== skip-link (a11y / SEO) ============== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 9999;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ============== related services (internal linking) ============== */
.related-services {
  padding: 80px 0;
  background: var(--paper-soft, #f7f5f0);
  border-top: 1px solid var(--line);
}
.related-services .container { }
.related-services h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 32px;
  color: var(--navy-900);
}
.related-services h2 em {
  font-style: italic;
  font-weight: 400;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.related-card {
  display: block;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.related-card:hover,
.related-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,26,48,.08);
  border-color: var(--navy-800);
}
.related-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--navy-900);
}
.related-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.related-card__more {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-800);
  font-weight: 600;
}
.related-card__more::after { content: " →"; }
.related-landings {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}
.related-landings h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
  font-weight: 600;
}
.related-landings ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.related-landings a {
  font-size: 14px;
  color: var(--navy-800);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.related-landings a:hover { color: var(--brass, #b08a3e); }

/* ============== legal pages (Privacy / Cookie) ============== */
.legal-hero {
  padding: 60px 0 32px;
  background: var(--paper-soft, #f7f5f0);
  border-bottom: 1px solid var(--line);
}
.legal-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.legal-hero .breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.legal-hero .breadcrumb a:hover { color: var(--navy-800); }
.legal-hero .breadcrumb span[aria-hidden] { margin: 0 8px; }
.legal-hero__inner { max-width: 820px; }
.legal-hero__title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.15;
  margin: 8px 0 16px;
  color: var(--navy-900);
}
.legal-hero__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 14px;
}
.legal-hero__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.legal-body { padding: 48px 0 96px; }
.legal-body__inner { max-width: 820px; }
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.25;
  margin: 40px 0 14px;
  color: var(--navy-900);
}
.legal-body h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 26px 0 8px;
  color: var(--navy-900);
  font-weight: 600;
}
.legal-body p,
.legal-body li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul,
.legal-body ol { padding-left: 22px; margin: 0 0 18px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a {
  color: var(--navy-800);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  word-break: break-word;
}
.legal-body a:hover { color: var(--brass-deep, #8a6a26); }
.legal-body code {
  font-family: var(--font-mono);
  background: var(--paper-soft, #f3efe6);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 14px;
}
@media (max-width: 720px) {
  .legal-hero__title { font-size: 32px; }
  .legal-body h2 { font-size: 22px; }
}
