/*
 * BeGlad Gardens & Landscaping — styles.css
 * "The Sunline": image-led, sun-drenched, transformation-as-architecture.
 * Signature motif: the diagonal gold "sunline" seam. One voice throughout.
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-primary: #1A3048;        /* St. Pete Navy */
  --color-primary-dark: #0F1E30;   /* Deep Harbor */
  --color-primary-light: #2E4C6B;  /* Gulf Dusk */
  --color-secondary: #5AA830;      /* Garden Green */
  --color-secondary-dark: #3F7A21; /* Garden Green Dark (small text on) */
  --color-accent: #F5C518;         /* Florida Gold — the sunline */
  --color-accent-alt: #E03030;     /* Hibiscus Red — living marker */
  --color-bg: #FBF8EF;             /* Sunwashed Cream */
  --color-surface: #A8D8F0;        /* Breezy Sky */
  --color-text: #1A3048;           /* Ink Navy */
  --color-text-secondary: #4A5A6A; /* Muted Slate */
  --color-text-on-primary: #FBF8EF;/* Cream on Navy */
  --color-border: #E5DCC4;         /* Warm Sand */

  --font-primary: 'Bricolage Grotesque', sans-serif;
  --font-secondary: 'Figtree', sans-serif;
  --font-size-base: 16px;
  --spacing-base: 8px;

  --motion-duration: 240ms;
  --motion-duration-slow: 520ms;
  --motion-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --wrap: 1180px;
  --wrap-narrow: 780px;
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base, 16px); scroll-behavior: smooth; }

body {
  font-family: var(--font-secondary, sans-serif);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  padding-bottom: 42px; /* required */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-primary); color: var(--color-text); font-weight: 700; }

/* Focus states — WCAG AA required */
:focus-visible { outline: 3px solid var(--color-accent-alt); outline-offset: 2px; }

/* Skip navigation link — WCAG 2.4.1 */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 0.75rem 1.25rem; background: var(--color-bg); color: var(--color-primary);
  font-weight: 600; text-decoration: none;
  border: 2px solid var(--color-accent); border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Layout Helpers
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Type scale */
.t-display { font-family: var(--font-primary); font-weight: 800; font-size: clamp(3.25rem, 8vw, 6.5rem); line-height: 0.98; letter-spacing: -0.02em; }
.t-h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.015em; }
.t-h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); line-height: 1.08; letter-spacing: -0.01em; }
.t-h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.005em; font-weight: 600; }
.t-lead { font-family: var(--font-secondary); font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--color-text-secondary); }
.t-body { font-size: 1.0625rem; line-height: 1.65; }
.eyebrow {
  font-family: var(--font-secondary); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-secondary-dark);
  display: inline-block; margin-bottom: 1rem;
}
.measure { max-width: 66ch; }

.text-green { color: var(--color-secondary-dark); }

/* Gold sunline hairline — the seam as a quiet signature thread */
.sunline-rule { position: relative; height: 3px; width: min(220px, 60%); background: var(--color-accent); border: 0; margin-top: 1.5rem; transform: skewX(-24deg); transform-origin: left center; border-radius: 2px; }
html.js .reveal .sunline-rule, html.js .sunline-rule.reveal { transform-origin: left center; }
html.js .reveal.is-in .sunline-rule { animation: ruleDraw var(--motion-duration-slow) var(--motion-ease); }
@keyframes ruleDraw { from { transform: skewX(-24deg) scaleX(0); } to { transform: skewX(-24deg) scaleX(1); } }

