/* CRM for the Crew - styles. No external fonts or assets. */

/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
  /* Color: warm neutrals */
  --c-bg: #FAF7F2;          /* cream page */
  --c-bg-soft: #FDFBF7;     /* field / card fill */
  --c-card: #FFFDF9;        /* warm white cards */
  --c-band: #F3ECE1;        /* warm linen section band */
  --c-sand: #EBE1D2;        /* muted sand */
  --c-text: #2A2420;        /* warm dark ink */
  --c-text-2: #4A413A;
  --c-muted: #6B5F55;       /* 5.2:1+ on cream and linen */
  --c-faint: #D9CEBF;
  --c-line: rgba(74, 52, 34, .12);
  --c-line-strong: rgba(74, 52, 34, .2);
  --c-field-border: #8A7D71;

  /* Accent: rust (text-safe shade) + brighter terracotta for decoration only */
  --c-accent: #A84B1E;      /* 5.3:1 on cream, 5.7:1 with white text */
  --c-accent-hover: #8E3E17;
  --c-accent-press: #763312;
  --c-accent-deco: #C45C26; /* swashes, dots - never body text */
  --c-accent-soft: #F5E6DA;
  --c-accent-ring: rgba(168, 75, 30, .3);

  /* Primary: deep navy */
  --c-navy: #1C2A3A;
  --c-navy-2: #243044;
  --c-on-dark: #F3EDE3;
  --c-on-dark-2: #C9BFB2;
  --c-on-dark-accent: #E9A36B; /* warm brass-rust, 6.9:1 on navy */

  /* Small supporting note only */
  --c-green: #3F6B4A;

  --c-error: #B3261E;
  --c-error-bg: #FBF1EE;
  --c-error-line: #EBC4BC;
  --c-error-ring: rgba(179, 38, 30, .22);
  --c-success: #3F6B4A;
  --c-success-text: #2C4D35;
  --c-success-bg: #EEF3EC;
  --c-success-line: #C5D6C3;

  /* Type */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Source Serif 4", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-lead: clamp(1.125rem, 1.04rem + .4vw, 1.275rem);
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(1.95rem, 1.4rem + 2.2vw, 2.85rem);
  --fs-h1: clamp(2.4rem, 1.5rem + 4vw, 4.25rem);
  --fw-head: 700;
  --ls-head: -0.01em;

  /* Texture: faint warm paper grain (inline SVG noise) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .12 .11 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Hand-drawn underline swash */
  --swash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11.5C38 5 84 3.5 122 6.5c26 2 50 4.5 75-1.5' fill='none' stroke='%23C45C26' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M18 13.5c40-4 92-5 150-1' fill='none' stroke='%23C45C26' stroke-width='1.6' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");

  /* Spacing */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Shape & depth (warm, soft) */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --radius-hand: 15px 12px 16px 11px / 12px 16px 11px 15px; /* slightly imperfect */
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, .05), 0 2px 8px rgba(60, 40, 20, .04);
  --shadow-md: 0 2px 6px rgba(60, 40, 20, .05), 0 14px 30px -6px rgba(60, 40, 20, .12);
  --shadow-lg: 0 4px 14px rgba(60, 40, 20, .07), 0 30px 60px -18px rgba(40, 30, 20, .28);

  /* Layout */
  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 64px;
  --section-pad: clamp(4.5rem, 3rem + 5vw, 7.5rem);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .25s;
}

/* =========================================================================
   Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + var(--space-4)); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg) var(--grain);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a {
  color: var(--c-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--c-accent-hover); }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: var(--fw-head);
  letter-spacing: var(--ls-head);
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--c-navy);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: 0; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.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;
}

/* Focus */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}
.section-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-on-dark-accent); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--c-navy); color: #fff; font-weight: 600; text-decoration: none;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: var(--space-3); color: #fff; }

/* Hand-drawn swash under a key word */
.swash, .hero .hl { position: relative; white-space: nowrap; }
.swash::after, .hero .hl::after {
  content: ""; position: absolute; left: -1%; right: -2%; bottom: -.16em; height: .26em;
  background: var(--swash) no-repeat center / 100% 100%;
  pointer-events: none;
}

