/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --btn-py: 14px;
  --btn-px: 26px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;                    /* touch target */
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color     var(--dur-base) var(--ease-out),
    color            var(--dur-base) var(--ease-out),
    box-shadow       var(--dur-base) var(--ease-out),
    transform        var(--dur-base) var(--ease-spring);
}

.btn svg { width: 18px; height: 18px; flex: none; }

/* The spark sweep — a specular band that wipes across on hover. */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.30) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

/* Primary — molten amber */
.btn--primary {
  background: linear-gradient(180deg, var(--c-amber) 0%, var(--c-amber-deep) 100%);
  color: var(--c-on-amber);
  box-shadow: var(--sh-amber);
}
.btn--primary:hover {
  color: var(--c-on-amber);
  box-shadow:
    0 4px 12px rgba(232,88,13,.34),
    0 14px 38px rgba(232,88,13,.28),
    inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--primary:active { transform: translateY(1px); }

/* Ghost — brushed steel outline */
.btn--ghost {
  background: var(--a-ink-04);
  border-color: var(--a-ink-12);
  color: var(--c-text);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover {
  background: var(--a-ink-08);
  border-color: var(--c-amber);
  color: var(--c-text);
}

/* Quiet — text + arrow, used inside cards */
.btn--quiet {
  min-height: 44px;
  padding: 10px 0;
  background: none;
  color: var(--c-amber-text);
  text-transform: none;
  font-family: var(--f-body);
  letter-spacing: 0;
  font-size: var(--fs-sm);
}
.btn--quiet::after { display: none; }
.btn--quiet svg { transition: transform var(--dur-base) var(--ease-out); }
.btn--quiet:hover { color: var(--c-text); }
.btn--quiet:hover svg { transform: translateX(4px); }

.btn--lg { --btn-py: 18px; --btn-px: 34px; min-height: 56px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; }
.btn[disabled]::after { display: none; }

/* ==========================================================================
   UTILITY BAR
   ========================================================================== */
.utilitybar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  min-height: var(--h-utilitybar);
  /* Opaque, not glass: it is the topmost layer and the header slides behind
     it, so anything translucent would show the header passing underneath. */
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-xs);
}

.utilitybar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--h-utilitybar);
}

.utilitybar__group {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-width: 0;                        /* lets a long child ellipsis instead of pushing */
}


.utilitybar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.utilitybar__link:hover { color: var(--c-amber-text); }
.utilitybar__link svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.utilitybar__link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The bar is sticky, so it must never wrap to a second line. Below 768px the
   address is dropped and only the phone and the open/closed state remain.
   Declared with the element class so it outranks `.utilitybar__link`'s own
   `display: inline-flex` — a bare `.u-hide-sm` would lose and stay visible. */
.utilitybar__link.u-hide-sm { display: none; }

/* Live open/closed indicator */
.hours-now {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
.hours-now__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-text-muted);
  flex: none;
}
.hours-now[data-open="true"]  .hours-now__dot { background: var(--c-green); box-shadow: 0 0 0 3px rgba(23,114,69,.18); }
.hours-now[data-open="false"] .hours-now__dot { background: var(--c-red);   box-shadow: 0 0 0 3px rgba(192,57,43,.16); }
.hours-now__label { color: var(--c-text-soft); }

/* Social icon row */
.social { display: flex; align-items: center; gap: var(--s-1); }
.social__link {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  color: var(--c-text-muted);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.social__link:hover { color: var(--c-amber-text); background: var(--a-ink-06); }
.social__link svg { width: 16px; height: 16px; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.header {
  position: sticky;
  /* Parks directly beneath the sticky utility bar rather than at the viewport
     edge, so the two stack instead of overlapping. */
  top: var(--h-utilitybar);
  z-index: var(--z-header);
  background: var(--glass-bg-2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--a-ink-08);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header { background: var(--glass-solid); }
}
.header[data-scrolled="true"] { box-shadow: var(--sh-2); }
.header[data-hidden="true"]   { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--h-header);
}

/* ---- Brand: IMAGE ONLY. No text is ever typed into this block. ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  border-radius: var(--r-sm);
}
.brand__logo {
  width: auto;
  height: 42px;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.brand:hover .brand__logo { opacity: .85; }

/* ---- Desktop nav -------------------------------------------------------- */
.nav { display: none; }

.nav__list { display: flex; align-items: center; gap: var(--s-1); }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-soft);
  text-decoration: none;
  border-radius: var(--r-sm);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--c-text); }

