:root {
    --primary-dark: #0f172a;
    --primary-light: #1e293b;
    --accent-gold: #fbbf24;
    --accent-gold-hover: #d97706;
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success-green: #10b981;
    --busy-red: #ef4444;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.btn-primary,
.btn-primary-large {
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary-large:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.btn-secondary-large {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    font-weight: 600;
    border-radius: 50px;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary-large:hover {
    background: var(--text-light);
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

/* Abstract blobs for background */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 60vh;
    height: 60vh;
    background: var(--accent-gold);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
}

.hero::before {
    top: -20vh;
    left: -20vh;
}

.hero::after {
    bottom: -20vh;
    right: -20vh;
}

.glass-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: flex-end;
    /* Align links to right since logo is absolute */
    align-items: center;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    position: absolute;
    /* Take out of flow */
    top: 0;
    left: 3rem;
    /* Match nav padding */
    z-index: 20;
}

.logo img {
    height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    /* Added for better pop */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links .btn-primary {
    padding: 0.5rem 1.5rem;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content .highlight {
    color: var(--accent-gold);
    font-style: italic;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary-large,
.btn-secondary-large {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Heatmap Styles */
.heatmap-container {
    max-width: 800px;
    margin: 0 auto;
}

.heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.icon-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.heatmap-day {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s, background 0.2s;
    position: relative;
}

.heatmap-day:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

@media(min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text {
    padding: 2.5rem;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: var(--text-light);
}

.about-text .quote {
    font-style: italic;
    border-left: 3px solid var(--accent-gold);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-main);
}

.values-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.value-icon {
    font-size: 1.5rem;
}

/* Gallery */
.about-gallery {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    padding: 1rem 0;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 10px 35px 10px;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    width: 160px;
    /* Reduced for 3 columns */
    transform-origin: center;
    transition: transform 0.3s ease, z-index 0s;
}

.gallery-card img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    display: block;
}

.gallery-card .caption {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    margin-top: 8px;
    font-size: 1rem;
}

.rotate-left {
    transform: rotate(-3deg);
}

.rotate-right {
    transform: rotate(3deg);
}

.gallery-card:hover {
    transform: scale(1.1) rotate(0deg);
    z-index: 20;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Availability Levels for Heatmap */
.level-high {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.level-med {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.level-busy {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    opacity: 0.6;
    cursor: not-allowed;
}

.level-none {
    visibility: hidden;
}

.heatmap-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.dot.free {
    background: var(--success-green);
}

.dot.limited {
    background: var(--accent-gold);
}

.dot.busy {
    background: var(--busy-red);
}

.date-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.date-details.hidden {
    display: none;
}

.heatmap-day.has-selection::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-gold);
}

/* Sub-day Slots */
.sub-day-container {
    margin: 1.5rem 0;
}

.slot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.time-slot {
    flex: 1 1 120px;
    /* Grow, shrink, base width */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.time-slot:hover {
    background: rgba(255, 255, 255, 0.1);
}

.time-slot.free {
    border-color: var(--success-green);
    color: var(--success-green);
}

.time-slot.busy {
    border-color: var(--busy-red);
    color: var(--text-dim);
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-slot.selected {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    font-weight: bold;
}

.time-slot span {
    display: block;
    font-size: 0.75rem;
    margin-top: 2px;
    opacity: 0.8;
}

.btn-small {
    background: var(--accent-gold);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 0.5rem;
    cursor: pointer;
}

/* Wizard Form */
.wizard-container {
    max-width: 600px;
    margin: 0 auto;
}

.booking-context {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.booking-context.hidden {
    display: none;
}

.booking-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.booking-chip {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chip-date {
    font-weight: 700;
    color: var(--success-green);
    min-width: 80px;
}

.chip-times {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.time-tag {
    background: rgba(16, 185, 129, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.progress-bar .step {
    width: 30px;
    height: 30px;
    background: var(--primary-light);
    border: 2px solid var(--text-dim);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 2;
    transition: all 0.3s;
}

.progress-bar .step.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
}

.progress-bar .line {
    flex: 1;
    height: 2px;
    background: var(--glass-border);
    margin: 0 5px;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-row {
    display: flex;
    gap: 1rem;
}

.input-row .input-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.btn-row {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-next,
.btn-submit {
    background: var(--accent-gold);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-dark);
}

.btn-prev {
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.service-card input {
    display: none;
}

.service-card input:checked+.card-content {
    color: var(--accent-gold);
}

.service-card input:checked~.service-card {
    border-color: var(--accent-gold);
}

.service-card:has(input:checked) {
    border-color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.1);
}

.card-content .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #000;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 4rem;
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {

    /* Hero & Nav */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        /* Space for new nav layout */
    }

    .glass-nav {
        flex-direction: column;
        padding: 1rem;
        background: rgba(30, 41, 59, 0.95);
        /* Darker background for readability */
        position: relative;
        /* Switch from absolute to push content down or keep abs but manage height */
        position: absolute;
    }

    .logo {
        position: static;
        /* Reset absolute positioning */
        margin-bottom: 1rem;
        justify-content: center;
        left: auto;
    }

    .logo img {
        height: 120px;
        /* Smaller logo */
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-links li {
        margin: 0;
    }

    /* Typography fixes */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* About Section */
    .section-container {
        padding: 3rem 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        padding: 1.5rem;
    }

    /* Gallery - Stack columns vertically */
    .about-gallery {
        flex-direction: column;
        align-items: center;
    }

    .gallery-column {
        width: 100%;
        align-items: center;
        margin-top: 0 !important;
        /* Reset specific top margins */
    }

    /* Reset individual rotation/margins for cleaner vertical stack if desired, 
       or keep them for "messy" look. Let's keep them but ensure spacing is safe. */
    .gallery-card {
        width: 100%;
        max-width: 280px;
        margin-top: 1.5rem;
    }

    .mt-5,
    .mt-4,
    .mt-2 {
        margin-top: 1.5rem;
    }

    /* Forms */
    .input-row {
        flex-direction: column;
        gap: 0;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }
}