/* ============================================================
   Reveal-gating (visible without JS)
   ============================================================ */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--motion-ease), transform 0.6s var(--motion-ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* Sunline wipe — motion signature: the "after" settles from muted to full green */
.after-frame { }
html.js .sunline-wipe .after-frame { filter: saturate(0.62); transition: filter var(--motion-duration-slow) var(--motion-ease); }
html.js .sunline-wipe.is-in .after-frame { filter: saturate(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.js .sunline-wipe .after-frame { filter: none !important; transition: none !important; }
  html.js .reveal.is-in .sunline-rule { animation: none !important; }
}

/* ============================================================
   Buttons / CTA (restrained — the design wins, not the button)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-secondary); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 4px; border: 2px solid transparent;
  cursor: pointer; transition: background var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
}
.btn--primary { background: var(--color-primary); color: var(--color-text-on-primary); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--primary .ph { color: var(--color-accent); }
.btn--green { background: var(--color-secondary-dark); color: #fff; }
.btn--green:hover { background: var(--color-secondary); }
.btn:hover { transform: translateY(-1px); }

.link-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-secondary); font-weight: 600; font-size: 1.0625rem;
  color: var(--color-primary); border-bottom: 2px solid transparent;
  transition: color var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease);
}
.link-cta .ph { color: var(--color-accent); transition: transform var(--motion-duration) var(--motion-ease); font-size: 1.15em; }
.link-cta:hover { color: var(--color-secondary-dark); }
.link-cta:hover .ph { transform: translateX(4px); }

/* ============================================================
   Navigation — logo-left / menu-right, dark navy, sticky
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-primary);
  transition: box-shadow var(--motion-duration) var(--motion-ease);
}
.nav.is-scrolled { box-shadow: 0 2px 20px rgba(15, 30, 48, 0.45); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--wrap); margin-inline: auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem); min-height: 68px;
}
.nav__logo {
  display: inline-flex; align-items: center; flex-shrink: 0;
  position: relative; height: 68px; width: 161px;
  transition: width var(--motion-duration) var(--motion-ease);
}
.nav__logo img {
  position: absolute; top: 8px; left: 0;
  height: 120px; width: auto; max-width: 220px; display: block;
  transition: height var(--motion-duration) var(--motion-ease), top var(--motion-duration) var(--motion-ease);
}
/* Badge-hang: logo overhangs the bottom edge of the navy bar at page top, then
   settles back within the bar once scrolled so it never overlaps page content. */
.nav.is-scrolled .nav__logo { width: 80px; }
.nav.is-scrolled .nav__logo img { height: 60px; top: 4px; }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; }
.nav__link {
  font-family: var(--font-secondary); font-weight: 500; font-size: 0.9375rem;
  color: var(--color-text-on-primary); text-decoration: none; padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--motion-duration) var(--motion-ease);
}
.nav__link:hover { color: var(--color-accent); }
.nav__link[aria-current="page"] { border-bottom-color: var(--color-accent-alt); color: #fff; }
.nav__phone {
  font-family: var(--font-secondary); font-weight: 600; font-size: 0.9375rem;
  color: var(--color-text-on-primary); text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--color-accent); border-radius: 999px;
  padding: 0.5rem 1.1rem; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: background var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease);
}
.nav__phone .ph { color: var(--color-accent); }
.nav__phone:hover { background: var(--color-accent); color: var(--color-primary); }
.nav__phone:hover .ph { color: var(--color-primary); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--color-text-on-primary); font-size: 1.9rem; line-height: 1; padding: 0.25rem; }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--color-primary-dark);
    padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 30, 48, 0.5);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
  }
  .nav.is-open .nav__menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__menu > li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav__link { display: block; width: 100%; padding: 0.95rem 0; font-size: 1.05rem; }
  .nav__phone { margin-top: 1.1rem; font-size: 1.05rem; }
  .nav__menu .nav__phone-item { order: -1; } /* phone first in drawer */
}

/* ============================================================
   Hero — sunline diagonal split + proverb crescendo
   ============================================================ */
.hero { position: relative; min-height: 88vh; background: var(--color-bg); display: flex; align-items: flex-end; overflow: hidden; }
.hero__photo-wrap {
  position: absolute; inset: 0; z-index: 1;
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 42% 100%);
}
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__seam {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  clip-path: polygon(55.4% 0, 56% 0, 42% 100%, 41.4% 100%);
  background: var(--color-accent);
  box-shadow: 0 0 30px 6px rgba(245, 197, 24, 0.35);
}
html.js .sunline-wipe.is-in .hero__seam { animation: seamGlow 1.1s var(--motion-ease); }
@keyframes seamGlow { 0% { filter: brightness(1); } 40% { filter: brightness(1.7); } 100% { filter: brightness(1); } }
.hero__content {
  position: relative; z-index: 3;
  max-width: 42vw; width: 100%;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}
