/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
    --cream:       #F0E8D8;
    --terra:       #C85228;
    --terra-dark:  #9E3E1C;
    --terra-pale:  rgba(200, 82, 40, 0.12);
    --text:        #3D1A08;
    --text-muted:  #8A6250;
    --border:      rgba(200, 82, 40, 0.2);
}

/* ─── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--terra);
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 2rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
}

.header-inner h1 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.header-link {
    color: var(--terra);
    text-decoration: none;
}

.header-nav a {
    color: var(--terra);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity 0.15s;
}

.header-nav a:hover {
    opacity: 0.6;
}

/* ─── Main ─────────────────────────────────────────────────────────────────── */
.site-main {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

/* ─── Calendar wrap ────────────────────────────────────────────────────────── */
.calendar-wrap {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.calendar-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--terra);
    flex-shrink: 0;
}

/* ─── FullCalendar overrides ───────────────────────────────────────────────── */
.fc .fc-button-primary {
    background-color: var(--terra);
    border-color: var(--terra);
}

.fc .fc-button-primary:hover {
    background-color: var(--terra-dark);
    border-color: var(--terra-dark);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: var(--terra-dark);
    border-color: var(--terra-dark);
}

.fc-event {
    cursor: pointer;
    border: none !important;
    background-color: var(--terra) !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6 !important;
}


.fc-timegrid-event .fc-event-main {
    padding: 3px 8px !important;
}

.fc-event:hover {
    filter: brightness(1.1);
}

.fc-timegrid-slot {
    height: 1.6rem !important;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: var(--terra);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ─── Content card ─────────────────────────────────────────────────────────── */
.content-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 2rem;
    max-width: 520px;
    margin: 0 auto;
}

.content-card--center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 2.5rem 2rem;
}

.content-card h2 {
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--terra);
}

.content-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* ─── Slot summary ─────────────────────────────────────────────────────────── */
.slot-summary {
    background: var(--terra-pale);
    border-left: 3px solid var(--terra);
    border-radius: 6px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
}

.slot-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.slot-time {
    font-size: 1.9rem;
    font-weight: 400;
    color: var(--terra);
    margin-bottom: 0.3rem;
}

.slot-change {
    font-size: 0.875rem;
    color: var(--terra);
    text-decoration: none;
    opacity: 0.7;
    display: inline-block;
    margin-top: 0.6rem;
}

.slot-change:hover {
    opacity: 1;
}

/* ─── Form ──────────────────────────────────────────────────────────────────── */
.booking-form,
.booking-form label,
.booking-form input,
.booking-form button,
.form-note,
.slot-label,
.slot-change {
    font-family: 'Inter', system-ui, sans-serif;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.03em;
}

.required {
    color: var(--terra);
}

.form-group input {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--cream);
    color: var(--text);
    transition: border-color 0.15s;
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.form-group input:focus {
    outline: none;
    border-color: var(--terra);
    box-shadow: 0 0 0 3px var(--terra-pale);
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    background: var(--terra);
    color: var(--cream);
    border: none;
    border-radius: 100px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn:hover {
    background: var(--terra-dark);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ─── Misc ──────────────────────────────────────────────────────────────────── */
.form-note {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.error-message {
    background: rgba(200, 82, 40, 0.08);
    border-left: 3px solid var(--terra);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--terra-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.success-body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.success-btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border: 1.5px solid var(--terra);
    border-radius: 100px;
    color: var(--terra);
    background: transparent;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.success-btn:hover {
    background: var(--terra);
    color: var(--cream);
}

.status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.25rem;
}

.status-icon--success {
    background: var(--terra-pale);
    color: var(--terra);
}

.status-icon--neutral {
    background: var(--terra-pale);
    color: var(--text-muted);
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .site-header {
        padding: 1rem 1.25rem;
    }

    .calendar-wrap {
        padding: 1rem;
    }

    .site-main {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .content-card h2 {
        font-size: 1.7rem;
    }

    .slot-time {
        font-size: 1.3rem;
    }

    .fc .fc-toolbar-title {
        font-size: 1.1rem;
    }
}
