/*
Theme Name:    GeneratePress Child
Theme URI:     https://yourwebsite.com
Description:   GeneratePress Child Theme
Author:        Your Name
Author URI:    https://yourwebsite.com
Template:      generatepress
Version:       1.0.3
Text Domain:   generatepress-child
*/

/* * NOTE: The parent theme's stylesheet is loaded via functions.php.
* The custom scroll dot tracker CSS has been removed. 
*/


/* ============================================================= */
/* NEW SECTIONS: HOME PAGE SCROLLING GUIDANCE */
/* ============================================================= */

/* Ensure sections are tall enough to scroll to */
#home-section-1,
#home-section-2,
#home-section-3,
#home-section-4,
#home-section-5,
#home-section-6,
#home-section-7,
#home-section-8,
#home-section-9 {
    min-height: 100vh;
}

/* ============================================================= */
/* SECTION 3 – ENDORSEMENTS / GREAT MUSICIANS (Card Fixes) */
/* ============================================================= */

.home-section-3-greats-reviews-css-class {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.review-card-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures cards stretch to equal height */
    transition: all 0.3s ease;
}

.review-card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.review-card-image-wrapper {
    width: 100%;
    height: 280px; /* Fixed height for image container to enforce uniformity */
    overflow: hidden;
}

.review-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
}

.review-card-content {
    padding: 1.8rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensures content area fills remaining height */
}

.review-card-item h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.35rem 0 !important;
    line-height: 1.2;
}

.reviewer-title {
    font-size: 0.95rem;
    font-style: italic;
    color: #718096;
    margin: 0 0 1.5rem 0 !important;
}

.review-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: #2d3748;
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

/* Responsive – endorsements */
@media (max-width: 1024px) {
    .home-section-3-greats-reviews-css-class {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem;
        padding: 3rem 1.5rem;
    }
    .review-card-image-wrapper { height: 260px; }
}

@media (max-width: 768px) {
    .home-section-3-greats-reviews-css-class {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1rem;
    }
    .review-card-image-wrapper { height: 320px; }
    
    /* Keep your original mobile header offset if you have a sticky header */
    body { padding-top: 60px; }
}

.home-section-3-greats-reviews-css-class > * {
    margin: 0 !important;
}

/* ============================================================= */
/* Small nice-to-have global tweaks (Smooth Scroll Fix) */
/* ============================================================= */

/* Force smooth scrolling and a safe offset for the sticky header */
html { 
    scroll-behavior: smooth !important;
    scroll-padding-top: 150px !important; /* Increased for safety to clear sticky header */
}

a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* ============================================================= */
/* SITE-WIDE TYPOGRAPHY – Google Fonts plugin version */
/* ============================================================= */

body,
button,
input,
select,
textarea,
.entry-content {
    font-family: "Your Body Font Name", sans-serif;    /* ← replace */
    font-size: 17px;
    line-height: 1.75;
    font-weight: 400;
    color: #333333;
}

h1, h2, h3, h4, h5, h6,
.page-title,
.entry-title,
.widget-title,
.wp-block-heading {
    font-family: "Your Headings Font Name", serif;    /* ← replace */
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2em;
    margin-bottom: 0.65em;
    color: #000000;
}

/* Desktop heading sizes */
h1 { font-size: 3rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.95rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.35rem; }
h6 { font-size: 1.15rem; }

/* Tablet & mobile */
@media (max-width: 1024px) {
    h1 { font-size: 2.6rem; }
    h2 { font-size: 2.15rem; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.95rem; }
    h3 { font-size: 1.7rem; }
}
/* ============================================================= */
/* STICKY / FIXED HEADER – GeneratePress Free              */
/* ============================================================= */

/* Make the header stick to the top when scrolling */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #ffffff !important;      /* change if you use a transparent header */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;  /* optional: subtle shadow when scrolling */
}

/* Optional: if you’re using the off-canvas mobile menu, also fix the mobile header */
@media (max-width: 768px) {
    .mobile-header-navigation {
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
    }
}

/* Optional: add a smooth fade-in shadow only when scrolled (very premium look) */
body.admin-bar .site-header {
    top: 32px !important;    /* adjusts for WordPress admin bar when logged in */
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px !important;    /* mobile admin bar height */
    }
}


/* ============================================================= */
/* DONATE BUTTON IN HEADER MENU                                  */
/* ============================================================= */

.donate-button-menu-item {
    margin-left: 12px !important;
}

.donate-header-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px !important;
    padding: 0 24px !important;
    border-radius: 999px !important;            /* perfect pill */
    background-color: #1a73e8 !important;          /* Google Blue */
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: none !important;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(26,115,232,0.4) !important;
    transition: all 0.25s ease !important;
}

