/* 1. BRAND FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Inter:wght@400;700&display=swap');

:root {
    --bg-tan: #D9A66F;          /* Darker Tan */
    --bg-light-cream: #EBD5B3;  /* Lighter Logo Color */
    --text-coffee: #2B1B12;   
    --header-espresso: #4A2C2A; 
    --btn-bronze: #8C5E1B;    
    --cream: #FFF3E6;         
    --accent-gold: #E6B800;
}

/* 2. GLOBAL STYLES */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-tan);
    color: var(--text-coffee);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.7;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; text-align: center; }

.alt-bg { 
    background-color: var(--bg-light-cream) !important; 
}

/* 3. HEADERS */
h1, h2, h3, .section-title, .shop-card h3, .book-card h3 { 
    font-family: 'Montserrat', sans-serif !important; 
    color: var(--header-espresso);
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 0;
}

h1 { font-size: 4rem; margin-top: 100px; }
h2 { font-size: 2.5rem; margin-bottom: 30px; }

/* 4. NAVIGATION */
nav {
    background: var(--bg-tan);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--header-espresso);
    padding: 10px 0;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.nav-logo { height: 60px; }
.nav-links a { 
    text-decoration: none; 
    color: var(--text-coffee); 
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; 
    margin-left: 20px; 
    font-size: 0.9rem; 
    text-transform: uppercase;
}

/* 5. BUTTONS & DOSSIER BUTTON */
.cta-btn, .secondary-link {
    padding: 15px 30px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 4px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}

/* Primary Button (Bronze) */
.cta-btn {
    background: var(--btn-bronze);
    color: var(--cream);
}

/* Dossier Button (Espresso/Outline style) */
.secondary-link {
    background: var(--header-espresso);
    color: var(--cream);
    margin-left: 10px; /* Space between the two buttons */
}

.cta-btn:hover, .secondary-link:hover {
    opacity: 0.9;
}

/* 6. APPAREL SECTION (Updated for proper containerization) */
.shop-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.shop-card {
    flex: 1;
    background: white;
    padding: 30px 20px;
    border: 1px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-width: 250px;
}

.product-image-placeholder {
    width: 100%;
    height: 250px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 7. LIBRARY SECTION */
.library-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.book-card { 
    background: white; 
    padding: 30px; 
    border-radius: 8px; 
    border-bottom: 6px solid var(--btn-bronze); 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.book-card-link:hover { transform: translateY(-5px); }

.book-cover { 
    width: 100%;
    height: 350px; 
    background: var(--header-espresso); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain so "Coming Soon" isn't cropped */
}

/* 8. THE TOASTMASTER SECTION */
.toastmaster-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    text-align: left;
    align-items: center;
}

.resume-highlights {
    margin: 30px 0;
    border-left: 3px solid var(--btn-bronze);
    padding-left: 20px;
}

.highlight-item strong { 
    display: block; 
    color: var(--header-espresso); 
    font-family: 'Montserrat', sans-serif; 
}

/* 9. CAROUSEL & FOOTER */
.carousel-container { 
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    gap: 10px; 
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }

.carousel-img { 
    width: 100%; 
    flex-shrink: 0; 
    scroll-snap-align: start; 
    height: 350px; 
    object-fit: cover; 
    border: 2px solid var(--accent-gold); 
    image-rendering: -webkit-optimize-contrast;
}

footer { background: var(--header-espresso); color: var(--cream); padding: 40px 0; text-align: center; margin-top: 50px; }

/* 10. HERO SECTION */
#hero {
    width: 100%;
    height: 80vh;
    margin-top: 60px;
    overflow: hidden;
    position: relative;
}

.hero-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 10;
}

.hero-title {
    color: white !important;
    font-size: 4rem !important;
    margin: 0 !important;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
}

/* 11. TOASTY TALKS */
.talks-container { margin-top: 40px; display: flex; justify-content: center; }
.talk-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    border-bottom: 6px solid var(--accent-gold);
}

.video-placeholder {
    width: 100%;
    height: 300px;
    background: var(--header-espresso);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

/* 12. RESPONSIVE */
@media (max-width: 768px) {
    .shop-row, .toastmaster-grid { flex-direction: column; }
    .shop-card, .book-card { width: 100%; }
    h1 { font-size: 2.5rem; }
    /* Mobile-only Hero Adjustments */
#hero {
    height: 60vh !important; /* Slightly shorter for mobile screens */
}

.hero-title {
    font-size: 2.5rem !important; /* Shrink the massive text so it doesn't wrap/break */
    letter-spacing: 4px !important;
}
}
/* SPLIT GRID SYSTEM */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

/* This class swaps the order for Toasty Talks */
.split-grid.reverse .info-col {
    order: 2;
}
.split-grid.reverse .media-col {
    order: 1;
}

/* Ensure images/placeholders fill their column properly */
.split-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive fix: Stack them on mobile */
@media (max-width: 768px) {
    .split-grid, .split-grid.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .split-grid.reverse .info-col, .split-grid.reverse .media-col {
        order: unset;
    }
}
/* --- NEW SECTION: CTA ICONS AND BUTTONS --- */

