/* ==========================================================================
   Theo Digital — site styles
   Brand: navy #0f1b2d · cream #f6f3ec · teal #0e8a80 · Inter
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0f1b2d;
  --navy-2: #1a2a42;
  --cream: #f6f3ec;
  --cream-2: #ece6da;
  --white: #ffffff;
  --teal: #0e8a80;        /* brand accent: decorative use, large text */
  --teal-ink: #0b6f67;    /* AA-safe teal for small text & buttons on light bg */
  --teal-light: #2ec4b6;  /* accent on navy backgrounds */
  --ink: #0f1b2d;
  --muted: #4d5a6b;
  --muted-on-navy: #aabacc;
  --line: #d9d2c4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: .7rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Top accent bar (matches social graphics) ---------- */
.accent-bar { height: 6px; background: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }

.wordmark {
  font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: .6rem;
}
.wordmark:hover { color: var(--navy); }
.wordmark-mark { width: 30px; height: 30px; flex: none; }

.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--navy); font-weight: 500; font-size: .97rem; text-decoration: none;
}
.nav-list a:hover { background: var(--cream-2); color: var(--navy); }
.nav-list .btn { display: inline-flex; margin-left: .5rem; padding: .6rem 1.15rem; min-height: 44px; color: var(--white); }
.nav-list .btn:hover { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--navy); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 27, 45, .08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .no-js .site-nav { display: block; position: static; box-shadow: none; }
  .nav-list { flex-direction: column; align-items: stretch; padding: .75rem 1.5rem 1.25rem; gap: .1rem; }
  .nav-list a { padding: .8rem .75rem; font-size: 1.05rem; }
  .nav-list .btn { margin: .5rem 0 0; padding: .8rem 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-ink); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--teal-light); color: var(--navy); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Pills / eyebrows (match social "kicker" style) ---------- */
.pill {
  display: inline-block; padding: .3rem .85rem; border: 2px solid var(--teal); border-radius: 999px;
  color: var(--teal-ink); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.4; margin-bottom: 1.1rem;
}
.on-navy .pill { color: var(--teal-light); border-color: var(--teal-light); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: var(--muted-on-navy); }
.bg-navy a:not(.btn) { color: var(--teal-light); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--teal); }
.hero-lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 36ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero-audience { font-size: .95rem; color: var(--muted); margin: 0; }
.hero-audience strong { color: var(--navy); font-weight: 600; }

.hero-card {
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow);
  padding: 1.75rem; position: relative;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--teal);
  border-radius: 22px 22px 0 0;
}
.hero-card-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .25rem 0 1rem; }
.hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.hero-list a {
  display: flex; align-items: center; gap: .9rem; padding: .7rem .8rem; border-radius: 12px;
  background: var(--cream); color: var(--navy); font-weight: 600; text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.hero-list a:hover { background: var(--cream-2); transform: translateX(2px); }
.num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal-ink); color: var(--white);
  font-weight: 800; font-size: .95rem;
}
.hero-list .arrow { margin-left: auto; color: var(--teal-ink); font-weight: 700; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lede { max-width: none; }
}

