:root {
  --navy: #0d1f5d;
  --navy-2: #16307a;
  --ink: #12213e;
  --muted: #475467;
  --paper: #f6f8fc;
  --white: #fff;
  --line: #dfe5ef;
  --pacifico: #315fa8;
  --pacifico-soft: #edf4ff;
  --boadilla: #27806e;
  --boadilla-soft: #eaf8f4;
  --villanueva: #9a672c;
  --villanueva-soft: #fff5e7;
  --shadow: 0 20px 55px rgba(13, 31, 93, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.6 "Work Sans", sans-serif; }
button, a { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 1rem; padding: .7rem 1rem; background: white; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header { height: 88px; padding: 0 max(5vw, 24px); display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: white; }
.brand img { display: block; width: 64px; height: 64px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 1.8rem; }
nav a { text-decoration: none; font-weight: 600; font-size: .94rem; }
.nav-contact { padding: .65rem 1.05rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; }

main { overflow: hidden; }
.hero { position: relative; padding: 64px max(7vw, 24px) 72px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); align-items: center; gap: clamp(2rem,5vw,5.5rem); color: white; background: radial-gradient(circle at 85% 18%, rgba(127,157,239,.28), transparent 25%), linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 .75rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: rgba(255,255,255,.68); }
h1, h2, h3 { font-family: "Sora", sans-serif; }
h1 { max-width: 15ch; margin: 0; font-size: clamp(2.55rem, 5vw, 4.65rem); line-height: 1.05; letter-spacing: -.05em; }
.hero-text { max-width: 59ch; margin: 1.4rem 0 0; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.hero-actions { display: flex; gap: .8rem; margin-top: 2rem; }
.button { min-height: 50px; padding: .75rem 1.35rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 700; transition: .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: white; }
.button-secondary { color: white; border: 1px solid rgba(255,255,255,.42); }
.professional-card { padding: 1.5rem; border: 1px solid rgba(255,255,255,.22); border-radius: 24px; background: rgba(5,18,69,.48); box-shadow: 0 22px 55px rgba(3,10,43,.24); backdrop-filter: blur(10px); }
.professional-logo { display: block; width: 100%; height: 132px; object-fit: contain; }
.professional-card .eyebrow { margin: 1.15rem 0 .35rem; color: #aebee8; }
.professional-card h2 { font-size: clamp(1.5rem,2.5vw,2.1rem); }
.professional-card .license { margin: .35rem 0 .8rem; color: rgba(255,255,255,.82); font-weight: 700; }
.professional-card ul { margin: 0; padding-left: 1.2rem; color: rgba(255,255,255,.8); }
.about-section, .schedule-section, .centres { max-width: 1440px; margin: 0 auto; padding: 56px max(4vw, 24px); }
.about-section { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(2rem,5vw,5rem); align-items: start; }
.about-copy .eyebrow, .contact-section .eyebrow { color: var(--pacifico); }
.about-copy > p:not(.eyebrow) { max-width: 64ch; margin: 1rem 0 0; color: var(--muted); }
.about-note { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 12px 32px rgba(13,31,93,.05); }
.about-note p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.about-note .about-note-label { margin-bottom: .55rem; color: var(--pacifico); font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.experience-section { max-width: 1320px; margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.experience-heading .eyebrow { color: var(--pacifico); }
.experience-copy p { max-width: 68ch; margin: 0 0 1rem; color: var(--muted); }
.experience-copy p:last-child { margin-bottom: 0; }
.history-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.history-gallery figure, .techniques-grid figure { min-width: 0; margin: 0; overflow: hidden; border-radius: 16px; background: var(--paper); }
.history-gallery img, .techniques-grid img { display: block; width: 100%; object-fit: cover; }
.history-gallery img { height: clamp(180px, 24vw, 290px); object-position: center 38%; }
.history-gallery figcaption, .techniques-grid figcaption { padding: .7rem .85rem; font-weight: 600; }
.image-disclosure { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .85rem; }
.working-method-section, .resources-section { max-width: 1320px; margin: 0 auto; padding: 52px max(4vw, 24px) 24px; }
.working-method-heading, .resources-heading { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: .5rem 3rem; margin-bottom: 1.5rem; }
.working-method-heading .eyebrow, .resources-heading .eyebrow { grid-column: 1 / -1; color: var(--pacifico); }
.working-method-heading h2, .resources-heading h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.working-method-heading > p:last-child, .resources-heading > p:last-child { max-width: 64ch; margin: .15rem 0 0; color: var(--muted); }
.clinical-foundations { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem; }
.clinical-foundations article { min-width: 0; padding: 1.15rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.clinical-foundations article > span { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: .8rem; border-radius: 12px; color: var(--pacifico); background: var(--pacifico-soft); font-weight: 700; }
.clinical-foundations h3 { margin: 0; font-size: 1.05rem; }
.clinical-foundations p { margin: .35rem 0 0; color: var(--muted); }
.clinical-foundations .foundation-featured { grid-column: span 2; display: grid; grid-template-columns: 48px 1fr; gap: .8rem; color: white; border-color: transparent; background: linear-gradient(145deg, var(--navy), var(--navy-2)); }
.clinical-foundations .foundation-featured > span { margin: 0; color: var(--navy); background: white; }
.clinical-foundations .foundation-featured p { color: rgba(255,255,255,.8); }
.clinical-foundations .foundation-kicker { margin: 0 0 .35rem; color: #b7c5ea; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.clinical-foundations .foundation-featured strong { color: white; }
.resources-section { padding-top: 42px; padding-bottom: 30px; }
.indiba-feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 14px 38px rgba(13,31,93,.06); }
.indiba-copy { padding: clamp(1.4rem, 4vw, 2.7rem); }
.indiba-copy .resource-label { margin: 0 0 .45rem; color: var(--pacifico); font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.indiba-copy h3 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; }
.indiba-copy > p:not(.resource-label) { max-width: 58ch; margin: .8rem 0 1.2rem; color: var(--muted); }
.indiba-brand { display: flex; align-items: center; width: fit-content; margin: .3rem 0 1.1rem; }
.indiba-wordmark { display: block; width: 120px; height: 21px; overflow: hidden; }
.indiba-brand img { display: block; width: 300px; max-width: none; height: 21px; }
.indiba-details { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1rem; }
.indiba-details span, .indiba-details a { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; }
.indiba-details span { color: var(--navy-2); background: var(--pacifico-soft); }
.indiba-details a { color: var(--pacifico); background: white; text-decoration: none; }
.indiba-details a:hover, .indiba-details a:focus-visible { text-decoration: underline; outline: 3px solid rgba(49,95,168,.22); outline-offset: 2px; }
.indiba-gallery { display: grid; grid-template-columns: 1fr; align-content: center; gap: .8rem; padding: 1rem 1rem 1rem 0; border-left: 1px solid var(--line); background: var(--white); }
.indiba-gallery figure { min-width: 0; margin: 0; background: var(--white); }
.indiba-gallery img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; }
.indiba-gallery .indiba-device { background: var(--white); }
.indiba-gallery .indiba-device img { padding: 0; }
.complementary-resources { margin-top: 1rem; }
.resource-list { padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.resource-list h3 { margin: 0 0 .8rem; font-size: 1rem; }
.resource-list ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; }
.resource-list li { padding: .5rem .7rem; border-radius: 999px; color: var(--navy-2); background: var(--pacifico-soft); font-size: .88rem; font-weight: 600; }
.resource-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
.resource-gallery figure { min-width: 0; margin: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.resource-gallery img { display: block; width: 100%; height: 155px; object-fit: cover; }
.resource-gallery figcaption { padding: .65rem .8rem; font-weight: 600; }
.resource-gallery .ergon-card { display: flex; flex-direction: column; }
.resource-gallery .ergon-treatment { width: 100%; height: 155px; min-height: 0; object-fit: cover; }
.ergon-logo { display: flex; align-items: center; height: 28px; margin-bottom: .7rem; }
.ergon-logo img { width: 78px; height: 28px; object-fit: contain; object-position: left; }
.resource-gallery .ergon-card figcaption { flex: 1; }
.ergon-card figcaption strong { display: block; }
.resource-gallery figcaption p { margin: .45rem 0 0; color: var(--muted); font-size: .82rem; font-weight: 400; line-height: 1.45; }
.resource-guidance { margin-top: 1rem; padding: 1.15rem 1.25rem; border-left: 3px solid var(--pacifico); background: var(--pacifico-soft); color: var(--ink); }
.resource-guidance p { max-width: 90ch; margin: .4rem 0; line-height: 1.55; }
.resource-guidance h3 { margin: 1rem 0 .35rem; font-size: 1rem; }
.resources-section > .image-disclosure { margin-top: .75rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.section-heading > p { max-width: 530px; margin: 0; color: var(--muted); }
.section-heading .eyebrow { color: var(--pacifico); }
h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.13; letter-spacing: -.035em; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; padding: .9rem 1rem; margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--muted); font-size: .9rem; }
.legend span { display: inline-flex; align-items: center; gap: .5rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.pacifico { background: var(--pacifico); }.dot.boadilla { background: var(--boadilla); }.dot.villanueva { background: var(--villanueva); }
.week-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .85rem; }
.day-card { min-width: 0; padding: .7rem; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 8px 24px rgba(13,31,93,.045); }
.day-card-full { display: flex; flex-direction: column; }
.day-card > header { padding: .3rem .3rem .55rem; }
.day-card h3 { margin: 0; font-size: 1rem; }
.slot { width: 100%; padding: .7rem; margin-top: .5rem; border-radius: 14px; }
.slot-all-day { flex: 1; display: flex; flex-direction: column; }
.slot-line { min-height: 52px; display: flex; flex-direction: column; align-items: stretch; gap: .15rem; }
.slot time { flex: 0 0 auto; font-size: .78rem; font-weight: 700; letter-spacing: .01em; }
.slot strong { width: 100%; text-align: left; font: 600 .88rem/1.25 "Sora", sans-serif; }
.place-detail { white-space: nowrap; font-size: .86em; font-weight: 600; }
.slot-action { width: 100%; min-height: 44px; margin-top: .5rem; padding: .55rem .5rem; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(18,33,62,.18); border-radius: 10px; color: #12213e; background: rgba(255,255,255,.82); text-align: center; text-decoration: none; font-weight: 700; line-height: 1.25; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.slot-all-day .slot-action { margin-top: auto; }
.slot-action:hover, .slot-action:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(13,31,93,.12); outline: 3px solid rgba(49,95,168,.22); }
.slot-pacifico { color: #204b8b; background: var(--pacifico-soft); }.slot-boadilla { color: #176657; background: var(--boadilla-soft); }.slot-villanueva { color: #80501b; background: var(--villanueva-soft); }
.schedule-note { margin: 1rem .2rem 0; color: var(--muted); font-size: .84rem; }

.centres { padding-top: 42px; padding-bottom: 30px; }
.section-heading.compact { max-width: 1080px; }
.centre-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.centre-grid article { display: flex; flex-direction: column; padding: 1rem 1.1rem; border: 1px solid transparent; border-radius: 18px; }
.centre-grid .centre-pacifico { border-color: #c5d8ef; background: var(--pacifico-soft); }.centre-grid .centre-boadilla { border-color: #bddfd4; background: var(--boadilla-soft); }.centre-grid .centre-villanueva { border-color: #e2c596; background: var(--villanueva-soft); }
.centre-grid article > div { flex: 1; display: flex; flex-direction: column; }
.centre-grid h3 { margin: .15rem 0 .2rem; font-size: 1rem; }
.centre-grid p { margin: 0; color: var(--muted); font-size: .93rem; }
.centre-grid .clinic-name { margin-bottom: .45rem; color: var(--ink); font-weight: 600; }
.centre-grid address { margin: 0; color: var(--muted); font-size: .9rem; font-style: normal; line-height: 1.45; }
.centre-map-link { display: inline-block; width: fit-content; margin-top: .5rem; color: var(--navy-2); font-size: .84rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.centre-map-link:hover, .centre-map-link:focus-visible { color: var(--pacifico); }
.centre-action, .centre-status { min-height: 44px; padding: .55rem .5rem; align-items: center; justify-content: center; margin-top: auto; border: 1px solid var(--line); border-radius: 10px; font-size: .84rem; font-weight: 700; }
.centre-action { color: var(--navy-2); text-decoration: none; }
.centre-action:hover { text-decoration: underline; }
.centre-status { color: var(--muted); }
.centre-mark { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; font-weight: 700; }
.mark-pacifico { color: var(--pacifico); background: var(--pacifico-soft); }.mark-boadilla { color: var(--boadilla); background: var(--boadilla-soft); }.mark-villanueva { color: var(--villanueva); background: var(--villanueva-soft); }

.contact-section { max-width: 1320px; margin: 10px auto 64px; padding: clamp(1.5rem,4vw,3rem); display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: clamp(2rem,5vw,5rem); color: white; border-radius: 28px; background: linear-gradient(145deg,var(--navy),var(--navy-2)); box-shadow: var(--shadow); }
.contact-copy > p:not(.eyebrow) { max-width: 58ch; margin: 1rem 0 0; color: rgba(255,255,255,.78); }
.contact-section .eyebrow { color: #b7c5ea; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.contact-actions .button-primary { color: var(--navy); }
.contact-details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.contact-detail-wide { grid-column: 1 / -1; }
.contact-details div { padding: 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(255,255,255,.08); }
.contact-details dt { color: #b7c5ea; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-details dd { min-width: 0; margin: .3rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-details a { text-underline-offset: 3px; }

footer { padding: 2rem max(5vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: white; background: var(--navy); }
footer div:first-child { display: flex; flex-direction: column; } footer p { color: rgba(255,255,255,.72); } footer p a { color: white; text-underline-offset: 3px; }
.footer-links { display: flex; gap: .75rem; }.footer-links a { min-height: 44px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid white; border-radius: 999px; color: white; text-decoration: none; font-weight: 700; line-height: 1; }
.mobile-contact-bar { display: none; }

dialog { width: min(480px, calc(100% - 2rem)); padding: 0; color: var(--ink); border: 0; border-radius: 24px; box-shadow: 0 30px 80px rgba(5,14,50,.25); }
dialog::backdrop { background: rgba(6,14,42,.63); backdrop-filter: blur(4px); }
dialog form { position: relative; padding: 2rem; }
.dialog-close { position: absolute; top: .8rem; right: .9rem; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f0f2f6; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialog-icon { width: 52px; height: 52px; margin-bottom: 1.3rem; display: grid; place-items: center; border-radius: 15px; color: white; background: var(--navy); font-weight: 700; }
dialog h2 { font-size: 1.55rem; } dialog p:not(.eyebrow) { color: var(--muted); }
.dialog-actions { display: flex; gap: .7rem; margin-top: 1.5rem; }.dialog-actions .button { flex: 1; background: var(--navy); color: white; border: 0; cursor: pointer; }
.dialog-actions .button-muted { color: var(--ink); background: #edf0f5; }

@media (max-width: 1050px) {
  .site-header nav { gap: 1rem; }
  .hero { grid-template-columns: minmax(0,1fr) minmax(280px,.7fr); }
  .week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-section { margin-right: 24px; margin-left: 24px; }
}
@media (max-width: 760px) {
  .experience-section { margin: 0 18px; grid-template-columns: 1fr; gap: 1.2rem; }
  .history-gallery { grid-template-columns: 1fr; }
  .history-gallery img { height: auto; max-height: 260px; aspect-ratio: 3 / 2; }
  .working-method-section, .resources-section { padding: 38px 18px 20px; }
  .working-method-heading, .resources-heading { grid-template-columns: 1fr; gap: .65rem; }
  .working-method-heading .eyebrow, .resources-heading .eyebrow { grid-column: auto; }
  .clinical-foundations { grid-template-columns: 1fr; }
  .clinical-foundations .foundation-featured { grid-column: auto; grid-template-columns: 42px 1fr; }
  .indiba-feature { grid-template-columns: 1fr; }
  .indiba-gallery { padding: 1rem; border-top: 1px solid var(--line); border-left: 0; }
  .resource-gallery { grid-template-columns: 1fr; gap: 1rem; }
  .resource-gallery img, .resource-gallery .ergon-treatment { height: 180px; }
  .resource-gallery figcaption { padding: .85rem; }
  .resource-gallery figcaption p { font-size: .9rem; }
  .ergon-logo { height: 22px; margin-bottom: .5rem; }
  .ergon-logo img { width: 58px; height: 22px; }
  .site-header { height: 74px; }.brand img { width: 58px; height: 58px; } nav a:not(.nav-contact) { display: none; }.nav-contact { padding: .5rem .8rem; font-size: .82rem; }
  .hero { padding: 52px 24px 56px; grid-template-columns: 1fr; gap: 2rem; } h1 { font-size: clamp(2.45rem, 12vw, 3.5rem); }
  .professional-card { padding: 1.1rem; }.professional-logo { height: 108px; }
  .hero-actions { flex-direction: column; align-items: stretch; }.button { width: 100%; }
  .about-section, .schedule-section, .centres { padding: 46px 18px; }.about-section { grid-template-columns: 1fr; gap: 1.6rem; }.section-heading { display: block; }.section-heading > p { margin-top: .75rem; }
  .legend { gap: .6rem 1rem; }
  .week-grid { grid-template-columns: 1fr; gap: .75rem; }
  .day-card { padding: .7rem; }.day-card > header { padding-bottom: .25rem; }
  .slot-line { min-height: 36px; }
  .centre-grid { grid-template-columns: 1fr; }
  .contact-section { margin: 0 18px 46px; padding: 1.4rem; grid-template-columns: 1fr; border-radius: 22px; }.contact-actions { flex-direction: column; }.contact-details { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; gap: .5rem; }.footer-links { margin-top: .6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
