/* =========================================
   1. GLOBAL STYLES & BASE LAYOUT
   (Imported from homepage CSS for colors, fonts, and resets)
   ========================================= */

/* CSS Custom Properties (Variables) */
:root {
    --background: #0a0a0a;
    --foreground: #f5f5f5;
    --card: #1a1a1a;
    --primary: #b38d31;
    --primary-foreground: #0a0a0a;
    --muted-foreground: #a1a1a1;
    --accent: #b38d31;
    --border: #2a2a2a;
    --charcoal: #1a1a1a;
}

/* Global Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 700; }
.container { max-width: 1280px; margin: auto; padding: 0 1.5rem; }
section { padding: 60px 0; background-color: var(--background); }


/* --- Reused Homepage Components (Ensure consistency) --- */
.section-title { font-size: 3.5rem; text-align: center; margin-bottom: 2rem; color: #FFFFFF; }
.cta-btn {
    display: inline-block; padding: 0.875rem 1.75rem; border-radius: 0.5rem;
    background-color: var(--primary); color: var(--primary-foreground);
    transition: all 0.3s; text-decoration: none; font-weight: 700;
}
.cta-btn:hover { background-color: #a89100; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(218, 185, 0, 0.4); }


/* =========================================
   2. PAGE HERO / HEADER
   ========================================= */

/* Reused About Hero Styling for Inner Page Header */
.about-hero {
    position: relative;
    height: 45vh;
    min-height: 400px;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--charcoal);
    background-size: cover; background-position: center center;
    padding-top: 100px; /* Space for fixed header */
}

/* Gradient Overlay */
.about-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
}

.hero-title {
    font-size: 4rem; font-weight: 900; color: white;
    margin-bottom: 1rem; position: relative; z-index: 10;
}

.hero-subline {
    font-size: 1.75rem; font-weight: 300; color: rgba(255, 255, 255, 0.9);
    position: relative; z-index: 10;
}


/* =========================================
   3. FEATURED TESTIMONIAL (VIDEO & QUOTE)
   ========================================= */

#featured-testimonial {
    padding: 5rem 0;
    background-color: var(--card); /* Dark gray background */
}

.intro-paragraph {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--muted-foreground);
    text-align: center;
}

/* --- Layout: Video + Quote --- */
.testimonial-layout {
    display: flex;
    flex-direction: column; /* Stacks the elements vertically */
    align-items: center;
    max-width: 1000px;
}

/* --- Video Player Container --- */
.video-player-main {
    width: 100%;
    max-width: 800px; /* Max width for video player */
    margin-bottom: 4rem;
}

.video-wrapper {
    width: 100%;
    margin-bottom: 0.75rem;
    background-color: var(--charcoal);
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
    border: 3px solid var(--primary); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9; /* Enforce 16:9 landscape */
}
.video-wrapper.video-portrait {
    aspect-ratio: 9 / 16; /* Set to the video's natural portrait ratio. Replace '9 / 16' with the exact ratio if different (e.g., '3 / 4' for 3:4). */
}
.video-wrapper.video-portrait .local-video {
    object-fit: contain; /* Shows the full video without cropping; adds black bars if the container is wider. Use 'cover' if you prefer cropping to fill. */
    opacity: 1.0; /* Ensure it's fully visible (no dimming) since portrait videos might not need the play button overlay as much. */
}
.video-wrapper .local-video {
    width: 100%; height: 100%;
    object-fit: cover; /* Fill the 16:9 container, cropping if necessary */
    display: block; opacity: 0.7; transition: opacity 0.3s ease;
}

.local-video:fullscreen {
    aspect-ratio: 9 / 16; /* Enforce portrait aspect ratio in fullscreen. Adjust '9 / 16' to your video's exact ratio if different (e.g., 3 / 4 for 3:4). */
    object-fit: contain; /* Ensures the full video fits without cropping, adding bars if needed. Use 'cover' if you prefer cropping to fill. */
    width: 100%; /* Full width in fullscreen */
    height: 100%; /* Full height in fullscreen */
}