/* ---------- Services overview ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  display: flex; flex-direction: column; background: var(--cream); border-radius: var(--radius);
  padding: 1.6rem; border: 1px solid transparent; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.service-card h3 { margin: 1rem 0 .4rem; }
.service-card p { color: var(--muted); font-size: 1rem; margin-bottom: 1.1rem; }
.service-card .more { margin-top: auto; font-weight: 650; color: var(--teal-ink); font-size: .95rem; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--teal-light);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Service detail blocks ---------- */
.service-detail {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
.service-detail .label { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.service-detail .label span:not(.num) { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.service-detail h3 { font-size: clamp(1.6rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -0.025em; }
.service-detail .intro { color: var(--muted); font-size: 1.08rem; }
.fit { font-size: .98rem; color: var(--muted); background: var(--cream-2); border-radius: var(--radius-sm); padding: .9rem 1rem; margin-top: 1.25rem; }
.fit strong { color: var(--navy); }

.included {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.75rem; box-shadow: var(--shadow);
}
.included h4 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: start; }
.check-list li::before {
  content: ""; width: 22px; height: 22px; margin-top: .15rem; border-radius: 50%;
  background: var(--teal-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.included .note { font-size: .9rem; color: var(--muted); margin: 1.1rem 0 0; }

@media (max-width: 860px) { .service-detail { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: var(--navy-2); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step .num { background: var(--teal-light); color: var(--navy); margin-bottom: 1.1rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { font-size: .98rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Why / principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.principle { background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.75rem; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.principle h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.principle p { color: var(--muted); margin: 0; font-size: 1rem; }
.principle .icon-badge { width: 46px; height: 46px; border-radius: 12px; background: rgba(14,138,128,.12); color: var(--teal-ink); }
.principle .icon-badge svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-grid .lead { font-size: 1.2rem; color: var(--navy); font-weight: 500; }
.about-aside { background: var(--cream); border-radius: var(--radius); padding: 1.75rem; }
.about-aside h3 { font-size: 1.05rem; }
.about-aside ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.about-aside li { margin-bottom: .4rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--teal); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3.25rem 1.15rem 1.35rem; position: relative;
  font-weight: 650; color: var(--navy); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--teal-ink); border-bottom: 2.5px solid var(--teal-ink);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 1.35rem 1.25rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-grid.form-off { grid-template-columns: 1fr; max-width: 760px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.contact-hint { font-size: .95rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; font-size: .98rem; }
.contact-list li { display: flex; gap: .6rem; align-items: baseline; }
.contact-list li::before { content: "→"; color: var(--teal-light); font-weight: 700; }

.form-card { background: var(--white); color: var(--ink); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2rem); }
.form-card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: .25rem; }
.form-card .form-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: .75rem .9rem; border: 1.5px solid #c9c1b2; border-radius: 10px; background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 3px rgba(14,138,128,.25);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; }
.form-status { margin: 1rem 0 0; font-size: .95rem; padding: .85rem 1rem; border-radius: 10px; }
.form-status:empty { display: none; }
.form-status.is-info { background: #e7f4f2; color: #0a4f4a; }
.form-status.is-error { background: #fbeaea; color: #8a1c1c; }
.form-status.is-success { background: #e7f4f2; color: #0a4f4a; }
.form-status a { color: inherit; font-weight: 650; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--white); border-radius: 22px; padding: clamp(2rem, 4vw, 3rem); display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .3rem; }
.cta-band p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--muted-on-navy); padding: 3.5rem 0 2rem; font-size: .95rem; border-top: 1px solid var(--navy-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--navy-2); }
.site-footer .wordmark { color: var(--white); }
.site-footer h2 { font-size: .8rem; color: var(--white); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--muted-on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-blurb { margin-top: 1rem; max-width: 36ch; }
.social-row { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: inline-flex; align-items: center; justify-content: center; color: var(--white);
}
.social-row a:hover { background: var(--teal-light); color: var(--navy); border-color: var(--teal-light); }
.social-row svg { width: 20px; height: 20px; }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -0.05em; color: var(--teal); line-height: 1; margin: 0 0 .5rem; }
.error-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Small-screen refinements ---------- */
.nav-list .btn { border-radius: 999px; justify-content: center; }
@media (max-width: 620px) {
  .hero-card { display: none; } /* services grid follows directly on small screens */
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .cta-band .btn { width: 100%; }
}

/* ---------- Anchor offset for sticky header ---------- */
main [id] { scroll-margin-top: 84px; }

/* Readable links inside the light form card on navy sections */
.bg-navy .form-card a:not(.btn) { color: #0a4f4a; }

/* 404 layout: keep footer at the bottom */
.page-404 { display: flex; flex-direction: column; min-height: 100vh; }
.page-404 .error-page { flex: 1; }

/* ---------- Email link, form privacy note ---------- */
.contact-email { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.5rem; color: var(--white); font-size: 1rem; }
.contact-email-icon { width: 20px; height: 20px; flex: none; color: var(--teal-light); }
.bg-navy .contact-email a { color: var(--teal-light); font-weight: 650; }
.form-card .form-privacy { font-size: .88rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.footer-email { margin: .75rem 0 0; }
.site-footer .footer-email a { color: var(--white); font-weight: 600; }

/* ---------- Simple content pages (privacy, thanks) ---------- */
.page-simple { display: flex; flex-direction: column; min-height: 100vh; }
.page-simple main { flex: 1; }
.prose { max-width: 680px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.35rem; letter-spacing: -0.015em; margin-top: 2rem; }
.prose p, .prose li { color: var(--muted); }
.prose .lede { font-size: 1.2rem; color: var(--navy); }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.thanks-icon svg { width: 32px; height: 32px; }
