@charset "UTF-8";

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.site-nav { flex-wrap: wrap; justify-content: flex-end; }
.languages img { width: 28px; height: 20px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #0b1d3920; }
.languages a { display: inline-flex; align-items: center; min-height: 36px; }
.languages a[aria-current] { outline: 1px solid var(--gold); }
.portal-section > h1 { max-width: 1000px; }
.portal-tabs, .child-tabs, .diploma-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; padding: 0; }
.portal-tabs { border-bottom: 1px solid var(--gold-light); padding-bottom: 18px; }
.portal-tabs a, .child-tabs a, .diploma-tabs a { text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; font-size: .88rem; }
.portal-tabs a[aria-current], .child-tabs a[aria-current], .diploma-tabs a[aria-current] { background: var(--ink); color: var(--gold-light); border-color: var(--gold); }
.portal-tabs form { margin-left: auto; }
.portal-logout-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 20px; border: 1px solid var(--gold); border-radius: 8px; background: var(--ink); color: var(--gold-light); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; box-shadow: 0 3px 10px #0b1d391a; }
.portal-logout-button:hover { background: var(--gold-light); color: var(--ink); }
.portal-logout-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.message-badge { display: inline-block; min-width: 24px; padding: 2px 7px; border-radius: 20px; background: var(--gold-light); color: var(--ink); border: 1px solid var(--gold); font-size: .8rem; font-weight: 700; text-align: center; }
.message-badge[hidden], .chat-new-messages[hidden] { display: none; }
.chat-panel { max-width: 900px; margin-inline: auto; }
.chat-messages { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; margin-block: 24px; }
.chat-message { max-width: 85%; align-self: flex-start; padding: 16px 20px; background: #eaf0f2; border: 1px solid var(--line); border-radius: 14px 14px 14px 0; overflow-wrap: anywhere; }
.chat-message.is-own { align-self: flex-end; background: #fff8e6; border-color: var(--gold-light); border-radius: 14px 14px 0 14px; }
.chat-message p { margin: 10px 0 0; }
.chat-message-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .75rem; }
.chat-message-meta time { color: var(--muted); }
.chat-pagination { display: flex; flex-wrap: wrap; gap: 20px; }
.chat-new-messages { display: block; padding: 14px; border: 1px solid var(--gold); background: #fff8e6; margin-block: 16px; border-radius: 8px; }
.chat-compose textarea { width: 100%; }
.calendar-controls, .calendar-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; }
.calendar-controls label { min-width: 150px; margin: 0; }
.calendar-controls .button { align-self: flex-end; margin-bottom: 16px; }
.calendar-scroll { overflow-x: auto; }
.calendar-grid { display: grid; gap: 8px; }
.calendar-week, .calendar-month { grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 980px; }
.calendar-day { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.calendar-day h3 { display: flex; flex-direction: column; gap: 5px; font-family: var(--font-body); font-size: .8rem; margin-bottom: 12px; }
.calendar-day.is-today { border: 2px solid var(--gold); }
.calendar-day.is-outside { background: #eeebe3; }
.calendar-event { display: flex; flex-direction: column; gap: 5px; padding: 10px; margin-bottom: 8px; border: 1px solid; border-radius: 6px; font-size: .75rem; text-decoration: none; overflow-wrap: anywhere; }
.calendar-event:hover { outline: 2px solid var(--gold); }
.calendar-event.status-requested { background: #fff8e6; border-color: var(--gold); border-style: dashed; }
.calendar-empty { font-size: .7rem; margin: 0; }
.swim-install-button { border: 1px solid var(--gold); border-radius: 8px; padding: 10px 14px; background: var(--gold-light); color: var(--ink); font: inherit; font-size: .8rem; cursor: pointer; min-height: 44px; }
.swim-install-button:hover { background: var(--gold); }
.swim-install-button:disabled { opacity: .65; cursor: not-allowed; }
.swim-install-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.swim-install-dialog { width: min(480px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; border: 1px solid var(--gold); border-radius: 12px; background: var(--paper); color: var(--ink); }
.swim-install-dialog::backdrop { background: #0b1d3980; }
.swim-install-dialog h2 { font-size: 1.8rem; }
.swim-install-steps { list-style: none; padding: 0; counter-reset: install-step; }
.swim-install-steps li { counter-increment: install-step; position: relative; padding-left: 48px; margin-bottom: 20px; }
.swim-install-steps li::before { content: counter(install-step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-light); color: var(--ink); font-weight: 600; }
.swim-install-steps strong, .swim-install-steps span { display: block; }
.swim-install-steps span { margin-top: 6px; }
.lesson-entry { scroll-margin-top: 100px; }
.portal-management > h2 { font-size: 1.5rem; margin-bottom: 0; }
.portal-management > .portal-tabs { margin-top: 12px; }
.progress-save-bar { position: sticky; bottom: 16px; z-index: 15; display: flex; justify-content: center; padding: 16px 0; margin-top: 24px; pointer-events: none; }
.progress-save-bar .button { pointer-events: auto; box-shadow: 0 6px 24px #0b1d3940; border: 1px solid var(--gold); }
.portal-panel { padding: 28px; border: 1px solid var(--gold-light); background: white; border-radius: 12px; margin-bottom: 24px; min-width: 0; }
.portal-panel h2 { font-size: 2.3rem; }
.portal-panel p { overflow-wrap: anywhere; }
.portal-form-grid, .management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.portal-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portal-form-grid label { margin-bottom: 0; }
.portal-form-grid input, .portal-form-grid select { margin-bottom: 0; }
.portal-form-grid + label { margin-top: 20px; }
.account-list, .lesson-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lesson-entry-heading, .progress-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.lesson-entry-heading h3 { margin: 0; }
.lesson-entry-heading { margin-bottom: 18px; }
.status-badge { border-radius: 20px; font-size: .7rem; padding: 5px 12px; background: #fff8e6; border: 1px solid var(--gold-light); }
.status-planned { background: #eaf0f2; border-color: #376587; }
.status-completed { background: #dcfce7; border-color: #15803d; }
.status-cancelled { background: #fee2e2; border-color: #b2262d; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }
.text-button { cursor: pointer; padding: 8px 0; border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: .82rem; }
.schedule-editor summary { cursor: pointer; font-size: .88rem; font-weight: 600; padding-block: 14px; }
.schedule-editor .portal-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.portal-success { border: 1px solid #15803d; color: #166534; background: #dcfce7; padding: 16px; border-radius: 8px; margin-block: 18px; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; min-height: 60vh; }
.auth-layout h1 { max-width: 600px; }
.auth-note { margin: 24px 0 0; font-size: .88rem; }
.multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
.progress-summary { display: flex; align-items: center; gap: 25px; background: var(--ink); color: white; border: 1px solid var(--gold); border-radius: 14px; padding: 28px; margin: 25px 0; }
.progress-summary h2 { margin-bottom: 8px; }
.progress-summary p { color: var(--gold-light); margin: 0 0 12px; }
.summary-smiley { font-size: 4rem; line-height: 1.2; }
.progress-summary > div { flex: 1; }
.progress-summary progress { width: min(100%, 650px); height: 14px; accent-color: var(--gold); }
.smiley-legend { display: flex; gap: 18px; flex-wrap: wrap; padding-block: 24px; font-size: .8rem; }
.smiley-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.smiley-legend span[aria-hidden] { font-size: 1.8rem; }
.curriculum-clothing { padding: 16px 20px; background: #fff8e6; border-left: 3px solid var(--gold); font-size: .88rem; }
.exercise-group { margin-top: 36px; }
.exercise-group > h3 { font-size: 2rem; border-bottom: 1px solid var(--gold-light); padding-bottom: 14px; }
.exercise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.exercise-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px; min-width: 0; }
.exercise-card.is-mastered { border-color: #85b29b; background: #f0f8ef; }
.exercise-state { display: flex; align-items: center; gap: 15px; font-size: .8rem; font-weight: 600; margin-bottom: 16px; }
.exercise-smiley { font-size: 2.6rem; line-height: 1.3; }
.exercise-description { font-size: .91rem; color: var(--ink); }
.smiley-options { border: none; padding: 0; margin: 22px 0; min-width: 0; }
.smiley-options legend { font-size: .76rem; margin-bottom: 10px; }
.smiley-options label { display: inline-flex; align-items: center; flex-direction: column; padding: 5px; border-radius: 8px; cursor: pointer; }
.smiley-options label:has(input:checked) { background: var(--gold-light); outline: 1px solid var(--gold); }
.smiley-options input { accent-color: var(--ink); margin: 0; }
.smiley-options span[aria-hidden] { font-size: 1.85rem; }
.adventure-section { background: linear-gradient(160deg, #f5f3ee, #eaf0f2); }
.adventure-banner { text-align: center; padding: 35px; background: var(--ink); border: 2px solid var(--gold); border-radius: 25px; color: white; }
.adventure-banner > span { font-size: 3.4rem; }
.adventure-banner .eyebrow, .adventure-banner p { color: var(--gold-light); }
.adventure-banner h1 { margin-bottom: 20px; }
.adventure-actions { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-block: 24px; }
.adventure-section .exercise-card { border-radius: 22px; border-width: 2px; }
.adventure-section .exercise-smiley { font-size: 3.5rem; }
button:disabled { opacity: .6; cursor: not-allowed; }
.footer-bottom nav { flex-wrap: wrap; }
.filter-form .portal-form-grid { margin-bottom: 0; }
.permissions-form { margin-top: 24px; }
.permissions-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 18px; min-width: 0; }
.permissions-form label { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; }
.permissions-form input[type="checkbox"] { flex: 0 0 auto; width: auto; margin: 5px 0 0; }

@media (max-width: 1200px) {
    .account-list, .lesson-list, .exercise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .account-list, .lesson-list, .exercise-grid, .management-grid, .auth-layout, .portal-form-grid { grid-template-columns: 1fr; }
    .auth-layout { gap: 25px; }
    .portal-panel, .exercise-card { padding: 20px; }
    .portal-tabs form { margin-left: 0; }
    .progress-summary { padding: 20px; gap: 15px; }
    .summary-smiley { font-size: 3rem; }
    .progress-summary h2 { font-size: 1.9rem; }
    .progress-summary p { font-size: .85rem; }
}
@media print {
    .site-header, .top-bar, .swim-service-area, .site-footer, .skip-link, .adventure-actions, .portal-tabs, .smiley-options, .exercise-card form, .progress-batch-form .exercise-card > label, .progress-save-bar { display: none !important; }
    .container { width: 100% !important; margin: 0; }
    .section { padding: 0 !important; }
    .adventure-banner, .progress-summary { background: white; color: black; }
    .adventure-banner p, .adventure-banner .eyebrow, .progress-summary p { color: black; }
    .exercise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .exercise-card { break-inside: avoid; box-shadow: none; }
    .adventure-section { background: white; }
}

:root {
    --ink: #0b1d39;
    --muted: #667085;
    --paper: #f5f3ee;
    --header: #f5f3ee;
    --gold: #c5a02f;
    --gold-light: #e4cfa0;
    --button: #e4cfa0;
    --button-hover: #f0cb86;
    --blue: #376587;
    --line: #d5dce2;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Montserrat", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
}

body > * { flex-shrink: 0; }
main { flex: 1 0 auto; width: 100%; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(#0b1d3926, #0b1d3926), url("img/Background_Swim.jpg") center / cover no-repeat;
}

main > .section {
    background: #f5f3eee6;
    padding-inline: 24px;
}

main .hero-shell {
    background: linear-gradient(110deg, #0b1d39d9 25%, #376587b3 100%);
}

main .lessons-section {
    background: #eeebe3d9;
}

@media print {
    body::before { display: none; }
    main > .section { background: white; }
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
summary,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.14;
    font-family: var(--font-display);
}

h1,
h2 {
    font-weight: 600;
    letter-spacing: -.02em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.9rem, 5vw, 4.2rem);
    margin-bottom: 26px;
}

h2 {
    font-size: clamp(2.2rem, 3.5vw, 3.4rem);
    margin-bottom: 24px;
}

h3 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

p {
    color: var(--muted);
}

.container {
    width: calc(100% - 80px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    padding: 12px 20px;
    background: var(--ink);
    color: white;
    z-index: 10;
}

.skip-link:focus {
    top: 10px;
}

.site-header {
    padding-top: 18px;
    background: var(--header);
    border-bottom: 1px solid var(--gold-light);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1.2;
}

.brand>span {
    font-size: .64rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand strong {
    display: block;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 2.6rem;
    letter-spacing: .01em;
    font-weight: 700;
    text-transform: none;
}

.brand img {
    width: 118px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: .9rem;
    font-weight: 600;
}

.site-nav>a {
    text-decoration: none;
}

.site-nav>a:not(.button):hover,
.utility a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.nav-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: -12px;
    font-size: .72rem;
}

.nav-legal-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.utility {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 12px;
    font-size: .75rem;
    color: var(--muted);
    gap: 12px;
}

.utility>a {
    text-decoration: none;
}

.languages {
    display: flex;
    gap: 8px;
}

.languages a {
    padding: 4px 7px;
    text-decoration: none;
    border-radius: 5px;
}

.languages a[aria-current] {
    background: var(--gold-light);
    color: var(--ink);
    font-weight: 700;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    background: var(--button);
    color: var(--ink);
    border: 1px solid var(--button);
    padding: 16px 23px;
    border-radius: 4px;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.button:hover {
    background: var(--button-hover);
    border-color: var(--button-hover);
    transform: translateY(-2px);
}

.button-small {
    padding: 12px 17px;
    font-size: .85rem;
    gap: 14px;
}

.button>span {
    font-size: 1.25rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.text-link:hover {
    color: #806619;
}

.hero-shell {
    background: linear-gradient(110deg, var(--ink) 25%, var(--blue) 100%);
    color: white;
}

.hero {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    align-items: center;
    gap: 80px;
    padding-block: 66px 72px;
}

.eyebrow {
    color: var(--ink);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
}

.eyebrow-dot {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--gold);
    margin-right: 10px;
    vertical-align: middle;
}

.hero .eyebrow {
    color: var(--gold-light);
}

.hero .lead {
    color: #e2e7ee;
}

.hero .text-link {
    color: white;
    text-decoration-color: var(--gold-light);
}

.hero .text-link:hover {
    color: var(--gold-light);
}

.lead {
    font-size: 1.04rem;
    line-height: 1.8;
}

.hero-copy .lead {
    max-width: 460px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    margin-top: 32px;
}

.hero-art {
    position: relative;
    padding: 20px 18px 28px 12px;
    min-width: 0;
}

.pool-frame {
    border-radius: 180px 180px 24px 24px;
    overflow: hidden;
    background: var(--gold-light);
    border: 1px solid var(--gold);
}

.pool-frame img {
    width: 100%;
    height: auto;
}

.art-sun {
    position: absolute;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    right: -16px;
    top: 0;
    background: var(--gold);
}

.floating-note {
    position: absolute;
    bottom: 55px;
    left: -40px;
    right: 34px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--ink);
    color: white;
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 18px 21px;
    box-shadow: 0 8px 30px #0b1d3920;
    transform: rotate(-16deg);
}

.floating-note strong {
    display: block;
    font-size: .93rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.floating-note div>span {
    display: block;
    color: #e2e7ee;
    font-size: .75rem;
}

.note-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.art-caption {
    position: absolute;
    right: 5px;
    bottom: 0;
    color: var(--gold-light);
    font-size: 1rem;
    font-style: italic;
    font-family: var(--font-display);
    transform: rotate(-16deg);
}

.highlights {
    border-block: 1px solid var(--gold-light);
    background: var(--paper);
    padding-inline: 24px;
}

.highlights ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding-block: 22px;
    padding-inline: 0;
    gap: 25px;
}

.highlights li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .88rem;
    font-weight: 600;
}

.highlights li>span {
    color: var(--gold);
    font-size: 1.2rem;
}

.section {
    padding-block: 90px;
}

.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.intro h2 {
    max-width: 400px;
    margin-bottom: 0;
}

.intro p:last-child {
    margin-bottom: 0;
}

.lessons-section {
    background: #eeebe3;
    padding-inline: 24px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 36px;
}

.section-heading h2 {
    max-width: 630px;
    margin-bottom: 0;
}

.heading-wave {
    font-size: 6rem;
    line-height: 1;
    font-weight: 300;
    color: var(--gold);
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lesson-card {
    padding: 30px;
    background: var(--ink);
    color: white;
    border: 1px solid var(--gold);
    border-radius: 10px 10px 42px 42px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lesson-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-bottom: 38px;
}

.lesson-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold-light);
}

.tag {
    background: var(--gold-light);
    color: var(--ink);
    font-size: .65rem;
    padding: 5px 11px;
    border-radius: 20px;
    font-weight: 600;
}

.lesson-card h3 {
    font-size: 1.8rem;
}

.lesson-card p {
    color: #e2e7ee;
    font-size: .88rem;
    margin-bottom: 28px;
}

.lesson-card>a {
    margin-top: auto;
    color: var(--gold-light);
}

.lesson-card>a:hover {
    color: white;
}

.included {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--gold-light);
}

.included h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.included ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 26px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.included li {
    display: flex;
    gap: 12px;
    font-size: .84rem;
}

.included li span {
    color: #806619;
    font-weight: 700;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 44px 0;
}

.step-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--ink);
    color: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 24px;
}

.steps h3 {
    font-size: 1.7rem;
}

.steps p {
    font-size: .94rem;
    margin: 0;
}

.location-note {
    display: flex;
    gap: 28px;
    padding: 30px 36px;
    background: #fff8e6;
    border: 1px solid var(--gold-light);
    border-radius: 12px;
}

.location-note>span {
    font-size: 3.6rem;
    line-height: 1;
    color: #806619;
}

.location-note h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.location-note p {
    margin: 0;
    font-size: .91rem;
    max-width: 830px;
}

.faq-section {
    border-block: 1px solid var(--line);
}

.faq-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;
}

.questions details {
    border-bottom: 1px solid var(--line);
}

.questions details:first-child {
    border-top: 1px solid var(--line);
}

.questions summary {
    cursor: pointer;
    padding: 22px 28px 22px 0;
    font-size: .96rem;
    font-weight: 600;
    position: relative;
    list-style: none;
}

.questions summary::-webkit-details-marker {
    display: none;
}

.questions summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 17px;
    font-size: 1.5rem;
    font-weight: 400;
}

.questions details[open] summary::after {
    content: "-";
}

.questions details p {
    font-size: .92rem;
    margin-bottom: 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 80px;
    align-items: start;
}

.contact-copy {
    padding-top: 26px;
}

.phone-link {
    display: inline-flex;
    gap: 30px;
    font-weight: 600;
    text-underline-offset: 5px;
}

.contact-decoration {
    font-size: 9rem;
    color: var(--gold-light);
    line-height: 1.2;
    margin-top: 30px;
}

.form-panel {
    background: white;
    border: 1px solid var(--gold-light);
    padding: 34px;
    border-radius: 12px;
    box-shadow: 0 12px 28px #0b1d3914;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

label {
    display: block;
    font-size: .79rem;
    font-weight: 600;
    margin-bottom: 7px;
}

label>span[aria-hidden] {
    color: #806619;
}

input:not([type="checkbox"]),
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafc;
    padding: 11px 12px;
    color: var(--ink);
    margin-bottom: 20px;
    min-width: 0;
}

.iti {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafc;
}

.iti:focus-within {
    border-color: var(--gold);
}

.iti__country-container {
    color: var(--ink);
}

.iti__selected-country {
    border: 0;
    border-radius: 9px 0 0 9px;
    background: transparent;
    color: var(--ink);
}

.iti > input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
}

.iti input {
    margin-bottom: 0;
}

textarea {
    resize: vertical;
    min-height: 120px;
    margin-bottom: 0;
}

.field-help {
    font-size: .74rem;
    line-height: 1.6;
    margin-top: 8px;
    margin-bottom: 22px;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.6;
    margin-block: 18px 24px;
}

.privacy-check input {
    accent-color: var(--ink);
    margin: 4px 0 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.submit-button {
    width: auto;
    align-self: flex-start;
    justify-content: center;
}

.lesson-price-note { margin-block: 24px; padding: 24px; background: #fff8e6; border-left: 3px solid var(--gold); border-radius: 8px; }
.lesson-price-note h2, .lesson-price-note h3 { font-size: 1.5rem; margin-bottom: 12px; }
.lesson-price-note p { margin-bottom: 12px; }

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.form-error {
    border: 1px solid #c17760;
    color: #823c24;
    background: #fff3ed;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 22px;
    font-size: .9rem;
}

.form-success {
    padding: 20px 0;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold-light);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.site-footer {
    background: var(--ink);
    color: #ffffffc2;
    padding: 1rem;
    text-align: center;
    line-height: 1.6;
}

.footer-brand {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    color: var(--gold-light);
    margin-bottom: .6rem;
}
.footer-brand-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.footer-brand-name {
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}
.footer-slogan {
    font-family: var(--font-body);
    font-size: .85rem;
    color: #f5f3eecc;
    margin: .1rem 0 0;
    line-height: 1.2;
}
.site-footer .footer-logo {
    height: 52px;
    width: auto;
    display: block;
}
.footer-socials { display: flex; flex-shrink: 0; justify-content: center; gap: .85rem; }
.footer-socials a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e4cfa08c; border-radius: 50%; color: var(--gold-light); text-decoration: none; }
.footer-socials a:hover { background: var(--button); color: var(--button-hover); }
.footer-copy { font-size: .8rem; opacity: .7; margin-block: 1em; }
.footer-legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: .35rem 0; font-size: .85rem; }
.footer-legal-links a { color: var(--gold-light); text-decoration: underline; text-underline-offset: .2em; }
.footer-legal-links a:hover { color: white; }
@media (max-width: 640px) {
    .site-footer { padding: 1rem .85rem calc(1rem + env(safe-area-inset-bottom)); }
    .footer-brand { flex-wrap: wrap; gap: .75rem; }
    .footer-brand .brand { gap: .45rem; }
    .site-footer .footer-logo { height: 42px; }
    .footer-brand-name { font-size: 1.2rem; }
    .footer-slogan { font-size: .68rem; }
    .footer-socials { gap: .45rem; }
    .footer-socials a { width: 30px; height: 30px; }
    .footer-copy { font-size: .68rem; margin-bottom: 0; }
}

@media (max-width: 1100px) {
    .site-nav {
        gap: 16px;
        font-size: .83rem;
    }

    .hero {
        gap: 44px;
    }

    .floating-note {
        left: -24px;
        right: 20px;
        padding: 15px;
    }

    .intro,
    .faq-grid {
        gap: 55px;
    }

    .contact-grid {
        gap: 45px;
    }

    .lesson-card {
        padding: 24px;
    }
}

@media (max-width: 960px) {
    .container {
        width: calc(100% - 48px);
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 18px;
    }

    .menu-toggle:not([hidden]) {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 10px 16px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: transparent;
        color: var(--ink);
        cursor: pointer;
    }

    .site-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 18px 28px;
        padding-bottom: 10px;
    }

    .menu-toggle:not([hidden])~.site-nav:not(.is-open) {
        display: none;
    }

    .hero {
        gap: 36px;
        padding-block: 46px 55px;
    }

    h1 {
        font-size: clamp(2.6rem, 5.7vw, 4rem);
    }

    .hero-actions {
        gap: 20px;
    }

    .hero-art {
        padding-inline: 0;
    }

    .art-sun {
        right: 0;
        width: 80px;
        height: 80px;
    }

    .floating-note {
        left: -15px;
        right: 0;
        bottom: 35px;
    }

    .floating-note strong {
        font-size: .8rem;
    }

    .floating-note div>span {
        font-size: .7rem;
    }

    .highlights ul {
        gap: 15px;
    }

    .highlights li {
        font-size: .76rem;
        gap: 8px;
    }

    .section {
        padding-block: 66px;
    }

    .lesson-grid {
        gap: 14px;
    }

    .lesson-card {
        padding: 20px;
    }

    .lesson-top {
        flex-wrap: wrap;
        margin-bottom: 26px;
    }

    .lesson-card h3 {
        font-size: 1.25rem;
    }

    .included ul {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        gap: 25px;
    }

    .contact-grid {
        grid-template-columns: .75fr 1.25fr;
        gap: 32px;
    }

    .form-panel {
        padding: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        flex-wrap: wrap;
    }
}

@media (min-width: 961px) {
    .menu-toggle {
        display: none;
    }

    .hero-art {
        width: 100%;
        max-width: 560px;
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 40px);
    }

    .site-header {
        padding-top: 18px;
    }

    .brand strong {
        font-size: 2rem;
    }

    .brand img {
        width: 85px;
        height: auto;
    }

    .utility {
        font-size: .68rem;
        padding-top: 16px;
    }

    .languages {
        gap: 2px;
    }

    .languages a {
        padding: 5px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-block: 38px 45px;
    }

    h1 {
        font-size: clamp(2.65rem, 10vw, 3.8rem);
    }

    h2 {
        font-size: 2.4rem;
    }

    .hero-copy .lead {
        max-width: none;
    }

    .hero-actions {
        margin-top: 25px;
    }

    .hero-art {
        max-width: 390px;
        width: calc(100% - 16px);
        margin: auto;
    }

    .pool-frame {
        max-height: 390px;
    }

    .pool-frame img {
        margin-top: -12%;
    }

    .floating-note {
        left: -12px;
        bottom: 42px;
        right: 12px;
    }

    .floating-note strong {
        font-size: .86rem;
    }

    .highlights ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-block: 0;
        padding-block: 20px;
    }

    .highlights li {
        font-size: .86rem;
    }

    .section {
        padding-block: 55px;
    }

    .intro,
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .intro h2 {
        max-width: none;
    }

    .lesson-grid,
    .steps {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lesson-card {
        padding: 28px;
    }

    .lesson-top {
        margin-bottom: 20px;
    }

    .lesson-card h3 {
        font-size: 1.8rem;
    }

    .heading-wave {
        display: none;
    }

    .included ul {
        grid-template-columns: 1fr;
    }

    .steps {
        gap: 28px;
        margin-block: 32px;
    }

    .step-number {
        margin-bottom: 14px;
    }

    .location-note {
        gap: 18px;
        padding: 24px;
    }

    .location-note>span {
        font-size: 2.4rem;
    }

    .contact-copy {
        padding-top: 0;
    }

    .contact-decoration {
        display: none;
    }

    .form-panel {
        padding: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        padding-block: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 14px;
    }
}

.top-bar { background: var(--ink); color: #f5f3eed9; line-height: 1.6; }
.top-bar-wrap { max-width: 1200px; margin: 0 auto; display: flex; justify-content: flex-end; gap: 1rem; padding: .4rem 1.5rem; }
.madrid-time { font-size: .85rem; font-weight: 600; }
.madrid-time > i, .weather-summary > i { color: var(--gold-light); margin-right: .3rem; }
.location-temperature { margin-left: 8px; }
.weather-summary { font-size: .78rem; font-weight: 600; white-space: nowrap; }
.top-bar-socials { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.top-bar-socials a { color: #f5f3eeb3; font-size: .9rem; }
.top-bar-socials a:hover { color: var(--gold-light); }
.site-header { position: sticky; top: 0; border: 0; padding-top: 0; z-index: 101; background: #fffffff7; line-height: 1.6; }
.header-inner { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; height: 50px; min-height: 0; gap: 24px; padding: 0 1.5rem; align-items: flex-start; }
.header-inner .brand { position: relative; z-index: 2; }
.header-inner .brand img { display: block; width: auto; height: 86px; max-height: 86px; object-fit: contain; }
.header-inner .swim-brand-name { display: flex; flex-direction: column; color: var(--gold); font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: .03em; line-height: 1; white-space: nowrap; }
.header-inner .swim-brand-name > span:last-child { font-size: .82em; letter-spacing: .12em; }
.site-nav { position: relative; z-index: 2; flex: 1; flex-wrap: nowrap; gap: clamp(.65rem, 1.2vw, 1.35rem); font-size: .92rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.site-nav > a { white-space: nowrap; flex-shrink: 0; }
.site-nav > a[aria-current="page"] { color: var(--gold); }
.site-nav .nav-call, .site-nav .portal-login-link, .site-nav .main-site-link { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .5rem .75rem; border-radius: 4px; }
.site-nav .nav-call { background: #f3d594; }
.site-nav .nav-call:hover { background: #05c70f; color: white; }
.site-nav .portal-login-link, .site-nav .main-site-link { border: 1px solid var(--gold); }
.site-nav > .nav-call:hover, .site-nav > .portal-login-link:hover, .site-nav > .main-site-link:hover { text-decoration: none; }
.utility { padding-block: 0 6px; }
.header-wave { position: absolute; top: 100%; left: 0; width: 100%; height: 52px; pointer-events: none; --header: #fffffff7; }
.swim-service-area { display: flex; align-items: center; justify-content: center; gap: .55rem; background: var(--gold-light); padding: 61.6px 1.5rem .55rem; text-align: center; font-size: .88rem; font-weight: 600; line-height: 1.6; }
.swim-service-area i { color: #1d4d7e; }
.language-picker { position: relative; border-left: 1px solid #f5f3ee40; padding-left: 1rem; }
.language-picker summary { display: flex; align-items: center; padding: .3rem .2rem; cursor: pointer; list-style: none; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker img { display: block; width: 26px; height: 18px; border-radius: 3px; object-fit: cover; }
.language-picker .languages { position: absolute; top: 100%; right: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--gold-light); border-radius: 6px; box-shadow: 0 8px 24px #0b1d3926; z-index: 30; }
.language-picker:not([open]) .languages { display: none; }
.language-picker .languages a { padding: 7px; }
.language-picker .languages a:hover { background: var(--paper); }
.nav-call-dialog { width: min(480px, calc(100% - 40px)); padding: 32px; border: 1px solid var(--gold); border-radius: 12px; background: var(--paper); color: var(--ink); }
.nav-call-dialog::backdrop { background: #0b1d3999; }
.nav-call-dialog h2 { font-size: 2rem; padding-right: 20px; }
.nav-call-close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; color: var(--ink); font-size: 1.8rem; cursor: pointer; }
@media (min-width: 1600px) {
    .header-inner { max-width: none; padding-inline: 3rem; }
    .top-bar-wrap { max-width: 1440px; }
}
@media (min-width: 2200px) {
    .header-inner { padding-inline: 4rem; }
    .top-bar-wrap { max-width: 1680px; padding-inline: 2rem; }
}
.site-header.is-compact .header-inner { gap: 12px; }
.site-header.is-compact .menu-toggle:not([hidden]) { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; gap: 5px; padding: .4rem; border: 1px solid #0b1d391f; border-radius: 9px; background: white; color: var(--ink); cursor: pointer; }
.menu-toggle > span { display: block; width: 24px; height: 2px; background: var(--gold); }
.site-header.is-compact .site-nav { position: absolute; top: calc(100% + 1rem); left: 1.5rem; right: 1.5rem; width: auto; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: .2rem; padding: .75rem; max-height: calc(100dvh - 150px); overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 32px #0b1d3924; }
.site-header.is-compact .site-nav > a { min-height: 44px; padding: .65rem .75rem; border-radius: 9px; font-size: .84rem; white-space: normal; }
.site-header.is-compact .site-nav .nav-call, .site-header.is-compact .site-nav .portal-login-link, .site-header.is-compact .site-nav .main-site-link { justify-content: flex-start; }
.site-header.is-compact .site-nav .nav-call,
.site-header.is-compact .site-nav .portal-login-link,
.site-header.is-compact .site-nav .main-site-link,
.site-header.is-compact .site-nav .swim-install-button { align-self: flex-start; width: auto; max-width: 100%; }
.site-header.is-compact .language-picker { border-left: 0; padding-left: 0; }
.site-header.is-compact .language-picker summary { min-height: 44px; padding: .65rem .75rem; }
.site-header.is-compact .language-picker .languages { position: static; align-items: flex-start; box-shadow: none; margin-bottom: .2rem; }
.site-header.is-compact .menu-toggle:not([hidden]) ~ .site-nav:not(.is-open) { display: none; }
.site-header.is-compact .header-inner { flex-wrap: nowrap; }
@media (max-width: 1200px) {
    .header-inner { gap: 12px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .top-bar-wrap { padding-inline: 20px; gap: .75rem; flex-wrap: wrap; }
    .madrid-time { width: 100%; font-size: .75rem; }
    .weather-summary { font-size: .7rem; }
    .top-bar-socials { width: 100%; justify-content: flex-end; }
    .header-inner { padding-inline: 20px; }
}
@media (max-width: 640px) {
    .site-header { padding-top: 0; background: #f5f3eef7; border-bottom: 1px solid #0b1d391f; }
    .header-inner { height: 58px; min-height: 58px; padding-inline: .85rem; align-items: center; }
    .header-inner .brand { align-self: center; gap: .45rem; }
    .header-inner .brand img { height: 52px; max-height: 52px; }
    .header-inner .swim-brand-name { max-width: 145px; font-size: .95rem; letter-spacing: .01em; white-space: normal; }
    .top-bar-wrap { padding: .4rem .85rem; gap: .75rem; justify-content: center; }
    .madrid-time { font-size: .75rem; }
    .weather-summary, .top-bar-socials { display: none; }
    .swim-service-area { font-size: .7rem; line-height: 1.35; padding-inline: .8rem; padding-bottom: .45rem; gap: .35rem; }
    .site-header.is-compact .site-nav { left: .85rem; right: .85rem; }
    .header-wave { --header: #f5f3eef7; }
    .utility { padding-block: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}