/* --- FIXING THE CTA GROUP LAYOUT --- */

/* --- FINAL CTA FIX --- */

.cta-group {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important; /* Centers the whole set */
    align-items: center !important;
    gap: 5px !important;
    margin: 40px auto !important; /* Adds clear space above/below and centers container */
    width: 100% !important;
}

.icon-link img {
    width: 50px !important; /* Bigger icons */
    height: 50px !important;
    display: block !important;
}

.secondary-link {
    display: inline-block !important;
    padding: 18px 35px !important;        /* Extra padding for a "fat" button */
    background-color: #B37700 !important;  /* SOLID BRONZE */
    color: #FFFFFF !important;             /* STARK WHITE TEXT */
    font-size: 1.1rem !important;          /* Makes text punchy */
    font-weight: 800 !important;           /* Extra bold */
    text-transform: uppercase !important;  /* Makes it look more official */
    text-decoration: none !important;
    border-radius: 8px !important;         /* Clean rounded corners */
    border: none !important;
    white-space: nowrap !important;        /* Prevents shrinking */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Adds depth so it doesn't look flat/thin */
}

.secondary-link:hover {
    background-color: #2B1B12 !important;  /* DARK ESPRESSO ON HOVER */
    transform: translateY(-2px);
}
/* --- CLEAN HERO OVERRIDE --- */

/* 1. Make the whole slide a clickable link area */
.hero-slide {
    display: block;
    position: relative;
    overflow: hidden;
}

/* 2. Dim the images so white text is readable */
.hero-img {
    width: 100%;
    height: 70vh; /* Keeps the hero from taking up the whole screen */
    object-fit: cover;
    display: block;
    filter: brightness(65%); 
    transition: filter 0.4s ease;
}

/* 3. Make the word BIG and CENTERED */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem); /* Scales perfectly from mobile to desktop */
    font-weight: 900;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin: 0;
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

/* 4. Interactive hover effect */
.hero-slide:hover .hero-img {
    filter: brightness(80%);
}
/* FORCE DISABLE ALL CLICKS IN HERO */
.hero-carousel a, 
.hero-slide a {
    pointer-events: none !important;
    cursor: default !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}
/* --- MOBILE FRIENDLY OVERRIDE --- */
@media (max-width: 768px) {
    /* 1. Hero Scaling */
    #hero { height: 60vh !important; }
    .hero-title { 
        font-size: 2.2rem !important; 
        letter-spacing: 2px !important; 
        padding: 0 10px;
    }

    /* 2. Global Stacking (Apparel, Library, Toastmaster) */
    .shop-row, 
    .toastmaster-grid, 
    .split-grid, 
    .split-grid.reverse,
    .library-grid { 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }

    /* 3. Card Widths */
    .shop-card, 
    .book-card, 
    .talk-card { 
        width: 100% !important; 
        max-width: 400px !important; 
    }

    /* 4. CTA & Icons */
    .cta-group { 
        flex-direction: column !important; 
        gap: 20px !important; 
    }
    
    .secondary-link { 
        width: 90% !important; 
        text-align: center !important; 
        margin-left: 0 !important; 
    }

    /* 5. Spacing */
    .section { padding: 60px 20px !important; }
    h1 { font-size: 2.5rem !important; margin-top: 80px !important; }
    h2 { font-size: 2rem !important; }
}
/* --- TOASTY TALKS MOBILE BLOWOUT FIX --- */
@media (max-width: 768px) {
    /* Force the talk card to actually fit the screen */
    .talk-card {
        width: 100% !important;
        max-width: calc(100vw - 40px) !important; /* Screen width minus padding */
        padding: 20px !important; /* Smaller padding for mobile */
        margin: 0 auto !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Ensure the text inside the card doesn't push the width out */
    .talk-card p, 
    .talk-card h2, 
    .talk-card h3,
    .talk-card div {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    /* Fix the video/iframe so it doesn't stay at a fixed width */
    .video-placeholder,
    .talk-card iframe,
    .talk-card video {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
}
/* --- ACTUAL TOASTY TALKS FIX --- */
@media (max-width: 768px) {
    /* 1. Kill the horizontal ghost gap on the whole site */
    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
    }

    /* 2. Make the video container and iframe shrink to fit mobile */
    .video-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 20px 0 !important;
        box-sizing: border-box !important;
    }

    .video-container iframe {
        width: 100% !important; /* Forces the 560px video to 100% of the phone screen */
        height: auto !important;
        aspect-ratio: 16 / 9; /* Keeps the video shape correct */
    }

    /* 3. Force the YEG Soccer text to wrap and not bleed */
    .video-container h3, 
    .video-container p {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* 4. Fix the Split Grid stacking (The Newsletter and Talks sections) */
    .split-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 15px !important;
    }

    .media-col, .info-col {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px;
    }
}