@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #FFF9EF; /* Ivory */
    --text-main: #5C3E2A; /* Dark walnut */
    --text-muted: #8c705c; /* Lighter walnut */
    --accent-1: #C59A63; /* Honey oak */
    --accent-2: #DDB89C; /* Dusty peach */
    --accent-success: #8DAF63; /* Spring leaf green */
    
    --glass-bg: rgba(245, 238, 223, 0.7); /* Cream white with transparency */
    --glass-border: rgba(197, 154, 99, 0.2);
    --glass-hover: rgba(245, 238, 223, 0.9);

    --weekend-bg: rgba(221, 184, 156, 0.15);
    --weekend-border: rgba(197, 154, 99, 0.3);
    --weekend-hover: rgba(221, 184, 156, 0.3);
    --weekend-active: rgba(197, 154, 99, 0.8);
    --weekend-text: #5C3E2A;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    background-image: radial-gradient(circle at 10% 20%, rgba(221, 184, 156, 0.2) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(197, 154, 99, 0.15) 0%, transparent 40%);
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

h1, h2, h3, .brand-text {
    font-weight: 700;
}

/* Background Glow Effects - Disabled for cleaner hand-painted look */
.bg-glow {
    display: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}


.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

/* LEFT PANEL: Course Info */
.course-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
}

.brand-text {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.bio-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
}

.bio-section h3 {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.bio-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.bio-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bio-skill-tag {
    background: var(--accent-2);
    color: var(--bg-primary); /* bright contrast */
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Outcomes Section */
.outcomes-section {
    margin-bottom: 2rem;
}

.outcomes-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.outcomes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.outcomes-list li {
    font-size: 0.95rem;
    color: var(--text-main);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.outcomes-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: 700;
}

/* Logistics Strip */
.logistics-strip {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1.5rem;
}

.logistics-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.logistics-item svg {
    color: var(--accent-1);
    flex-shrink: 0;
}

/* RIGHT PANEL: Calendar Config */
.calendar-section {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.2);
}

.calendar-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.calendar-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.icon-btn {
    background: #fff;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.icon-btn:hover {
    background: var(--glass-hover);
    transform: translateY(-1px);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.day-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weekend-label {
    color: var(--accent-1);
}

.days-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    font-family: inherit;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.day-cell.empty {
    pointer-events: none;
}

.day-cell.weekday {
    color: #a8a29e;
    pointer-events: none;
}

.day-cell.weekend {
    background: var(--weekend-bg);
    border-color: var(--weekend-border);
    color: var(--weekend-text);
    cursor: pointer;
}

.day-cell.weekend:hover {
    background: var(--weekend-hover);
    transform: translateY(-2px);
}

.day-cell.weekend:active {
    transform: translateY(0);
}

.day-cell.weekend.past {
    opacity: 0.4;
    pointer-events: none;
    background: rgba(0,0,0,0.02);
    border-color: transparent;
}

.day-cell.weekend.booked {
    background: rgba(221, 184, 156, 0.4);
    border-color: rgba(197, 154, 99, 0.4);
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0.9;
    flex-direction: column;
    text-decoration: line-through;
}

.day-cell.locked-premium {
    background: var(--glass-bg);
    flex-direction: column;
    color: var(--text-main);
    border: 1px solid rgba(92, 62, 42, 0.15);
    line-height: 1;
    gap: 3px;
}

.day-cell.locked-premium:hover {
    background: rgba(197, 154, 99, 0.1);
    transform: translateY(-2px);
}

.premium-icon {
    font-size: 0.65rem;
    color: var(--accent-1);
    line-height: 1;
    margin: 0;
}

.b-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
    text-decoration: none;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(92, 62, 42, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: #FFF9EF;
    margin: auto;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.selected-date-text {
    color: var(--accent-1);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.form-group label {
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    background: #fff;
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
}

.submit-btn {
    background: var(--text-main);
    color: #fff;
    border: none;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1.5, 0.5, 1), background-color 0.2s ease, opacity 0.2s ease;
    margin-top: 0.5rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: scale(1.03) translateY(-2px);
}

.form-success {
    text-align: center;
    padding: 2rem 0;
}

.form-success h3 {
    margin: 1rem 0 0.5rem;
    color: var(--accent-success);
}

.form-success p {
    color: var(--text-muted);
}

/* Below-Fold Sections */
.below-fold-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--glass-bg);
}

.below-fold-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

/* Preparation Cards */
.prep-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.prep-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.prep-card:hover {
    transform: translateY(-2px);
}

.prep-channel {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-1);
    margin-bottom: 0.5rem;
}

.prep-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.prep-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.video-link {
    display: block;
    position: relative;
    background: var(--text-main);
    margin-bottom: 1rem;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    opacity: 0.4;
    filter: grayscale(80%) contrast(1.2) sepia(0.4);
    mix-blend-mode: luminosity;
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}

.video-link:hover .video-thumb {
    opacity: 0.9;
    filter: grayscale(0%) contrast(1) sepia(0);
    transform: scale(1.02);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    text-align: center;
}

.testimonial-card.placeholder {
    opacity: 0.8;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after { content: "\201D"; }

.testimonial-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Agentic Section Redesign */
.agentic-section {
    margin-top: 2rem;
    padding: 3rem;
    background: #fdfaf6;
}

.agentic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.agentic-card {
    background: #FFF9EF;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.agentic-card:hover {
    transform: translateY(-3px);
}

.watch-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.2rem;
    background: var(--text-main);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 1.5, 0.5, 1), background-color 0.2s ease;
}

.watch-btn:hover {
    background: var(--accent-1);
    color: #fff;
    transform: scale(1.03) translateY(-2px);
}



.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .b-name {
        display: none;
    }
    .course-info {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 2rem;
    }
    .calendar-section {
        padding: 2rem;
    }
    .title {
        font-size: 2.2rem;
    }
    .prep-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .below-fold-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    .studio-logo {
        width: 36px;
    }
    .studio-logo-text {
        font-size: 5px;
        letter-spacing: 1px;
    }
}
