/* =========================================================
   FONTS — Airbnb Cereal VF, self-hosted (all 6 weights)
   ========================================================= */
@font-face {
  font-family: "Airbnb Cereal VF";
  src: url("fonts/AirbnbCereal_W_Lt.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal VF";
  src: url("fonts/AirbnbCereal_W_Bk.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal VF";
  src: url("fonts/AirbnbCereal_W_Md.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal VF";
  src: url("fonts/AirbnbCereal_W_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal VF";
  src: url("fonts/AirbnbCereal_W_XBd.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal VF";
  src: url("fonts/AirbnbCereal_W_Blk.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   THEME TOKENS — Airbnb-style palette. Edit here to restyle.
   ========================================================= */
:root {
  --color-page-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-text: #222222;
  --color-text-soft: #6C6C6C;
  --color-border: #DDDDDD;
  --color-border-light: #EBEBEB;

  /* Brand blue — matches the ZAZEN logo */
  --color-accent: #0401F0;
  --color-accent-2: #0401F0;
  --color-accent-3: #0401F0;

  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 2px 6px rgba(0,0,0,0.04), 0 10px 24px rgba(0,0,0,0.06);
  --shadow-elevated: 0 6px 16px rgba(0,0,0,0.12);
  --max-width: 700px;
  --font-main: "Airbnb Cereal VF", Circular, -apple-system, "system-ui", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-page-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

main#top {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: 0 0 32px 32px;
  /* Negative spread keeps the shadow below the element instead of haloing it.
     At 0 16px 40px with no spread, the 40px blur reached ~24px ABOVE the top
     edge — on a white page that read as a grey gradient band in the gap under
     the hero banner. -20px spread pulls the shadow rect in far enough that
     nothing renders above the top edge, while the bottom shadow still
     separates main from the grey footer. */
  box-shadow: 0 16px 40px -20px rgba(0,0,0,0.08);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; color: var(--color-text); }
p { margin: 0; }
button { font-family: inherit; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  /* Zillow-style rounded rectangle rather than a pill. Measured off their
     bottom action bar: ~24 device px of curve on a 157px-tall button at 3x,
     i.e. 8px on a ~52px button. */
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: #E4E4E4;
  color: #0401F0;
}
.btn-primary:hover { filter: brightness(0.94); }

.btn-secondary {
  background: #F0F0F0;
  color: var(--color-text);
}
.btn-secondary:hover { background: #EBEBEB; }

.btn-outline {
  background: var(--color-surface);
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-outline:hover { background: #F7F7F7; }

/* Solid brand blue with white text. Distinct from .btn-primary, which despite
   the name is grey (#E4E4E4) with blue text. Used on the mobile bar's call
   button — the one place a filled-blue primary is wanted. */
.btn-accent {
  background: var(--color-accent);
  color: #FFFFFF;
}
.btn-accent:hover { filter: brightness(1.15); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: 12px 16px;
  border-radius: 8px;
}
.btn-ghost:hover { background: #F0F0F0; }

.btn-full { width: 100%; display: flex; margin: 20px 0; }

/* =========================================================
   MOBILE SPLASH INTRO — full-screen, mobile only, auto-dismisses
   ========================================================= */
.splash-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  opacity: 1;
  transition: opacity .5s ease;
}
.splash-screen.visible { display: block; }
.splash-screen.fade-out { opacity: 0; }
.splash-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.splash-gradient {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0) 100%);
}
.splash-content {
  position: absolute;
  left: 28px; right: 28px;
  bottom: calc(56px + env(safe-area-inset-bottom));
  color: #fff;
}
.splash-countdown {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.splash-countdown-num {
  font-size: 96px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.splash-tap { font-size: 14px; opacity: 0.85; }

@media (min-width: 1024px) {
  .splash-screen { display: none !important; }
}

/* =========================================================
   ADD TO HOME SCREEN BANNER — floating pill, matches bottom bar style
   ========================================================= */
.a2hs-banner {
  display: none;
  position: fixed;
  left: 16px; right: 16px;
  top: calc(16px + env(safe-area-inset-top));
  z-index: 150;
  background: rgba(255,255,255,0.98);
  border-radius: 24px;
  padding: 12px 12px 12px 14px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  transform: translateY(-140%);
  transition: transform .35s ease;
}
.a2hs-banner.visible { display: flex; }
.a2hs-banner.shown { transform: translateY(0); }
.a2hs-icon { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.a2hs-text { flex: 1; min-width: 0; }
.a2hs-title { font-size: 14px; font-weight: 700; color: var(--color-text); }
.a2hs-sub { font-size: 12px; color: var(--color-text-soft); display: none; margin-top: 2px; }
.a2hs-sub.visible-sub { display: block; }
.a2hs-action {
  flex-shrink: 0;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.a2hs-close {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.a2hs-close svg { width: 14px; height: 14px; color: var(--color-text); }

@media (min-width: 1024px) {
  .a2hs-banner { display: none !important; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border-light);
}

/* =========================================================
   DESKTOP-ONLY HERO BANNER — hidden below 1024px
   ========================================================= */
.desktop-hero-banner { display: none; }
@media (min-width: 1024px) {
  .desktop-hero-banner {
    display: block;
    max-width: var(--max-width);
    margin: 0 auto;
    /* Bottom padding: 40px originally, then 20px, now 10px. This is the only
       gap between the banner and main — .page-wrap has no top padding, so this
       one number owns it. Note .left-col adds its own 32px padding-top, which
       is why the photo still starts lower than the nav pills. */
    padding: 24px 20px 10px;
    /* Own stacking context, below main#top (z-index: 1). Without this the
       banner's children resolve against the root, so .desktop-hero-content's
       z-index: 4 outranked everything inside main — including modals. */
    position: relative;
    z-index: 0;
  }
  .desktop-hero-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 2.8 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .desktop-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .desktop-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform: translateY(-100%);
    animation: desktop-hero-slidedown 16s ease-in-out infinite;
  }
  .desktop-hero-slide-1 { animation-delay: 0s; object-position: center 15%; }
  .desktop-hero-slide-2 { animation-delay: 4s; }
  .desktop-hero-slide-3 { animation-delay: 8s; }
  .desktop-hero-slide-4 { animation-delay: 12s; }
  @keyframes desktop-hero-slidedown {
    0%     { transform: translateY(-100%); }
    6.25%  { transform: translateY(0%); }
    25%    { transform: translateY(0%); }
    31.25% { transform: translateY(100%); }
    100%   { transform: translateY(100%); }
  }
  .desktop-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.5) 0%,
      rgba(0,0,0,0.35) 100%
    );
  }
  .desktop-hero-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
  }
  .desktop-hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
  }
  /* Own class rather than .btn, so it needs the 8px radius applied here too. */
  .desktop-hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }
  .desktop-hero-btn-filled { background: #fff; color: #111; }
  .desktop-hero-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.7); }
  .desktop-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    text-align: center;
    padding: 0 40px;
  }
  .desktop-hero-heading {
    color: #fff;
    /* Scales with the banner but never smaller than 44px or larger than 76px */
    font-size: clamp(44px, 5.5vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
  }
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 32px; width: auto; display: block; }
.brand-logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-accent);
}
.header-actions { display: flex; gap: 8px; align-items: center; }

/* =========================================================
   PAGE WRAP — single centered column, matches reference
   ========================================================= */
.page-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px 24px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: 0; position: relative; }
.hero-media { position: relative; border-radius: 0; overflow: visible; margin: 0 -20px; }
.hero-image {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.hero-avatar-wrap {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  cursor: pointer;
  transition: transform .15s ease;
}
.hero-avatar-wrap:hover { transform: translateX(-50%) scale(1.04); }
.hero-avatar-wrap:active { transform: translateX(-50%) scale(0.97); }
.hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-surface);
  box-shadow: var(--shadow-elevated);
}
.hero-avatar-mono {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  border: 4px solid var(--color-surface);
  box-shadow: var(--shadow-elevated);
}

.intro-block {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: 40px 40px 0 0;
  margin: -40px -20px 0;
  padding: 68px 20px 8px;
  text-align: center;
}
/* .hero-title-alt is the landing pages' demoted <h1> — same slot, same look,
   just a <p> so those pages keep a single <h1>. Sharing these selectors means
   it cannot drift from the real heading, including at the breakpoints. */
.intro-block h1,
.intro-block .hero-title-alt { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; line-height: 30px; }
.intro-tagline { font-size: 14px; font-weight: 500; color: var(--color-text-soft); margin-bottom: 12px; }
.intro-bio { font-size: 16px; line-height: 1.5; color: var(--color-text-soft); margin: 0 auto 16px; max-width: 520px; }

.meta-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--color-text);
  flex-wrap: wrap;
}
.meta-line strong { font-weight: 600; }
.meta-sub { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--color-text-soft); margin-top: 4px; }