/* =========================================================================
   Header (solid cream bar, no frosted glass)
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -10px rgba(60, 40, 20, .22); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: var(--space-4);
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
  color: var(--c-navy); text-decoration: none;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.005em;
}
.brand img { border-radius: 7px; }
.brand:hover { color: var(--c-navy); }
.brand-accent { color: var(--c-accent); font-style: italic; font-weight: 400; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; min-width: 44px; padding: 0 var(--space-4);
  background: var(--c-card); color: var(--c-navy);
  border: 1px solid var(--c-line-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--c-band); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line-strong);
  box-shadow: 0 20px 36px -24px rgba(60, 40, 20, .3);
  padding: var(--space-2) var(--gutter) var(--space-5);
}
.site-nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 var(--space-1);
  color: var(--c-text); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--c-line);
}
.site-nav a:hover { color: var(--c-accent); }
.site-nav .nav-cta {
  justify-content: center; margin-top: var(--space-4); border: 0;
  background: var(--c-accent); color: #fff; border-radius: var(--radius-sm); font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--c-accent-hover); color: #fff; }

/* No-JS fallback: show nav inline */
.no-js .nav-toggle { display: none; }
.no-js .header-inner { flex-wrap: wrap; }
.no-js .site-nav { display: block; }
.no-js .site-nav ul { display: flex; flex-wrap: wrap; column-gap: var(--space-4); }
.no-js .site-nav a { border-bottom: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: block; position: static; padding: 0; border: 0; background: none; box-shadow: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: var(--space-1); }
  .site-nav a {
    min-height: 44px; padding: 0 var(--space-3); border: 0;
    font-size: var(--fs-sm); color: var(--c-text-2); border-radius: var(--radius-xs);
  }
  .site-nav a:hover { color: var(--c-accent); }
  .site-nav .nav-cta { margin: 0 0 0 var(--space-2); padding: 0 1.15rem; color: #fff; border-radius: var(--radius-sm); }
  .site-nav .nav-cta:hover { color: #fff; }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: .7rem 1.4rem;
  font-family: inherit; font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--c-accent); color: #fff;
  box-shadow: 0 1px 0 rgba(60, 25, 10, .25), 0 6px 14px -8px rgba(120, 50, 20, .55);
}
.btn-primary:hover {
  background: var(--c-accent-hover); color: #fff;
  box-shadow: 0 1px 0 rgba(60, 25, 10, .25), 0 10px 20px -10px rgba(120, 50, 20, .6);
}
.btn-primary:active { background: var(--c-accent-press); }
.btn-secondary {
  background: var(--c-card); color: var(--c-navy);
  border-color: var(--c-navy);
}
.btn-secondary:hover { background: var(--c-navy); color: var(--c-on-dark); border-color: var(--c-navy); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0; }
.btn-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .btn-row .btn { flex: 0 0 auto; } }

/* =========================================================================
   Shared section pieces
   ========================================================================= */
.section { padding: var(--section-pad) 0; }
.section-band {
  background: var(--c-band) var(--grain);
  border-block: 1px solid var(--c-line);
}
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { margin-bottom: var(--space-4); }
.section-intro { font-size: var(--fs-md); color: var(--c-muted); max-width: 52ch; margin-bottom: 0; }
.section-head.center .section-intro { margin-inline: auto; }
.eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-sm); font-weight: 650; letter-spacing: .01em;
  color: var(--c-accent);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(4rem, 3rem + 5vw, 7rem);
}
.hero > .container { position: relative; }
.hero-grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: var(--space-5); }
.hero .hl { color: var(--c-accent); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--c-text-2); max-width: 36rem; margin: 0; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-5); padding: .4rem .95rem .4rem .75rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .01em; color: var(--c-text-2);
  background: var(--c-card); border: 1px solid var(--c-line-strong); border-radius: var(--radius-pill);
}
.eyebrow-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent-deco); }

.trade-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.trade-tags li {
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-text-2);
  padding: .3rem .9rem; background: var(--c-card);
  border: 1px solid var(--c-line-strong); border-radius: var(--radius-pill);
}

