/* =====================================================================
   ADWstudio — style.css
   ---------------------------------------------------------------------
   01  Design tokens
   02  Reset & base
   03  Typography & utilities
   04  Buttons (sheen)
   05  Sticky navigation (glass) + mobile menu
   06  Hero + "live build" browser mock
   07  Services
   08  Our work (projects + empty state)
   09  Process (5 steps)
   10  Pricing (removed in v2)
   11  About
   12  Testimonials
   13  FAQ accordion
   14  CTA strip (single dark moment)
   15  Contact & inquiry form
   16  Footer
   17  Subpages (privacy, 404)
   18  Motion & reveal
   19  Reduced motion
   ===================================================================== */

/* ============ 01 Design tokens ============ */
:root {
  --paper:      #FFFFFF;   /* main background */
  --paper-2:    #F6F8FB;   /* alternate section background, cool tint */
  --ink:        #0B1220;   /* primary text — near-black with blue undertone */
  --ink-2:      #49546B;   /* secondary text */
  --line:       #E4E9F4;   /* hairline borders */
  --blue:       #1A54F4;   /* signature electric cobalt */
  --blue-deep:  #0B33C9;   /* gradient partner / hover */
  --blue-ghost: #EAF0FF;   /* tinted chips, icon backgrounds */
  --glow:       rgba(26, 84, 244, 0.22);
  --error:      #C43D3D;

  --shadow-card:  0 12px 32px rgba(11, 51, 201, 0.08);
  --shadow-hover: 0 18px 44px rgba(11, 51, 201, 0.14);

  --h1: clamp(2.4rem, 5.5vw, 4.2rem);
  --h2: clamp(1.8rem, 3.5vw, 2.6rem);
  --h3: 1.25rem;
  --body: 1.0625rem;
  --small: 0.875rem;

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;

  --container: 1160px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ 02 Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blue); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

/* the hidden attribute must win over any component display value */
[hidden] { display: none !important; }

a { color: var(--blue); }

ul[class], ol[class] { list-style: none; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
h1 { font-size: var(--h1); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: var(--h3); line-height: 1.3; font-weight: 700; }

section[id], footer[id] { scroll-margin-top: 96px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ============ 03 Typography & utilities ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--paper-2); }

.eyebrow {
  font: 600 0.8125rem var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .lead { margin-top: 16px; color: var(--ink-2); font-size: 1.1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px; top: 16px;
  z-index: 300;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--blue);
  border-radius: 12px;
  padding: 12px 18px;
  font: 600 0.95rem var(--font-body);
  text-decoration: none;
}
.skip-link:focus-visible { left: 16px; }

.icon { width: 24px; height: 24px; flex: none; }

/* ============ 04 Buttons ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 0;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 8px 20px var(--glow);
}
/* diagonal sheen sweep */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px var(--glow); }
.btn-primary:hover::after { left: 125%; }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--blue); transform: translateY(-1px); }

