/* Sam's Scissors Barbershop — self-contained custom styles.
   Dark heritage barbershop: charcoal base, brand red (#EB2020 from their pole),
   warm cream text. Mobile-first. Nothing shared with other clients/templates. */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #15120f;          /* near-black charcoal */
  --bg-2: #1d1916;        /* raised panel */
  --bg-3: #262019;        /* card */
  --ink: #f4f0e8;         /* warm cream */
  --ink-soft: #c9c1b4;    /* muted cream */
  --ink-dim: #8c847a;     /* dim */
  --accent: #eb2020;      /* brand red */
  --accent-2: #c81a1a;    /* red hover/deep */
  --line: rgba(244, 240, 232, 0.12);
  --line-strong: rgba(244, 240, 232, 0.22);
  --maxw: 72rem;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --r: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --display: "Oswald", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip; /* clip (not hidden): prevents h-scroll without breaking position:sticky */
}
/* lock background scroll while the mobile drawer or lightbox is open */
body.nav-open, body.lightbox-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* Override the host globals.css brass text-selection, focus ring and mobile
   tap highlight so no host identity bleeds onto this site. */
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
/* element-level (not just html): globals.css re-paints brass directly on
   interactive elements under (pointer: coarse), which beats html inheritance. */
html, a, button, summary, label, select, input, textarea, [role="button"] { -webkit-tap-highlight-color: rgba(235, 32, 32, 0.18); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: 0.01em; margin: 0 0 0.5em; text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 8vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin: 0 0 0.6rem; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--alt { background: var(--bg-2); }
.center { text-align: center; }
.lede { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: var(--ink-soft); max-width: 42rem; }

/* barber-pole accent rule */
.pole { height: 4px; width: 64px; border-radius: 4px; background: repeating-linear-gradient(45deg, var(--accent) 0 8px, #fff 8px 16px); margin: 0 0 1.2rem; }
.center .pole { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; padding: 0.85rem 1.5rem; border-radius: var(--r); border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- header / nav ---------- */
/* NB: no backdrop-filter here. A filtered ancestor becomes the containing block for
   position:fixed descendants, which would trap the mobile drawer + scrim inside the
   header box instead of the viewport. The near-opaque bg gives the same look. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(21, 18, 15, 0.97); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.nav__brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.05rem; }
.nav__brand img { height: 38px; width: auto; }
.nav__links { display: none; align-items: center; gap: 1.6rem; }
.nav__links a { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: color 0.15s ease; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__cta { display: none; }
.nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Lift the sticky header while the drawer is open (menu is fixed z:95 but
   trapped inside .site-header's z:50 stacking context). */
.site-header:has(.nav[data-open="true"]) {
  z-index: 96;
}
.nav__menu { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); height: 100dvh; background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.25s ease; display: flex; flex-direction: column; gap: 0.2rem; padding: 5rem 1.5rem 2rem; z-index: 95; overflow-y: auto; overscroll-behavior: contain; }
.nav[data-open="true"] .nav__menu { transform: translateX(0); }
.nav__menu a { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.nav__menu .btn { margin-top: 1rem; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .nav__menu { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 86svh; display: flex; align-items: flex-end; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(21,18,15,0.55) 0%, rgba(21,18,15,0.2) 35%, rgba(21,18,15,0.92) 100%); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(2.5rem, 7vw, 5rem); width: 100%; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 span { color: var(--accent); }
.hero__sub { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(0.85rem, 2.4vw, 1.05rem); color: var(--ink); margin: 0 0 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__call { display: inline-flex; align-items: center; }

/* ---------- trust bar ---------- */
.trustbar { background: var(--accent); color: #fff; }
.trustbar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 2rem; padding-block: 0.9rem; text-align: center; }
.trustbar__row span { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; font-weight: 600; }
.trustbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 0.35rem; }

/* ---------- generic grids / cards ---------- */
.grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }

/* service cards w/ price */
.svc { display: flex; flex-direction: column; }
.svc__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.svc__name { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.15rem; }
.svc__price { font-family: var(--display); font-weight: 700; color: var(--accent); white-space: nowrap; font-size: 1.15rem; }
.svc p { margin: 0.5rem 0 0; font-size: 0.95rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- team ---------- */
.team__card { text-align: center; }
.team__card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r); margin-bottom: 0.9rem; }
.team__name { font-family: var(--display); text-transform: uppercase; font-size: 1.2rem; }
.team__role { color: var(--accent); font-size: 0.85rem; font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- reviews ---------- */
.review { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.review__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 0.5rem; }
.review p { color: var(--ink); font-size: 0.98rem; margin: 0 0 0.8rem; }
.review__who { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; color: var(--ink-dim); }
.gbadge { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.gbadge strong { color: var(--accent); font-size: 1.2rem; }

/* ---------- info / location ---------- */
.info { display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .info { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.hours li span:first-child { color: var(--ink-soft); }
.triad { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 0.3rem 0; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.02rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 1rem; margin: 0; }

/* ---------- CTA band ---------- */
.ctaband { background: var(--accent); color: #fff; text-align: center; }
.ctaband h2 { color: #fff; }
.ctaband .btn--primary { background: #fff; color: var(--accent); }
.ctaband .btn--primary:hover { background: var(--ink); color: var(--accent); }
.ctaband .btn--ghost { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: #100d0b; border-top: 1px solid var(--line); padding-block: 2.6rem; }
.footer__grid { display: grid; gap: 1.6rem 1.4rem; }
@media (min-width: 560px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 880px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; } .footer__brand { grid-column: auto; } }
.footer__grid h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; margin: 0 0 0.8rem; color: var(--ink); }
.footer__grid a { color: var(--ink-soft); display: block; padding: 0.25rem 0; font-size: 0.92rem; }
.footer__grid a:hover { color: var(--ink); }
.footer__legal { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; color: var(--ink-dim); font-size: 0.82rem; }
.footer__legal a { color: var(--ink-dim); }

/* ---------- sticky mobile book bar ---------- */
.bookbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 48; display: flex; gap: 0.6rem; padding: 0.6rem; background: rgba(16,13,11,0.97); border-top: 1px solid var(--accent); transform: translateY(110%); transition: transform 0.25s ease; }
.bookbar.is-visible { transform: translateY(0); }
.bookbar .btn { flex: 1; padding: 0.8rem; }
@media (min-width: 900px) { .bookbar { display: none; } }
@media (max-width: 899px) {
  body.has-bookbar { padding-bottom: 4.5rem; }
}

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .gallery img { transition: none; } }

/* ---------- prose (guides / legal) ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.costtable { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.95rem; }
.costtable th, .costtable td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); }
.costtable th { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); font-size: 0.85rem; }
.costtable td:last-child { color: var(--accent); font-family: var(--display); font-weight: 600; white-space: nowrap; }

/* ---------- contact form ---------- */
.form { display: grid; gap: 0.9rem; }
.form label { font-size: 0.85rem; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.form input, .form textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--ink); padding: 0.8rem 0.9rem; font-family: var(--body); font-size: 1rem; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* 3.5rem lift over the 1.75rem corner (5.25rem total) clears the mobile book bar. */
.backtop {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: calc(1.75rem + 3.5rem);
  z-index: 47;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(38, 32, 25, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(235, 32, 32, 0.4);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(244, 240, 232, 0.06) inset;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.9);
  transition:
    opacity 0.32s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.backtop::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-color: var(--ink);
  mask-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='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 14 12 8 18 14'/%3E%3C/svg%3E");
  -webkit-mask-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='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 14 12 8 18 14'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.backtop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.backtop:hover {
  background: rgba(235, 32, 32, 0.18);
  border-color: var(--accent);
  box-shadow:
    0 8px 32px rgba(235, 32, 32, 0.28),
    0 4px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(244, 240, 232, 0.1) inset;
}
.backtop:hover::before {
  background-color: #fff;
  transform: translateY(-1px);
}
.backtop:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (min-width: 900px) { .backtop { bottom: 1.75rem; } }
@media (prefers-reduced-motion: reduce) {
  .backtop { transform: none; transition: opacity 0.2s ease, visibility 0.2s, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
  .backtop.is-visible { transform: none; }
  .backtop::before { transition: border-color 0.2s ease; }
}

/* ---------- premium image treatment (consistent, theme-matched) ---------- */
/* Gallery: subtle dark grade + bottom scrim so mixed-source photos read as one
   premium set; full colour + lift on hover. */
.gallery figure { position: relative; }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,18,15,0) 45%, rgba(21,18,15,0.45) 100%); pointer-events: none; transition: opacity 0.4s ease; }
.gallery img { filter: saturate(0.92) contrast(1.04) brightness(0.92); transition: transform 0.4s ease, filter 0.4s ease; }
.gallery figure:hover img { filter: none; transform: scale(1.04); }
.gallery figure:hover::after { opacity: 0; }

/* Team: grayscale unifies the mixed studio backgrounds (pink vs grey) into one
   premium monochrome row; colour on hover. Ring in brand red. */
.team__card img { filter: grayscale(1) contrast(1.05) brightness(0.96); border: 1px solid var(--line); transition: filter 0.4s ease; }
.team__card:hover img { filter: grayscale(0) contrast(1) brightness(1); }

/* ---------- video grid (GBP shop clips — portrait 9:16 phone clips) ---------- */
.gallery-videos { display: grid; gap: 0.9rem; grid-template-columns: 1fr; max-width: 20rem; margin-inline: auto; }
@media (min-width: 640px) { .gallery-videos { grid-template-columns: repeat(3, 1fr); max-width: 46rem; } }
.gallery-videos figure { margin: 0; }
.gallery-videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); background: #000; display: block; border: 1px solid var(--line); }

/* ---------- lightbox (click any gallery photo to zoom full-size) ---------- */
.gallery img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: rgba(16, 13, 11, 0.94); padding: 4vmin; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; cursor: default; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: var(--ink); font-size: 2.6rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { color: var(--accent); }

/* ---------- design-review fixes (contrast, no-JS, mobile scrim, tap targets) ---------- */
:root { --accent-text: #ff5a5a; } /* brighter red: clears 4.5:1 as small text on dark surfaces */
.eyebrow, .svc__price, .review__stars, .costtable td:last-child, .gbadge strong, .team__role, .prose a { color: var(--accent-text); }
.faq summary::after { color: var(--accent-text); }
.review__who { color: var(--ink-soft); }
/* no-JS: content stays visible when scripting is unavailable (reveal needs JS otherwise) */
@media (scripting: none) { .reveal { opacity: 1 !important; transform: none !important; } }
/* mobile menu dimming scrim behind the drawer */
/* z-index 91: the scrim sits above the page chrome so everything dims together
   while the drawer is open. */
.nav[data-open="true"]::after { content: ""; position: fixed; inset: 0; background: rgba(16, 13, 11, 0.6); z-index: 91; }
/* tap targets >= 44px on mobile nav + footer links */
.nav__menu a { padding-block: 0.85rem; }
.footer__grid a { padding-block: 0.5rem; }

/* video tiles: same premium frame as gallery for consistency */
.gallery-videos video { box-shadow: var(--shadow); }
.gallery-videos figure { transition: transform 0.3s ease; }
.gallery-videos figure:hover { transform: translateY(-3px); }

/* ---------- brand lockup (mark + wordmark so the brand is unmistakable) ---------- */
.nav__mark { height: 38px; width: auto; flex-shrink: 0; }
.nav__id { display: flex; flex-direction: column; line-height: 1; }
.nav__name { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.12rem; color: var(--ink); }
.nav__tag { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.56rem; color: var(--ink-dim); margin-top: 4px; }
@media (max-width: 360px) { .nav__tag { display: none; } .nav__name { font-size: 1rem; } }
.site-footer .nav__mark { height: 46px; }
.site-footer .nav__name { font-size: 1.25rem; }
.site-footer .nav__tag { font-size: 0.6rem; }

/* ---------- services dropdown (desktop: hover / keyboard focus reveal) ---------- */
.nav__dd { position: relative; display: flex; align-items: center; }
.nav__dd-trigger { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.nav__caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; opacity: 0.75; }
/* invisible hover bridge so the menu doesn't close crossing the gap */
.nav__dd::after { content: ""; position: absolute; top: 100%; left: -0.5rem; right: -0.5rem; height: 12px; }
.nav__dd-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 232px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: var(--shadow); padding: 0.5rem; display: flex; flex-direction: column; gap: 0.1rem; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; z-index: 60; }
.nav__dd:hover .nav__dd-menu, .nav__dd:focus-within .nav__dd-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__dd:hover .nav__caret, .nav__dd:focus-within .nav__caret { transform: rotate(225deg) translateY(2px); }
.nav__dd-menu a { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; color: var(--ink-soft); padding: 0.6rem 0.7rem; border-radius: 8px; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.nav__dd-menu a:hover, .nav__dd-menu a:focus-visible { background: var(--bg-3); color: var(--ink); }
.nav__dd-all { margin-top: 0.25rem; padding-top: 0.7rem !important; border-top: 1px solid var(--line); color: var(--accent-text) !important; }

/* ---------- services group (mobile drawer: indented sub-links, always visible) ---------- */
.nav__menu-head { font-weight: 700 !important; }
.nav__menu-sub { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; }
.nav__menu-sub a { border-bottom: 0 !important; padding-block: 0.7rem !important; padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink-soft) !important; position: relative; }
.nav__menu-sub a::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 2px; border-radius: 2px; background: var(--accent); transform: translateY(-50%); }

/* ---------- brand reads as the home button (hover + focus affordance) ---------- */
.nav__brand { cursor: pointer; transition: opacity 0.15s ease; }
.nav__brand:hover { opacity: 0.92; }
.nav__brand:hover .nav__name { color: var(--accent-text); }
.nav__brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.site-footer .nav__brand:hover { opacity: 0.85; }

/* ---------- active states: you-are-here in dropdown + mobile drawer ---------- */
.nav__links a[aria-current="page"], .nav__dd-trigger[aria-current="page"] { color: var(--accent-text); }
.nav__dd-menu a[aria-current="page"] { background: var(--bg-3); color: var(--ink); }
.nav__menu a[aria-current="page"], .nav__menu-sub a[aria-current="page"] { color: var(--accent-text) !important; }

/* ---------- hero (phone): bias the wide-photo crop so the cut reads on portrait ---------- */
@media (max-width: 640px) {
  .hero__bg img { object-position: 64% 42%; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .hero__bg img { object-position: 55% center; }
}

/* ---------- mobile drawer close button (explicit X inside the panel) ---------- */
.nav__close { position: absolute; top: 0.9rem; right: 1rem; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--ink); font-size: 2.1rem; line-height: 1; cursor: pointer; padding: 0; }
.nav__close:hover { color: var(--accent-text); }
.nav__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (min-width: 900px) { .nav__close { display: none; } }
/* when the drawer is open, the header hamburger is redundant — hide it so the only close is the panel X */
.nav[data-open="true"] .nav__toggle { display: none; }

/* ---------- "text us a question" capture form (contact page) ---------- */
.qform { max-width: 30rem; margin: 2.2rem auto 0; padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.qform input[name="contact_extra"] { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qform__intro { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; font-weight: 600; color: var(--ink); margin: 0; }
.qform__field { display: flex; flex-direction: column; gap: 0.4rem; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.qform__field input, .qform__field textarea { font-family: var(--body); font-size: 1rem; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0.75rem 0.9rem; width: 100%; transition: border-color 0.15s ease; }
.qform__field textarea { resize: vertical; min-height: 6rem; }
.qform__field input:hover, .qform__field textarea:hover { border-color: var(--ink-dim); }
.qform__field input:focus-visible, .qform__field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.qform [data-lead-confirm] { color: var(--ink); font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.qform[data-form-submitted] [data-lead-confirm]::before { border-color: var(--accent); color: var(--accent); }
/* Phone country-code chip + required marker + consent opt-in (shared lead-capture standard) */
.qform__label { display: block; }
.req { color: var(--accent); }
.field-phone { display: flex; align-items: stretch; }
.field-phone__cc { display: inline-flex; align-items: center; padding: 0 0.85rem; font-family: var(--body); font-size: 1rem; color: var(--ink-soft); background: var(--bg-3); border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--r) 0 0 var(--r); }
.field-phone input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
/* Consent box + required asterisk are the shared Foundation affordance
   (lib/everlane/clients/capture-styles.ts, injected with the capture runtime). Only the
   brand accent is per-site: */
[data-lead-form] { --lead-accent: var(--accent); }