/* Local badge (hero + footer) */
.local-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 var(--space-5); padding: .45rem .9rem .45rem .5rem;
  font-size: var(--fs-sm); line-height: 1.35; color: var(--c-text-2);
  background: var(--c-band);
  border: 1px dashed rgba(168, 75, 30, .45); border-radius: var(--radius-sm);
}
.local-badge strong { color: var(--c-navy); font-weight: 650; }
.local-pin {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: var(--radius-hand); background: var(--c-navy); color: var(--c-on-dark-accent);
}
.local-pin svg { width: 16px; height: 16px; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.12fr .88fr; }
}

/* Phone mockup (decorative) */
.hero-art { position: relative; width: min(380px, 100%); justify-self: center; padding-bottom: var(--space-4); }
.hero-art::before { /* soft sand "sun" behind the phone, not a glow */
  content: ""; position: absolute; left: 50%; top: 46%; translate: -50% -50%;
  width: 118%; aspect-ratio: 1; border-radius: 50%;
  background: var(--c-sand) var(--grain);
  opacity: .75;
}
.phone {
  position: relative; width: min(300px, 82%); margin-inline: auto;
  padding: 10px; border-radius: 44px;
  background: var(--c-navy);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .1),
    0 4px 12px rgba(40, 30, 20, .12),
    0 34px 60px -26px rgba(40, 30, 20, .45);
}
.phone p { margin: 0; }
.phone-screen {
  position: relative; overflow: hidden;
  border-radius: 35px; background: #F6F1E8;
  padding: 42px 14px 30px;
  font-size: 13px; line-height: 1.35; color: var(--c-text);
}
.phone-screen::after {
  content: ""; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  width: 34%; height: 4px; border-radius: 4px; background: rgba(42, 36, 32, .25);
}
.phone-camera {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: var(--c-navy);
}
.app-bar { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 4px; }
.app-date { font-size: 12px; font-weight: 600; color: var(--c-muted); }
.app-title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--c-navy); line-height: 1.15; }
.app-count {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-navy); color: #fff; font-size: 13px; font-weight: 600;
}
.booking-card {
  margin-top: 14px; padding: 14px; border-radius: 16px;
  background: var(--c-card); border: 1px solid var(--c-line);
  box-shadow: 0 6px 16px -8px rgba(60, 40, 20, .18);
}
.booking-label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--c-accent); }
.booking-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent-deco); }
.booking-title { margin-top: 6px !important; font-size: 16px; font-weight: 650; color: var(--c-text); }
.booking-meta { font-size: 12.5px; color: var(--c-muted); }
.booking-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mock-btn {
  display: grid; place-items: center; height: 34px; border-radius: 9px;
  background: transparent; color: var(--c-navy); border: 1.5px solid var(--c-navy);
  font-size: 13px; font-weight: 600;
}
.mock-btn-primary { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.list-label { margin: 18px 4px 8px !important; font-size: 12px; font-weight: 600; color: var(--c-muted); }
.customer-list { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 16px; }
.customer-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; position: relative; }
.customer-list li + li::before {
  content: ""; position: absolute; top: 0; left: 54px; right: 0; height: 1px; background: var(--c-line);
}
.avatar {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-size: 11.5px; font-weight: 650; background: var(--c-accent-soft); color: var(--c-accent-press);
}
.customer-list li:nth-child(2) .avatar { background: #E3E7EC; color: var(--c-navy); }
.customer-list li:nth-child(3) .avatar { background: var(--c-sand); color: var(--c-text-2); }
.lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.lines span { display: block; height: 8px; border-radius: 4px; background: #D9CEBF; width: 68%; }
.lines span + span { height: 6px; background: #EAE2D6; width: 48%; }
.customer-list li:nth-child(2) .lines span:first-child { width: 54%; }
.customer-list li:nth-child(3) .lines span + span { width: 60%; }
.chev { flex: none; width: 7px; height: 7px; border: solid #BFB3A5; border-width: 1.75px 1.75px 0 0; transform: rotate(45deg); margin-right: 4px; }

.float-chip {
  position: absolute; left: 0; bottom: 3%;
  display: flex; align-items: center; gap: 10px;
  max-width: 230px; padding: 10px 16px 10px 10px;
  background: var(--c-card);
  border: 1px solid var(--c-line-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 14px; line-height: 1.3; color: var(--c-muted);
}
.chip-icon {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: var(--radius-hand);
  background: var(--c-accent-soft); color: var(--c-accent);
}
.chip-icon svg { width: 18px; height: 18px; }
.chip-text strong { display: block; color: var(--c-navy); font-weight: 650; }
@media (min-width: 960px) {
  .float-chip { left: -10%; }
}

/* =========================================================================
   Services
   ========================================================================= */
.card-grid { display: grid; gap: var(--space-4); }
.card {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-line-strong); }
.icon-tile {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: var(--space-5);
  border-radius: var(--radius-hand); background: var(--c-accent-soft); color: var(--c-accent);
}
.card:nth-child(even) .icon-tile { background: var(--c-navy); color: var(--c-on-dark); }
.icon-tile svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { margin-bottom: var(--space-2); }
.card p { margin: 0; color: var(--c-muted); }

@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .card-grid > :last-child { grid-column: 1 / -1; }
  .card { padding: var(--space-6); }
}
/* 3 + 2 on desktop */
@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(6, 1fr); }
  .card-grid > * { grid-column: span 2; }
  .card-grid > *:nth-child(n+4) { grid-column: span 3; }
}

/* =========================================================================
   Live example (navy band)
   ========================================================================= */
.section-dark {
  color: var(--c-on-dark);
  background: var(--c-navy) var(--grain);
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--c-on-dark-accent); }
.example-copy > p:not(.eyebrow) { color: var(--c-on-dark-2); font-size: var(--fs-md); max-width: 46ch; }
.example-grid { display: grid; gap: clamp(3rem, 2rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .example-grid { grid-template-columns: 1fr 1.08fr; } }

.flow-steps { counter-reset: s; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0 var(--space-6); }
.flow-steps li {
  counter-increment: s;
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: .3rem .9rem .3rem .35rem;
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-on-dark);
  background: rgba(243, 237, 227, .06); border: 1px solid rgba(243, 237, 227, .16); border-radius: var(--radius-pill);
}
.flow-steps li::before {
  content: counter(s);
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-accent); color: #fff; font-size: var(--fs-xs); font-weight: 650;
}

