@font-face {
    font-family: 'Lexend Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(/fonts/lexend-latin-ext-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Lexend Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(/fonts/lexend-latin-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #141414;
    --muted: #575757;
    --accent: #da2128;
    --dots: rgba(218, 33, 40, 0.55);
    --surface: #f4f4f4;
    --nav: #141414;
    --nav-muted: #c4c4c4;
    --dark: #141414;
    --dark-line: #2e2e2e;
    --on-dark-muted: #c4c4c4;
    --orb: #2c2c2c;
    --container: 1520px;
    --inner-pad: clamp(20px, 4vw, 48px);
    --radius-panel: 32px;
    --radius-card: 28px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-tap-highlight-color: transparent;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: 'Lexend Variable', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 999px;
}

.skip-link {
    position: absolute;
    left: 24px;
    top: -80px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
}

.skip-link:focus-visible {
    top: 24px;
}

.page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-panel);
    background: #fff;
}

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

.heading {
    margin: 0;
    font-weight: 300;
    line-height: 1.12;
    text-wrap: balance;
}

.heading-xl {
    font-size: clamp(42px, 6.4vw, 96px);
}

.heading-lg {
    font-size: clamp(34px, 4.6vw, 64px);
}

.heading .soft {
    color: var(--accent);
}

.title {
    font-weight: 400;
    line-height: 1.25;
}

.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon .dots {
    stroke-dasharray: 0.1 3.6;
    stroke-width: 2.2;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

/* Page header */

.page-header {
    background: var(--ink);
    color: #fff;
}

.page-header-top {
    position: relative;
    z-index: 2;
    padding: 24px clamp(10px, 3vw, 40px) 0;
}

.page-header-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: clamp(48px, 7vw, 104px);
    padding-bottom: clamp(24px, 4vw, 48px);
}

.intro {
    max-width: 650px;
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--on-dark-muted);
}

/* Equal outer columns keep the brand in the true centre, however wide the phone number on the right is. */
.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    height: 72px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--nav);
    color: #fff;
}

.nav .brand {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.nav .brand-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 999px;
    object-fit: cover;
}

.nav .brand-name {
    font-size: 22px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.brand-soft {
    color: var(--nav-muted);
}

.nav-end {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 16px;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nav-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
}

.nav-phone-text {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.3;
}

.nav-phone-sub {
    color: var(--nav-muted);
}

@media (prefers-reduced-motion: no-preference) {
    .page-header-top {
        animation: header-in 0.9s var(--ease-out) 0.1s both;
    }

    .page-header-body {
        animation: header-in 0.9s var(--ease-out) 0.2s both;
    }
}

@keyframes header-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

/* Appointment form: the clinic's own online agenda, one screen high like the booking panel on the full site. */

.booking {
    padding: clamp(12px, 2vw, 24px);
    background: var(--surface);
}

.booking-frame {
    position: relative;
    max-width: 1040px;
    height: max(640px, calc(100dvh - 32px - 2 * clamp(12px, 2vw, 24px)));
    margin: 0 auto;
    border-radius: var(--radius-card);
    background: #fff;
    overflow: hidden;
}

.booking-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    color: var(--muted);
}

.booking iframe {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

/* Pill button */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    max-width: 100%;
    padding: 6px 6px 6px 22px;
    border-radius: 999px;
    font-size: 16px;
    white-space: nowrap;
    transition: padding 0.35s var(--ease-out);
}

.pill:hover {
    padding-left: 28px;
}

.knob {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    transition: transform 0.35s var(--ease-out);
}

.pill:hover .knob {
    transform: rotate(-45deg);
}

.pill-light {
    background: #fff;
    color: var(--ink);
}

.pill-light .knob {
    background: var(--accent);
    color: #fff;
}

/* Footer */

.footer {
    padding: clamp(80px, 10vw, 160px) 0 40px;
    background: var(--dark);
    color: #fff;
}