/* Underline that wipes in from the left */
.nav__link::after {
  content: '';
  position: absolute;
  left: var(--s-3); right: var(--s-3);
  bottom: 12px;
  height: 1.5px;
  background: var(--c-amber);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__item--current .nav__link { color: var(--c-text); }
.nav__item--current .nav__link::after { transform: scaleX(1); }

.nav__chevron { width: 12px; height: 12px; transition: transform var(--dur-fast) var(--ease-out); }
.nav__link[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

/* ---- Dropdown ----------------------------------------------------------- */
.nav__item { position: relative; }

.nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: var(--z-dropdown);
  min-width: 268px;
  padding: var(--s-2);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity    var(--dur-base) var(--ease-out),
    transform  var(--dur-base) var(--ease-out),
    visibility var(--dur-base);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__menu { background: var(--glass-solid); }
}
.nav__item[data-open="true"] .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__menu-link {
  display: block;
  padding: 11px var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  text-decoration: none;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.nav__menu-link:hover {
  background: var(--a-ink-06);
  color: var(--c-text);
  border-left-color: var(--c-amber);
}

/* ---- Header actions ----------------------------------------------------- */
.header__actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.header__cta { display: none; }

/* ---- Mobile toggle ------------------------------------------------------ */
.navtoggle {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--a-ink-04);
  border: 1px solid var(--a-ink-12);
  border-radius: var(--r-md);
  cursor: pointer;
}
.navtoggle__bars { display: block; width: 20px; height: 14px; position: relative; }
.navtoggle__bars span {
  position: absolute;
  left: 0;
  width: 100%; height: 1.5px;
  background: var(--c-text);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.navtoggle__bars span:nth-child(1) { top: 0; }
.navtoggle__bars span:nth-child(2) { top: 6px; }
.navtoggle__bars span:nth-child(3) { top: 12px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] .navtoggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Mobile nav sheet --------------------------------------------------- */
.mobilenav {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  /* Clears both sticky bars, which now sit above this sheet in the stack. */
  padding: calc(var(--h-utilitybar) + var(--h-header) + var(--s-5)) var(--gutter) var(--s-7);
  background: var(--glass-bg-2);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobilenav { background: var(--glass-solid); }
}
.mobilenav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }

.mobilenav__link {
  display: block;
  padding: var(--s-4) 0;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid var(--a-ink-08);
}
.mobilenav__link--sub {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-text-soft);
  padding: var(--s-3) 0 var(--s-3) var(--s-5);
}
.mobilenav__cta { margin-top: var(--s-6); }

/* ==========================================================================
   CARD — shared surface for services, industries, team, reviews
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;                       /* equal height inside a 1fr grid */
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow   var(--dur-base) var(--ease-out);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: var(--c-surface); }
}
.card:hover { border-color: var(--a-amber-35); box-shadow: var(--sh-3); }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;                            /* fills the card, pins the footer */
  padding: var(--s-5);
  gap: var(--s-3);
}

.card__title { font-size: var(--fs-h3); }

.card__text {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  margin: 0;
}

.card__foot { margin-top: auto; padding-top: var(--s-3); }

/* Specular highlight that tracks the pointer on tilt cards */
.card--tilt { transform-style: preserve-3d; will-change: auto; }
.card--tilt .card__spec {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    var(--a-amber-10), transparent 62%);
  transition: opacity var(--dur-base) var(--ease-out);
}
.card--tilt:hover .card__spec { opacity: 1; }

/* Perspective wrapper — parent of any .card--tilt */
.tilt-scene { perspective: 1200px; }

/* ==========================================================================
   SERVICE CARD
   ========================================================================== */
.service-card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  background: var(--a-amber-10);
  border: 1px solid var(--a-amber-20);
  color: var(--c-amber);
  margin-bottom: var(--s-2);
}
.service-card__icon svg { width: 26px; height: 26px; }

/* Machined index number, top-right.
   On the dark theme this was a faint ghost numeral. At the same weight on a
   white card it measured 1.54:1 — too faint to read and a contrast failure —
   so it now uses the muted ink token (5.3:1) and reads as a spec label. */
.service-card__index {
  position: absolute;
  top: var(--s-4); right: var(--s-5);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  letter-spacing: .1em;
}