/* Browser mockup (decorative) */
.browser {
  overflow: hidden; border-radius: var(--radius-lg); background: var(--c-card); color: var(--c-text);
  box-shadow: 0 0 0 1px rgba(243, 237, 227, .1), 0 28px 60px -24px rgba(0, 0, 0, .55);
}
.browser p { margin: 0; }
.browser-bar {
  display: flex; align-items: center; gap: var(--space-3);
  height: 44px; padding: 0 14px; background: var(--c-band); border-bottom: 1px solid var(--c-line);
}
.browser-dots { display: flex; gap: 6px; flex: none; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-faint); }
.browser-url {
  flex: 1; min-width: 0; max-width: 300px; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 7px; background: var(--c-card); border: 1px solid var(--c-line);
  font-size: 12.5px; color: var(--c-muted);
}
.browser-url svg { flex: none; width: 11px; height: 11px; }
.browser-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-live {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; color: var(--c-green);
}
.browser-live i { width: 7px; height: 7px; border-radius: 50%; background: #5E8F68; }
.browser-body { padding: 18px; }
.mock-nav { display: flex; align-items: center; justify-content: space-between; }
.mock-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--c-navy); }
.mock-links { display: flex; gap: 10px; }
.mock-links i { width: 34px; height: 6px; border-radius: 3px; background: #E4DACC; }
.mock-hero {
  margin-top: 16px; padding: 22px 20px; border-radius: 12px;
  background: var(--c-band);
}
.mock-title { font-family: var(--font-serif); font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); font-weight: 700; color: var(--c-navy); line-height: 1.2; }
.mock-line { display: block; height: 7px; width: 72%; margin-top: 12px; border-radius: 4px; background: rgba(74, 52, 34, .14); }
.mock-line-short { width: 48%; margin-top: 8px; }
.mock-cta { display: block; width: 96px; height: 30px; margin-top: 16px; border-radius: 8px; background: var(--c-accent); }
.mock-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mock-gallery i { aspect-ratio: 4 / 3; border-radius: 9px; background: #E6D9C7; }
.mock-gallery i:nth-child(2) { background: #D8DEE4; }
.mock-gallery i:nth-child(3) { background: #EBDDD0; }
.mock-progress { display: flex; gap: 6px; margin-top: 16px; }
.mock-progress i { flex: 1; height: 6px; border-radius: 3px; background: #E4DACC; }
.mock-progress i.is-on { background: var(--c-accent); }

.example-meta { margin: var(--space-5) 0 0; }
.example-meta div {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-3);
  padding: .6rem 0; border-bottom: 1px solid rgba(243, 237, 227, .12);
  font-size: var(--fs-sm);
}
.example-meta dt { color: var(--c-on-dark-2); }
.example-meta dd { margin: 0; color: var(--c-on-dark); }

/* =========================================================================
   How it works (numbered circles + rust connector)
   ========================================================================= */
.steps { display: grid; gap: var(--space-7); }
.step { position: relative; }
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--c-muted); margin: 0; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-5);
  font-family: var(--font-serif); font-size: 1.625rem; font-weight: 700; line-height: 1;
  color: var(--c-navy); background: var(--c-card);
  border: 1.5px solid var(--c-navy); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--c-accent-soft);
}
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-6); } }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .step { padding-right: var(--space-6); }
  .step:last-child { padding-right: 0; }
  .step:not(:last-child)::before {
    content: ""; position: absolute; top: 28px; left: 70px; right: 14px;
    border-top: 2px dashed rgba(196, 92, 38, .55);
  }
}