.icon-star { width: 13px; height: 13px; fill: var(--color-text); flex-shrink: 0; }
.icon-star-lg { width: 18px; height: 18px; margin-right: 6px; }

/* =========================================================
   SECTIONS + DIVIDERS
   ========================================================= */
.section { padding: 32px 0; }
/* Expertise -> FAQ is the one section boundary with no divider, so nothing
   occupies the gap: 20px button margin + 32px + 32px was ~84px of dead
   space. Trimmed to ~48px here only; every other boundary keeps its 32px
   because a divider sits in the middle of it. */
#about { padding-bottom: 12px; }
#faq { padding-top: 16px; }

/* Scroll entrance animation — sections fade + zoom in once as they enter view */
.reveal {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.3s ease-out, transform 1.3s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.services-filter-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f2f2f2;
  border-radius: 30px;
  padding: 5px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.services-filter-bar::-webkit-scrollbar { display: none; }
.services-filter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 24px;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
/* Contact is an action, not a section link — tinted to read as distinct from
   the four scrollspy pills, which swap the white "active" chip between them. */
.services-filter-pill-action { color: var(--color-accent); }
.services-filter-pill-action .services-filter-dot { background: var(--color-accent); }
.services-filter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text);
  flex-shrink: 0;
}
.services-filter-pill.active {
  background: var(--color-surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.section-note { margin-top: 4px; font-size: 14px; color: var(--color-text-soft); text-align: center; }
.section-note.center { margin-top: 16px; }
.underline-link { text-decoration: underline dotted; text-underline-offset: 4px; color: var(--color-text); font-weight: 600; font-size: 14px; }
.divider { border: none; border-top: 1px solid var(--color-border-light); margin: 0 20px; max-width: calc(var(--max-width) - 40px); margin-left: auto; margin-right: auto; }
.divider-first { margin-top: 24px; }

/* =========================================================
   CARD LIST (services) — floating white cards, soft shadow
   ========================================================= */
.card-list { display: flex; flex-direction: column; gap: 24px; }
.service-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-surface);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .1s ease;
}
.service-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.service-card:active { transform: scale(0.99); }
.service-card-media {
  position: relative;
  flex: 0 0 100px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
}
.service-card-media img, .service-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card-body { flex: 1; min-width: 0; }
.service-card h3 { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.clamp {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 6px;
}
.read-more-inline { font-weight: 600; text-decoration: underline dotted; text-underline-offset: 4px; color: var(--color-text); white-space: nowrap; }
.bio-read-more { background: none; border: none; padding: 0; font-family: inherit; font-size: inherit; line-height: inherit; font-weight: 700; cursor: pointer; }
.service-price-row { font-size: 13px; color: var(--color-text-soft); display: flex; align-items: baseline; gap: 4px; }
.price-tag { color: var(--color-accent); font-weight: 800; font-size: 22px; }
.service-card .price-tag { color: var(--color-text); font-weight: 700; font-size: 13px; }
.service-price-row .dot { margin: 0 2px; }

/* =========================================================
   SERVICE DETAIL MODAL
   ========================================================= */
.service-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}
.service-modal-overlay.open { display: flex; }
.service-modal {
  position: relative;
  background: var(--color-surface);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  animation: service-modal-up .2s ease;
}
@keyframes service-modal-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.service-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.service-modal-close svg { width: 16px; height: 16px; color: var(--color-text); }
/* Source photo is 1200x799 (1.5:1). Cropped to 2:1 so the modal leads with a
   shorter banner — object-position: center takes equal slices off the top and
   bottom, which keeps the business card clear of both edges. Anything tighter
   than ~2.1:1 starts clipping the card's bottom-left corner. */
