/* ============================================================
   TILLOW BUILT — SHARED v2 CHROME (drafting sheet)
   First consumers: /faq, /service-areas. Inner pages adopt this
   sheet as they convert; the homepage keeps its inline build.
   Styles the SHARED PARTIALS' markup (nav, footer, float-cta)
   plus the core v2 primitives.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ground-char: #14171b; --ground-char-2: #1a1f28;
  --ground-dark: #091535; --ground-dark-2: #0d1e4a;
  --ground-paper: #f4f1ea; --ground-paper-raised: #fbfaf6;
  --navy: #152d6e; --navy-mid: #1e3d82; --navy-line: #2a51a8;
  --timber: #b8945d; --timber-hover: #c9a56c; --timber-ink: #7e6230; --timber-bright: #c9a971;
  --blue-hl: #6b9dff;
  --ink: #14171b; --ink-head: #0d1e4a; --ink-muted: #5a6a8a;
  --cream: #f3f0e9; --cream-lead: rgba(243,240,233,0.82); --cream-body: rgba(243,240,233,0.72);
  --cream-label: rgba(243,240,233,0.62); --cream-note: rgba(243,240,233,0.55);
  --line-timber: rgba(184,148,93,0.18); --line-dark: rgba(243,240,233,0.10);
  --line-dark-strong: rgba(243,240,233,0.22); --line-paper: #d8d2c4;
  --line-grid-dark: rgba(42,81,168,0.12);
  --font-display: 'Inter Tight', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --fs-display-l: clamp(2.0rem, 4.2vw, 3.3rem);
  --fs-display-s: clamp(1.15rem, 1.8vw, 1.45rem);
  --fs-eyebrow: 0.72rem; --fs-data-label: 0.7rem;
  --fs-lead: clamp(1.05rem, 1.5vw, 1.2rem); --fs-body-s: 0.875rem; --fs-button: 0.95rem;
  --section-pad-x: 6%;
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-pill: 999px;
  --shadow-plate: 0 28px 60px -18px rgba(0,0,0,0.55);
  --shadow-timber: 0 8px 24px -8px rgba(184,148,93,0.40);
  --ease: cubic-bezier(0.16,1,0.3,1); --dur-fast: 200ms;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--cream);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
  background-color: var(--ground-char);
  /* no background-attachment:fixed — iOS Safari janks on it */
  background-image: linear-gradient(135deg, #14171b 0%, #1a1f28 100%);
}
/* drafting sheet: paper grain + 8px/40px blueprint grid (matches the homepage) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>"),
    linear-gradient(var(--line-grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-grid-dark) 1px, transparent 1px),
    linear-gradient(rgba(42,81,168,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,81,168,0.05) 1px, transparent 1px);
  background-size: 200px 200px, 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  transform: translate3d(var(--paper-x, 0px), var(--paper-y, 0px), 0);
}
body > * { position: relative; z-index: 1; }
/* nav (and its open dropdown) must sit ABOVE every content section, or the
   Services menu renders behind the hero and becomes un-hoverable/un-clickable. */
body > nav { z-index: 1000; }
img { display: block; max-width: 100%; }

*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--timber-bright); outline-offset: 2px; border-radius: 4px; }
.plate-paper *:focus-visible { outline-color: var(--navy); }