/* =========================================================================
   Pricing
   ========================================================================= */
.price-grid { display: grid; gap: var(--space-5); align-items: stretch; max-width: 460px; margin-inline: auto; }
@media (min-width: 900px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); max-width: none; padding-top: var(--space-3); }
}
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-card); border: 1px solid var(--c-line-strong); border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card h3 { margin-bottom: var(--space-3); }
.price-card-featured {
  border: 2px solid var(--c-navy);
  box-shadow: 6px 6px 0 var(--c-accent-soft), var(--shadow-md);
}
.price-card-featured:hover { box-shadow: 6px 6px 0 var(--c-accent-soft), var(--shadow-md); }
@media (min-width: 900px) { .price-card-featured { transform: translateY(calc(-1 * var(--space-3))); } }
.badge {
  position: absolute; top: 0; left: var(--space-6); transform: translateY(-50%);
  margin: 0; padding: .3rem .85rem;
  background: var(--c-accent); color: #fff; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 650; letter-spacing: .02em; line-height: 1.2;
}
.price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem;
  margin: 0; padding-bottom: var(--space-5); border-bottom: 1px solid var(--c-line);
  color: var(--c-muted); font-size: var(--fs-sm);
}
.price-part { white-space: nowrap; }
.amt { font-family: var(--font-serif); font-size: clamp(2.25rem, 2rem + 1vw, 2.75rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; color: var(--c-navy); }
.amt-mo { font-size: 1.5rem; }
.unit { color: var(--c-muted); font-weight: 500; }
.plus { color: var(--c-muted); }
.checklist { margin: var(--space-5) 0 var(--space-6); }
.checklist li { position: relative; padding: .35rem 0 .35rem 2rem; color: var(--c-text-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .6rem;
  width: 20px; height: 20px; border-radius: 50%; background: var(--c-band); border: 1px solid var(--c-line);
}
.checklist li::after {
  content: ""; position: absolute; left: 7.5px; top: calc(.6rem + 4.5px);
  width: 5px; height: 9px; border: solid var(--c-green); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.price-card .btn { margin-top: auto; }

/* =========================================================================
   Contact form
   ========================================================================= */
.contact-grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: var(--space-8); }
  .contact-copy { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}
.contact-copy .section-intro { margin-bottom: var(--space-5); }
.contact-alt { color: var(--c-text-2); font-weight: 500; }

.form-card {
  background: var(--c-card); border: 1px solid var(--c-line-strong); border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-note { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: var(--space-5); }
.field { margin: 0 0 var(--space-5); border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 var(--space-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field > label, legend {
  display: block; padding: 0; margin-bottom: var(--space-2);
  font-size: var(--fs-sm); font-weight: 650; color: var(--c-text);
}
.req { color: var(--c-accent); }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 50px; padding: .7rem .95rem;
  font: inherit; font-size: 1rem; color: var(--c-text);
  background-color: var(--c-bg);
  border: 1px solid var(--c-field-border); border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--c-muted); opacity: 1; }
input[type="text"]:hover, input[type="tel"]:hover, input[type="email"]:hover, select:hover, textarea:hover { border-color: var(--c-text-2); }
select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236B5F55' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center; background-size: 16px;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  outline: 2px solid transparent; /* keeps a visible indicator in forced-colors mode */
  background-color: #fff;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-ring);
}
[aria-invalid="true"] { border-color: var(--c-error) !important; background-color: var(--c-error-bg) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--c-error-ring) !important; }
.error { color: var(--c-error); font-weight: 500; font-size: var(--fs-sm); margin: var(--space-2) 0 0; }
.error:empty { display: none; }

.radio-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.radio {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: 0 1.1rem 0 .9rem; margin: 0;
  font-size: 1rem; font-weight: 500; color: var(--c-text-2);
  background: var(--c-bg); border: 1px solid var(--c-field-border); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.radio:hover { border-color: var(--c-text-2); }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-accent); cursor: pointer; }