/* ============ 05 Sticky navigation ============ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(11, 51, 201, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  font: 800 1.35rem var(--font-display);
  letter-spacing: -0.02em;
  text-decoration: none;
  height: 32px;                 /* fixed slot for a future logo file */
  display: inline-flex;
  align-items: center;
}
.brand-logo { display: inline-flex; align-items: baseline; font: 800 1.35rem/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.brand-logo .bl-adw {
  background: linear-gradient(90deg, #0B33C9, #1A54F4 55%, #2E6BFF);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.brand-logo .bl-studio { color: var(--ink); margin-left: 0.04em; }
.brand-logo::after {                 /* small blue rounded-square dot */
  content: ""; display: inline-block;
  width: 0.3em; height: 0.3em; border-radius: 0.09em;
  background: var(--blue); margin-left: 0.16em; transform: translateY(-0.02em);
}
/* white "studio" variant if the logo is ever placed on a dark background */
.brand-logo--on-dark .bl-studio { color: #fff; }

.nav-links { display: flex; align-items: center; position: relative; }
.nav-list { display: flex; align-items: center; gap: 26px; }

.nav-link {
  position: relative;
  display: inline-block;
  font: 500 0.95rem var(--font-body);
  color: var(--ink);
  text-decoration: none;
  padding: 12px 2px;
}
.nav-link::after {                    /* hover underline grow */
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 6px;
  height: 2px;
  background: var(--glow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--blue); }

/* scroll-spy underline slides between links (desktop only) */
.nav-underline {
  position: absolute;
  bottom: 4px; left: 0;
  height: 2px; width: 0;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), width 0.3s var(--ease);
  pointer-events: none;
}

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions .btn { min-height: 44px; padding: 10px 20px; font-size: 0.95rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.9rem var(--font-body);
}
.lang-switch .lang-current { font-weight: 700; color: var(--ink); }
.lang-switch .lang-sep { color: var(--line); }
.lang-switch .lang-link { color: var(--ink-2); text-decoration: none; padding: 8px 2px; }
.lang-switch .lang-link:hover { color: var(--blue); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-mobile-extras { display: none; }

@media (max-width: 899px) {
  .nav-burger { display: flex; }
  .nav-actions .btn, .nav-actions .lang-switch { display: none; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    padding: 96px var(--pad) 48px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  body.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }

  .nav-list { flex-direction: column; gap: 6px; }
  .nav-link {
    font: 700 1.5rem var(--font-display);
    padding: 12px 16px;
  }
  .nav-underline { display: none; }

  .nav-mobile-extras {
    display: grid;
    gap: 20px;
    justify-items: center;
    margin-top: 32px;
  }
  body.menu-open .nav-mobile-extras .lang-switch { display: inline-flex; }

  /* staggered link fade-in */
  body.menu-open .nav-list li,
  body.menu-open .nav-mobile-extras > * {
    animation: fadeUp 0.4s var(--ease) both;
  }
  body.menu-open .nav-list li:nth-child(1) { animation-delay: 0.05s; }
  body.menu-open .nav-list li:nth-child(2) { animation-delay: 0.10s; }
  body.menu-open .nav-list li:nth-child(3) { animation-delay: 0.15s; }
  body.menu-open .nav-list li:nth-child(4) { animation-delay: 0.20s; }
  body.menu-open .nav-list li:nth-child(5) { animation-delay: 0.25s; }
  body.menu-open .nav-mobile-extras > *:nth-child(1) { animation-delay: 0.30s; }
  body.menu-open .nav-mobile-extras > *:nth-child(2) { animation-delay: 0.35s; }

  body.menu-open { overflow: hidden; }
  body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ 06 Hero + browser mock ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(136px, 20vh, 190px) 0 clamp(72px, 9vw, 120px);
}
.hero-beam {
  position: absolute;
  top: -22%; right: -12%;
  width: min(75vw, 920px);
  height: min(75vw, 920px);
  background: radial-gradient(circle at center, var(--glow), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 11fr 9fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.hero .hl {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 20px var(--glow));
}
.hero-sub {
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 1.15rem;
  max-width: 34em;
}
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--ink-2);
  font-size: var(--small);
}

/* browser mock */
.mock-window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFFFF, #FAFBFE);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-url {
  flex: 1;
  margin-left: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--ink-2);
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-body { padding: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 40px); }
.mock-label { font-size: var(--small); color: var(--ink-2); margin-bottom: 10px; }
.mock-type {
  font: 700 clamp(1.45rem, 2.6vw, 2.05rem)/1.25 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  min-height: 2.6em;               /* reserve space → no layout shift while typing */
}
.type-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--blue);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mock { max-width: 560px; }
}

/* ============ 07 Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1099px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 619px)  { .services-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 84, 244, 0.35);
  box-shadow: var(--shadow-hover);
}

.service-card {
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.icon-tile {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-ghost);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.badge {
  position: absolute;
  top: 22px; right: 20px;
  background: var(--blue-ghost);
  color: var(--blue);
  font: 600 0.75rem var(--font-body);
  padding: 4px 10px;
  border-radius: 999px;
}
.service-desc { color: var(--ink-2); font-size: 0.95rem; }

.check-list { display: grid; gap: 8px; font-size: var(--small); color: var(--ink-2); }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }
.check-list .icon { width: 16px; height: 16px; color: var(--blue); margin-top: 4px; }

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  font: 600 0.95rem var(--font-body);
  color: var(--blue);
  text-decoration: none;
}
.card-link .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card-link:hover .icon { transform: translateX(4px); }

/* ============ 08 Our work ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1023px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .work-grid { grid-template-columns: 1fr; } }

.project-card {
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-body { position: relative; padding: 20px 52px 22px 20px; display: grid; gap: 8px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--blue-ghost);
  color: var(--blue);
  font: 600 0.72rem var(--font-body);
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
}
.project-blurb { color: var(--ink-2); font-size: 0.95rem; }
.project-arrow {
  position: absolute;
  top: 22px; right: 20px;
  color: var(--blue);
  transition: transform 0.25s var(--ease);
}
.project-card:hover .project-arrow { transform: translateX(4px); }

/* empty state — ghost cards behind a centered panel */
.work-empty {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(70vw, 420px);
}
.ghost-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  z-index: 0;
}
@media (max-width: 899px) {
  .ghost-grid { grid-template-columns: repeat(2, 1fr); }
  .ghost-card:nth-child(3) { display: none; }
}
@media (max-width: 599px) {
  .ghost-grid { grid-template-columns: 1fr; }
  .ghost-card:nth-child(2) { display: none; }
}
.ghost-card {
  border: 1px solid rgba(26, 84, 244, 0.16);
  border-radius: 16px;
  /* static shimmer highlight — no animation loop */
  background: linear-gradient(135deg, var(--paper-2) 0%, #FFFFFF 45%, var(--paper-2) 62%);
  display: grid;
  place-items: center;
  color: rgba(26, 84, 244, 0.35);
}
.empty-panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 36px);
  max-width: 470px;
  margin: 0 var(--pad);
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.empty-panel p { color: var(--ink-2); font-size: 0.95rem; }

