/* =====================================================================
   CORTIVA — Neurology Clinic Template
   Style: Cerebral Premium · cool porcelain canvas, indigo ink,
          restrained iris accent, Spectral + Inter, EEG hairline motif.
   Author: reusable commercial template. Edit tokens below to re-skin.
   ===================================================================== */

/* ------------------------------- TOKENS ------------------------------ */
:root {
  /* Palette */
  --ink:        #14162a;   /* headings, primary text            */
  --ink-2:      #20233a;   /* dark surfaces (footer, book)      */
  --ink-soft:   #4c4f66;   /* secondary text                    */
  --ink-mute:   #757993;   /* captions, meta                    */
  --paper:      #f5f5f9;   /* page background (cool porcelain)  */
  --surface:    #ffffff;   /* cards                             */
  --iris:       #5b64c7;   /* primary accent                    */
  --iris-deep:  #3f479e;   /* accent hover / pressed            */
  --iris-2:     #8a90e0;   /* light accent                      */
  --mist:       #e5e6f0;   /* hairlines, borders                */
  --halo:       #eef0fb;   /* tinted fills                      */
  --wa:         #25d366;   /* whatsapp                          */

  /* Type */
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20, 22, 42, .04), 0 6px 18px rgba(20, 22, 42, .05);
  --shadow-md: 0 12px 40px rgba(20, 22, 42, .10);
  --shadow-lg: 0 30px 70px rgba(20, 22, 42, .16);
  --ring: 0 0 0 3px rgba(91, 100, 199, .30);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------- RESET ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; left: 1rem; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --------------------------- SHARED PIECES --------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--iris-deep);
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--iris-2); }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--iris); box-shadow: 0 0 0 4px var(--halo); }
.eyebrow .index {
  font-family: var(--display); font-size: .95rem; font-weight: 600; letter-spacing: normal;
  color: var(--iris); border: 1px solid var(--mist); border-radius: 6px; padding: .05rem .45rem;
}
.eyebrow--light .index { color: var(--iris-2); border-color: rgba(255,255,255,.18); }

.section { padding-block: var(--section-y); }
.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); }
.section__title--light { color: #fff; }
.section__lead { margin-top: 1.1rem; font-size: 1.08rem; color: var(--ink-soft); }

/* ------------------------------ BUTTONS ------------------------------ */
.btn {
  --btn-bg: var(--iris); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--iris); color: #fff; box-shadow: 0 10px 24px rgba(91,100,199,.28); }
.btn--solid:hover { background: var(--iris-deep); box-shadow: 0 14px 30px rgba(63,71,158,.34); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--mist); }
.btn--ghost:hover { border-color: var(--iris); color: var(--iris-deep); }
.btn--wa { background: var(--wa); color: #063d1c; box-shadow: 0 10px 24px rgba(37,211,102,.26); }
.btn--wa:hover { background: #1fbb59; }
.btn--block { width: 100%; }

/* ------------------------------ NAVBAR ------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 245, 249, .82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { border-color: var(--mist); box-shadow: 0 6px 24px rgba(20,22,42,.05); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; color: var(--iris); flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.28rem; color: var(--ink); }
.brand__sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links > a:not(.btn) {
  font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: .2rem 0;
  transition: color .2s var(--ease);
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--iris); transition: width .28s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__links > a.is-active { color: var(--ink); }
.nav__links > a.is-active::after { width: 100%; }
.nav__cta { padding: .6rem 1.15rem; }

.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: 10px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------- HERO ------------------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.15rem); font-weight: 500; letter-spacing: -.02em; }
.hero__title em, .accent { color: var(--iris-deep); font-style: normal; }
.hero__lead { margin-top: 1.4rem; font-size: 1.16rem; max-width: 34ch; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero__trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.4rem; }
.hero__trust li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.hero__trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--halo);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235b64c7' d='M9.6 16.6L5 12l1.4-1.4 3.2 3.2 7.9-7.9L19 7.3z'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center; flex: none; }

.hero__visual { position: relative; }
.hero__img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__badge {
  position: absolute; left: -18px; bottom: 42px;
  background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; max-width: 180px; border: 1px solid var(--mist);
}
.hero__badge-k { font-family: var(--display); font-size: 1.7rem; color: var(--iris-deep); font-weight: 600; }
.hero__badge-l { font-size: .78rem; color: var(--ink-soft); line-height: 1.35; }

.eeg { position: absolute; left: 8%; right: 8%; bottom: -26px; width: 84%; height: 52px; opacity: .5; }
.eeg__line { fill: none; stroke: var(--iris); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: eeg-draw 3.2s var(--ease) .3s forwards; }
@keyframes eeg-draw { to { stroke-dashoffset: 0; } }

/* ------------------------------- STATS ------------------------------- */
.stats { padding-bottom: clamp(2rem, 4vw, 3rem); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--mist);
  border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 1.8rem 1.6rem; text-align: center; }
.stat__num { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; }
.stat__num .suffix { color: var(--iris); }
.stat__label { font-size: .86rem; color: var(--ink-mute); letter-spacing: .02em; margin-top: .3rem; }

/* ------------------------------- ABOUT ------------------------------- */
.about__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about__accredit {
  position: absolute; right: -14px; top: -14px; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-md); max-width: 200px;
}
.about__accredit strong { display: block; font-family: var(--display); font-size: 1.15rem; color: #fff; margin-bottom: .15rem; }
.about__accredit span { font-size: .8rem; color: #c9cbe0; }
.about__text p { margin-top: 1.1rem; }
.about__points { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; gap: .8rem; }
.about__points li { display: flex; gap: .7rem; font-weight: 500; color: var(--ink); }
.about__points li svg { color: var(--iris); flex: none; margin-top: 3px; }

/* ------------------------------ SERVICES ----------------------------- */
.services__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.service {
  background: var(--surface); border: 1px solid var(--mist); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
.service::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--iris); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service:hover::before { transform: scaleY(1); }
.service__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--halo); color: var(--iris-deep);
  display: grid; place-items: center; margin-bottom: 1.2rem; }
