/* =========================================================
   PSICOMED — Centre de Reconeixement de Conductors
   styles.css — mobile-first, autocontenido
   ========================================================= */

/* ---------- LEGAL PAGES ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 20px 96px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.legal .legal__updated { color: var(--ink-3); font-size: 14px; font-weight: 500; margin-bottom: 32px; display: block; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; color: var(--brand-indigo); }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { padding-left: 22px; margin: 8px 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand-indigo); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-indigo); font-weight: 600; margin-bottom: 24px; }
.legal__back:hover { text-decoration: underline; }
.legal__placeholder { background: #fff7e6; padding: 2px 8px; border-radius: 6px; font-family: var(--font-mono); font-size: 14px; color: #8a5a00; border: 1px dashed #e0b454; }

/* ---------- TOKENS ---------- */
:root {
  /* Brand palette derived from the logo */
  --brand-indigo: #3a2c8e;       /* logo wordmark */
  --brand-indigo-dark: #2a1f6b;
  --brand-orange: #f08027;       /* logo underline / CTA */
  --brand-orange-dark: #d96d18;

  /* Trust + medical */
  --trust-blue: #1e5fa8;

  /* Neutrals — warm whites */
  --bg: #ffffff;
  --bg-warm: #faf7f2;            /* reflects clinic walls */
  --bg-soft: #f3eee6;
  --line: #e8e2d6;
  --line-strong: #cfc7b6;

  /* Text */
  --ink: #1b1a1f;
  --ink-2: #46444f;
  --ink-3: #6e6b78;

  /* Status */
  --open: #1f7a4d;
  --open-soft: #e6f3ec;

  /* Type */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-1: 0 1px 2px rgba(20,17,40,.04), 0 2px 8px rgba(20,17,40,.04);
  --shadow-2: 0 4px 14px rgba(20,17,40,.08), 0 14px 40px rgba(20,17,40,.06);

  --container: 1200px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: none;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
}
.nav__links a:hover { color: var(--brand-indigo); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-orange);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 2px 0 var(--brand-orange-dark);
  transition: transform .15s ease, background .15s ease;
}
.nav__cta:hover { background: var(--brand-orange-dark); transform: translateY(-1px); }
.nav__cta svg { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 32px 0 64px;
  background:
    radial-gradient(1100px 500px at 80% -100px, rgba(58,44,142,.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.hero__eyebrow .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--open);
  box-shadow: 0 0 0 4px var(--open-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px var(--open-soft); }
  50%     { box-shadow: 0 0 0 7px rgba(31,122,77,.18); }
}
.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  margin-top: 18px;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-indigo);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 8px;
  background: var(--brand-orange);
  border-radius: 4px;
  transform: skewX(-8deg);
  opacity: .9;
}
.hero__sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-2);
  max-width: 540px;
}
.hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-2);
}
.hero__benefits span {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
}
.hero__benefits svg { width: 18px; height: 18px; color: var(--trust-blue); }

.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary {
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 2px 0 var(--brand-orange-dark), var(--shadow-1);
}
.btn--primary:hover { background: var(--brand-orange-dark); transform: translateY(-1px); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

.hero__trust {
  margin-top: 36px;
  display: flex; flex-wrap: wrap;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
}
.hero__trust strong { color: var(--ink); font-weight: 700; }

.hero__media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-2);
  background: var(--bg-soft);
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__badge {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-1);
}
.hero__badge .ic {
  width: 36px; height: 36px;
  background: var(--brand-indigo);
  color: #fff;
  border-radius: 10px;
  display: grid; place-items: center;
}
.hero__badge .ic svg { width: 20px; height: 20px; }
.hero__badge b { font-size: 14px; display: block; }
.hero__badge span { font-size: 12px; color: var(--ink-3); }

@media (min-width: 900px) {
  .hero { padding: 48px 0 96px; }
  .hero__grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 56px;
  }
  .hero__media { aspect-ratio: 5/6; }
}

/* ---------- SECTION COMMON ---------- */
.section { padding: 80px 0; scroll-margin-top: 70px; }
.section--warm { background: var(--bg-warm); }
.section--soft { background: var(--bg-soft); }
@media (max-width: 700px) {
  .section { padding: 56px 0; }
}
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-orange);
  font-weight: 600;
  margin-bottom: 14px;
}
.section__title { font-size: clamp(28px, 4.5vw, 44px); }
.section__lede {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 18px;
}