.hero__content-inner { max-width: 560px; }
.hero__key { display: inline-block; color: var(--color-secondary); font-size: 1.75rem; margin-bottom: 1rem; }
.hero__proverb-1 { font-family: var(--font-primary); font-weight: 600; font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.35; color: var(--color-primary-light); max-width: 22ch; }
.hero__proverb-2 { font-family: var(--font-primary); font-weight: 800; font-size: clamp(2.75rem, 6.5vw, 5.5rem); line-height: 0.98; letter-spacing: -0.02em; color: var(--color-primary); margin-top: 0.5rem; }
.hero__now { position: relative; display: inline-block; font-size: clamp(3.5rem, 9vw, 7.5rem); line-height: 0.9; color: var(--color-primary); }
.hero__now::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.08em; height: 0.14em; background: var(--color-accent); z-index: -1; border-radius: 2px; box-shadow: 0 0 18px rgba(245,197,24,0.55); }
.hero__dot { color: var(--color-accent-alt); }
.hero__cta { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.hero__cta.link-cta { font-size: 1.2rem; }

/* Hero staggered load entrance (JS-off safe) */
html.js .hero__content-inner > * { opacity: 0; transform: translateY(18px); animation: heroIn 0.7s var(--motion-ease) forwards; }
html.js .hero__content-inner > *:nth-child(1) { animation-delay: 0.15s; }
html.js .hero__content-inner > *:nth-child(2) { animation-delay: 0.30s; }
html.js .hero__content-inner > *:nth-child(3) { animation-delay: 0.45s; }
html.js .hero__content-inner > *:nth-child(4) { animation-delay: 0.60s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js .hero__content-inner > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  html.js .sunline-wipe.is-in .hero__seam { animation: none !important; }
}

/* Hero mobile: diagonal flips to a horizontal seam (proverb above, photo below) */
@media (max-width: 768px) {
  .hero { display: block; min-height: 0; }
  .hero__content { position: static; max-width: 100%; padding: clamp(2.5rem, 8vw, 3.5rem) 1.5rem 2rem; }
  .hero__content-inner { margin-left: 0; max-width: 100%; }
  .hero__photo-wrap { position: relative; inset: auto; clip-path: none; height: 58vw; min-height: 300px; border-top: 6px solid var(--color-accent); box-shadow: 0 -10px 30px rgba(245,197,24,0.25); }
  .hero__seam { display: none; }
  .hero__proverb-2 { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .hero__now { font-size: clamp(3rem, 16vw, 4.5rem); }
}

/* ============================================================
   Positioning line ("Design, not maintenance")
   ============================================================ */
.positioning { background: var(--color-bg); }
.positioning__inner { display: grid; grid-template-columns: 200px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.positioning__rubric { font-family: var(--font-secondary); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-secondary-dark); line-height: 1.5; padding-top: 0.6rem; }
.positioning__statement { min-width: 0; }
.positioning__statement p { font-family: var(--font-primary); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--color-primary); }
@media (max-width: 768px) { .positioning__inner { grid-template-columns: 1fr; gap: 1rem; } }

/* ============================================================
   Featured Transformation — navy band, before/after w/ gold seam
   ============================================================ */
.band-navy { background: var(--color-primary); color: var(--color-text-on-primary); }
.band-navy .eyebrow { color: var(--color-secondary); }
.band-navy h2, .band-navy h3 { color: var(--color-text-on-primary); }
.featured__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.featured__copy { min-width: 0; }
.featured__caption { color: rgba(251,248,239,0.8); font-size: 1.0625rem; margin-top: 1rem; max-width: 42ch; }
.featured__link { margin-top: 1.75rem; }
.band-navy .link-cta { color: var(--color-text-on-primary); }
.band-navy .link-cta:hover { color: var(--color-accent); }

/* Before/after frame with the gold sunline seam riding the boundary */
.ba-frame { position: relative; }
.ba-frame img { width: 100%; height: auto; display: block; }
.ba-frame--seam::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px;
  transform: translateX(-50%) skewX(-8deg); background: var(--color-accent);
  box-shadow: 0 0 24px 4px rgba(245,197,24,0.4); z-index: 2;
}
.ba-marker {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--color-primary-dark); color: var(--color-text-on-primary);
  font-family: var(--font-secondary); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.5rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--color-accent);
  white-space: nowrap;
}
.ba-marker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-alt); flex-shrink: 0; }
@media (max-width: 768px) { .featured__inner { grid-template-columns: 1fr; } }

