:root {
    --bg: #e4eefc;
    --paper: rgba(255, 255, 255, 0.92);
    --ink: #0f1721;
    --muted: #3f5874;
    --line: rgba(60, 97, 142, 0.18);
    --accent: #6f9fdb;
    --accent-deep: #2f5f95;
    --accent-soft: #d2e4fb;
    --shadow: 0 18px 50px rgba(37, 67, 104, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(111, 159, 219, 0.48), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(74, 127, 194, 0.28), transparent 26%),
        linear-gradient(180deg, #f4f9ff 0%, #dceafe 54%, #edf5ff 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)), url("../branding/webbackground.jpg");
    background-position: center top;
    background-repeat: repeat;
    background-size: 640px auto;
    opacity: 0.3;
    pointer-events: none;
}

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

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.site-header,
.site-footer,
.panel,
.hero-card,
.service-card,
.feature-grid article,
.metric-grid article,
.hero-logo-card {
    backdrop-filter: blur(16px);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.site-header,
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 12px 22px;
    border-radius: 24px;
}

.site-header {
    margin-bottom: 28px;
    position: relative;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(47, 95, 149, 0.18);
    background: rgba(255, 255, 255, 0.78);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    box-shadow: 0 12px 24px rgba(37, 67, 104, 0.08);
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #16314d;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    width: 220px;
    height: 58px;
    overflow: hidden;
}

.brand-mark {
    width: 220px;
    height: 220px;
    display: block;
    object-fit: cover;
    object-position: center 52%;
    transform: scale(1.02);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-weight: 600;
    font-size: 1.03rem;
}

.portal-avatar-link {
    flex-shrink: 0;
}

.portal-avatar-badge {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(127, 176, 233, 0.95), rgba(47, 95, 149, 0.95));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 30px rgba(37, 67, 104, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.88);
}

.portal-avatar-badge svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.site-nav a:hover,
.text-link:hover {
    color: var(--accent-deep);
}

.hero,
.contact-grid,
.hero-subgrid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

.hero,
.hero-subgrid {
    margin-bottom: 24px;
}

.hero-branded {
    align-items: center;
}

.hero-copy h1,
.page-intro h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.94;
    margin: 0 0 16px;
    color: #102338;
}

.hero-copy .lead,
.page-intro p,
.panel p,
.service-card p,
.hero-card p {
    color: var(--muted);
    line-height: 1.7;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--accent-deep);
    margin-bottom: 10px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.compact-actions {
    margin-top: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 700;
}