/* ============ 09 Process ============ */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 24px; left: 7%; right: 7%;
  height: 1px;
  background: var(--line);
}
.step { position: relative; display: grid; gap: 10px; justify-items: start; }
.step-num {
  position: relative;
  z-index: 1;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue-ghost);
  color: var(--blue);
  display: grid;
  place-items: center;
  font: 700 1.05rem var(--font-display);
  box-shadow: 0 0 0 8px var(--paper-2);   /* masks the connecting line */
}
.step h3 { font-size: 1.1rem; margin-top: 6px; }
.step p { color: var(--ink-2); font-size: 0.92rem; }

.process-note { margin-top: clamp(32px, 5vw, 48px); color: var(--ink-2); font-size: var(--small); }

@media (max-width: 899px) {
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-grid::before {
    top: 8px; bottom: 8px;
    left: 24px; right: auto;
    width: 1px; height: auto;
  }
  .step {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 4px;
  }
  .step .step-num { grid-row: 1 / 3; }
  .step h3 { margin-top: 10px; }
  .step p, .step h3 { grid-column: 2; }
}

/* ============ 10 Pricing — removed in v2 (replaced by the #estimate teaser; see v2 block at end) ============ */

/* ============ 11 About ============ */
.about-copy { max-width: 720px; display: grid; gap: 16px; }
.about-copy p { color: var(--ink-2); font-size: 1.1rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(36px, 5vw, 56px);
}
@media (max-width: 899px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { padding: 26px 24px; display: grid; gap: 10px; justify-items: start; }
.value-card p { color: var(--ink-2); font-size: 0.95rem; }

/* ============ 12 Testimonials ============ */
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1023px) { .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .t-grid { grid-template-columns: 1fr; } }
.t-card { padding: 26px 24px; display: grid; gap: 16px; align-content: start; }
.t-card blockquote p { color: var(--ink); font-size: 1rem; }
.t-card blockquote p::before { content: "\201E"; color: var(--blue); }
.t-card blockquote p::after { content: "\201C"; color: var(--blue); }
.t-card figcaption { display: grid; font-size: var(--small); }
.t-card .t-author { font-weight: 600; color: var(--ink); }
.t-card .t-role { color: var(--ink-2); }

