/*
 * Color Palette: Ivory/Gold Premium Aesthetic (Based on new source)
 * Primary (Gold): #D4AF37
 * Secondary (Deep Black): #0D0D0D
 * Background (Ivory): #FBFBFB
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --color-primary: #D4AF37; /* Gold Accent */
    --color-secondary: #0D0D0D; /* Deep Black Text/Accents */
    --color-background: #FBFBFB; /* Ivory Background */
    --color-text-dark: #333333;
    --color-text-subtle: #6B7280; /* Gray-600 equivalent */
    --color-border-light: #E5E7EB; /* Gray-200 equivalent */
    --font-sans: 'Inter', sans-serif;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Base Reset and Global Styling */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-background);
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    scroll-behavior: smooth;

    /* FIX: Prevents horizontal scrolling/movement on mobile */
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans); /* All headings use Inter now */
    color: var(--color-secondary);
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary);
}

/* Layout and Container Styling */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.module-section {
    padding: 80px 20px;
    border-bottom: 1px solid var(--color-border-light); /* Subtle separator */
}

/* CTA Button Styling (Matching the Gold accent style) */
.cta-button {
    /* Decreased vertical padding for header CTA */
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 9999px; /* Rounded-full */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-md);

    /* FIX: Ensure multi-line text fills the button background */
    display: inline-block; /* Ensure the button respects padding/border */
    white-space: normal; /* Allow text to wrap naturally */
    line-height: 1.3;
    text-align: center; /* Center text within the wrapped button area */
}

.cta-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-background);
    box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.5); /* Gold shadow on hover */
}

/* Component Specific Styles */

/* Header/Nav - NEW STYLES: Dark Background, High Contrast Logo, STICKY */
header {
    background-color: var(--color-secondary);
    border-bottom: 1px solid #333;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    color: var(--color-background)!important;
    font-size: 1.75rem!important;
    font-weight: 900;
    display: block;
    /* FIX: Give Emblemfive space so it doesn't get covered */
    min-width: fit-content;
    flex-shrink: 1; /* Allow it to shrink if absolutely necessary */
    padding-right: 5px; /* Add small padding before gap starts */
}

.nav-bar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    /* FIX: Ensure gap exists between EmblemFive and CTA button */
    gap: 15px;
}

.nav-cta-wrapper {
    /* FIX: Ensure the header CTA text does not wrap */
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.nav-links-secondary {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    justify-content: center;
    border-top: 1px solid #333;
    margin-top: 10px;
}

.nav-links-secondary a {
    color: var(--color-background);
}

.nav-links-secondary a:hover {
    color: var(--color-primary);
}
/* END NEW NAV STYLES */

/* Hero Section */
#module-hero {
text-align: center;
min-height: 60vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-top: 100px;
}

#module-hero h1 {
font-size: 4rem;
font-weight: 900;
color: var(--color-secondary);
}

.tagline {
    font-size: 1.5rem;
    font-family: var(--font-sans);
    color: var(--color-text-subtle);
    margin-bottom: 2em;
}

/* Lists and Content Blocks */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.grid-item {
    padding: 24px; /* p-6 */
    background-color: #FFFFFF; /* White card background */
    border-radius: 12px; /* rounded-xl */
    border-top: 4px solid var(--color-primary); /* border-t-4 */
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.grid-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.grid-item h4 {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.25rem;
}

.grid-item p {
    color: var(--color-text-subtle);
}

/* Testimonials - Slider Implementation */
.testimonial-scroll-wrapper {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px; /* Space for potential scrollbar */
    gap: 20px;

    /* NEW: Hide scrollbar visually */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    cursor: pointer; /* Indicate clickability */
}

/* NEW: Hide scrollbar in WebKit (Chrome, Safari) */
.testimonial-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-block {
    flex: 0 0 100%; /* Force each card to take up 100% of the container width */
    scroll-snap-align: start;
    min-width: 90%; /* On large screen, prevent it from taking full 100% if flex is 1 */

    background-color: #FFFFFF;
    padding: 30px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.quote {
    font-family: var(--font-sans);
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.citation {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--color-primary);
}

/* FAQ Accordion Placeholder Styles */
.faq-item {
    border-top: 1px solid var(--color-border-light);
    padding: 20px 0;
}

.faq-question {
    font-weight: 700;
    color: var(--color-secondary);
    cursor: pointer;
    display: block;
}

.faq-answer {
    padding-top: 10px;
    color: var(--color-text-dark);
}

/* Footer Styles */
footer {
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
    background-color: #F7F7F7; /* Slightly darker than background */
    border-top: 1px solid var(--color-border-light);
}

.footer-links a {
    margin: 0 15px;
    color: var(--color-text-dark);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* --- Mobile Optimizations (Max 768px) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    .tagline { font-size: 1.2rem; }

    /* Nav mobile: Ensures logo/CTA stay inline and visible */
    .nav-bar-main {
        flex-direction: row;
        align-items: center;
        padding: 0 10px;
        gap: 15px;
    }
    .nav-cta-wrapper {
        margin: 0;
        padding: 0;
        white-space: nowrap; /* Prevent header button text wrap */
        flex-shrink: 0;
    }
    .cta-button {
        padding: 8px 12px; /* Shrink padding for header CTA */
        font-size: 0.8rem; /* Shrink font size for header CTA */
    }

    /* FIX: Target the large hero CTA button specifically for multi-line fill */
    #module-hero.cta-button {
    /* Revert padding/font size for the hero button */
    padding: 15px 30px;
    font-size: 1.1rem;
    /* Ensure the button fills the entire area properly when wrapping */
    display: block; /* Important: Change to block to fill width correctly */
    margin: 0 auto; /* Center it */
    max-width: fit-content; /* Ensure it wraps nicely */
    }

    .nav-links-secondary {
        width: 100%;
        justify-content: space-around;
        gap: 10px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Testimonial mobile view */
    .testimonial-block {
        min-width: 95%;
    }

    /* Contact Form Specific Mobile Overrides */
    .contact-container {
        flex-direction: column;
    }
    .contact-container > div {
        border-radius: 12px;
    }
    .contact-container > div:first-child {
        border-radius: 12px 12px 0 0;
    }
    .contact-container > div:last-child {
        border-radius: 0 0 12px 12px;
    }
}