.service-modal-photo {
  display: block;
  width: 100%;
  /* height:auto is required, not optional. The HTML height="799" attribute maps
     to a CSS presentational hint, and with no height in this rule that hint won
     — so the image rendered at its full intrinsic height and the 2:1 crop never
     applied. Setting height:auto lets aspect-ratio compute the height instead. */
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  margin-bottom: 16px;
}
/* ---- Website Templates section ---- */
.templates-intro { margin: 0 0 24px; }
@media (min-width: 1024px) {
  .templates-intro { margin-bottom: 28px; }
}
.templates-intro p { font-size: 14px; line-height: 1.5; color: var(--color-text-soft); margin: 0 0 14px; }
.templates-intro p:last-child { margin-bottom: 0; }
/* ---- Collapsible copy, expands in place (no modal, no fade) ---- */
.collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.collapse.is-open { max-height: none; }
.collapse-inner > p:first-child { margin-top: 6px; }
.collapse-inner > p:last-child { margin-bottom: 0; }
/* Extra breathing room after the last line, but only once expanded — the
   collapsed state's gap to the grid is already tuned via .templates-intro. */
.collapse.is-open .collapse-inner > p:last-child { margin-bottom: 16px; }

/* Same visual language as the bio's "Read more": plain underlined text,
   inline with the sentence, no button chrome, no arrow. */
.read-more-inline.collapse-toggle {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.read-more-inline.collapse-toggle:focus { outline: none; }
.read-more-inline.collapse-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.no-js .collapse { max-height: none !important; }
.no-js .collapse-toggle { display: none; }

@media (prefers-reduced-motion: reduce) {
  .collapse { transition: none; }
}

/* .section h2 is already display:flex; this pushes the price to the right
   of "Starter Site" on the same line, matching the Services price layout. */
.templates-h2 { flex-wrap: wrap; gap: 4px 10px; }
.templates-price {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-soft);
  white-space: nowrap;
}
.templates-price .price-tag { font-size: 18px; font-weight: 700; color: var(--color-text); }
.templates-price-unit { font-weight: 400; color: var(--color-text-soft); }



.templates-cta { margin-top: 36px; }


/* ---- Ready-made template demos (Website Templates section) ---- */
/* Temporary marker for project cards still awaiting a real photo. Deliberately
   loud — this should be impossible to miss and impossible to ship by accident. */
.project-card img.is-placeholder {
  object-fit: contain;
  background: #F1F1F4;
  padding: 6%;
}