/* ---- primitives ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--timber-bright);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--timber); }
.plate-paper .eyebrow { color: var(--timber-ink); }
.section-h2 { font-family: var(--font-display); font-size: var(--fs-display-l); line-height: 1.07; letter-spacing: -0.02em; font-weight: 600; color: var(--cream); }
.plate-paper .section-h2 { color: var(--ink-head); }
.btn-timber {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0.95rem 1.7rem; cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-button);
  background: var(--timber); color: var(--ink); border: 0; border-radius: var(--r-sm);
  box-shadow: var(--shadow-timber);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn-timber:hover { background: var(--timber-hover); transform: translateY(-1px); }
.plate-paper {
  position: relative; background: var(--ground-paper); color: var(--ink);
  border-top: 1px solid var(--line-timber); border-bottom: 1px solid var(--line-timber);
  box-shadow: var(--shadow-plate);
}
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-data-label);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 0.85rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-dark-strong); color: var(--cream-lead); text-decoration: none;
}

/* ---- NAV (partial markup) ---- */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.1rem;
  padding: 0.7rem var(--section-pad-x);
  background: rgba(20,23,27,0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
nav .nav-logo img { height: 40px; } /* matches the partial's inline style; single source if that is ever removed */
nav ul.nav-links { list-style: none; display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
nav ul.nav-links > li > a {
  text-decoration: none; color: var(--cream-body);
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  transition: color var(--dur-fast) ease;
}
nav ul.nav-links > li > a:hover { color: var(--blue-hl); }
nav .has-dropdown { position: relative; }
nav .dropdown {
  position: absolute; top: calc(100% + 10px); left: -0.6rem; min-width: 230px;
  list-style: none; padding: 0.45rem 0;
  background: #1a1f28; border: 1px solid var(--line-dark-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-plate);
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
/* invisible hover bridge over the 10px gap — without it, li:hover drops the
   instant the cursor leaves the trigger and the menu can never be reached */
nav .dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
nav .has-dropdown:hover .dropdown, nav .has-dropdown:focus-within .dropdown { opacity: 1; pointer-events: auto; transform: none; }
nav .dropdown li a { display: block; padding: 0.5rem 1rem; text-decoration: none; font-family: var(--font-body); font-size: 0.88rem; color: var(--cream-body); letter-spacing: 0; text-transform: none; }
nav .dropdown li a:hover { color: var(--blue-hl); background: rgba(255,255,255,0.04); }
nav .nav-cta {
  text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  color: var(--ground-char); background: #fff;
  padding: 0.55rem 1.05rem; border-radius: var(--r-pill);
  transition: background var(--dur-fast) ease;
}
nav .nav-cta:hover { background: var(--cream); }
nav .nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
nav .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 5px 0; border-radius: 2px; }

#mobileNav {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 4.2rem 9% 3rem;
  background: rgba(20,23,27,0.97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateX(102%);
  /* visibility keeps the 16 off-canvas links out of the tab order while closed */
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s 0.35s;
  overflow-y: auto;
}
#mobileNav.open { transform: none; visibility: visible; transition-delay: 0s; }
#mobileNav a { text-decoration: none; color: var(--cream); font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; }
#mobileNav .mn-eyebrow { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--timber-bright); margin-top: 0.5rem; }
#mobileNav .nav-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: var(--cream); font-size: 1.5rem; cursor: pointer; padding: 0.4rem; }
body.menu-open { overflow: hidden; }
@media (max-width: 900px) {
  nav ul.nav-links, nav .nav-cta { display: none; }
  nav .nav-toggle { display: block; margin-left: auto; }
}

/* ---- page head (sheet header) ---- */
.sheet-head { padding: clamp(3.5rem, 7vw, 5.5rem) var(--section-pad-x) clamp(2rem, 4vw, 3rem); max-width: 1280px; margin-inline: auto; }
.sheet-head h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; font-weight: 600; color: var(--cream); margin-top: 0.9rem; }
.sheet-head .lead { color: var(--cream-body); font-size: var(--fs-lead); max-width: 620px; margin-top: 1rem; }
.sheet-divider { position: relative; height: 90px; max-width: 1280px; margin-inline: auto; padding: 0 var(--section-pad-x); }
.sheet-divider::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(201,169,113,0.6); }

/* ---- FOOTER (partial markup) ---- */
footer { padding: clamp(3rem, 6vw, 4.5rem) var(--section-pad-x) 2rem; border-top: 1px solid var(--line-timber); color: var(--cream-body); }
footer .footer-inner { max-width: 1280px; margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
footer h4, footer h5 { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--timber-bright); margin-bottom: 0.8rem; }
footer .logo-text { display: flex; flex-direction: column; line-height: 1.05; margin-bottom: 0.9rem; }
footer .logo-top { font-family: var(--font-body); font-size: 0.78rem; font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(243,240,233,0.7); }
footer .logo-bottom { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); }
footer ul { list-style: none; }
footer li { margin-bottom: 0.45rem; font-size: 0.9rem; }
footer a { color: var(--cream-body); text-decoration: none; transition: color var(--dur-fast) ease; }
footer a:hover { color: var(--blue-hl); }
footer .footer-bottom { max-width: 1280px; margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-note); display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; }
@media (max-width: 900px) { footer .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ---- float call CTA ---- */
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--navy); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  padding: 0.85rem 1.3rem; border-radius: var(--r-pill);
  box-shadow: 0 12px 28px rgba(9,21,53,0.45);
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