/* ---------- SERVICES (accordions) ---------- */
.services {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}
.acc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.acc:hover { border-color: var(--line-strong); }
.acc.is-open {
  border-color: var(--brand-indigo);
  box-shadow: var(--shadow-2);
}
.acc__head {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 24px;
  text-align: left;
  cursor: pointer;
  background: #fff;
  transition: background .15s ease;
}
.acc__head:hover { background: var(--bg-warm); }
.acc__icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #efeaff 0%, #fff 100%);
  border: 1px solid #e0d8ff;
  color: var(--brand-indigo);
  border-radius: 14px;
  display: grid; place-items: center;
  flex: none;
}
.acc__icon svg { width: 26px; height: 26px; }
.acc__heads {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.acc__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.acc__sub {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 500;
}
.acc__chev {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--brand-indigo);
  display: grid; place-items: center;
  flex: none;
  transition: transform .25s ease, background .15s ease;
}
.acc__chev svg { width: 20px; height: 20px; }
.acc.is-open .acc__chev {
  transform: rotate(180deg);
  background: var(--brand-indigo);
  color: #fff;
}

.acc__panel {
  border-top: 1px solid var(--line);
  background: #fff;
}
.acc__inner {
  padding: 8px 32px 28px;
}

/* --- Item list inside a category --- */
.acc__items {
  display: grid;
}
.acc__item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.acc__items > .acc__item:last-child { border-bottom: 0; }
.acc__item h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 12px;
}
.acc__item > p {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.acc__item > p + p { margin-top: 8px; }

/* --- License/permit code chips --- */
.acc__codes {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.acc__code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  background: #f3f0fb;
  color: var(--brand-indigo);
  border: 1px solid #ddd3f5;
  border-radius: 6px;
  line-height: 1;
}

/* --- Definition list (e.g. armas B/D/E/F/AE/AEM) --- */
.acc__defs {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.acc__defs > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.acc__defs > div:last-child { border-bottom: 0; }
.acc__defs dt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-indigo);
  background: #f3f0fb;
  border: 1px solid #ddd3f5;
  padding: 4px 0;
  border-radius: 6px;
  text-align: center;
  line-height: 1;
}
.acc__defs dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* --- Plain bullet list (e.g. embarcaciones, pesca) --- */
.acc__bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.acc__bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.acc__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-orange);
}

/* --- Subtle note (e.g. 90-day validity) --- */
.acc__note {
  margin: 12px 0 0 !important;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  font-size: 13.5px !important;
  color: var(--ink-3) !important;
  font-style: italic;
  line-height: 1.55 !important;
}

/* --- Documentation block: visually separated from items --- */
.acc__docs {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.acc__docs h5 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-indigo);
  margin: 0 0 16px;
}
.acc__docs h5 svg {
  width: 18px; height: 18px;
  flex: none;
}
.acc__docs dl {
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 0;
}
.acc__docs dl > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.acc__docs dl > div:first-child { padding-top: 0; }
.acc__docs dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 700px) {
  .acc__docs dl > div {
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: baseline;
  }
}
.acc__docs dt {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}
.acc__docs dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.acc__docs-foot {
  margin: 0 !important;
  font-size: 13.5px !important;
  color: var(--ink-3) !important;
  font-style: italic;
  line-height: 1.55 !important;
}

/* --- Call-to-action row at the bottom of each panel --- */
.acc__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.acc__cta .btn { padding: 12px 18px; font-size: 15px; }

@media (max-width: 640px) {
  .acc__head { padding: 18px 18px; gap: 14px; }
  .acc__icon { width: 44px; height: 44px; border-radius: 12px; }
  .acc__icon svg { width: 22px; height: 22px; }
  .acc__title { font-size: 17px; }
  .acc__sub { font-size: 13px; }
  .acc__inner { padding: 4px 20px 20px; }
  .acc__item { padding: 18px 0; }
  .acc__docs { padding: 18px 18px; }
  .acc__defs > div { grid-template-columns: 50px 1fr; gap: 12px; }
}

/* ---------- HOW IT WORKS ---------- */
.steps {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
  .steps::before {
    content: "";
    position: absolute;
    top: 36px; left: 8%; right: 8%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
    z-index: 0;
  }
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px 22px 24px;
  z-index: 1;
}
.step__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-indigo);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 22px;
  font-family: var(--font-mono);
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--bg-warm);
}
.step__icon {
  position: absolute; top: 28px; right: 22px;
  color: var(--brand-indigo);
  opacity: .25;
}
.step__icon svg { width: 38px; height: 38px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* ---------- WHY US ---------- */
.why {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px){ .why { grid-template-columns: repeat(3, 1fr); } }
.why__item {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 18px;
}
.why__item .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-indigo);
  color: #fff;
  display: grid; place-items: center; flex: none;
}
.why__item .ic svg { width: 22px; height: 22px; }
.why__item h4 { font-size: 16px; margin-bottom: 2px; }
.why__item p { font-size: 14px; color: var(--ink-3); }