.radio:has(input:checked) {
  background: var(--c-accent-soft); border-color: var(--c-accent); color: var(--c-accent-press);
  box-shadow: inset 0 0 0 1px var(--c-accent);
}
.radio:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--c-accent-ring), inset 0 0 0 1px var(--c-accent); }

.form-card .btn[type="submit"] { margin-top: var(--space-2); }

.form-status:empty { display: none; }
.form-status {
  margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  border: 1px solid var(--c-success-line); background: var(--c-success-bg); color: var(--c-success-text);
}
.form-status:focus-visible { outline-offset: 2px; }
.form-status.is-error { border-color: var(--c-error-line); background: var(--c-error-bg); color: #8C1D18; }
.form-status h3 { font-family: var(--font-sans); font-size: 1.0625rem; margin-bottom: var(--space-1); color: inherit; }
.form-status p:last-child { margin: 0; }
.form-status a { color: inherit; font-weight: 650; text-decoration-thickness: 1.5px; }

/* =========================================================================
   Footer (deep navy)
   ========================================================================= */
.site-footer {
  background: var(--c-navy) var(--grain); color: var(--c-on-dark-2);
  padding-top: var(--space-8); font-size: var(--fs-sm);
}
.site-footer p { margin-bottom: var(--space-2); }
.site-footer strong { color: var(--c-on-dark); font-weight: 600; }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.brand-footer { margin-bottom: var(--space-2); font-size: 1.125rem; color: var(--c-on-dark); }
.brand-footer:hover { color: #fff; }
.brand-footer img { box-shadow: 0 0 0 1px rgba(243, 237, 227, .25); }
.site-footer .brand-accent { color: var(--c-on-dark-accent); }
.site-footer .local-badge {
  margin: var(--space-4) 0 0; color: var(--c-on-dark-2);
  background: rgba(243, 237, 227, .05); border-color: rgba(233, 163, 107, .45);
}
.site-footer .local-badge strong { color: var(--c-on-dark); }
.site-footer .local-pin { background: var(--c-accent); color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; column-gap: var(--space-5); }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--c-on-dark); text-decoration: none;
}
.footer-nav a:hover { color: var(--c-on-dark-accent); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(243, 237, 227, .12);
  margin-top: var(--space-6); padding: var(--space-5) 0 var(--space-6);
  font-size: var(--fs-xs);
}
.footer-bottom p { margin: 0; }

/* =========================================================================
   Motion
   ========================================================================= */
/* Hidden state only exists once script.js adds .js-reveal (never without JS,
   never under reduced motion). Uses the `translate` property so it doesn't
   fight with hover transforms on cards. */
@keyframes reveal-up {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
.js-reveal [data-reveal]:not(.is-visible) { opacity: 0; }
.js-reveal [data-reveal].is-visible { animation: reveal-up .75s var(--ease) var(--reveal-delay, 0ms) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .js-reveal [data-reveal] { opacity: 1 !important; translate: none !important; }
  .btn:hover, .btn:active, .card:hover { transform: none; }
}