.donate-header-button:hover {
    background-color: #0d47a1 !important;
    box-shadow: 0 6px 16px rgba(26,115,232,0.5) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* Mobile menu – make sure it still looks great */
@media (max-width: 768px) {
    .donate-button-menu-item {
        margin: 10px auto !important;
        text-align: center;
    }
    .donate-header-button {
        width: 80%;
        max-width: 300px;
    }
}


/* ============================================================= */
/* ANIMATED MENU BORDER EFFECT (Now applies to ALL main menu items) */
/* ============================================================= */

/* 1. Target the menu links (a) and set them up for relative positioning */
.main-navigation .main-nav ul li a {
    position: relative; /* Essential for positioning the ::before/::after elements */
    padding-top: 15px;     /* Increase padding to make room for the borders */
    padding-bottom: 15px; /* Increase padding to make room for the borders */
    transition: color 0.3s ease; /* Smooth transition for text color if needed */
}

/* 2. Create the TOP animated border */
.main-navigation .main-nav ul li a::before {
    content: '';
    position: absolute;
    top: 0; /* Position at the top of the link */
    left: 50%; /* Start in the middle */
    width: 0; /* Starts with zero width (invisible) */
    height: 2px; /* Thickness of the border */
    background: #1a73e8; /* Blue color from the Donate button */
    transition: width 0.35s ease-out, left 0.35s ease-out; /* Smooth animation */
}

/* 3. Create the BOTTOM animated border */
.main-navigation .main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; /* Position at the bottom of the link */
    left: 50%; /* Start in the middle */
    width: 0; /* Starts with zero width (invisible) */
    height: 2px; /* Thickness of the border */
    background: #1a73e8; /* Blue color from the Donate button */
    transition: width 0.35s ease-out, left 0.35s ease-out; /* Smooth animation */
}

/* 4. ON HOVER: Expand both borders */
.main-navigation .main-nav ul li a:hover::before,
.main-navigation .main-nav ul li a:hover::after {
    width: 100%; /* Expands to full width */
    left: 0; /* Shifts to the left edge */
}

/* EXCLUSION: Only the Donate button is excluded from this effect */
.main-navigation .main-nav ul li.donate-button-menu-item a::before,
.main-navigation .main-nav ul li.donate-button-menu-item a::after {
    display: none !important;
}


/* ============================================================= */
/* POLISH FIX: GREAT MUSICIAN HERO SECTION (.home-section-1-hero-css-class)*/
/* --- FIXED: Reverted text to dark color for better contrast on light background --- */
/* ============================================================= */

/* 1. Ensure Text Contrast & Spacing */
.home-section-1-hero-css-class {
    /* Keep the background effects */
    background-color: rgba(0, 0, 0, 0.4); 
    background-blend-mode: darken; 
    background-attachment: fixed; /* Parallax effect */
    background-position: center center;
    background-size: cover;
    
    /* Vertical Padding Enforcement */
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: 85vh; 
    display: flex; 
    flex-direction: column;
    justify-content: center; /* Vertically centers content */
}

/* Target the main title (H2) for more impact - Revert to Black */
.home-section-1-hero-css-class h2 {
    margin-bottom: 0.8em; 
    letter-spacing: 0.02em; 
    color: #000000; /* Revert to Black */
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.6); /* Subtle white shadow for depth */
}

/* Base style for all paragraphs in the hero - Revert to Dark Gray */
.home-section-1-hero-css-class p {
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center;
    /* REVERTED TO DARK GRAY TEXT COLOR (Non-links) */
    color: #333333 !important; 
}

/* Link color fix for high visibility on light background */
.home-section-1-hero-css-class p a {
    color: #1a73e8 !important; /* Use your strong blue color for links */
    text-decoration: underline; 
    font-weight: 700 !important;
}
.home-section-1-hero-css-class p a:hover {
    color: #0d47a1 !important; 
}


/* Refined Text Hierarchy - Target the first paragraph to stand out (Mission Statement) - Revert to Black */
.home-section-1-hero-css-class p:first-of-type {
    font-weight: 500; 
    font-size: 1.15rem; 
    margin-bottom: 25px; 
    color: #000000 !important; /* Revert to Black */
}

/* Refined Text Hierarchy - Target subsequent paragraphs to be slightly lighter dark gray */
.home-section-1-hero-css-class p:nth-of-type(n+2) {
    font-weight: 300; 
    font-size: 1.05rem; 
    /* Slightly lighter dark gray */
    color: #4f4f4f !important;
    margin-bottom: 15px;
}


/* Increase spacing between body text and buttons */
.home-section-1-hero-css-class .wp-block-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; 
    margin-top: 45px !important; 
}

/* 3. Button Consistency & Polish - KEEPING BUTTON STYLES AS THEY ARE */

/* Apply uniform styling to all buttons in this section */
.home-section-1-hero-css-class .wp-block-button__link {
    min-height: 50px !important;
    padding: 0 30px !important; 
    border-radius: 999px !important; 
    font-weight: 600;
    transition: all 0.25s ease;
}