.demo-grid-lead {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-soft);
  margin: 0 0 6px;
}
.demo-grid {
  display: grid;
  /* Four across: the five tiles fill one row plus a single trailing tile,
     and full-height screenshots stay a manageable height. */
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Four is too narrow on a tablet; two matches the Latest Projects grid on phone */
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.demo-card {
  /* Mirrors .project-card exactly: white surface, same radius, same shadow. */
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
/* Mirrors .project-card-media — same crop ratio, own radius and clip */
.demo-card-shot {
  display: block;
  position: relative;
  aspect-ratio: 5 / 4;
  background: #efece6;
  border-radius: var(--radius-md);
  overflow: hidden;
}
/* Faint top-down shade so the white Demo badge always has enough contrast,
   even against a light sky or pale background in the photo. Sits above the
   image but below the badge. */
.demo-card-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 35%);
}
/* Mirrors .project-badge exactly */
.demo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.demo-card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .25s ease;
}
.demo-card:hover .demo-card-shot img { transform: scale(1.04); }
.demo-card:focus-visible .demo-card-shot {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
/* Mirrors .project-card-body / .project-title / .project-meta */
.demo-card-body { display: block; padding: 16px 16px 16px; }
.demo-card-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 1px;
  line-height: 1.3;
}
.demo-card-kind {
  display: block;
  font-size: 13px;
  color: var(--color-text-soft);
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .demo-card-shot img { transition: none; }
  .demo-card:hover .demo-card-shot img { transform: none; }
}
.service-modal-title { font-size: 20px; font-weight: 700; margin: 8px 40px 8px 0; }
.service-modal-price { font-size: 15px; color: var(--color-text-soft); margin-bottom: 18px; }
.service-modal-price strong { color: var(--color-text); font-weight: 700; }
.service-modal-desc { font-size: 15px; line-height: 1.6; color: var(--color-text); margin-bottom: 8px; }
#reviewModalFull { font-size: 14px; }
.service-modal-includes { margin: 12px 0 4px; }
.service-modal-includes-group { margin-bottom: 16px; }
.service-modal-includes-group:last-child { margin-bottom: 0; }
.service-modal-includes-group h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-accent);
  margin: 0 0 8px;
}
.service-modal-includes-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.service-modal-includes-group li {
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text);
  padding-left: 22px;
  position: relative;
}
.service-modal-includes-group li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.service-modal-fee { font-size: 13px; color: var(--color-text-soft); margin-bottom: 20px; }

/* =========================================================
   CONTACT FORM MODAL
   ========================================================= */
/* Full-bleed brand-blue takeover. Unlike the service/bio modals this one fills
   the viewport edge to edge — no padding on the overlay, no radius, no visible
   page behind it. 100svh not 100vh so mobile browser chrome doesn't crop it. */
.contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-accent);
  z-index: 10000;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
.contact-modal-overlay.open { display: flex; }
.contact-modal {
  position: relative;
  background: var(--color-accent);
  color: #FFFFFF;
  width: 100%;
  max-width: 620px;
  height: 100svh;
  max-height: none;
  overflow-y: auto;
  border-radius: 0;
  padding: 64px 24px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: contact-modal-in .2s ease;
}
@keyframes contact-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* margin: 0 auto centres the capped-width block; the old 40px right margin
   was clearing the close button, which the modal's 64px top padding now
   handles instead. */