.video-wrapper:fullscreen {
    aspect-ratio: unset; /* Same as above, adjust ratio as needed */
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-wrapper:fullscreen .local-video {
    object-fit: contain; /* Or 'cover' based on preference */
    width: 100%;
    height: 100%;
}

/* Play Button Styling (Reused from homepage) */
.play-button {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background-color: rgba(218, 185, 0, 0.85); color: #121212; border: none; border-radius: 50%;
    width: 80px; height: 80px; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    padding-left: 5px; transition: background-color 0.2s, opacity 0.3s;
}

.video-wrapper.is-playing .play-button { opacity: 0; pointer-events: none; }

/* --- NEW: Fullscreen Button Styles --- */
.fullscreen-button {
    /* Position it in the bottom right corner */
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    
    /* Basic styling to make it look like a control button */
    background: rgba(0, 0, 0, 0.5); 
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    line-height: 0; 
    
    /* CRITICAL: Hide it by default */
    opacity: 0;
    pointer-events: none; /* Make it unclickable when invisible */
    transition: opacity 0.3s;
}

/* CRITICAL FIX: Make the button and video visible when playing */
.video-wrapper.is-playing .fullscreen-button {
    opacity: 1; /* Make it visible */
    pointer-events: auto; /* Make it clickable */
}

.video-wrapper.is-playing .local-video {
    opacity: 1.0; /* Ensure video is fully visible (not dimmed) when playing */
}
/* --- END NEW STYLES --- */


/* --- Quote Block --- */
.quote-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.long-testimonial-quote {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--foreground);
    margin: 0 auto 1.5rem auto;
    padding: 0 1rem;
    font-style: italic;
    border-left: 4px solid var(--primary); /* Gold accent */
    padding-left: 2rem;
    text-align: left; /* Make the long quote readable */
}

.quote-signature {
    font-size: 1.1rem; font-weight: 700; color: var(--primary);
    margin-bottom: 0.25rem;
}

.quote-closing {
    font-size: 0.95rem; color: var(--muted-foreground);
    margin-bottom: 3rem;
}


/* =========================================
   4. MORE TESTIMONIALS (Grid Placeholder)
   ========================================= */

#more-testimonials {
    padding: 4rem 0 6rem 0;
    background-color: var(--background);
    text-align: center;
}

#more-testimonials .section-title { margin-bottom: 0.5rem; }
#more-testimonials .section-subline { font-size: 1.1rem; max-width: 600px; margin: 0 auto 3rem auto; }

.testimonial-grid-placeholder {
    /* Placeholder for future testimonial cards */
    min-height: 200px;
    border: 1px dashed var(--border);
    background-color: var(--charcoal);
    border-radius: 0.5rem;
    margin-bottom: 3rem;
}


/* =========================================
   5. RESPONSIVENESS
   ========================================= */

@media (max-width: 900px) {
    .video-player-main { max-width: 100%; }
}

@media (max-width: 600px) {
    .about-hero { min-height: 300px; }
    .hero-title { font-size: 3rem; }
    .hero-subline { font-size: 1.3rem; }
    .section-title { font-size: 2.5rem; }
    
    .long-testimonial-quote { 
        font-size: 1.1rem;
        border-left: none; /* Remove border for centered mobile look */
        padding-left: 0;
        text-align: center;
    }
}

 /* Section 4: Philosophy Strip */
.philosophy-strip {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

.philosophy-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(218, 185, 0, 0.03) 2px,
        rgba(218, 185, 0, 0.03) 4px
    );
    animation: filmGrain 8s steps(10) infinite;
}

@keyframes filmGrain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

.philosophy-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-quote {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: white;
    line-height: 1.5;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
 

.philosophy-content h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem; /* Removed negative margin to eliminate invisible space */
    color: var(--accent);
}

.philosophy-cta-btn {
    margin-top: 1.5rem;
    display: inline-block; /* Allows the button to shrink to its content size */
}