/* ==========================================================================
   STAT / TRUST STRIP
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--a-ink-08);
  border: 1px solid var(--a-ink-08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  padding: var(--s-5) var(--s-4);
  background: var(--c-surface);
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--c-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num sup { font-size: .5em; color: var(--c-amber); vertical-align: super; }
.stat__label {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.tab {
  min-height: 44px;
  padding: 10px 18px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-soft);
  background: var(--a-ink-04);
  border: 1px solid var(--a-ink-12);
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.tab:hover { color: var(--c-text); border-color: var(--a-ink-20); }
.tab[aria-selected="true"] {
  background: var(--c-amber);
  border-color: var(--c-amber);
  color: var(--c-on-amber);
  font-weight: 700;
}

.review-card__head { display: flex; align-items: center; gap: var(--s-3); }

.review-card__avatar {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-border);
  color: var(--c-text);
  font-family: var(--f-display);
  font-weight: 700;
  border: 1px solid var(--a-ink-12);
}
.review-card__name { font-family: var(--f-display); font-weight: 600; color: var(--c-text); font-size: var(--fs-body); }
.review-card__meta { font-size: var(--fs-xs); color: var(--c-text-muted); }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; color: var(--c-amber); }
.stars svg[data-filled="false"] { color: var(--c-border-strong); }

.review-card__text { font-size: var(--fs-sm); color: var(--c-text-soft); }
.review-card__text--empty { color: var(--c-text-muted); font-style: italic; }

.review-card__response {
  padding: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  background: var(--a-ink-04);
  border-left: 2px solid var(--c-amber);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.review-card__response strong { color: var(--c-text); display: block; margin-bottom: 4px; }

/* Clamp keeps every card the same height regardless of review length */
.clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
.review-card__source svg { width: 14px; height: 14px; }

/* Aggregate block */
.aggregate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-5);
  background: var(--a-ink-04);
  border: 1px solid var(--a-ink-08);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-6);
}
.aggregate__score {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.aggregate__note { font-size: var(--fs-sm); color: var(--c-text-muted); }

/* Empty / pending state — honest, not a fake placeholder */
.reviews__pending {
  padding: var(--s-6);
  text-align: center;
  border: 1px dashed var(--a-ink-20);
  border-radius: var(--r-lg);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}

/* ==========================================================================
   TEAM CARDS — equal size, clamped bio, Read more opens a modal.
   The full bio is pre-rendered in the DOM (hidden) so crawlers index it.
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: 1fr;                /* every row the same height */
  gap: var(--s-5);
}

.team-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;                /* photo never varies */
  width: 100%;
  overflow: hidden;
  background: var(--c-border);
}
.team-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card:hover .team-card__photo img { transform: scale(1.04); }

/* Gradient scrim so the name stays legible over any photo */
.team-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,21,27,.10) 0%, transparent 42%);
}

.team-card__role {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--c-amber-text);
}
.team-card__name { font-size: 1.15rem; }

/* Monogram plate for a team member with no photograph — keeps the card the
   same shape as its neighbours instead of collapsing the image slot. */
.team-card__monogram {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--c-amber);
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, var(--a-amber-10), transparent 70%),
    repeating-linear-gradient(135deg, transparent 0 9px, var(--a-ink-04) 9px 10px),
    var(--c-surface-2);
}

/* Full write-up lives here, hidden but present in the DOM for SEO */
.team-card__full { display: none; }

/* ==========================================================================
   MODAL — shared by team bios and the demo popup
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(15,21,27,.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.modal[data-open="true"] { opacity: 1; visibility: visible; }

.modal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(84svh, 760px);
  overflow-y: auto;
  padding: var(--s-6);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  transform: scale(.94);
  transition: transform var(--dur-base) var(--ease-spring);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .modal__panel { background: var(--glass-solid); }
}
.modal[data-open="true"] .modal__panel { transform: scale(1); }

.modal__close {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: var(--a-ink-06);
  border: 1px solid var(--a-ink-12);
  border-radius: var(--r-md);
  color: var(--c-text);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.modal__close:hover { background: var(--a-ink-12); }
.modal__close svg { width: 18px; height: 18px; }

.modal__head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); padding-right: 52px; }
.modal__avatar { width: 72px; height: 72px; flex: none; border-radius: var(--r-md); object-fit: cover; background: var(--c-border); }
.modal__body p + p { margin-top: var(--s-4); }

/* ---- Demo popup specifics ---------------------------------------------- */
.popup__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px;
  margin-bottom: var(--s-4);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-amber-text);
  background: var(--a-amber-10);
  border: 1px solid var(--a-amber-20);
  border-radius: var(--r-pill);
}
.popup__title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: var(--s-4); }
.popup__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* Countdown pills */
.popup__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--a-ink-08);
}
.popup__stat { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--c-text-muted); }
.popup__stat b { color: var(--c-text); font-size: var(--fs-sm); }

/* ==========================================================================
   FORM
   ========================================================================== */
.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; gap: var(--s-4); }

.field { display: grid; gap: 7px; }

.field__label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text);
}
.field__label .req { color: var(--c-amber-text); }

.field__hint { font-size: var(--fs-xs); color: var(--c-text-muted); }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  font-size: var(--fs-body);      /* 16px — stops iOS zoom-on-focus */
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1px solid var(--a-ink-12);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow   var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.6; }