.contact-modal-title { font-size: 26px; font-weight: 700; margin: 0 auto 10px; color: #FFFFFF; line-height: 1.2; text-align: center; }
.contact-modal-sub { font-size: 15px; color: rgba(255,255,255,0.85); margin: 0 auto 22px; line-height: 1.55; text-align: center; }
.contact-modal-phone {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  white-space: nowrap;
}
/* Close button sits on blue, so it needs light-on-dark rather than the shared
   grey-circle treatment used by the service modals. */
#contactModalClose {
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
  top: 18px;
  right: 18px;
}
#contactModalClose:hover { background: rgba(255,255,255,0.28); }
#contactModalClose svg { color: #FFFFFF; }
/* White fields on blue: no border needed, the contrast does the work. */
.contact-modal .contact-form input[type="text"],
.contact-modal .contact-form input[type="email"],
.contact-modal .contact-form input[type="tel"],
.contact-modal .contact-form select,
.contact-modal .contact-form textarea {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--color-text);
}
.contact-modal .contact-form input::placeholder,
.contact-modal .contact-form textarea::placeholder { color: #6C6C6C; }
.contact-modal .contact-form input:focus-visible,
.contact-modal .contact-form select:focus-visible,
.contact-modal .contact-form textarea:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}
.contact-modal .contact-form-checkbox { color: rgba(255,255,255,0.85); }
.contact-modal .contact-form-checkbox input { accent-color: #FFFFFF; }
.contact-modal .contact-form-status.is-success { color: #FFFFFF; font-weight: 600; }
.contact-modal .contact-form-status.is-error { color: #FFD9D5; font-weight: 600; }
/* White button on blue — inverse of .btn-accent. */
.contact-modal .contact-form button[type="submit"] {
  background: #FFFFFF;
  color: var(--color-accent);
  font-weight: 700;
}
.contact-modal .contact-form button[type="submit"]:hover { filter: brightness(0.94); }
.contact-modal-phone:hover { text-decoration: underline dotted; text-underline-offset: 4px; }

/* Desktop only: the modal is 620px wide, and a 26px heading running the full
   width reads as a stretched banner rather than a question. Capping the intro
   text at ~3/4 of the modal (not the form) keeps the fields usable at full
   width while the copy sits in a comfortable measure. Mobile is already narrow, so it's excluded. */
@media (min-width: 760px) {
  .contact-modal-title,
  .contact-modal-sub { max-width: 430px; }
}
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form-row { display: flex; gap: 12px; }
.contact-form-row > * { flex: 1; min-width: 0; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}
/* The resting border is already brand blue, so focus can't signal itself by
   turning blue — it gets an offset ring instead. Using outline rather than a
   thicker border means the field doesn't shift as you tab between them.
   These inputs previously had no focus state at all. */
.contact-form input[type="text"]:focus-visible,
.contact-form input[type="email"]:focus-visible,
.contact-form input[type="tel"]:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.contact-form select { appearance: none; background-image: none; color: var(--color-text-soft); }
.contact-form select:valid { color: var(--color-text); }
.contact-form textarea { resize: vertical; }
/* Web3Forms honeypot — must exist in the DOM but never be reachable by a human,
   including via keyboard or a screen reader. */
.contact-form-botcheck {
  display: none !important;
}

/* Inline submit feedback. The form posts over AJAX, so without this the visitor
   gets no confirmation at all and is likely to submit again. */
.contact-form-status {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.contact-form-status:empty { display: none; }
.contact-form-status.is-success { color: #1B7F4D; }
.contact-form-status.is-error { color: #C0362C; }

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.4;
  margin: 4px 0 6px;
}
.contact-form-checkbox input { margin-top: 3px; flex-shrink: 0; }
@media (max-width: 480px) {
  .contact-form-row { flex-direction: column; }
}

@media (min-width: 640px) {
  .service-modal-overlay { align-items: center; padding: 20px; }
  .service-modal { border-radius: 24px; max-height: 78vh; }
}

/* =========================================================
   ALL REVIEWS MODAL — lists every review, scrolls to the one clicked
   ========================================================= */
.all-reviews-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}
.all-reviews-overlay.open { display: flex; }
.all-reviews-modal {
  position: relative;
  background: var(--color-surface);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 110px;
  animation: service-modal-up .2s ease;
}
.all-reviews-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.all-reviews-close svg { width: 16px; height: 16px; color: var(--color-text); }
.all-reviews-header { font-size: 20px; font-weight: 700; margin: 8px 40px 24px 0; }
.all-review-item { padding: 20px 0; border-top: 1px solid var(--color-border-light); }
.all-review-item:first-child { border-top: none; padding-top: 0; }
.all-review-item .review-text { font-size: 15px; }

@media (min-width: 640px) {
  .all-reviews-overlay { align-items: center; padding: 20px; }
  .all-reviews-modal { border-radius: 24px; max-height: 78vh; }
}

/* =========================================================
   AVATAR PHOTO LIGHTBOX
   ========================================================= */
.photo-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 110;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.photo-lightbox-overlay.open { display: flex; }
.photo-lightbox-img {
  max-width: 420px;
  width: 100%;
  height: auto;              /* same reason as .service-modal-photo above */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: photo-lightbox-in .2s ease;
}
@keyframes photo-lightbox-in {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.photo-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.photo-lightbox-close svg { width: 18px; height: 18px; color: #fff; }
.photo-lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* REVIEWS */
.reviews-rating-line { display: flex; align-items: center; gap: 6px; }
/* Rating line and the Google link share one row. The row owns all the vertical
   spacing; both children are flush, so there's a single margin to adjust.
   The .section h2 prefix is required — `.section h2 { margin-bottom: 20px }`
   out-specifies a bare .reviews-rating-line rule no matter where it sits.
   flex-wrap lets the link drop below the rating on very narrow screens. */
/* Link sits directly beneath the rating, tight to it. Column direction means
   the row's `gap` is the entire space between them — the h2's own bottom
   margin is zeroed below, so there is one number controlling this. */
.reviews-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 28px;
}
.section h2.reviews-rating-line { margin-bottom: 0; }
.reviews-google-link {
  display: inline-block;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-soft);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.reviews-star { color: var(--color-text); }
.review-avatar-mono {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}

/* Monogram avatar — used when no headshot photo is available */
.quals-avatar-mono {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin: 0 auto 16px;
}

/* =========================================================
   DESKTOP BOOKING CARD — hidden on mobile, shown in left column ≥1024px
   ========================================================= */
.booking-card-desktop {
  display: none;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-elevated);
  margin-top: 28px;
}
.booking-price { font-size: 20px; margin-bottom: 2px; }
.booking-price .price-tag { font-size: 26px; }
.booking-fee-note { font-size: 13px; color: var(--color-text-soft); margin-bottom: 16px; }
.booking-fee-label { font: inherit; color: inherit; }
/* Tighter than the global .btn-full (20px). The card is a block container,
   so adjacent button margins collapse — this 12px IS the gap between them,
   not doubled. Scoped so the other .btn-full buttons keep their spacing. */
.booking-card-desktop .btn-full { margin: 12px 0; }
.booking-phone-note { text-align: center; font-size: 13px; color: var(--color-text-soft); margin-top: 14px; }
.booking-phone-note a { color: var(--color-text); font-weight: 700; text-decoration: none; }
.booking-phone-note a:hover { text-decoration: underline dotted; text-underline-offset: 4px; }

/* MAP EMBED */
.map-embed {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-embed iframe { width: 100%; height: 200px; border: 0; display: block; }
/* Service-radius circle removed — this now marks the location only.
   The pin is centred by the overlay's flex box rather than position:absolute;
   with the circle gone there is no in-flow sibling to position against. */
.map-pin-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
/* Decorative "view live site" cue, top-right of each project photo AND each
   Starter Site demo photo — same slot and chrome the like button used to
   occupy. Every card is already a link (the whole tile opens the site), so
   this is a visual hint only, not a second interactive control.
   The arrow is drawn here as a data-URI rather than an <img>, so size, weight
   and colour all live in one place. z-index 2 keeps it above the demo card's
   gradient scrim (.demo-card-shot::before, z-index 1); harmless on project
   cards, which have no scrim. */
.project-visit-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  pointer-events: none;
}
/* 11px glyph inside a 24px circle — ~6.5px of breathing room on every side. */
.project-visit-badge::after {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 19.5 19.5 4.5'/%3E%3Cpath d='M8.5 4.5H19.5V15.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


/* =========================================================
   LATEST PROJECTS
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.project-card-link { display: block; text-decoration: none; color: inherit; }
.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.project-card-media {
  position: relative;
  /* Slightly shorter than square. Sources are mostly 1:1, so 5/4 trims a
     modest band top and bottom rather than the ~25% the old 4/3 cut. */
  aspect-ratio: 5 / 4;
  background: #efece6;
  /* Rounded on all four corners so the image reads as its own tile sitting on
     the card, rather than a panel fused to the top edge. Needs its own
     overflow clip — the card's clip only shapes the outer corners. */
  border-radius: var(--radius-md);
  overflow: hidden;
}
.project-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.project-card-body { padding: 16px 16px 16px; }
.project-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.project-meta { font-size: 13px; color: var(--color-text-soft); margin-bottom: 2px; }
.project-meta .stars { color: var(--color-text); font-weight: 600; }
.project-detail { font-size: 13px; color: var(--color-text-soft); }
.project-detail.highlight { color: var(--color-accent); font-weight: 600; }
/* Same treatment as .project-detail.highlight, but inline within a meta line
   rather than its own paragraph — no added spacing of its own. */
.project-detail-inline-highlight { color: var(--color-accent); font-weight: 600; }
.view-more-btn { margin-top: 40px; }
/* Replaces the space the View More button occupied once it's hidden, so the
   final row keeps breathing room above the section divider. */
.projects-grid.is-expanded { margin-bottom: 40px; }

/* =========================================================
   REVIEWS — horizontal swipe carousel on mobile (Airbnb-style)
   ========================================================= */
.review-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.review-grid::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 78%;
  max-width: 300px;
  cursor: pointer;
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-name { font-weight: 700; font-size: 13px; }
.review-loc { font-size: 11px; color: var(--color-text-soft); }
.review-stars { font-size: 11px; letter-spacing: 2px; color: var(--color-text); margin-bottom: 8px; }
.review-date { font-size: 13px; color: var(--color-text-soft); letter-spacing: normal; margin-left: 2px; }
.review-text { font-size: 14px; line-height: 1.55; color: var(--color-text); }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3.expanded { -webkit-line-clamp: unset; }
.show-more-btn {
  background: none; border: none; padding: 0; margin-top: 4px;
  font-size: 15px; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 4px;
  color: var(--color-text); cursor: pointer; display: block;
}

/* =========================================================
   QUALIFICATIONS
   ========================================================= */
.quals-wrap { display: flex; flex-direction: column; gap: 28px; margin-bottom: 16px; }
.expertise-table { display: flex; flex-direction: column; }
.expertise-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.expertise-row:first-child { padding-top: 0; }
.expertise-row:last-child { border-bottom: none; padding-bottom: 0; }
.expertise-category { font-size: 13px; font-weight: 700; color: var(--color-text); margin-bottom: 3px; }
.expertise-detail { font-size: 13px; color: var(--color-text-soft); }
.expertise-years {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.quals-profile-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 56px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
}
.quals-profile-left { flex-shrink: 0; text-align: center; }
.quals-avatar { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin: 0 0 14px; }
.quals-name { font-size: 18px; font-weight: 700; margin-bottom: 1px; }
.quals-role { font-size: 12px; color: var(--color-text-soft); }

.quals-stats { flex-shrink: 0; display: flex; flex-direction: column; }
.quals-stat { display: flex; align-items: center; gap: 6px; padding: 10px 0; border-top: 1px solid var(--color-border-light); text-align: left; }
.quals-stat:first-child { border-top: none; padding-top: 0; }
.quals-stat-num { font-size: 26px; font-weight: 700; line-height: 1.2; }
.quals-stat-label { font-size: 13px; color: var(--color-text-soft); }

.quals-list { display: flex; flex-direction: column; gap: 22px; }
.qual-row { }
.qual-icon { width: 32px; height: 32px; object-fit: contain; display: block; color: var(--color-text); margin-bottom: 10px; }
.qual-label { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.qual-value { font-size: 14px; color: var(--color-text-soft); line-height: 18px; }

/* =========================================================
   LOCATION / MAP
   ========================================================= */
.location-text { font-size: 15px; line-height: 1.6; color: var(--color-text); margin-bottom: 20px; }

/* =========================================================
   THINGS TO KNOW
   ========================================================= */
.know-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.know-icon-box { height: 34px; display: flex; align-items: flex-end; margin-bottom: 10px; }
.know-icon { width: 32px; height: 32px; color: var(--color-text); display: block; }
/* Per-icon size tweak, carried over with the calendar art it was tuned for.
   Will need retuning when the real timeline icon arrives. */
.know-icon-timeline { width: 26px; height: 26px; }
.know-label { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.know-value { font-size: 14px; color: var(--color-text-soft); line-height: 1.5; }

/* =========================================================
   STICKY BOTTOM BOOKING BAR — always fixed, mobile-app feel
   ========================================================= */
/* Edge-to-edge action bar pinned to the bottom on mobile: two equal-width
   buttons, secondary (outlined) then primary. Replaced a floating rounded
   pill that carried the Starter Site price plus a single call button.
   align-items: stretch keeps both buttons the same height even though only
   the primary carries a second line. */
.mobile-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 60;
  background: #fff;
  border-top: 1px solid var(--color-border-light);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.mobile-bar.bar-hidden { display: none; }
/* Overrides .btn's nowrap and row direction so the primary can stack two lines. */
.mobile-bar-btn {
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  padding: 11px 12px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
}
.mobile-bar-btn-outline {
  background: #fff;
  color: var(--color-accent);
  border-color: var(--color-accent);
  font-weight: 600;
}
.mobile-bar-btn-outline:hover { background: #F5F5FF; }
.mobile-bar-btn-main { font-weight: 600; font-size: 15px; }
.mobile-bar-btn-sub { font-size: 12px; font-weight: 400; opacity: 0.85; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #E4E4E4;
  margin-top: -32px;
  position: relative;
  z-index: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(34,34,34,0.85);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 104px 20px calc(150px + env(safe-area-inset-bottom));
}
.site-footer a { color: var(--color-text); font-weight: 600; }
.footer-sub { margin-top: 6px; opacity: 0.85; }
.footer-app-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.footer-app-badge {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}
.footer-app-badge img { height: 42px; width: auto; display: block; }
.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.footer-social-icon { display: block; line-height: 0; }
.footer-social-icon img { width: 40px; height: 40px; display: block; }
a.footer-review-link {
  display: block;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-soft);
  opacity: 1;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.footer-logo-wrap {
  max-width: 500px;
  width: 100%;
  margin: 0 auto 40px;
}
.footer-logo {
  display: block;
  width: 100%;
  height: auto;
}
.footer-columns {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
  text-align: center;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1 1 0; max-width: 160px; }
.footer-col-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-soft);
  opacity: 1;
  margin-bottom: 4px;
}
.footer-col a { font-size: 14px; font-weight: 500; text-decoration: underline dotted; text-underline-offset: 4px; }
.footer-credit { margin-top: 10px; font-size: 12px; color: var(--color-text-soft); opacity: 1; }
.footer-credit a { color: inherit; font-weight: 400; text-decoration: underline dotted; text-underline-offset: 4px; }

.footer-badge { max-width: 420px; margin: 0 auto 56px; text-align: center; }
@media (max-width: 1023px) {
  .footer-badge { padding-top: 24px; }
}
.footer-badge-icon { display: block; width: 48px; height: 48px; margin: 0 auto 12px; filter: brightness(0) invert(1); }
.footer-badge-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: #fff; margin-bottom: 12px; }
.footer-badge-text { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.85); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 640px) {
  .know-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .service-card { padding: 20px; gap: 28px; }
  .service-card-media { flex-basis: 140px; border-radius: 24px; }
}

@media (min-width: 760px) {
  .quals-wrap { flex-direction: row; align-items: stretch; gap: 36px; }
  .quals-list { flex: 1; justify-content: center; order: 1; }
  /* Hidden from 760px up. Above this width .quals-wrap becomes a row, and the
     card was stretched to the full height of the expertise list beside it,
     leaving a tall empty box with its stats clipped at the right edge. It
     still shows below 760px, where the column layout stacks it properly. */
  .quals-profile-card { display: none; }
}

@media (min-width: 860px) and (max-width: 1023px) {
  .hero-image { height: 340px; }
  .intro-block h1,
  .intro-block .hero-title-alt { font-size: 32px; }
}

/* =========================================================
   DESKTOP TWO-COLUMN LAYOUT — matches the reference PDP layout
   ========================================================= */
/* Tablet range. The base --max-width is 700px, which fills a phone but leaves
   dead margin either side of a tablet; the 1280px desktop value only kicks in
   at 1024px. Letting it run to 100% here means content stretches edge to edge
   the way it does on mobile, with .page-wrap's own 20px padding holding the
   gutters. Consumers of the variable (.page-wrap, .footer-inner, .divider via
   calc()) all handle a percentage correctly. */
@media (min-width: 700px) and (max-width: 1023px) {
  :root { --max-width: 100%; }
}

@media (min-width: 1024px) {
  :root { --max-width: 1280px; }

  .layout-grid {
    display: grid;
    /* minmax(0, 1fr) not plain 1fr: a grid track defaults to a min-content
       floor, so the right column refused to shrink below its widest child and
       pushed past the container — which is why the right-hand page padding
       disappeared between ~1024px and ~1200px. The left track and the gap flex
       too, so the columns tighten before anything overflows. */
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
  }
  /* top was 160px to clear .site-header, but that header is display:none and
     never re-enabled, so it was offsetting against nothing. 24px is the gap
     the column keeps from the viewport edge once it sticks. */
  .left-col { position: sticky; top: 24px; padding-top: 32px; }
  .hero { padding-top: 0; }
  .hero-media { margin: 0; border-radius: var(--radius-lg); }
  .hero-image { height: 280px; border-radius: var(--radius-lg); }
  .hero-avatar-wrap { bottom: -40px; }
  .hero-avatar, .hero-avatar-mono { width: 80px; height: 80px; }
  .intro-block {
    background: transparent;
    border-radius: 0;
    margin: 0;
    padding: 56px 0 0;
  }
  .intro-block h1,
  .intro-block .hero-title-alt { font-size: 26px; }
  .intro-bio { font-size: 14px; line-height: 1.45; }

  .review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
    row-gap: 48px;
    margin: 0;
    padding: 0;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .review-name { font-size: 15px; }
  .review-loc { font-size: 13px; }
  .review-card {
    flex: none;
    max-width: none;
    padding: 0;
    margin-right: 0;
    border-right: none;
    border-radius: 0;
    scroll-snap-align: none;
  }
  .review-card:nth-child(n+5) { display: none; }
  #showAllReviewsBtn { margin: 48px 0 0; }

  .expertise-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 2.2fr) auto;
    align-items: baseline;
    column-gap: 24px;
  }
  .expertise-category, .expertise-detail, .expertise-years { margin-bottom: 0; }
  .footer-columns { gap: 48px; }
  .footer-col { max-width: none; flex: none; min-width: 120px; }
  .quals-list { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
  .quals-wrap { margin-bottom: 36px; }

  .divider-first { display: none; }
  .booking-card-desktop { display: block; }
  .service-card { align-items: center; }
  .service-card-media { flex-basis: 128px; align-self: center; }
  .service-card-body { display: flex; flex-direction: column; justify-content: center; align-self: center; }
  .service-card h3 { font-size: 12px; }
  .mobile-bar { display: none; }
  .page-wrap { padding-bottom: 60px; }
  .footer-inner { padding-bottom: 40px; }
  .footer-badge { max-width: 100%; }
}

/* =========================================================
   CURSOR FOLLOWER — soft accent-colored dot trailing the mouse.
   Desktop / fine-pointer devices only; never shown on touch screens.
   ========================================================= */
.cursor-follower {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, width 0.2s ease, height 0.2s ease;
  will-change: transform;
}
.cursor-follower.active { opacity: 0.85; }
.cursor-follower.pressed { width: 10px; height: 10px; }
@media (hover: none), (pointer: coarse) {
  .cursor-follower { display: none !important; }
}

.love-count {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { border-top: 1px solid var(--color-border-light); }
.faq-item { border-bottom: 1px solid var(--color-border-light); }
.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 16px 36px 16px 0;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}
.faq-q::-webkit-details-marker { display: none; }   /* Safari's default triangle */
/* Chevron drawn in CSS so there's no icon file to keep in sync. */
.faq-q::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-text-soft);
  border-bottom: 2px solid var(--color-text-soft);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform .2s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(-135deg); top: 26px; }
.faq-q:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.faq-a { padding: 0 36px 18px 0; }
.faq-a p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-soft);
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: var(--color-text); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .faq-q::after { transition: none; }
}
.faq-more-btn { margin-top: 20px; }

