/* css/about.css */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-gold: #D4AF37;
    --dark-charcoal: #121212;
    --off-white: #fdfdfd;
    --text-gray: #444444;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--off-white);
    color: var(--text-gray);
    line-height: 1.8;
}

/* Hero Section - Reduced size while keeping ratio */
.about-hero {
    background-color: var(--dark-charcoal);
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    width: 100%;
    display: block;
    min-height: 450px;
    aspect-ratio: 21 / 9;
    border-bottom: 3px solid var(--primary-gold);
}

.slogan-banner {
    text-align: center;
    padding: 50px 20px 10px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.slogan-banner h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-gold);
    font-size: 2.2rem;
    font-style: italic;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Story Container */
.story-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.story-section {
    margin-bottom: 50px;
}

.story-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.highlight-box {
    background-color: #fffdf5;
    border-left: 4px solid var(--primary-gold);
    padding: 25px 30px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.highlight-box p {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--dark-charcoal);
    font-style: italic;
}

/* 3D Tour Section */
.tour-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.tour-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--dark-charcoal);
    margin-bottom: 20px;
}

.tour-section p {
    margin-bottom: 30px; 
}

.tour-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border: 3px solid var(--primary-gold);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.tour-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* THE FULLSCREEN FIX: CSS OVERRIDE */
.tour-container.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    padding-bottom: 0 !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    border: none !important;
}

/* Close Button (Hidden by default) */
.btn-close-tour {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
}

.tour-container.is-fullscreen + .btn-close-tour {
    display: block; /* Only show when tour is expanded */
}

/* Full Screen Actions - Hidden on Desktop */
.tour-actions {
    display: none; 
    margin-top: 25px;
}

.btn-fullscreen {
    display: inline-block;
    background-color: var(--primary-gold);
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

/* Body lock when in fullscreen */
body.tour-open {
    overflow: hidden !important;
}

/* Philosophy Banner */
.philosophy-banner {
    background-color: var(--dark-charcoal);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
}

.philosophy-banner h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-gold);
    font-size: 2.2rem;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
}

.philosophy-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.philosophy-item {
    flex: 1;
    min-width: 250px;
}

.philosophy-item h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.philosophy-item p {
    font-size: 1rem;
    color: #cccccc;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .about-hero {
        min-height: 250px;
        aspect-ratio: 16 / 10;
    }
    
    .slogan-banner h2 {
        font-size: 1.6rem;
    }

    .tour-section h3, 
    .philosophy-banner h3 {
        font-size: 1.8rem;
    }

    /* Show the button only on mobile */
    .tour-actions {
        display: block;
    }
}