/* ============================================================
   Services garden index (almanac leader-dot list)
   ============================================================ */
.almanac { list-style: none; }
.alm-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid var(--color-border); }
.alm-row:last-child { border-bottom: 0; }
.alm-mark { font-size: 1.4rem; color: var(--color-secondary); line-height: 1; transform: translateY(0.15em); }
.alm-mark--gold { color: var(--color-accent); }
.alm-mark--red { color: var(--color-accent-alt); }
.alm-line { min-width: 0; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.alm-name { font-family: var(--font-primary); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--color-primary); letter-spacing: -0.005em; }
.alm-dots { flex: 1 1 40px; min-width: 24px; border-bottom: 2px dotted var(--color-border); transform: translateY(-0.3em); height: 0; }
.alm-desc { color: var(--color-text-secondary); font-size: 0.95rem; flex-shrink: 0; }
@media (max-width: 620px) {
  .alm-dots { display: none; }
  .alm-line { flex-direction: column; gap: 0.2rem; }
  .alm-desc { flex-shrink: 1; }
}

/* ============================================================
   How it works — numbered process w/ crescendo numerals
   ============================================================ */
.process { display: grid; grid-template-columns: repeat(4, 1fr) 0.9fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.process__step { min-width: 0; }
.process__num { font-family: var(--font-primary); font-weight: 800; color: var(--color-primary); line-height: 1; display: block; }
.process__step:nth-child(1) .process__num { font-size: 3rem; }
.process__step:nth-child(2) .process__num { font-size: 3.25rem; }
.process__step:nth-child(3) .process__num { font-size: 3.5rem; }
.process__step:nth-child(4) .process__num { font-size: 3.75rem; }
.process__mark { color: var(--color-secondary); font-size: 1.15rem; margin-left: 0.4rem; }
.process__title { font-family: var(--font-primary); font-weight: 600; font-size: 1.2rem; margin: 0.8rem 0 0.4rem; color: var(--color-primary); display: inline-block; }
.process__step--visit .process__title { border-bottom: 2px solid var(--color-accent); padding-bottom: 2px; }
.process__body { font-size: 0.98rem; color: var(--color-text-secondary); }
.process__body .text-green { font-weight: 600; }
.process__anchor { border-radius: 6px; overflow: hidden; }
.process__anchor img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; object-position: center 55%; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process__anchor { grid-column: 1 / -1; order: 5; }
  .process__anchor img { max-height: 220px; }
}
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ============================================================
   Sky bands (pollinator, CTA) — the site's "air"
   ============================================================ */
.band-sky { background: var(--color-surface); color: var(--color-primary); }
.band-sky .eyebrow { color: var(--color-secondary-dark); }

.pollinator__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pollinator__copy { min-width: 0; }
.pollinator__macros { position: relative; min-height: 340px; }
.pollinator__macros img { position: absolute; border-radius: 6px; box-shadow: 0 18px 40px rgba(15,30,48,0.18); }
.macro-a { width: 62%; top: 0; right: 4%; z-index: 1; }
.macro-b { width: 52%; bottom: 0; left: 0; z-index: 2; border: 5px solid var(--color-bg); }
.bloom-dot { position: absolute; top: 12%; left: 8%; width: 14px; height: 14px; border-radius: 50%; background: var(--color-accent-alt); z-index: 3; box-shadow: 0 0 0 5px rgba(224,48,48,0.18); }
@media (max-width: 768px) {
  .pollinator__inner { grid-template-columns: 1fr; }
  .pollinator__macros { min-height: 0; display: flex; gap: 1rem; margin-top: 1.5rem; }
  .pollinator__macros img { position: static; width: 50%; }
  .macro-b { align-self: flex-end; transform: translateY(1.5rem); }
  .bloom-dot { display: none; }
}