/* ---------- REVIEWS ---------- */
.reviews {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}
@media (min-width: 720px)  { .reviews { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.review:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.review__stars {
  display: inline-flex;
  gap: 2px;
  color: #f5b400;
}
.review__stars svg { width: 18px; height: 18px; }
.review__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.review__source svg { width: 16px; height: 16px; }
.review__body {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
  position: relative;
}
.review__body::before {
  content: "“";
  position: absolute;
  top: -14px; left: -4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1;
  color: var(--brand-orange);
  opacity: .25;
  pointer-events: none;
}
.review__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.review__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand-indigo);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  flex: none;
}
.review__foot strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}
.review__date {
  font-size: 12.5px;
  color: var(--ink-3);
}
.reviews__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.reviews__cta .btn { padding: 14px 22px; }
.reviews__cta .btn svg { width: 18px; height: 18px; }

/* ---------- LOCATION ---------- */
.loc {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .loc { grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
}
.loc__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  box-shadow: var(--shadow-1);
  height: 100%;
}
.loc__row {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.loc__row:last-child { border: 0; }
.loc__row > div {
  flex: 1;
  min-width: 0;
}
.loc__row .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-warm);
  color: var(--brand-indigo);
  display: grid; place-items: center; flex: none;
  border: 1px solid var(--line);
}
.loc__row .ic svg { width: 22px; height: 22px; }
.loc__row h4 { font-size: 14px; color: var(--ink-3); font-weight: 600; margin-bottom: 4px; letter-spacing: .02em; text-transform: uppercase; }
.loc__row p, .loc__row a { font-size: 17px; font-weight: 600; color: var(--ink); }
.loc__row a:hover { color: var(--brand-indigo); }
.loc__phone { font-size: 26px !important; letter-spacing: -0.01em; }

.loc__phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 2px;
}
.loc__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ink-2) !important;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.loc__chip:hover {
  border-color: var(--brand-indigo);
  background: #fff;
  color: var(--brand-indigo) !important;
}
.loc__chip-label { color: var(--ink-3); font-weight: 600; }
.loc__chip-sep { opacity: 0.55; }
.loc__chip-num { color: var(--ink); font-weight: 700; }
.loc__chip:hover .loc__chip-label,
.loc__chip:hover .loc__chip-num { color: var(--brand-indigo); }

.wa-btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #25d366 0%, #1ebe5a 55%, #128c7e 100%);
  color: #fff !important;
  padding: 13px 18px 13px 13px;
  border-radius: 14px;
  margin-top: 16px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(18, 140, 126, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.loc__card > .wa-btn { margin-top: 22px; }
.wa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}
.wa-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 12px 22px rgba(18, 140, 126, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.wa-btn:active { transform: translateY(0); }
.wa-btn__icon {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.wa-btn__icon svg { width: 22px; height: 22px; }
.wa-btn__text { display: inline-flex; flex-direction: column; line-height: 1.2; flex: 1; }
.wa-btn strong {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.005em;
}
.wa-btn__sub {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 3px;
}
.wa-btn__arrow {
  width: 18px; height: 18px;
  flex: none;
  margin-left: auto;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.wa-btn:hover .wa-btn__arrow { transform: translateX(3px); opacity: 1; }

.openpill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--open-soft);
  color: var(--open);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.openpill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--open);
}
.openpill--closed { background: #fbe9e9; color: #a23434; }
.openpill--closed .dot { background: #a23434; }

.hours { font-size: 15px; color: var(--ink-2); }
.hours div { display: flex; justify-content: space-between; padding: 4px 0; gap: 12px; }
.hours div.is-today { color: var(--brand-orange); font-weight: 700; }

.loc__map {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.loc__map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 400px; }

/* ---------- CONTACT FORM ---------- */
.contact {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
}
.form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-indigo);
  outline: none;
  box-shadow: 0 0 0 4px rgba(58,44,142,.12);
}
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: var(--ink-3);
}
.field textarea { min-height: 110px; resize: vertical; }

/* Custom select: remove OS-native chrome, add chevron */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 46px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a2c8e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}
.field select::-ms-expand { display: none; }
.field select:invalid,
.field select option[value=""][disabled] { color: var(--ink-3); }
.field select option {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  padding: 8px;
}
.form__submit {
  justify-self: start;
  margin-top: 6px;
}
.form__success {
  display: none;
  background: var(--open-soft);
  border: 1px solid #b8dcc6;
  color: var(--open);
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
}
.form__success.is-on { display: block; }

.form__error {
  display: none;
  background: #fdecec;
  border: 1px solid #f1c2c2;
  color: #b32b2b;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
}
.form__error.is-on { display: block; }

.form__submit[disabled] { opacity: .65; cursor: progress; }
.form__hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; height: 0; width: 0; }