.button.primary {
    background: linear-gradient(135deg, #7fb0e9 0%, #3e6f9f 100%);
    color: white;
}

.button.secondary {
    background: white;
    color: #18324d;
    border: 1px solid rgba(62, 111, 159, 0.22);
}

.hero-card,
.panel,
.page-intro,
.flash-wrap,
.feature-grid,
.metric-grid {
    margin-bottom: 24px;
}

.hero-card,
.panel,
.hero-logo-card {
    border-radius: 28px;
    padding: 24px;
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.hero-floral-frame {
    width: 100%;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(77, 111, 152, 0.22));
}

.hero-logo-card {
    position: absolute;
    inset: 14% 8% auto 8%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-logo {
    width: 100%;
    display: block;
    border-radius: 22px;
}

.intro-card {
    background: linear-gradient(135deg, rgba(217, 233, 251, 0.85), rgba(255, 255, 255, 0.9));
}

.hours-list,
.checklist {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.hours-list li,
.checklist div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.feature-grid,
.service-cards,
.metric-grid,
.portal-appointments {
    display: grid;
    gap: 18px;
}

.feature-grid {
    grid-template-columns: repeat(4, 1fr);
}

.service-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-grid article,
.service-card,
.metric-grid article,
.portal-appointment-card {
    border-radius: 22px;
    padding: 22px;
}

.portal-appointment-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.booking-payment-block {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
}

.portal-appointment-meta h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    margin: 0 0 8px;
    color: #0f2740;
}

.danger-button {
    border-color: rgba(170, 72, 72, 0.2);
    color: #8a3f3f;
}

.feature-grid h3,
.service-card h3,
.panel h2,
.hero-card h2,
.contact-grid h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    margin: 0 0 10px;
    color: #0f2740;
}

.service-time,
.metric-grid span {
    color: var(--accent-deep);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-grid strong {
    display: block;
    margin-top: 10px;
    font-size: 2.2rem;
    font-family: "Cormorant Garamond", serif;
}

.panel-head {
    margin-bottom: 18px;
}

.accent-panel {
    background: linear-gradient(135deg, rgba(217, 233, 251, 0.92), rgba(255, 255, 255, 0.95));
}

.flash {
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.flash-success {
    background: #e6f2ff;
}

.flash-error {
    background: #f8e8e8;
}

.stack-form {
    display: grid;
    gap: 16px;
}

.split-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.inline-form {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 10px;
    align-items: center;
}

.stack-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
}

.field-hint {
    color: var(--accent-deep);
    font-size: 0.88rem;
    font-weight: 600;
}

#square-card {
    min-height: 90px;
    padding: 10px 0;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    font: inherit;
    color: var(--ink);
}

.checkbox-row {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.checkbox-row input {
    width: auto;
}

.booking-frame {
    width: 100%;
    min-height: 880px;
    border: 0;
    border-radius: 20px;
    background: white;
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
}

.site-footer {
    margin-top: 28px;
}

.text-link {
    color: var(--accent-deep);
    font-weight: 700;
}

.booking-intro {
    margin-bottom: 18px;
}

.booking-flow-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
    gap: 22px;
    align-items: start;
}

.booking-flow-main {
    min-width: 0;
}

.booking-flow-main-full {
    width: 100%;
}

.booking-flow-banner {
    display: grid;
    gap: 14px;
}

.booking-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.booking-progress-step {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
    color: var(--muted);
    text-align: center;
}

.booking-progress-step span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(47, 95, 149, 0.08);
    font-size: 0.86rem;
    font-weight: 800;
}

.booking-progress-step strong {
    font-size: 0.82rem;
}

.booking-progress-step.active,
.booking-progress-step.complete {
    color: #16314d;
    border-color: rgba(47, 95, 149, 0.26);
}

.booking-progress-step.active {
    background: linear-gradient(135deg, rgba(215, 230, 250, 0.98), rgba(255, 255, 255, 0.96));
    box-shadow: 0 14px 28px rgba(37, 67, 104, 0.12);
}