.input::placeholder, .textarea::placeholder { color: var(--c-text-muted); }

.input:hover, .select:hover, .textarea:hover { border-color: var(--a-ink-20); }

.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  border-color: var(--c-amber);
  background: var(--c-surface);
  box-shadow: 0 0 0 3px var(--a-amber-20);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A4ADB6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.select option { background: var(--c-surface); color: var(--c-text); }

/* File input */
.filefield {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: 11px 15px;
  background: var(--c-surface-2);
  border: 1px dashed var(--a-ink-20);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.filefield:hover { border-color: var(--c-amber); }
.filefield input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filefield svg { width: 18px; height: 18px; color: var(--c-amber-text); flex: none; }
.filefield__text { font-size: var(--fs-sm); color: var(--c-text-muted); }

/* Checkbox */
.checkfield { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; }
.checkfield input {
  width: 20px; height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--c-amber);
  cursor: pointer;
}
.checkfield span { font-size: var(--fs-sm); color: var(--c-text-soft); }

/* Error state — colour is never the only indicator; text is always present */
.field[data-invalid="true"] .input,
.field[data-invalid="true"] .select,
.field[data-invalid="true"] .textarea {
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.14);
}
.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--c-red);
}
.field__error svg { width: 14px; height: 14px; flex: none; }
.field[data-invalid="true"] .field__error { display: flex; }

/* Honeypot — off-screen, never display:none (bots skip hidden fields) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  padding: var(--s-4);
  font-size: var(--fs-sm);
  border-radius: var(--r-md);
  border: 1px solid transparent;
}
.form__status:empty { display: none; }
.form__status[data-type="error"]   { color: var(--c-red);   background: rgba(192,57,43,.07);  border-color: rgba(192,57,43,.30); }
.form__status[data-type="success"] { color: var(--c-green); background: rgba(23,114,69,.07);  border-color: rgba(23,114,69,.30); }

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumb { padding-block: var(--s-5) 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); }
.breadcrumb li { display: flex; align-items: center; gap: var(--s-2); color: var(--c-text-muted); }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--a-ink-20); }
.breadcrumb a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-amber-text); }
.breadcrumb [aria-current="page"] { color: var(--c-text-soft); }

/* ==========================================================================
   MOBILE STICKY ACTION BAR
   ========================================================================== */
.mobilebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-mobilebar);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  background: var(--glass-bg-2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--a-ink-12);
  transform: translateY(110%);
  transition: transform var(--dur-base) var(--ease-out);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobilebar { background: var(--glass-solid); }
}
.mobilebar[data-visible="true"] { transform: translateY(0); }

.mobilebar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 50px;
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-md);
}
.mobilebar__btn svg { width: 19px; height: 19px; flex: none; }
.mobilebar__btn--call {
  background: linear-gradient(180deg, var(--c-amber), var(--c-amber-deep));
  color: var(--c-on-amber);
  box-shadow: var(--sh-amber);
}
.mobilebar__btn--wa { background: var(--c-whatsapp); color: #fff; box-shadow: var(--sh-2); }

/* Amber pulse on the call button */
.mobilebar__btn--call::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--a-amber-35);
  animation: pulse-ring 2.6s var(--ease-out) infinite;
}
.mobilebar__btn { position: relative; overflow: hidden; }

/* Body padding so the bar never covers the footer */
body[data-mobilebar="true"] { padding-bottom: 78px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  margin-top: var(--section-y);
  background: linear-gradient(180deg, transparent, var(--a-ink-04));
  border-top: 1px solid var(--a-ink-08);
}
.footer__grid {
  display: grid;
  gap: var(--s-7);
  padding-block: var(--s-8) var(--s-7);
}
.footer__logo { height: 40px; width: auto; margin-bottom: var(--s-4); }
.footer__about { font-size: var(--fs-sm); max-width: 34ch; }

.footer__title {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: var(--s-4);
}
.footer__list { display: grid; gap: 10px; }
.footer__list a {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__list a:hover { color: var(--c-amber-text); }

.footer__nap { font-size: var(--fs-sm); display: grid; gap: var(--s-3); }
.footer__nap a { color: var(--c-text-muted); text-decoration: none; }
.footer__nap a:hover { color: var(--c-amber-text); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid var(--a-ink-08);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
.footer__credit a {
  color: var(--c-amber-text);
  text-decoration: none;
  font-weight: 500;
}
.footer__credit a:hover { color: var(--c-text); text-decoration: underline; }
.footer__legal { display: flex; gap: var(--s-4); }
.footer__legal a { color: var(--c-text-muted); text-decoration: none; }
.footer__legal a:hover { color: var(--c-amber-text); }