/* ============ 13 FAQ ============ */
.faq-list { max-width: 780px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  font: 600 1.05rem var(--font-body);
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-icon {
  color: var(--blue);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { overflow: hidden; transition: height 0.3s ease; }
.faq-body p {
  padding: 0 40px 22px 4px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ============ 14 CTA strip ============ */
.cta-strip { background: var(--ink); padding: clamp(44px, 6vw, 68px) 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  flex-wrap: wrap;
  text-align: center;
}
.cta-title {
  font: 700 clamp(1.4rem, 2.6vw, 1.9rem) var(--font-display);
  letter-spacing: -0.01em;
  color: #fff;
}

/* ============ 15 Contact & form ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-pitch > p { color: var(--ink-2); margin-top: 16px; max-width: 34em; }
.contact-rows { display: grid; gap: 6px; margin-top: 28px; justify-items: start; }
.contact-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.contact-row:hover { color: var(--blue); }
.contact-row .icon { color: var(--blue); width: 20px; height: 20px; }
.contact-note { margin-top: 20px; color: var(--ink-2); font-size: var(--small); }

.inquiry-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.5vw, 36px);
}

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font: 500 0.9rem var(--font-body);
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: 400 1rem var(--font-body);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2349546B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.form-field select:required:invalid { color: var(--ink-2); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--glow);
}
.form-field .is-invalid { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--small); margin-top: 6px; }

.form-submit { width: 100%; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-note { margin-top: 14px; font-size: var(--small); color: var(--ink-2); }
.form-error { margin-top: 14px; font-size: var(--small); color: var(--error); }
.form-error a { color: var(--error); font-weight: 600; }

.form-success {
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 28px 8px;
}
.form-success p { color: var(--ink-2); max-width: 34em; }
.success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-ghost);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.success-check .icon { width: 30px; height: 30px; }
.form-success.show .success-check { animation: pop 0.45s var(--ease) both; }
@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ============ 16 Footer ============ */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 7vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-col .brand { margin-bottom: 12px; }
.footer-tagline { font-weight: 600; color: var(--ink); }
.footer-meta { margin-top: 10px; color: var(--ink-2); font-size: var(--small); max-width: 30em; }

.footer-heading {
  font: 600 0.8125rem var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.footer-nav { display: grid; gap: 8px; justify-items: start; }
.footer-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 2px 0;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--blue); }

.footer-contact { display: grid; gap: 10px; justify-items: start; }
.footer-contact .contact-row { padding: 2px 0; font-size: 0.95rem; }

.footer-bottom {
  margin-top: clamp(40px, 6vw, 56px);
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: var(--small);
  color: var(--ink-2);
}
.footer-bottom a { color: var(--ink-2); }
.footer-bottom a:hover { color: var(--blue); }

/* ============ 17 Subpages (privacy, 404) ============ */
.subpage-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.subpage-nav .nav-inner { height: 64px; }
.back-link {
  color: var(--ink-2);
  text-decoration: none;
  font: 500 0.95rem var(--font-body);
  padding: 10px 0;
}
.back-link:hover { color: var(--blue); }

.legal { padding: clamp(56px, 8vw, 88px) 0; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: var(--h2); margin-bottom: 12px; }
.legal .legal-intro { color: var(--ink-2); margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; margin: 8px 0; }

.subpage-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 20px 0;
}
.subpage-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: var(--small);
  color: var(--ink-2);
}
.subpage-footer a { color: var(--ink-2); }
.subpage-footer a:hover { color: var(--blue); }

.page-404 {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(72px, 12vw, 128px) 0;
}
.code-404 {
  font: 800 clamp(5rem, 16vw, 9rem)/1 var(--font-display);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.page-404 h1 { margin-top: 8px; font-size: var(--h2); }
.page-404 .sub-404 { margin-top: 10px; color: var(--ink-2); }
.ctas-404 { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.lang-404 { margin-top: 24px; font-size: var(--small); }

/* ============ 18 Motion & reveal ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* hero load stagger (pure CSS — runs with or without JS) */
.hero .anim { animation: fadeUp 0.55s var(--ease) both; }
.anim.d1 { animation-delay: 0s; }
.anim.d2 { animation-delay: 0.09s; }
.anim.d3 { animation-delay: 0.18s; }
.anim.d4 { animation-delay: 0.27s; }
.anim.d5 { animation-delay: 0.36s; }
.anim.d6 { animation-delay: 0.45s; }

/* scroll reveal — hidden state only when JS is present (html.js) */
html.js [data-reveal],
html.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
html.js [data-reveal].is-revealed,
html.js [data-reveal-group].is-revealed > * {
  opacity: 1;
  transform: none;
}

/* ============ 19 Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero .anim { animation: none; }
  .type-caret { animation: none; }
  html.js [data-reveal],
  html.js [data-reveal-group] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================================================
   v2 ADDITIONS — #estimate configurator teaser + simplified #contact
   (the inquiry wizard itself lives in assets/css/inquiry.css)
   ===================================================================== */
.estimate-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(24px, 4vw, 36px);
}
.estimate-head { margin: 0 auto; max-width: 640px; }

.estimate-visual { width: 100%; display: flex; justify-content: center; }
.estimate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: 600 0.9rem var(--font-body);
  color: var(--ink-2);
}
.mini-chip svg { width: 13px; height: 13px; }
.mini-chip.is-selected {
  padding: 9px 17px;
  border: 2px solid var(--blue);
  background: var(--blue-ghost);
  color: var(--blue);
}

.estimate-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  color: var(--ink-2);
  font-size: var(--small);
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.contact-cta-card {
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
}
.contact-cta-card p { color: var(--ink-2); }
.contact-cta-card .btn { width: 100%; margin-top: 10px; }