/* Hover effect for all buttons */
.home-section-1-hero-css-class .wp-block-button__link:hover {
    transform: translateY(-3px); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.25);
    opacity: 0.9;
}

/* Specific button styles (Assuming colors are set via Gutenberg, 
    but enforcing consistency here for the three shown colors) */

/* Primary CTA: Blue (Passion of Music) */
.home-section-1-hero-css-class .is-style-fill[style*="background-color:#1e73be"] .wp-block-button__link {
    box-shadow: 0 4px 10px rgba(30,115,190,0.5); 
}

/* Secondary CTA: Dark Gray (Competition) - Making it an outline style */
/* Keeping the white outline to contrast with the dark text */
.home-section-1-hero-css-class .is-style-fill[style*="background-color:#595959"] .wp-block-button__link {
    background-color: transparent !important;
    border: 2px solid #595959 !important; /* Changed border to Dark Gray */
    color: #000000 !important; /* Changed text to Black */
    box-shadow: none;
}
.home-section-1-hero-css-class .is-style-fill[style*="background-color:#595959"] .wp-block-button__link:hover {
    background-color: rgba(0, 0, 0, 0.05) !important; /* Subtle hover background */
    color: #000000 !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.25);
}

/* Tertiary CTA: Light Gray (Donate Now) - Keeping it distinct but clean */
.home-section-1-hero-css-class .is-style-fill[style*="background-color:#c8c8c8"] .wp-block-button__link {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    color: #333333 !important; 
}


/* ============================================================= */
/* MOBILE RESPONSIVENESS (Final fixes and stacking)          */
/* ============================================================= */

/* Media Query for Tablet/Larger Phone Devices */
@media (max-width: 600px) { 
    /* Stacks the buttons vertically with clean spacing */
    .home-section-1-hero-css-class .wp-block-buttons {
        flex-direction: column; 
        gap: 15px; 
        align-items: center;
    }
    .home-section-1-hero-css-class .wp-block-button {
        width: 80%; 
        max-width: 300px; 
    }
}

/* Media Query for Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    /* Target the main button block wrapper */
    .wp-block-button {
        /* Prevents horizontal squeezing and centers button block */
        width: auto !important;
        text-align: center;
    }

    /* Target the actual button element (<a> tag) */
    .wp-block-button .wp-block-button__link {
        /* Ensures the text stays on one line (fixed text wrapping issue) */
        white-space: nowrap; 
        min-width: 150px; 
        max-width: 100%;
        padding: 12px 24px; 
        line-height: 1.2;
    }
}
/* ============================================================= */
/* INTERNATIONAL COMPETITION FAQ STYLING */
/* ============================================================= */

.international-competition-faq-css-class {
    /* Desktop (Default) Styling */
    font-size: 22px; 
    line-height: 1.7; /* Ensures good vertical spacing for 22px text */
}

/* Tablet Styling (e.g., screens up to 1024px) */
@media (max-width: 1024px) {
    .international-competition-faq-css-class {
        font-size: 20px; 
    }
}

/* Mobile Styling (e.g., screens up to 768px) */
@media (max-width: 768px) {
    .international-competition-faq-css-class {
        font-size: 18px; 
    }
}
/* ============================================================= */
/* FORMINATOR BUTTON STYLING (Google Blue) - Form 922 */
/* ============================================================= */

/* Primary Button Styles (Applies to both Next and Submit) */
.forminator-ui#forminator-module-922 .forminator-button-next,
.forminator-ui#forminator-module-922 .forminator-button-submit {
    /* Background Color: Google Blue (#4285F4). Use 'background' shorthand for max override. */
    background: #4285F4 !important;
    
    /* Text Color: White (#FFFFFF) */
    color: #ffffff !important;
    
    /* Remove default border */
    border: none !important; 
    
    /* Apply Google-style shadow and rounded corners */
    border-radius: 4px !important; 
    padding: 12px 24px !important;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 
                0 3px 1px -2px rgba(0, 0, 0, 0.2), 
                0 1px 5px 0 rgba(0, 0, 0, 0.12) !important;
    
    font-size: 14px !important; /* Retaining the font size you found */
    font-weight: 500 !important; /* Retaining the font weight you found */
    transition: all 0.2s ease-in-out;
}

/* Hover/Focus State (Slightly darker blue for interaction) */
.forminator-ui#forminator-module-922 .forminator-button-next:hover,
.forminator-ui#forminator-module-922 .forminator-button-submit:hover,
.forminator-ui#forminator-module-922 .forminator-button-next:focus,
.forminator-ui#forminator-module-922 .forminator-button-submit:focus {
    background: #3C79E6 !important; /* Darker shade of blue */
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 
                0 1px 10px 0 rgba(0, 0, 0, 0.12), 
                0 2px 4px -1px rgba(0, 0, 0, 0.2) !important;
}