.booking-progress-step.active span,
.booking-progress-step.complete span {
    background: linear-gradient(135deg, #7fb0e9 0%, #3e6f9f 100%);
    color: #fff;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.booking-step-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.booking-step-note {
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(214, 228, 251, 0.65);
    border: 1px solid rgba(47, 95, 149, 0.12);
}

.booking-step-note strong,
.booking-confirm-label,
.booking-service-meta {
    display: block;
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.booking-step-note span {
    display: block;
    margin-top: 6px;
    color: #16314d;
    font-weight: 700;
}

.booking-service-groups {
    display: grid;
    gap: 20px;
}

.booking-step-callout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.booking-step-callout div,
.booking-times-head,
.booking-policy-card {
    padding: 15px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(47, 95, 149, 0.12);
}

.booking-step-callout strong,
.booking-times-head strong {
    display: block;
    margin-bottom: 4px;
    color: #16314d;
}

.booking-step-callout span,
.booking-times-head span {
    color: var(--muted);
    line-height: 1.5;
}

.booking-selected-slot {
    display: grid;
    align-content: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
}

.booking-selected-slot strong {
    margin-top: 6px;
    color: #16314d;
}

.booking-service-group {
    display: grid;
    gap: 12px;
}

.booking-service-group-head h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    color: #112841;
}

.booking-service-group-head p {
    margin: 6px 0 0;
}

.booking-service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.booking-service-card {
    display: grid;
    gap: 10px;
    text-align: left;
    width: 100%;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(47, 95, 149, 0.12);
    background: rgba(255, 255, 255, 0.84);
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(37, 67, 104, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.booking-service-card:hover,
.booking-service-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(47, 95, 149, 0.3);
    box-shadow: 0 16px 32px rgba(37, 67, 104, 0.14);
}

.booking-service-card.selected {
    background: linear-gradient(135deg, rgba(214, 228, 251, 0.95), rgba(255, 255, 255, 0.98));
    border-color: rgba(47, 95, 149, 0.46);
    box-shadow: 0 18px 36px rgba(37, 67, 104, 0.16);
}

.booking-service-card strong {
    font-size: 1.2rem;
    line-height: 1.2;
    color: #0f2740;
}

.booking-service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.booking-service-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: #16314d;
    font-weight: 700;
}

.booking-times-wrap {
    margin-top: 12px;
}

.booking-times-head {
    margin-bottom: 12px;
}

.agreement-check {
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(214, 228, 251, 0.56);
    border: 1px solid rgba(47, 95, 149, 0.12);
}

.agreement-check input {
    width: auto;
    margin-top: 3px;
}

.agreement-check span {
    color: #16314d;
    line-height: 1.55;
}

.booking-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.booking-time-chip,
.booking-times-empty {
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(47, 95, 149, 0.16);
    background: rgba(255, 255, 255, 0.84);
    text-align: center;
}

.booking-time-chip {
    cursor: pointer;
    font: inherit;
    color: #16314d;
    font-weight: 700;
}

.booking-time-chip.selected,
.booking-time-chip:hover,
.booking-time-chip:focus-visible {
    background: linear-gradient(135deg, #7fb0e9 0%, #3e6f9f 100%);
    color: #fff;
    border-color: transparent;
}

.booking-times-empty {
    color: var(--muted);
}

.booking-step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.booking-step-actions-split {
    justify-content: space-between;
}

.booking-confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.booking-confirm-card {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(47, 95, 149, 0.12);
}

.booking-confirm-card strong {
    display: block;
    margin-top: 6px;
    color: #16314d;
    font-size: 1.08rem;
}

.booking-policy-card {
    margin-bottom: 12px;
}

.policy-points {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.policy-points li::marker {
    color: var(--accent-deep);
}

@media (max-width: 900px) {
    .hero,
    .contact-grid,
    .hero-subgrid,
    .feature-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-logo-card {
        position: relative;
        inset: auto;
        margin-top: -22%;
    }

    .site-header,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header-actions {
        width: auto;
        margin-left: auto;
    }

    .page-shell {
        width: min(100% - 16px, 1180px);
        padding: 10px 0 24px;
    }

    .site-header,
    .site-footer,
    .panel,
    .hero-card,
    .portal-appointment-card {
        border-radius: 20px;
    }

    .site-header {
        display: grid;
        grid-template-columns: 52px 1fr 52px;
        align-items: center;
        gap: 8px;
        padding: 12px 14px;
        position: sticky;
        top: 8px;
        z-index: 10;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        font-size: 0.95rem;
        padding: 14px;
        border-radius: 22px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
        z-index: 20;
    }

    .site-nav.is-open {
        display: grid;
    }

    .portal-avatar-link {
        justify-self: end;
    }

    .site-nav a {
        text-align: center;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid var(--line);
        border-radius: 999px;
    }

    .page-intro h1,
    .hero-copy h1 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
        line-height: 0.98;
    }

    .booking-flow-shell {
        grid-template-columns: 1fr;
    }

    .booking-progress {
        grid-template-columns: repeat(5, minmax(70px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .booking-step-head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .booking-step-note {
        min-width: 0;
    }

    .booking-service-list,
    .booking-times-grid,
    .booking-confirm-grid,
    .booking-step-callout {
        grid-template-columns: 1fr;
    }

    .booking-step-actions,
    .booking-step-actions-split {
        flex-direction: column-reverse;
    }

    .booking-service-card {
        padding: 16px;
        border-radius: 18px;
    }

    .booking-progress-step {
        min-width: 76px;
    }

    .booking-step-actions .button,
    .booking-step-actions-split .button {
        width: 100%;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .table-wrap {
        overflow: visible;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody tr {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: 0 10px 30px rgba(37, 67, 104, 0.08);
    }

    td {
        border-bottom: 0;
        padding: 6px 0;
    }

    .split-fields {
        grid-template-columns: 1fr;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }

    .brand-lockup {
        justify-self: center;
        width: 190px;
        height: 50px;
    }

    .brand-mark {
        width: 190px;
        height: 190px;
    }
}