/* =====================================================================
   v8 MOBILE REDESIGN (homepage) — EVERYTHING below lives at ≤767px only,
   plus one desktop-neutral base rule for the JS-injected carousel dots.
   Desktop (≥768px) renders bit-for-bit identical: no rule above changes.
   ===================================================================== */

/* dots are injected by main.js; invisible everywhere except mobile */
.carousel-dots { display: none; }

@media (max-width: 767px) {

  /* ---- 1) Compact hero (~one viewport) ---- */
  .hero { padding: 92px 0 44px; }
  .hero-grid { gap: 22px; }
  .hero h1 { font-size: 2.05rem; line-height: 1.1; }
  .hero-sub { font-size: 1rem; margin-top: 12px; }
  .hero-ctas { margin-top: 18px; gap: 10px; }
  .hero-ctas .btn { padding: 12px 20px; min-height: 46px; font-size: 0.95rem; }
  .hero-trust { margin-top: 14px; font-size: 0.8rem; }
  .hero-beam, .care-beam { will-change: transform; }
  .mock-bar { padding: 9px 12px; }
  .mock-body { padding: 20px 18px; }
  .mock-label { margin-bottom: 6px; font-size: 0.78rem; }
  .mock-type { font-size: 1.15rem; min-height: 1.5em; }

  /* ---- 2) Tighter section rhythm ---- */
  h2 { font-size: 1.6rem; }
  .section { padding: 46px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head .lead { font-size: 0.98rem; margin-top: 10px; }
  .eyebrow { margin-bottom: 10px; }
  .estimate-inner { gap: 18px; }
  .about-copy { gap: 12px; }
  .about-copy p { font-size: 1rem; }
  .process-note { margin-top: 22px; font-size: 0.8rem; }
  .fine-print { margin-top: 12px; }
  .cta-strip { padding: 34px 0; }
  .contact-grid { gap: 26px; }
  .contact-rows { margin-top: 18px; }
  .site-footer { padding-top: 34px; }
  .footer-grid { gap: 22px; }
  .footer-bottom { margin-top: 26px; padding: 16px 0; }
  .work-empty { min-height: 300px; }

  /* ---- 3) Card rows → horizontal peek-scroll carousels ----
     The existing grids become the snap tracks; they bleed edge-to-edge
     (negative margin + matching padding) so the next card peeks. */
  .services-grid, .process-grid, .values-grid, .work-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--pad));
    padding-left: var(--pad);
    padding-right: var(--pad);
    scroll-padding-left: var(--pad);
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar, .process-grid::-webkit-scrollbar,
  .values-grid::-webkit-scrollbar, .work-grid::-webkit-scrollbar { display: none; }

  .services-grid > *, .process-grid > *, .values-grid > *, .work-grid > * {
    flex: 0 0 82%;
    max-width: 330px;
    scroll-snap-align: start;
  }

  /* process steps become cards inside the track (rail removed on mobile) */
  .process-grid::before { display: none; }
  .process-grid .step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 18px 16px;
  }
  .process-grid .step-num { box-shadow: none; width: 42px; height: 42px; }
  .process-grid .step h3 { margin-top: 4px; }

  /* visible dots under each track */
  .carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 4px;
  }
  .carousel-dots button {
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .carousel-dots button::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
    transition: background 0.2s ease, transform 0.2s var(--ease);
  }
  .carousel-dots button.is-active::before {
    background: var(--blue);
    transform: scale(1.35);
  }

  /* ---- 4) Richer reveals (fade-up + subtle depth, snappy) ---- */
  html.js [data-reveal],
  html.js [data-reveal-group] > * {
    transform: translateY(18px) scale(0.985);
    transition-duration: 0.38s;
  }
  html.js [data-reveal].is-revealed,
  html.js [data-reveal-group].is-revealed > * {
    transform: none;
  }
}

/* mobile motion also fully respects reduced motion (belt & braces —
   the global reduced-motion block above already zeroes durations) */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-reveal-group] > * { transform: none; transition: none; }
  .carousel-dots button::before { transition: none; }
}

/* Legal/subpage nav has no burger menu — keep its language switcher visible
   on mobile (the ≤899px hide rule above is meant for the homepage nav only). */
@media (max-width: 899px) {
  .subpage-nav .nav-actions .lang-switch { display: inline-flex; }
  .subpage-nav .nav-actions { gap: 12px; }
}