/* ============================================================
   Free-Estimate CTA band (form-led)
   ============================================================ */
.estimate-cta__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.estimate-cta__copy { min-width: 0; }
.estimate-cta__phone { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-family: var(--font-primary); font-weight: 700; font-size: 1.35rem; color: var(--color-primary); }
.estimate-cta__phone .ph { color: var(--color-secondary-dark); }
.estimate-cta__copy .sunline-rule { margin-top: 1.5rem; }

/* ============================================================
   Contact form
   ============================================================ */
.contact-form { display: grid; gap: 1rem; background: var(--color-bg); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 8px; border: 1px solid var(--color-border); box-shadow: 0 20px 50px rgba(15,30,48,0.12); }
.contact-form--panel { background: var(--color-bg); }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-family: var(--font-secondary); font-weight: 600; font-size: 0.85rem; color: var(--color-primary); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  font-family: var(--font-secondary); font-size: 1rem; color: var(--color-primary);
  background: #fff; border: 1.5px solid var(--color-border); border-radius: 5px;
  padding: 0.7rem 0.85rem; width: 100%;
  transition: border-color var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-accent-alt);
  box-shadow: 0 0 0 3px rgba(224,48,48,0.22);
}
.contact-form .btn { justify-content: center; margin-top: 0.25rem; }
.form-note { font-size: 0.85rem; color: var(--color-text-secondary); }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   Footer — navy, 4 zones, gold sunline hairline
   ============================================================ */
.site-footer { background: var(--color-primary); color: var(--color-text-on-primary); position: relative; }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--color-accent); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(3rem, 5vw, 4.5rem); }
.footer__brand img { height: 48px; width: auto; max-width: 180px; margin-bottom: 1.1rem; }
.footer__tagline { color: rgba(251,248,239,0.82); font-size: 0.95rem; max-width: 34ch; }
.footer__loc { color: var(--color-accent); font-weight: 600; margin-top: 0.75rem; font-size: 0.95rem; }
.footer__col h3 { font-family: var(--font-primary); font-weight: 600; font-size: 1.05rem; color: var(--color-text-on-primary); margin-bottom: 1rem; position: relative; padding-bottom: 0.5rem; }
.footer__col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--color-accent); }
.footer__nav { list-style: none; display: grid; gap: 0.55rem; }
.footer__nav a { color: rgba(251,248,239,0.85); font-size: 0.95rem; transition: color var(--motion-duration) var(--motion-ease); }
.footer__nav a:hover { color: var(--color-secondary); }
.footer__contact { list-style: none; display: grid; gap: 0.7rem; }
.footer__contact li { display: flex; align-items: center; gap: 0.6rem; color: rgba(251,248,239,0.85); font-size: 0.95rem; }
.footer__contact .ph { color: var(--color-accent); font-size: 1.15rem; }
.footer__contact a { color: rgba(251,248,239,0.9); }
.footer__contact a:hover { color: var(--color-secondary); }
.footer__social { display: flex; gap: 0.75rem; margin-top: 1.1rem; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(251,248,239,0.28); color: var(--color-text-on-primary); font-size: 1.25rem;
  transition: border-color var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease), background var(--motion-duration) var(--motion-ease);
}
.footer__social a:hover { border-color: var(--color-accent-alt); color: var(--color-accent-alt); }
.footer__bottom { background: var(--color-primary-dark); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; padding-block: 1.1rem; font-size: 0.85rem; color: rgba(251,248,239,0.78); }
.footer__bottom-inner p { color: rgba(251,248,239,0.78); }
.footer__scope { color: rgba(251,248,239,0.78); }
@media (max-width: 820px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__inner { grid-template-columns: 1fr; } }

/* ============================================================
   About page
   ============================================================ */
