/* The four style variants from the handoff. site.css holds the base tokens
   (Clean White); each block below remaps them, so the inner pages re-skin with
   the home page. C and D also change the home layout — that markup lives in
   index.html behind .home-c / .home-d and is styled at the end of this file.

   A and B were swapped on 2026-09-17: the client preferred Midnight, so it now
   leads as A and Clean White — the base tokens, hence no block of its own — is B.
   The handoff calls them the other way round. */

/* --- A: Midnight — Clean White's layout in a dark skin ---------------------- */
[data-theme="a"] {
  --brand-sub: #8dc63f;
  --note-text: #93a3b8;
  /* the unselected filter pills sit on this: white here left pale grey on white */
  --section-plain: #13233c;
  --page-bg: #0a1424;
  --ink: #f2f6fb;
  --gray: #b6c2d2;
  --light: #091220;
  --section-dark: #0d1a2d;
  --card-bg: #13233c;
  --card-border: #24385a;
  --quote-bg: #13233c;
  --quote-border: #24385a;
  --border: #2b3d58;
  --border-soft: #1e2f47;
  --header-bg: #0d1a2d;
  --header-ink: #fff;
  --header-nav: #c8d2e0;
  --chip-bg: #1a2c14;
  --chip-fg: #8dc63f;
  --green-text: #8dc63f;
  --field-bg: #0a1424;
  --outline-btn-ink: #fff;
}
/* On a dark page the navy button disappears, so it becomes green-outlined. */
[data-theme="a"] .btn--navy {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
[data-theme="a"] .btn--navy:hover { background: var(--green); color: var(--navy); }
[data-theme="a"] .quote { border: 1px solid var(--quote-border); }
[data-theme="a"] .card { border: 1px solid var(--card-border); }

/* --- C: Teal Blueprint ----------------------------------------------------- */
[data-theme="c"] {
  --brand-sub: #8dc63f;
  --page-bg: #eceae3;
  --ink: #1c2a2a;
  --gray: #4d5a58;
  --light: #e4e1d8;
  --section-plain: #f7f5f0;
  --section-dark: #22262a;
  --navy: #10201f;
  --navy-text: #1c2a2a;
  --navy-border: #244441;
  --navy-outline: #464c52;
  --card-bg: #fff;
  --card-border: #e4e1d8;
  --card-ink: #1c2a2a;
  --card-muted: #5b6866;
  --card-icon: #1d5c58;
  --quote-bg: #f7f5f0;
  --border: #cfd6cd;
  --border-soft: #244441;
  --header-bg: #16302e;
  --header-ink: #fff;
  --header-nav: #cfdedb;
  --topbar-bg: #10201f;
  --topbar-text: #b9ccc9;
  --footer-bg: #10201f;
  --footer-muted: #6f8683;
  --chip-bg: transparent;
  --chip-fg: #1d5c58;
  --green-text: #1d5c58;
  --page-head-bg: #1d5c58;
  --outline-btn-ink: #1c2a2a;
}
[data-theme="c"] .card { border: 1px solid var(--card-border); box-shadow: 0 3px 10px rgba(16, 32, 31, 0.07); }
[data-theme="c"] .card:hover { color: var(--card-ink); box-shadow: 0 16px 30px rgba(16, 32, 31, 0.18); }
[data-theme="c"] .btn--navy:hover { background: var(--green); color: var(--navy); }

/* --- D: Editorial ---------------------------------------------------------- */
[data-theme="d"] {
  --page-bg: #f6f5f0;
  --section-plain: #f6f5f0;
  --light: #fff;
  --section-dark: #13233c;
  --card-bg: #fff;
  --card-border: #13233c;
  --card-ink: #13233c;
  --card-muted: #4a5a72;
  --card-icon: #8dc63f;
  --quote-bg: #fff;
  --border: #13233c;
  --border-soft: #13233c;
  --header-bg: #f6f5f0;
  --header-ink: #13233c;
  --header-nav: #13233c;
  --btn-radius: 100px;
  --rule: 2px;
}
/* The contact bar rides at the top in D too (the client asked for it), in the
   navy the rest of D uses, with the phones and the email on one baseline. */
[data-theme="d"] .topbar {
  background: var(--section-dark);
  color: #fff;
  border-bottom: 2px solid var(--navy-text);
  align-items: baseline;
}
[data-theme="d"] .topbar__contact { align-items: baseline; gap: 6px 28px; }
[data-theme="d"] .topbar a { font-weight: 700; letter-spacing: 0.02em; }
[data-theme="d"] .topbar__email { color: #fff; }
[data-theme="d"] .topbar__area { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11.5px; }
[data-theme="d"] .site-header { border-bottom-width: 2px; padding-top: 18px; padding-bottom: 18px; }
[data-theme="d"] .site-nav a:not(.btn) { text-transform: uppercase; font-weight: 800; letter-spacing: 0.04em; font-size: 13.5px; }
[data-theme="d"] .brand img { border: 2px solid var(--navy-text); }
[data-theme="d"] .card { border: 2px solid var(--card-border); }
[data-theme="d"] .quote { border: 2px solid var(--navy-text); box-shadow: 8px 8px 0 var(--green); }
[data-theme="d"] .h2, [data-theme="d"] .page-head h1, [data-theme="d"] .hero h1 { letter-spacing: -0.01em; }
[data-theme="d"] .btn--outline { border-color: var(--navy-text); }
[data-theme="d"] .site-footer { padding-top: 40px; }
[data-theme="d"] .script--footer, [data-theme="d"] .site-footer__legal nav { display: none; }

/* The header CTA: a quote button in A/B/C, an outlined phone pill in D. */
.site-nav__call { display: none; }
[data-theme="d"] .site-nav__call { display: inline-flex; border: 2px solid var(--navy-text); color: var(--navy-text); background: transparent; }
[data-theme="d"] .site-nav__call:hover { background: var(--navy-text); color: #fff; }
[data-theme="d"] .site-nav__cta { display: none; }

/* --- Which home layout is shown ------------------------------------------- */
.home-c, .home-d { display: none; }
[data-theme="c"] .home-ab, [data-theme="d"] .home-ab { display: none; }
[data-theme="c"] .home-c { display: block; }
[data-theme="d"] .home-d { display: block; }

/* --- C home layout --------------------------------------------------------- */
.home-c .hero-c { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); background: #1d5c58; }
.home-c .hero-c__body {
  padding: 76px 6% 80px;
  /* blueprint: two faint circles plus a 44px grid */
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.07) 0, rgba(255, 255, 255, 0.07) 90px, transparent 91px),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 140px, transparent 141px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}
.home-c .hero-c h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 900; color: #b8e986; margin: 18px 0 8px; line-height: 1.04; }
.home-c .hero-c__sub { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.home-c .hero-c__intro { font-size: 15.5px; line-height: 1.7; color: #d3e4e1; max-width: 460px; margin-bottom: 30px; }
.home-c .hero-c__photos { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.home-c .hero-c__photos img { width: 100%; height: 100%; object-fit: cover; min-height: 190px; }
.home-c .services-card-wrap { padding: 0 5%; transform: translateY(-34px); }
.home-c .services-card {
  max-width: var(--wrap); margin: 0 auto; background: #f7f5f0; border-radius: 6px;
  box-shadow: 0 18px 44px rgba(16, 32, 31, 0.22); padding: 44px 44px 48px;
}
.home-c .services-card .section-head { margin-bottom: 32px; }
.home-c .cards { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 18px; }
.home-c .card img { height: 150px; }
.home-c .why-c { background: #16302e; background-image: repeating-radial-gradient(circle at 110% 120%, transparent 0, transparent 58px, rgba(255, 255, 255, 0.045) 59px, transparent 60px); }
.home-c .why-c .wrap { padding: 64px 5%; }
.home-c .why-c .h2, .home-c .why-c .chips li { color: #fff; }
.home-c .why-c .lead { color: #c4d6d3; }
.home-c .photo-caption { border: 6px solid #fff; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3); min-height: 330px; }
.home-c .why-c .chip-icon { width: 38px; height: 38px; background: transparent; border: 2px solid var(--green); color: var(--green); }
.home-c .projects-c { background: #22262a; padding: 68px 5%; }
.home-c .projects-c .h2 { color: #fff; }
.home-c .polaroids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 22px; }
.home-c .polaroid { background: #fff; padding: 8px 8px 22px; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35); margin: 0; }
.home-c .polaroid:nth-child(1) { transform: rotate(-1.4deg); }
.home-c .polaroid:nth-child(2) { transform: rotate(1.2deg); }
.home-c .polaroid:nth-child(3) { transform: rotate(-0.8deg); }
.home-c .polaroid:nth-child(4) { transform: rotate(1.6deg); }
.home-c .polaroid img { width: 100%; height: 210px; object-fit: cover; }
.home-c .polaroid figcaption { font-family: 'Caveat', cursive; font-size: 19px; color: #22262a; text-align: center; margin-top: 10px; }
.home-c .stars-band { background: #1d5c58; padding: 60px 5%; }
.home-c .stars-band blockquote { max-width: 900px; margin: 0 auto; text-align: center; }
.home-c .stars-band p { font-size: clamp(17px, 2.2vw, 22px); line-height: 1.6; font-weight: 700; color: #fff; margin-bottom: 12px; }
.home-c .stars-band footer { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; color: #b8e986; }
.stars { color: var(--green); font-size: 22px; letter-spacing: 6px; margin-bottom: 14px; }

/* --- D home layout --------------------------------------------------------- */
.home-d .hero-d { max-width: var(--wrap); margin: 0 auto; padding: 72px 5% 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: end; }
.home-d .hero-d__text { padding-bottom: 64px; }
.home-d .pill-label { display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--navy-text); border-radius: 100px; padding: 8px 18px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; margin-bottom: 28px; }
.home-d .hero-d h1 { font-size: clamp(48px, 7vw, 88px); font-weight: 900; line-height: 0.98; margin-bottom: 20px; letter-spacing: -0.02em; }
.home-d .hero-d h1 .accent-text { color: var(--green-text); }
.home-d .hero-d__intro { font-size: 17px; line-height: 1.7; color: var(--gray); max-width: 420px; margin-bottom: 32px; }
.home-d .hero-d__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.home-d .hero-d__photo { position: relative; align-self: stretch; min-height: 440px; }
.home-d .hero-d__photo .block { position: absolute; inset: 32px -10px 0 36px; background: var(--green); border-radius: 6px; }
.home-d .hero-d__photo img { position: absolute; inset: 0 26px 32px 0; width: calc(100% - 26px); height: calc(100% - 32px); object-fit: cover; border-radius: 6px; box-shadow: 0 24px 48px rgba(19, 35, 60, 0.25); }
.home-d .hero-d__badge { position: absolute; right: 0; bottom: 6px; background: var(--navy-text); color: #fff; font-family: 'Caveat', cursive; font-size: 24px; padding: 10px 22px; border-radius: 100px; transform: rotate(-3deg); }
.link-underline { color: var(--navy-text); font-weight: 800; font-size: 13.5px; letter-spacing: 0.05em; border-bottom: 3px solid var(--green); padding-bottom: 3px; }
.link-underline:hover { color: var(--green-text); }
.marquee { border-top: 2px solid var(--navy-text); border-bottom: 2px solid var(--navy-text); background: var(--green); overflow: hidden; padding: 14px 0; white-space: nowrap; }
.marquee div { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: 0.16em; color: var(--navy-text); }
.home-d .band { max-width: var(--wrap); margin: 0 auto; padding: 80px 5%; }
.home-d .band-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.home-d .band-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; letter-spacing: -0.01em; }
.home-d .rows a {
  display: grid; grid-template-columns: 64px minmax(140px, 220px) 1fr auto; gap: 12px 28px; align-items: center;
  padding: 26px 10px; border-bottom: 2px solid var(--navy-text); color: var(--navy-text);
  transition: background var(--ease), padding var(--ease);
}
.home-d .rows a:hover { background: #fff; padding-left: 20px; }
.home-d .rows__num { font-size: 15px; font-weight: 900; color: var(--green); }
.home-d .rows__name { font-size: clamp(19px, 2.3vw, 26px); font-weight: 900; }
.home-d .rows__items { font-size: 13px; font-weight: 600; color: var(--gray); line-height: 1.7; }
.home-d .rows__go { width: 44px; height: 44px; border: 2px solid var(--navy-text); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.home-d .work { background: var(--section-dark); padding: 80px 5%; }
.home-d .work .band-head { margin-bottom: 36px; }
.home-d .work h2, .home-d .work .link-underline { color: #fff; }
.home-d .work .link-underline:hover { color: var(--green); }
.home-d .work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; max-width: var(--wrap); margin: 0 auto; }
.home-d .work-grid a { position: relative; border-radius: 6px; overflow: hidden; display: block; }
.home-d .work-grid img { width: 100%; height: 320px; object-fit: cover; transition: transform 200ms ease; }
.home-d .work-grid a:hover img { transform: scale(1.04); }
.home-d .work-grid span { position: absolute; left: 12px; bottom: 12px; background: var(--page-bg); color: var(--navy-text); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; padding: 8px 14px; border-radius: 100px; }
.home-d .trust { max-width: var(--wrap); margin: 0 auto; padding: 80px 5%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: center; }
.home-d .trust h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; margin-bottom: 18px; letter-spacing: -0.01em; }
.home-d .trust .lead { font-size: 15.5px; margin-bottom: 28px; max-width: 460px; }
.home-d .ticklist { list-style: none; margin: 0; padding: 0; max-width: 460px; }
.home-d .ticklist li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 2px solid var(--navy-text); font-size: 14px; font-weight: 800; }
.home-d .ticklist li:last-child { border-bottom: 2px solid var(--navy-text); }
.home-d .ticklist .icon { color: var(--green); stroke-width: 3.5; font-size: 18px; }
.home-d .quote { padding: 36px; }
.home-d .quote::before { content: none; }
.home-d .quote p { font-size: 17px; line-height: 1.65; }
.home-d .cta-d { background: var(--section-dark); padding: 72px 5%; text-align: center; }
.home-d .cta-d .script { font-size: 30px; color: var(--green); transform: rotate(-2deg); margin: 0 auto 8px; }
.home-d .cta-d h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; color: #fff; margin-bottom: 26px; letter-spacing: -0.01em; }
.home-d .cta-d__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* --- The style switcher (client review only; STYLE_SWITCHER=0 drops it) ----- */
.style-switch {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  background: var(--switch-bg, #0d1a2d); border: 1px solid var(--switch-border, #2b3d58); border-radius: 100px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 16px;
}
[data-theme="c"] .style-switch { --switch-bg: #10201f; --switch-border: #2c4a47; }
[data-theme="d"] .style-switch { --switch-bg: #13233c; --switch-border: transparent; }
.style-switch__label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--footer-muted); margin-right: 6px; }
.style-switch button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  color: var(--muted-dark); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900;
}
.style-switch button:hover { background: var(--border-soft); }
.style-switch button[aria-pressed="true"] { background: var(--green); color: var(--navy); }

@media (max-width: 760px) {
  .home-c .services-card { padding: 28px 20px 32px; }
  .home-c .services-card-wrap { padding: 0 5%; }
  .home-d .hero-d { padding-top: 40px; }
  .home-d .hero-d__text { padding-bottom: 32px; }
  .home-d .hero-d__photo { min-height: 320px; }
  .home-d .rows a { grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 18px 6px; }
  .home-d .rows__items, .home-d .rows__go { display: none; }
  .style-switch { right: 10px; bottom: 10px; padding: 6px 8px 6px 14px; }
  .style-switch button { width: 44px; height: 44px; font-size: 15px; }
}
