:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-alt: #eef4ff;
    --text: #162033;
    --muted: #5f6b82;
    --border: rgba(22, 32, 51, 0.12);
    --primary: #2457f5;
    --primary-dark: #1947d0;
    --primary-soft: rgba(36, 87, 245, 0.1);
    --success: #138a52;
    --warning: #c07700;
    --danger: #c43d3d;
    --closed: #d6dae3;
    --shadow: 0 18px 40px rgba(18, 34, 66, 0.08);
    --radius: 24px;
    --radius-sm: 16px;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #eff7f6 0%, #f7f8fb 24%, #ffffff 100%);
}

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

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.shell {
    width: min(calc(100% - 2rem), var(--shell));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--border);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-kicker {
    font-size: 0.73rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(36, 87, 245, 0.72);
    font-weight: 700;
}

.brand-title {
    font-size: 1.08rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links > a:not(.button) {
    font-size: 0.95rem;
    color: var(--muted);
}

.nav-links > a.is-active,
.nav-links > a:hover {
    color: var(--text);
}

.user-pill {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(109, 132, 255, 0.08);
    border: 1px solid rgba(109, 132, 255, 0.14);
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 600;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: 0.2s ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 14px 28px rgba(36, 87, 245, 0.22);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-outline {
    background: rgba(255, 255, 255, 0.76);
    border-color: var(--border);
    color: var(--text);
}

.button-outline:hover {
    background: #fff;
}

.full-width {
    width: 100%;
}

.hero-section {
    padding: 3.5rem 0 2rem;
}

.hero-grid,
.two-column-layout,
.info-grid,
.footer-grid,
.admin-grid,
.login-grid {
    display: grid;
    gap: 2rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
}

.hero-copy,
.hero-panel,
.booking-card,
.info-card,
.feature-card,
.login-card,
.admin-card,
.metric-box,
.calendar-card,
.faq-item,
.login-gate-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 1rem 0;
}

.hero-copy h1,
.section-heading h2,
.page-title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.lead,
.section-heading p,
.info-card p,
.feature-card p,
.helper-text,
.faq-item p,
.flash,
.reservation-item p,
.table-subtle,
.metric-subtle,
.login-card p {
    color: var(--muted);
    line-height: 1.75;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin: 1.8rem 0 0;
}

.feature-cards,
.metric-boxes,
.faq-grid {
    display: grid;
    gap: 1rem;
}

.feature-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
}

.feature-card,
.info-card,
.booking-card,
.login-card,
.admin-card,
.login-gate-card,
.calendar-card,
.faq-item {
    padding: 1.5rem;
}

.hero-panel {
    padding: 1.6rem;
}

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

.metric-box {
    padding: 1.2rem;
}

.metric-box span,
.metric-subtle {
    display: block;
    color: var(--muted);
    font-size: 0.94rem;
}

.metric-box strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 2rem;
}

.info-card.muted {
    background: var(--surface-alt);
}

.section-block {
    padding: 1.5rem 0 3rem;
}

.two-column-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    align-items: start;
}

.section-heading {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.3rem;
}

.section-heading.compact h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-heading.narrow {
    max-width: 42rem;
}

.legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    display: inline-block;
}

.dot-open { background: rgba(19, 138, 82, 0.9); }
.dot-booked { background: rgba(196, 61, 61, 0.9); }
.dot-blocked { background: rgba(192, 119, 0, 0.95); }
.dot-closed { background: var(--closed); }

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

.calendar-card-header {
    margin-bottom: 1rem;
}

.calendar-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

.calendar-weekdays {
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.day {
    aspect-ratio: 1;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.day-empty {
    background: transparent;
    border: 0;
}

.day-open { background: rgba(19, 138, 82, 0.14); color: #0d663d; }
.day-booked { background: rgba(196, 61, 61, 0.14); color: #9d2020; }
.day-blocked { background: rgba(192, 119, 0, 0.16); color: #8f5800; }
.day-closed { background: #edf0f5; color: #96a0b2; }
.day-past { opacity: 0.55; }

.booking-form,
.form-grid {
    display: grid;
    gap: 1rem;
}

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

label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--text);
}

label span {
    font-size: 0.94rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 0.88rem 1rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(36, 87, 245, 0.45);
    box-shadow: 0 0 0 4px rgba(36, 87, 245, 0.12);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.summary-box {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: #f7faff;
    border: 1px solid rgba(36, 87, 245, 0.14);
}

.summary-box h3,
.login-card h1,
.admin-card h2,
.page-title-small {
    margin-top: 0;
}

.summary-table,
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table th,
.summary-table td,
.data-table th,
.data-table td {
    text-align: left;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(22, 32, 51, 0.08);
    vertical-align: top;
}

.summary-table th,
.data-table th {
    color: var(--muted);
    font-weight: 600;
    width: 36%;
}

.secondary-card {
    margin-top: 1rem;
}

.reservation-list {
    display: grid;
    gap: 0.9rem;
}

.reservation-item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(22, 32, 51, 0.08);
}

.reservation-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.reservation-item h3,
.faq-item h3,
.feature-card h3,
.info-card h2,
.login-gate-card h3 {
    margin: 0 0 0.45rem;
}

.reservation-meta {
    display: grid;
    gap: 0.55rem;
    justify-items: end;
    text-align: right;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-confirmed {
    background: rgba(19, 138, 82, 0.12);
    color: #0c6d41;
}

.status-cancelled {
    background: rgba(196, 61, 61, 0.12);
    color: #9e2323;
}

.flash-stack {
    padding-top: 1rem;
}

.flash {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    margin-bottom: 0.85rem;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(19, 138, 82, 0.1);
    border-color: rgba(19, 138, 82, 0.15);
    color: #0d663d;
}

.flash-error {
    background: rgba(196, 61, 61, 0.1);
    border-color: rgba(196, 61, 61, 0.15);
    color: #9d2020;
}

.flash-info {
    background: rgba(36, 87, 245, 0.1);
    border-color: rgba(36, 87, 245, 0.14);
    color: var(--primary-dark);
}

.login-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 3rem 0 4rem;
}

.login-card .helper-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.admin-layout {
    padding: 2rem 0 4rem;
}

.admin-shell {
    display: grid;
    gap: 1.5rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-grid {
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
}

.admin-card h2,
.page-title-small {
    font-size: 1.45rem;
}

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

.data-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.inline-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.light-surface {
    background: linear-gradient(180deg, rgba(237, 244, 255, 0.6), rgba(255, 255, 255, 0));
}

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

.faq-section {
    padding-bottom: 4.5rem;
}

.site-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--border);
    background: #fff;
}

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

.footer-title {
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.footer-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .hero-grid,
    .two-column-layout,
    .admin-grid,
    .login-grid,
    .info-grid,
    .faq-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 720px) {
    .nav-row,
    .nav-links,
    .hero-actions,
    .reservation-item {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-cards,
    .metric-boxes,
    .info-grid,
    .faq-grid,
    .admin-stats,
    .form-grid.two-up {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 2rem;
    }

    .hero-copy h1,
    .section-heading h2,
    .page-title {
        font-size: 2.2rem;
    }

    .reservation-meta {
        justify-items: start;
        text-align: left;
    }

    .day {
        border-radius: 10px;
        font-size: 0.82rem;
    }
}