/* =========================================================
   CAPABILITY MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  overflow: hidden;
  margin: 22px 0 20px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  /* Fades the items in and out at the edges instead of letting them appear to
     pop against the border. Unsupported browsers just get no fade. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.marquee-list li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-text);
}
.marquee-list li::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  margin: 0 18px;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  /* Stop it outright — a slow scroll is still motion. The first few items stay
     readable, and the row still reads as a capability list. */
  .marquee-track { animation: none; }
}

/* =========================================================
   LANDING PAGES (service pages)
   ========================================================= */
.lp-h1 { font-size: 28px; line-height: 1.2; margin: 0 0 14px; }
.lp-lead { font-size: 16px; line-height: 1.6; color: var(--color-text); margin: 0 0 22px; }
.lp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 26px;
}
.lp-fact { display: flex; flex-direction: column; gap: 2px; }
.lp-fact-v { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.lp-fact-l { font-size: 12px; line-height: 1.35; color: var(--color-text-soft); }
/* body.lp scopes these to the landing page — unscoped, `.right-col p` would
   restyle every paragraph in the homepage's right column too. */
.lp .right-col h2 { margin-top: 30px; font-size: 20px; }
.lp .right-col p { font-size: 14px; line-height: 1.65; color: var(--color-text); margin: 0 0 12px; }
.lp-steps, .lp-list { margin: 0 0 12px; padding-left: 20px; }
.lp-list li { font-size: 14px; line-height: 1.65; margin-bottom: 8px; }
.lp-steps li { font-size: 14px; line-height: 1.65; margin-bottom: 10px; }
.lp-alt { margin-top: 14px; text-align: center; font-size: 13px; }
/* Base rule is `a { text-decoration: none; color: inherit }`, so links need an
   explicit style or they render as plain text. Scoped to prose (p, li) so the
   .btn CTAs — which are <a> elements too — aren't underlined. */
.lp .right-col p a,
.lp .right-col li a {
  color: var(--color-text);
  font-weight: 400;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

/* =========================================================
   FREE SEO AUDIT
   ========================================================= */
.audit { background: #F7F7F7; border-radius: var(--radius-lg); padding: 24px; }
.audit-h { font-size: 20px; margin: 0 0 8px; }
.audit-sub { font-size: 14px; line-height: 1.6; color: var(--color-text-soft); margin: 0 0 18px; }
.audit-row { display: grid; gap: 10px; margin-bottom: 12px; }
@media (min-width: 760px) { .audit-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.audit-form input[type="text"],
.audit-form input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}
.audit-form input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.audit-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.audit-form .btn-full { margin: 0; }
.audit-status { font-size: 13px; line-height: 1.5; margin: 10px 0 0; min-height: 1em; }
.audit-status.is-success { color: #0B7A3B; }
.audit-status.is-error { color: #B3261E; }
.faq-a a { color: var(--color-text); font-weight: 600; text-decoration: underline dotted; text-underline-offset: 4px; }