.about-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-hero__copy { min-width: 0; }
.about-hero__photo { position: relative; }
.about-hero__photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 6px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.about-hero__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--color-accent); transform: skewY(-6deg); transform-origin: left; box-shadow: 0 0 20px rgba(245,197,24,0.4); }
.about-proverb { margin-top: 2rem; }
.about-proverb p:first-child { font-family: var(--font-primary); font-weight: 600; font-size: 1.05rem; color: var(--color-primary-light); }
.about-proverb .now-line { font-family: var(--font-primary); font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; color: var(--color-primary); margin-top: 0.25rem; }
.about-proverb .now-line em { font-style: normal; position: relative; }
.about-proverb .now-line em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.12em; background: var(--color-accent); z-index: -1; }

.story__inner { position: relative; }
.story__body { column-count: 2; column-gap: clamp(2rem, 4vw, 3.5rem); column-rule: 1px solid var(--color-border); }
.story__body p { font-size: 1.0625rem; line-height: 1.7; margin-bottom: 1.1rem; break-inside: avoid; }
.story__body p:first-of-type::first-letter {
  font-family: var(--font-primary); font-weight: 800; float: left;
  font-size: 4.2rem; line-height: 0.8; padding: 0.05em 0.12em 0 0; color: var(--color-secondary-dark);
}
.story__rubric { font-family: var(--font-secondary); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-secondary-dark); margin-bottom: 1.5rem; }
.pull-highlight { border-bottom: 3px solid var(--color-secondary); font-weight: 600; }
.story__photo { margin-top: 2.5rem; }
.story__photo img { width: 100%; border-radius: 6px; }
.story__photo figcaption { font-size: 0.85rem; color: var(--color-text-secondary); margin-top: 0.6rem; }
@media (max-width: 768px) {
  .about-hero__inner { grid-template-columns: 1fr; }
  .story__body { column-count: 1; }
}

.atmos-band { position: relative; min-height: 320px; display: flex; align-items: center; overflow: hidden; }
.atmos-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: 0; }
.atmos-band__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,30,48,0.72) 0%, rgba(15,30,48,0.35) 60%, rgba(15,30,48,0.15) 100%); z-index: 1; }
.atmos-band__inner { position: relative; z-index: 2; color: var(--color-text-on-primary); }
.atmos-band__inner h2 { color: var(--color-text-on-primary); max-width: 20ch; }
.atmos-band__inner p { color: rgba(251,248,239,0.92); max-width: 46ch; margin-top: 1rem; }

.ethos-scope { font-family: var(--font-primary); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; color: var(--color-primary); letter-spacing: -0.01em; max-width: 20ch; }

/* ============================================================
   Services page — alternating entries
   ============================================================ */
.svc-intro__inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.svc-intro__copy { min-width: 0; }
.svc-intro__photo { position: relative; }
.svc-intro__photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 6px; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.svc-intro__photo::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; transform: skewX(-12deg); background: var(--color-accent); box-shadow: 0 0 20px rgba(245,197,24,0.4); z-index: 2; }
@media (max-width: 768px) { .svc-intro__inner { grid-template-columns: 1fr; } }

.svc-entry { border-bottom: 1px solid var(--color-border); padding-block: clamp(2rem, 4vw, 3rem); }
.svc-entry:last-of-type { border-bottom: 0; }
.svc-entry__inner { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; }
.svc-entry--photo .svc-entry__inner { grid-template-columns: 1.15fr 1fr; }
.svc-entry--photo:nth-of-type(even) .svc-entry__media { order: -1; }
.svc-entry__copy { min-width: 0; }
.svc-entry__head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.75rem; }
.svc-entry__mark { font-size: 1.9rem; color: var(--color-secondary); line-height: 1; flex-shrink: 0; }
.svc-entry__mark--gold { color: var(--color-accent); }
.svc-entry__mark--red { color: var(--color-accent-alt); }
.svc-entry__name { font-family: var(--font-primary); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: var(--color-primary); letter-spacing: -0.005em; min-width: 0; }
.svc-entry__desc { font-size: 1.0625rem; line-height: 1.6; color: var(--color-text-secondary); max-width: 60ch; }
.svc-tag { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-family: var(--font-secondary); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-secondary-dark); }
.svc-tag .ph { font-size: 1.05rem; }
.svc-entry__media { min-width: 0; }
.svc-entry__media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: 6px; }
@media (max-width: 768px) {
  .svc-entry--photo .svc-entry__inner { grid-template-columns: 1fr; }
  .svc-entry--photo:nth-of-type(even) .svc-entry__media { order: 0; }
}

