:root {
    --ink: #0b1b22;
    --ink-soft: #24323b;
    --accent: #c45500;
    --accent-dark: #a64700;
    --sky: #dbe8f6;
    --pearl: #f5f2eb;
    --sand: #ffe8c7;
    --border: rgba(12, 27, 34, 0.14);
    --surface: #ffffff;
    --shadow: 0 24px 48px rgba(11, 27, 34, 0.16);
    --radius: 24px;
    font-size: 16px;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 15% 10%, #ffffff 0%, #f0f7ff 32%, #fdf2e3 100%);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(244, 123, 32, 0.25);
    background: var(--accent-dark);
}

.btn.secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.footer .btn {
    background: #ffffff;
    color: #0b1b22;
    border-color: transparent;
}

.footer .btn:hover {
    background: #f5f2eb;
    box-shadow: 0 10px 22px rgba(11, 27, 34, 0.2);
}

header.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(12, 27, 34, 0.08);
}

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

.logo {
    font-family: "Merriweather", serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
}

.site-header .btn {
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1.4rem;
    font-size: 0.95rem;
}

.hero {
    padding: 5rem 0 3rem;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 10%, rgba(244, 123, 32, 0.18), transparent 55%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    align-items: center;
    animation: rise 0.9s ease both;
}

.hero h1 {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.05rem;
    color: var(--ink-soft);
}

.hero-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(12, 27, 34, 0.08);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.tag {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--sand);
    font-size: 0.85rem;
}

.section {
    padding: 3.5rem 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0;
}

.section-title p {
    max-width: 32rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(12, 27, 34, 0.08);
    box-shadow: 0 12px 30px rgba(11, 27, 34, 0.08);
    animation: rise 0.8s ease both;
}

.card-grid .card:nth-child(2) {
    animation-delay: 0.08s;
}

.card-grid .card:nth-child(3) {
    animation-delay: 0.16s;
}

.card-grid .card:nth-child(4) {
    animation-delay: 0.24s;
}

.card-grid .card:nth-child(5) {
    animation-delay: 0.32s;
}

.card-grid .card:nth-child(6) {
    animation-delay: 0.4s;
}

.card h3 {
    margin-top: 0;
}

.steps {
    display: grid;
    gap: 1.2rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed rgba(12, 27, 34, 0.2);
    border-radius: 16px;
    padding: 1rem;
}

.step span {
    font-weight: 700;
    color: var(--accent);
}

.booking-shell {
    background: var(--surface);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(12, 27, 34, 0.08);
    animation: rise 0.8s ease both;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.2rem;
}

.day-card {
    background: #fef9f4;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(12, 27, 34, 0.1);
}

.day-card h3 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
}

.slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.slot {
    border: 1px solid rgba(12, 27, 34, 0.15);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    background: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.slot-time {
    font-weight: 600;
}

.slot-note {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.slot-unavailable {
    background: #f2f2f2;
    color: rgba(11, 27, 34, 0.55);
    border-color: rgba(12, 27, 34, 0.1);
    cursor: not-allowed;
    text-decoration: line-through;
}

.slot-reserved {
    background: #fff3e7;
    color: rgba(11, 27, 34, 0.7);
    border-color: rgba(196, 85, 0, 0.35);
    cursor: not-allowed;
}

.slot.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(12, 27, 34, 0.2);
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
}

#registration_number {
    text-transform: uppercase;
}

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

.notice {
    background: #fff3e7;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #8a4a13;
}

.footer {
    padding: 2.5rem 0 3rem;
    background: #0b1b22;
    color: #f6f2ea;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.footer a {
    color: #f6f2ea;
}

.footer-qr img {
    width: 140px;
    height: auto;
    padding: 0.4rem;
    border-radius: 12px;
    background: #fff;
}

.call-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    background: var(--accent);
    color: #fff;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(11, 27, 34, 0.22);
}

.call-float:hover {
    background: var(--accent-dark);
}

@media (min-width: 901px) {
    .call-float {
        display: none;
    }
}

.admin-layout {
    min-height: 100vh;
    display: flex;
}

.admin-sidebar {
    width: 240px;
    background: #0b1b22;
    color: #f6f2ea;
    padding: 2rem 1.5rem;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    background: #f7f7f5;
}

.admin-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(12, 27, 34, 0.1);
    box-shadow: 0 10px 24px rgba(11, 27, 34, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.75rem 0.6rem;
    border-bottom: 1px solid rgba(12, 27, 34, 0.08);
}

.row-cancelled td {
    text-decoration: line-through;
    color: rgba(11, 27, 34, 0.6);
}

.badge {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #ffe0c2;
}

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

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