.halftone {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 420px;
    background-image: radial-gradient(circle, var(--dots) 1.6px, transparent 2.2px);
    background-size: 15px 15px;
    mask-image: radial-gradient(ellipse 55% 42% at 50% 50%, #000 10%, transparent 72%);
    pointer-events: none;
}

.halftone-a {
    top: 40px;
    transform: rotate(-9deg);
    animation: drift-a 18s ease-in-out infinite alternate;
}

.halftone-b {
    top: 220px;
    opacity: 0.7;
    transform: rotate(7deg);
    animation: drift-b 22s ease-in-out infinite alternate;
}

.orb {
    position: absolute;
    border-radius: 999px;
    background: var(--orb);
    pointer-events: none;
    animation: float 7s ease-in-out infinite alternate;
    animation-delay: calc(var(--float) * -1.3s);
}

.orb-accent {
    background: var(--accent);
}

.orb-1 { --float: 0; width: 40px; height: 40px; left: 31%; top: 56px; }
.orb-2 { --float: 1; width: 24px; height: 24px; left: 13%; top: 130px; }
.orb-3 { --float: 2; width: 38px; height: 38px; left: 23%; top: 200px; }
.orb-4 { --float: 3; width: 56px; height: 56px; left: 88%; top: 250px; }
.orb-5 { --float: 4; width: 22px; height: 22px; left: 9%; top: 540px; }
.orb-6 { --float: 5; width: 36px; height: 36px; left: 72%; top: 680px; }
.orb-7 { --float: 6; width: 22px; height: 22px; left: 40%; top: 760px; }

.stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(96px, 12vw, 200px);
}

.emergency {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.emergency-title {
    font-size: clamp(40px, 5.6vw, 84px);
}

.emergency-text {
    max-width: 560px;
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--on-dark-muted);
}

.emergency-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    margin-top: 12px;
}

.bottom {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.columns {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer .brand {
    display: inline-flex;
    align-items: center;
    align-self: start;
    gap: 14px;
}

.footer .brand-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 999px;
}

.footer .brand-name {
    font-size: 22px;
    line-height: 1.1;
}

.footer .soft {
    color: var(--on-dark-muted);
}

.column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--on-dark-muted);
}

.column address {
    font-style: normal;
}

.column a {
    transition: color 0.25s ease;
}

.column a:hover {
    color: #fff;
}

.column-title {
    margin: 0 0 6px;
    font-size: 18px;
    color: #fff;
}

.legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--dark-line);
    font-size: 14px;
    color: var(--on-dark-muted);
}

@keyframes drift-a {
    to {
        transform: rotate(-5deg) translateX(3%);
    }
}

@keyframes drift-b {
    to {
        transform: rotate(11deg) translateX(-3%);
    }
}

@keyframes float {
    to {
        transform: translateY(-22px);
    }
}

@media (max-width: 1350px) {
    .nav-phone {
        display: none;
    }
}

@media (max-width: 1000px) {
    .nav .brand-name {
        font-size: 19px;
    }

    .columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    :root {
        --inner-pad: 12px;
    }

    .page {
        gap: 8px;
        padding: 8px;
    }

    .panel {
        --radius-panel: 24px;
    }

    .heading {
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .nav {
        display: flex;
        justify-content: space-between;
        height: 64px;
        padding: 0 6px;
    }

    .nav .brand {
        padding-left: 6px;
    }

    .nav .brand-logo {
        width: 44px;
        height: 44px;
    }

    /* On phones the name splits over two lines, like on the full site. */
    .nav .brand-name {
        display: flex;
        flex-direction: column;
        font-size: 16px;
        line-height: 1.15;
    }

    .nav-end {
        display: none;
    }

    .booking {
        padding: 8px;
    }

    .booking-frame {
        height: max(560px, calc(100dvh - 32px));
        border-radius: 18px;
    }

    .pill {
        justify-content: space-between;
        white-space: normal;
        font-size: 15px;
    }

    .columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 360px) {
    .nav .brand {
        gap: 8px;
        padding-left: 4px;
    }

    .nav .brand-logo {
        width: 38px;
        height: 38px;
    }

    .nav .brand-name {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