.scope-note { font-family: var(--font-primary); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; color: var(--color-primary); letter-spacing: -0.01em; max-width: 24ch; }

/* ============================================================
   Work page — varied editorial gallery
   ============================================================ */
.work-intro .sunline-rule { margin-top: 1.5rem; }
.work-feature { max-width: 880px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.work-feature .ba-frame img { border-radius: 4px; }
.work-masonry { column-count: 3; column-gap: clamp(1rem, 2.2vw, 1.75rem); }
.work-item { break-inside: avoid; margin-bottom: clamp(1rem, 2.2vw, 1.75rem); }
.work-item img { width: 100%; height: auto; border-radius: 4px; display: block; }
.work-item__cap { color: rgba(251,248,239,0.82); font-size: 0.9rem; margin-top: 0.7rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.work-item__cap .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-alt); flex-shrink: 0; align-self: center; }
.work-item__label, .work-feature__label { font-family: var(--font-secondary); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }
.work-feature__cap { color: rgba(251,248,239,0.82); font-size: 0.95rem; margin-top: 0.9rem; text-align: center; max-width: 52ch; margin-inline: auto; }
@media (max-width: 900px) { .work-masonry { column-count: 2; } }
@media (max-width: 560px) { .work-masonry { column-count: 1; } }

/* ============================================================
   Estimate page
   ============================================================ */
.estimate-hero__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.estimate-hero__copy { min-width: 0; }
.estimate-hero__facts { list-style: none; display: grid; gap: 0.85rem; margin-top: 1.75rem; }
.estimate-hero__facts li { display: flex; align-items: center; gap: 0.7rem; font-size: 1.05rem; color: var(--color-primary); }
.estimate-hero__facts .ph { color: var(--color-secondary-dark); font-size: 1.3rem; }
.estimate-hero__facts a { color: var(--color-primary); font-weight: 600; }
.estimate-hero__form { position: relative; }
.estimate-hero__photo { margin-top: 2rem; position: relative; }
.estimate-hero__photo img { width: 100%; border-radius: 6px; clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); }
.estimate-hero__photo::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; transform: skewY(-1.2deg); background: var(--color-accent); box-shadow: 0 0 18px rgba(245,197,24,0.4); z-index: 2; }
@media (max-width: 860px) {
  .estimate-hero__inner { grid-template-columns: 1fr; }
  .estimate-hero__form { order: -1; } /* form first on mobile — conversion priority */
}

/* ============================================================
   Page header (secondary pages)
   ============================================================ */
.page-head { background: var(--color-bg); padding-top: clamp(3rem, 6vw, 5rem); }
.page-head--sky-photo { position: relative; }

/* 404 */
.err { min-height: 60vh; display: flex; align-items: center; text-align: center; background: var(--color-bg); }
.err__inner { margin-inline: auto; max-width: 640px; }
.err__code { font-family: var(--font-primary); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--color-primary); }
.err__code em { font-style: normal; position: relative; }
.err__code em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.12em; background: var(--color-accent); z-index: -1; }
.err__actions { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Utility */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2rem; }
.center { text-align: center; }
.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;
}

/* ============================================================
   Self-hosted Google Fonts (localized by 20_performance_sweep)
   ============================================================ */
/* vietnamese */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/3y9K6as8bTXq_nANBjzKo3IeZx8z6up5BeSl9D4dj_x9PpZBMlGHInHWVyNJtvI.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/3y9K6as8bTXq_nANBjzKo3IeZx8z6up5BeSl9D4dj_x9PpZBMlGGInHWVyNJtvI.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/3y9K6as8bTXq_nANBjzKo3IeZx8z6up5BeSl9D4dj_x9PpZBMlGIInHWVyNJ.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/_Xms-HUzqDCFdgfMm4q9DaRvziissg.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/_Xms-HUzqDCFdgfMm4S9DaRvzig.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