.service__icon svg { width: 26px; height: 26px; }
.service__name { font-size: 1.28rem; margin-bottom: .5rem; }
.service__desc { font-size: .96rem; }
.service__tag { display: inline-block; margin-top: 1.1rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--iris-deep); text-transform: uppercase; }

/* ------------------------------ DOCTORS ------------------------------ */
.doctors__tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2.2rem; }
.search { position: relative; flex: 1 1 280px; max-width: 380px; }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-mute); }
.search input {
  width: 100%; padding: .85rem 1rem .85rem 2.7rem; border-radius: 999px;
  border: 1px solid var(--mist); background: var(--surface); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search input:focus { border-color: var(--iris); box-shadow: var(--ring); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--mist); background: var(--surface);
  font-size: .86rem; font-weight: 500; color: var(--ink-soft); transition: all .2s var(--ease); }
.chip:hover { border-color: var(--iris); color: var(--iris-deep); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.doctors__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.doctor { background: var(--surface); border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.doctor:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.doctor__photo { aspect-ratio: 4/4.4; background: var(--halo); position: relative; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor__spec { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  color: var(--iris-deep); font-size: .74rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .02em; }
.doctor__body { padding: 1.3rem 1.4rem 1.5rem; }
.doctor__name { font-size: 1.25rem; margin-bottom: .1rem; }
.doctor__qual { font-size: .82rem; color: var(--iris-deep); font-weight: 600; letter-spacing: .02em; }
.doctor__meta { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .5rem; border-top: 1px solid var(--mist); padding-top: 1rem; }
.doctor__meta li { display: flex; align-items: center; gap: .55rem; font-size: .86rem; color: var(--ink-soft); }
.doctor__meta svg { color: var(--iris); flex: none; }
.doctors__empty { text-align: center; padding: 2rem; color: var(--ink-mute); }

/* ------------------------------- WHY US ------------------------------ */
.why { background: linear-gradient(180deg, var(--paper), #eef0f6); }
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.why__intro .btn { margin-top: 1.8rem; }
.why__list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.why__item { background: var(--surface); border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.5rem; }
.why__item h3 { font-size: 1.12rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .55rem; }
.why__item h3 svg { color: var(--iris); flex: none; }
.why__item p { font-size: .92rem; }

/* ----------------------------- FACILITIES ---------------------------- */
.facilities__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.facility { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--mist);
  border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.facility:hover { border-color: var(--iris); transform: translateY(-3px); }
.facility__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--halo); color: var(--iris-deep); display: grid; place-items: center; flex: none; }
.facility__icon svg { width: 22px; height: 22px; }
.facility span { font-weight: 500; color: var(--ink); font-size: .95rem; }

/* ------------------------------ PROCESS ------------------------------ */
.process__timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.process__timeline::before { content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--mist) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding-top: .3rem; }
.step__dot { width: 54px; height: 54px; border-radius: 50%; background: var(--surface); border: 2px solid var(--iris);
  color: var(--iris-deep); font-family: var(--display); font-weight: 600; font-size: 1.35rem; display: grid; place-items: center;
  margin: 0 auto 1.1rem; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--paper); }
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { font-size: .9rem; }

/* -------------------------- BOOK + WORKING HOURS --------------------- */
.book { background: var(--ink-2); position: relative; overflow: hidden; }
.book::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 15% 0%, rgba(91,100,199,.30), transparent 70%); pointer-events: none; }
.book__grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.book__lead { color: #c5c8e0; margin-top: 1rem; }
.hours { margin-top: 2.2rem; }
.hours__title { color: #fff; font-size: 1.15rem; margin-bottom: .9rem; }
.hours__list { list-style: none; padding: 0; display: grid; gap: .5rem; max-width: 380px; }
.hours__list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.09);
  color: #d5d7ea; font-size: .92rem; }
.hours__list li span:first-child { color: #fff; font-weight: 500; }
.hours__list li.is-closed span:last-child { color: var(--iris-2); }
.book__emergency { margin-top: 2rem; display: flex; flex-direction: column; gap: .2rem; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.1rem 1.3rem; max-width: 380px; }
.book__emergency-l { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--iris-2); }
.book__emergency-n { font-family: var(--display); font-size: 1.5rem; color: #fff; font-weight: 600; }

.book__form-wrap { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field__opt { color: var(--ink-mute); font-weight: 400; }
.field input, .field select, .field textarea {
  padding: .8rem .9rem; border: 1px solid var(--mist); border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--iris); box-shadow: var(--ring); background: #fff; }
.field.has-error input, .field.has-error select { border-color: #d94860; }
.field__error { color: #d94860; font-size: .78rem; margin-top: .35rem; min-height: 0; }
.form__note { font-size: .8rem; color: var(--ink-mute); margin-top: .9rem; text-align: center; }
.form__success { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: #eaf7ef; color: #1c7a45;
  font-size: .92rem; font-weight: 500; text-align: center; border: 1px solid #cdeeda; }

/* ---------------------------- TESTIMONIALS --------------------------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.quote { background: var(--surface); border: 1px solid var(--mist); border-radius: var(--radius); padding: 2rem 1.8rem; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: .3rem; right: 1.3rem; font-family: var(--display); font-size: 4.5rem; color: var(--halo); line-height: 1; }
.quote__stars { color: var(--iris); letter-spacing: .15em; font-size: .95rem; margin-bottom: 1rem; }
.quote__text { font-family: var(--display); font-size: 1.12rem; color: var(--ink); line-height: 1.55; position: relative; z-index: 1; }
.quote__who { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--iris); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; flex: none; }
.quote__name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.quote__role { font-size: .82rem; color: var(--ink-mute); }

/* ------------------------------ GALLERY ------------------------------ */
.gallery__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; gap: 1rem; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(2) { grid-column: span 2; }
.gallery__item:nth-child(3) { grid-column: span 2; }
.gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__item:nth-child(5) { grid-column: span 2; }
.gallery__item:nth-child(6) { grid-column: span 2; }

/* -------------------------------- FAQ -------------------------------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq__head { margin-bottom: 0; }
.accordion { display: grid; gap: .8rem; }
.acc { background: var(--surface); border: 1px solid var(--mist); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .25s var(--ease); }
.acc.is-open { border-color: var(--iris); }
.acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem;
  text-align: left; font-family: var(--display); font-size: 1.08rem; color: var(--ink); font-weight: 500; }
.acc__q .ico { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--mist); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.acc.is-open .acc__q .ico { background: var(--iris); color: #fff; border-color: var(--iris); transform: rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc__a-inner { padding: 0 1.4rem 1.3rem; font-size: .96rem; color: var(--ink-soft); }

/* ------------------------------ CONTACT ------------------------------ */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 3rem); align-items: stretch; }
.contact__list { list-style: none; padding: 0; display: grid; gap: 1.3rem; }
.contact__list li { display: flex; gap: 1rem; }
.contact__ico { width: 46px; height: 46px; border-radius: 13px; background: var(--halo); color: var(--iris-deep); display: grid; place-items: center; flex: none; }
.contact__ico svg { width: 22px; height: 22px; }
.contact__k { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.contact__v { color: var(--ink); font-weight: 500; }
.contact__v a:hover { color: var(--iris-deep); }
.contact__social { margin-top: 2rem; }
.contact__social > span { display: block; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .8rem; }
.social { display: flex; gap: .6rem; }
.social a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--mist); display: grid; place-items: center; color: var(--ink); transition: all .25s var(--ease); }
.social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-3px); }
.social a svg { width: 20px; height: 20px; }

.contact__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map { width: 100%; height: 100%; min-height: 340px; background:
  linear-gradient(120deg, #e9ebf4, #f3f4fa),
  repeating-linear-gradient(0deg, transparent 0 38px, rgba(91,100,199,.06) 38px 39px),
  repeating-linear-gradient(90deg, transparent 0 38px, rgba(91,100,199,.06) 38px 39px);
  display: grid; place-items: center; gap: .6rem; align-content: center; color: var(--iris-deep); }
.map__pin { color: var(--iris); animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.map__label { font-size: .84rem; color: var(--ink-mute); }

/* ------------------------------- FOOTER ------------------------------ */
.footer { background: var(--ink); color: #c4c7dd; padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand .brand__mark { width: 40px; height: 40px; color: var(--iris-2); margin-bottom: 1rem; }
.footer__tag { max-width: 32ch; font-size: .95rem; margin-bottom: 1.4rem; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--sans); font-weight: 600; }
.footer__nav { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a, .footer__contact a { color: #b7bad3; font-size: .95rem; transition: color .2s var(--ease); }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact { display: flex; flex-direction: column; gap: .7rem; }
.footer__contact p { font-size: .95rem; max-width: 28ch; }
.social--footer a { border-color: rgba(255,255,255,.16); color: #fff; }
.social--footer a:hover { background: var(--iris); border-color: var(--iris); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-block: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #9195b3; }
.footer__bottom a { color: var(--iris-2); }
.footer__bottom a:hover { color: #fff; }

/* -------------------------------- FABS ------------------------------- */
.fab { position: fixed; z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.fab--wa { right: 22px; bottom: 22px; background: var(--wa); color: #063d1c; }
.fab--wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.fab--top { right: 22px; bottom: 86px; background: var(--ink); color: #fff; }
.fab:hover { transform: translateY(-4px) scale(1.04); }

/* ---------------------------- SCROLL REVEAL -------------------------- */
.reveal, [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-in, [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, [data-reveal] { opacity: 1; transform: none; }
  .eeg__line { stroke-dashoffset: 0; animation: none; }
  .map__pin, .fab--wa::after { animation: none; }
}

/* ---------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 980px) {
  .hero__grid, .about__grid, .why__grid, .book__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__lead { max-width: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .why__list { grid-template-columns: 1fr; }
  .process__timeline { grid-template-columns: repeat(2, 1fr); }
  .process__timeline::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__accredit { right: 12px; top: 12px; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--surface); padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--mist);
    box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .38s var(--ease); max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a:not(.btn) { padding: .85rem .2rem; border-bottom: 1px solid var(--mist); }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: .6rem; text-align: center; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .process__timeline { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__badge { left: 8px; }
  .hero__actions .btn { flex: 1 1 auto; }
}