.contact__aside {
  background: var(--brand-indigo);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.contact__aside::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--brand-orange) 0%, transparent 70%);
  opacity: .35;
}
.contact__aside h3 { font-size: 22px; margin-bottom: 6px; }
.contact__aside p { color: rgba(255,255,255,.78); font-size: 15px; margin-bottom: 22px; }
.contact__phone {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: #fff;
}
.contact__phone:hover { color: var(--brand-orange); }
.contact__row {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0;
  font-size: 15px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.contact__row svg { width: 20px; height: 20px; flex: none; opacity: .8; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer__grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer__logo {
  display: inline-block;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.footer__logo img { height: 28px; }
.footer h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 13px;
}

/* ---------- FLOATING CALL ---------- */
.floatcall {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  font-size: 0;
  box-shadow: 0 10px 30px rgba(240,128,39,.45), 0 2px 0 var(--brand-orange-dark);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.floatcall:hover { background: var(--brand-orange-dark); transform: translateY(-2px); }
.floatcall svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .floatcall { display: none; } }

/* ---------- COOKIE BANNER ---------- */
.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 70;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  box-shadow: var(--shadow-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 14px;
  transform: translateY(140%);
  transition: transform .35s ease;
}
.cookie.is-on { transform: translateY(0); }
.cookie p { flex: 1; min-width: 220px; color: var(--ink-2); }
.cookie p a { color: var(--brand-indigo); text-decoration: underline; }
.cookie__btns { display: flex; gap: 8px; }
.cookie button {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}
.cookie .ok { background: var(--brand-indigo); color: #fff; }
.cookie .ok:hover { background: var(--brand-indigo-dark); }
.cookie .deny { color: var(--ink-2); }
.cookie .deny:hover { color: var(--ink); }

@media (min-width: 900px) {
  .cookie { left: auto; right: 24px; bottom: 24px; max-width: 440px; }
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- CAROUSEL ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-2);
  aspect-ratio: 3/2;
  max-height: 640px;
  max-width: 960px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 699px) {
  .carousel { aspect-ratio: 4/3; max-width: 100%; }
}
.carousel__viewport {
  position: absolute; inset: 0;
  overflow: hidden;
}
.carousel__track {
  display: flex;
  list-style: none; padding: 0; margin: 0;
  height: 100%;
  transition: transform .65s cubic-bezier(.65,.05,.36,1);
  will-change: transform;
}
.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  display: grid; place-items: center;
  z-index: 3;
  box-shadow: var(--shadow-2);
  transition: background .15s ease, transform .15s ease;
}
.carousel__btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }
@media (max-width: 699px) {
  .carousel__btn { width: 42px; height: 42px; }
  .carousel__btn--prev { left: 10px; }
  .carousel__btn--next { right: 10px; }
}

.carousel__indicators {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  background: rgba(20,17,40,.45);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 999px;
}
.carousel__indicators button {
  width: 24px; height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  transition: background .25s ease, width .25s ease;
}
.carousel__indicators button.is-active {
  background: var(--brand-orange);
  width: 38px;
}
.carousel__indicators button:hover { background: rgba(255,255,255,.75); }

/* Footer social link */
.footer__social {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff;
  font-weight: 600;
}
.footer__social--fb svg { color: #1877f2; }
.footer__social--ig svg { color: #e1306c; }

/* ---------- bottom padding for fixed call btn on mobile ---------- */
@media (max-width: 899px) {
  .footer { padding-bottom: 60px; }
}

/* ---------- Hero CTAs on narrow screens ---------- */
@media (max-width: 600px) {
  .hero__ctas a[href^="tel:"] { display: none; }
  .hero__ctas .btn {
    padding: 13px 18px;
    font-size: 15px;
    gap: 8px;
  }
  .hero__ctas .btn svg { width: 17px; height: 17px; }
}

/* ---------- Fold / very narrow viewports ---------- */
@media (max-width: 480px) {
  /* Allow long unbreakable strings (emails, URLs) to wrap so they don't push the layout off-screen */
  body { overflow-wrap: anywhere; }

  /* Tighter card padding to give content more horizontal room */
  .loc__card { padding: 24px 18px; }
  .loc__row { gap: 12px; padding: 16px 0; }
  .loc__row .ic { width: 36px; height: 36px; border-radius: 9px; }
  .loc__row .ic svg { width: 18px; height: 18px; }

  /* Phone number scales down so it fits in one line without wrapping */
  .loc__phone { font-size: 22px !important; }

  /* Contact aside (purple card) — same treatment */
  .contact__aside { padding: 28px 22px; }
  .contact__phone { font-size: 26px; }

  /* Hero — h1 already uses clamp() so it scales, but keep eyebrow compact */
  .hero__eyebrow { font-size: 12px; padding: 6px 12px 6px 8px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
