/* style.css */

/* 1. CSS Variables and Root Styles
---------------------------------------------------------------------------------------------------- */
:root {
    /* Color Palette (Tetradic) */
    --primary-color: #0A84FF; /* Vibrant Blue */
    --primary-color-darker: #0060DF;
    --secondary-color: #FF9F0A; /* Warm Orange */
    --secondary-color-darker: #D98200; /* Darker orange */
    --accent-color-1: #30D158; /* Lively Green */
    --accent-color-1-darker: #20B048;
    --accent-color-2: #BF5AF2; /* Soft Purple */
    --accent-color-2-darker: #A040D2;

    /* Text Colors */
    --text-color-dark: #1D1D1F; /* Near Black for high contrast on light backgrounds */
    --text-color-medium: #333333; /* Dark Gray for body text on light backgrounds */
    --text-color-light: #F5F5F7; /* Light Gray/Off-white for high contrast on dark backgrounds */
    --text-color-subtle: #6E6E73; /* Medium gray for subtitles or less important text */

    /* Background Colors */
    --background-color-light: #FFFFFF;
    --background-color-off-white: #F9F9F9; /* Very light gray for subtle section differentiation */
    --background-color-dark-section: #1C1C1E; /* Dark gray for dark sections */
    --background-color-footer: #161617;

    /* Component Colors */
    --card-background-color: var(--background-color-light);
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --card-border-radius: 12px;
    --border-color: #D1D1D6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color-2));
    --gradient-overlay-dark: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    --gradient-overlay-hero: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);


    /* Typography */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --base-font-size: 16px;
    --line-height-base: 1.6;
    --line-height-heading: 1.3;

    /* Spacing */
    --spacing-unit: 8px;
    --spacing-xs: calc(var(--spacing-unit) * 0.5);  /* 4px */
    --spacing-sm: var(--spacing-unit);           /* 8px */
    --spacing-md: calc(var(--spacing-unit) * 2);  /* 16px */
    --spacing-lg: calc(var(--spacing-unit) * 3);  /* 24px */
    --spacing-xl: calc(var(--spacing-unit) * 4);  /* 32px */
    --spacing-xxl: calc(var(--spacing-unit) * 6); /* 48px */
    --spacing-xxxl: calc(var(--spacing-unit) * 8); /* 64px */

    /* Layout */
    --container-max-width: 1200px;
    --container-padding-horizontal: var(--spacing-lg); /* 24px */
    --header-height: 70px; /* Adjusted height */
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
}

/* 2. Global Styles & Typography
---------------------------------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-color-medium);
    background-color: var(--background-color-light);
    line-height: var(--line-height-base);
    padding-top: var(--header-height); /* For fixed header */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color-dark);
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-md);
    font-weight: normal; /* Archivo Black is already bold */
}

h1 { font-size: 2.8rem; margin-bottom: var(--spacing-lg); } /* ~44.8px */
h2 { font-size: 2.2rem; margin-bottom: var(--spacing-lg); } /* ~35.2px */
h3 { font-size: 1.8rem; } /* ~28.8px */
h4 { font-size: 1.4rem; } /* ~22.4px */

p {
    margin-bottom: var(--spacing-md);
}

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

a:hover {
    color: var(--primary-color-darker);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style-position: inside;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-sm);
}

blockquote {
    font-style: italic;
    color: var(--text-color-subtle);
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

blockquote footer {
    font-style: normal;
    font-weight: bold;
    color: var(--text-color-medium);
    margin-top: var(--spacing-sm);
    font-size: 0.9em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 3. Layout Helpers
---------------------------------------------------------------------------------------------------- */
.main-container {
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding-horizontal);
    padding-right: var(--container-padding-horizontal);
}

.section-padding {
    padding-top: var(--spacing-xxxl);
    padding-bottom: var(--spacing-xxxl);
}

.section-padding-dark {
    background-color: var(--background-color-dark-section);
    color: var(--text-color-light);
    padding-top: var(--spacing-xxxl);
    padding-bottom: var(--spacing-xxxl);
}
.section-padding-dark h1,
.section-padding-dark h2,
.section-padding-dark h3,
.section-padding-dark h4 {
    color: var(--text-color-light);
}
.section-padding-dark p,
.section-padding-dark li {
    color: var(--text-color-light);
    opacity: 0.9;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: var(--spacing-md) auto 0;
    border-radius: var(--border-radius-small);
}
.section-padding-dark .section-title::after {
    background-color: var(--secondary-color);
}


.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color-subtle);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.section-padding-dark .section-subtitle {
    color: var(--text-color-light);
    opacity: 0.8;
}

.text-center { text-align: center; }
.mt-3 { margin-top: var(--spacing-lg); } /* 24px */
.mt-4 { margin-top: var(--spacing-xl); } /* 32px */

/* 4. Header & Navigation
---------------------------------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: background-color var(--transition-medium), box-shadow var(--transition-medium);
}

.site-header.scrolled {
    background-color: var(--background-color-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
}
.logo:hover {
    color: var(--primary-color-darker);
    text-decoration: none;
}

.main-nav .nav-menu {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0; /* Override default ul margin */
}

.main-nav .nav-menu li {
    margin-bottom: 0; /* Override default li margin */
}

.main-nav .nav-menu a {
    color: var(--text-color-medium);
    text-decoration: none;
    font-weight: 700; /* Roboto Bold */
    font-size: 0.95rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-small);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    position: relative;
}
.main-nav .nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width var(--transition-medium);
}
.main-nav .nav-menu a:hover,
.main-nav .nav-menu a.active { /* Add .active class via JS for current page */
    color: var(--primary-color);
}
.main-nav .nav-menu a:hover::after,
.main-nav .nav-menu a.active::after {
    width: 70%;
}


.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color-medium);
    position: relative;
    transition: background-color var(--transition-fast);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-color-medium);
    transition: transform var(--transition-medium), top var(--transition-medium), bottom var(--transition-medium);
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

/* Mobile Menu Open State (toggled by JS) */
.nav-open .hamburger { background-color: transparent; }
.nav-open .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-open .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* 5. Global Button Styles
---------------------------------------------------------------------------------------------------- */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    padding: var(--spacing-md) var(--spacing-xl); /* 16px 32px */
    border-radius: var(--border-radius-medium);
    border: 2px solid transparent;
    transition: background-color var(--transition-medium), color var(--transition-medium), border-color var(--transition-medium), transform var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-color-light);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
    color: var(--background-color-light); /* Ensure text color remains on hover */
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--background-color-light);
    border-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color-darker);
    border-color: var(--secondary-color-darker);
    color: var(--background-color-light);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--background-color-light);
}

.btn-lg {
    font-size: 1.1rem;
    padding: var(--spacing-lg) var(--spacing-xxl); /* 18px 36px */
}

/* "Read More" like links */
.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    padding-bottom: var(--spacing-xs);
    transition: color var(--transition-fast);
}
.read-more-link::after {
    content: ' →'; /* Arrow */
}
.read-more-link:hover {
    color: var(--primary-color-darker);
    text-decoration: underline;
}
.section-padding-dark .read-more-link {
    color: var(--secondary-color);
}
.section-padding-dark .read-more-link:hover {
    color: var(--accent-color-1);
}
/* Applied to buttons acting as "Read More" */
.btn.open-modal-btn { /* Specific to modal buttons but can be generalized */
    margin-top: var(--spacing-md);
}

/* 6. Global Form Styles
---------------------------------------------------------------------------------------------------- */
.modern-form .form-group {
    margin-bottom: var(--spacing-lg);
}

.modern-form label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color-medium);
}
.section-padding-dark .modern-form label {
    color: var(--text-color-light);
}

.modern-form input[type="text"],
.modern-form input[type="email"],
.modern-form input[type="tel"],
.modern-form input[type="password"],
.modern-form textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
}
.modern-form input[type="text"]:focus,
.modern-form input[type="email"]:focus,
.modern-form input[type="tel"]:focus,
.modern-form input[type="password"]:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2); /* Check RGB conversion for primary color */
}
/* For rgba box-shadow, if primary is #0A84FF (10, 132, 255) */
.modern-form input[type="text"]:focus,
.modern-form input[type="email"]:focus,
.modern-form input[type="tel"]:focus,
.modern-form input[type="password"]:focus,
.modern-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}


.modern-form textarea {
    min-height: 120px;
    resize: vertical;
}

.modern-form .checkbox-label {
    font-weight: normal;
    font-size: 0.9rem;
    display: inline-flex; /* align checkbox and text */
    align-items: center;
}
.modern-form input[type="checkbox"] {
    margin-right: var(--spacing-sm);
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color); /* Modern way to style checkbox color */
}

/* 7. Global Card Styles
---------------------------------------------------------------------------------------------------- */
.card {
    background-color: var(--card-background-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    display: flex;
    flex-direction: column;
    /* align-items: center;  Centering child blocks if their width is < card width */
    text-align: center; /* Centers inline/text content within */
    height: 100%; /* For consistent height in grids */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-image { /* Wrapper for the image */
    width: 100%;
    height: 200px; /* Example fixed height, adjust as needed */
    overflow: hidden;
    position: relative; /* For potential overlays */
    display: flex;
    justify-content: center;
    align-items: center;
}
.testimonial-card .card-image { /* Specific for testimonial portraits */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: var(--spacing-lg) auto var(--spacing-md); /* Center the circular image */
    border: 4px solid var(--background-color-light);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Removes bottom space */
    transition: transform var(--transition-medium);
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-lg);
    flex-grow: 1; /* Allows content to fill space if card height is fixed by grid */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if present */
}
.card-content h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}
.card-content p {
    font-size: 0.95rem;
    color: var(--text-color-subtle);
    margin-bottom: var(--spacing-md);
    flex-grow: 1; /* Pushes button down */
}
.section-padding-dark .card {
    background-color: #2a2a2e; /* Slightly lighter than section dark bg */
}
.section-padding-dark .card-content h3 {
    color: var(--text-color-light);
}
.section-padding-dark .card-content p {
    color: var(--text-color-light);
    opacity: 0.8;
}

/* 8. Hero Section
---------------------------------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height)); /* Full viewport height below header */
    min-height: 500px; /* Minimum height for content visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light); /* IMPORTANT: Hero text is white */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Parallax effect will be JS-driven if it involves background movement,
       but CSS can handle foreground element parallax on scroll */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay-hero); /* Darkening overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-xl);
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem; /* Large and impactful */
    color: var(--text-color-light); /* Explicitly white */
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInDown 1s ease-out; /* Example intro animation */
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-color-light); /* Explicitly white */
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.3s backwards; /* Example intro animation */
}

.hero-content .btn-primary {
    animation: fadeInUp 1s ease-out 0.6s backwards; /* Example intro animation */
    padding: var(--spacing-lg) var(--spacing-xxl);
    font-size: 1.1rem;
}

/* 9. Testimonials Section
---------------------------------------------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}
.testimonial-card {
    align-items: center; /* Center the circular image and content */
}
.testimonial-card blockquote {
    border-left: none;
    padding-left: 0;
    margin-top: 0;
    font-size: 1rem;
    color: var(--text-color-medium);
}
.testimonial-card blockquote p {
    color: var(--text-color-medium); /* Override default subtle for blockquote p */
    margin-bottom: var(--spacing-sm);
}
.testimonial-card footer {
    color: var(--primary-color);
    font-weight: 700;
}

/* 10. Case Studies Section
---------------------------------------------------------------------------------------------------- */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-xl);
}
.case-study-card .card-content {
    justify-content: flex-start; /* Align content to top */
}
.case-study-card .card-content h3 {
    text-align: left; /* Asymmetry */
}
.case-study-card .card-content p {
    text-align: left; /* Asymmetry */
    font-size: 0.9rem;
}

/* 11. Gallery Section
---------------------------------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    aspect-ratio: 3 / 2; /* Maintain aspect ratio */
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}
.gallery-item::after { /* Optional hover overlay effect */
    content: 'Ver Más';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color-light);
    background-color: rgba(0,0,0,0.5);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-small);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 700;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* 12. Behind the Scenes Section
---------------------------------------------------------------------------------------------------- */
.behind-the-scenes-content {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: var(--spacing-xxl);
    align-items: center;
}
.behind-the-scenes-content .bts-column img {
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.behind-the-scenes-content .bts-column h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-color-light); /* As it's in a dark section */
}
.behind-the-scenes-content .bts-column p {
    text-align: justify;
    hyphens: auto; /* For better text flow in justified text */
}

/* 13. External Resources Section
---------------------------------------------------------------------------------------------------- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}
.resource-card {
    text-align: left; /* Override global card text-align if needed */
}
.resource-card .card-content {
    text-align: left;
}
.resource-card .card-content h4 {
    margin-bottom: var(--spacing-sm);
}
.resource-card .card-content h4 a {
    text-decoration: none;
    color: var(--primary-color);
}
.resource-card .card-content h4 a:hover {
    text-decoration: underline;
    color: var(--primary-color-darker);
}
.resource-card .card-content p {
    font-size: 0.85rem;
    color: var(--text-color-subtle);
    line-height: 1.5;
}

/* 14. Contact CTA Section & Quick Contact Form
---------------------------------------------------------------------------------------------------- */
.contact-cta-section .section-title {
    color: var(--text-color-light);
}
.contact-cta-section .section-subtitle {
    color: var(--text-color-light);
    opacity: 0.9;
}
.quick-contact-form {
    max-width: 600px;
    margin: var(--spacing-xl) auto 0;
    background-color: rgba(255, 255, 255, 0.05); /* Subtle glassmorphism on dark bg */
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    /* backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); */ /* Optional: if too much glass */
    border: 1px solid rgba(255,255,255,0.1);
}
.quick-contact-form .form-group label {
    color: var(--text-color-light);
}
.quick-contact-form input[type="text"],
.quick-contact-form input[type="email"],
.quick-contact-form textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-color-light);
}
.quick-contact-form input[type="text"]::placeholder,
.quick-contact-form input[type="email"]::placeholder,
.quick-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.quick-contact-form input[type="text"]:focus,
.quick-contact-form input[type="email"]:focus,
.quick-contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.3); /* Secondary color for focus */
}
.quick-contact-form .btn-secondary {
    width: 100%;
    margin-top: var(--spacing-md);
}

/* 15. Footer
---------------------------------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--background-color-footer);
    color: var(--text-color-light);
    padding: var(--spacing-xxxl) 0 var(--spacing-lg);
    font-size: 0.9rem;
}
.site-footer a {
    color: var(--text-color-light);
    opacity: 0.8;
}
.site-footer a:hover {
    color: var(--primary-color);
    opacity: 1;
    text-decoration: underline;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}
.footer-widget h4 {
    font-family: var(--font-heading);
    color: var(--text-color-light);
    margin-bottom: var(--spacing-lg);
    font-size: 1.2rem;
}
.footer-widget p, .footer-widget ul {
    margin-bottom: 0;
    opacity: 0.8;
}
.footer-widget ul {
    list-style: none;
    padding-left: 0;
}
.footer-widget ul li {
    margin-bottom: var(--spacing-sm);
}
.footer-widget .social-links-text li a {
    padding: var(--spacing-xs) 0;
    display: inline-block; /* Keep them inline for text links */
}
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* 16. Modal Styles
---------------------------------------------------------------------------------------------------- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center; /* For vertical centering if content allows */
    justify-content: center; /* For horizontal centering */
}
.modal.is-open { /* Class added by JS to show */
    display: flex;
}
.modal-content {
    background-color: var(--background-color-light);
    margin: auto;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    max-width: 90%;
    width: 700px; /* Default max width for content modals */
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: zoomIn 0.4s ease-out;
    max-height: 90vh; /* Allow scrolling within modal */
    overflow-y: auto;
}
.modal-content h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}
.modal-content img {
    border-radius: var(--border-radius-medium);
    margin-bottom: var(--spacing-md);
}
.close-btn {
    color: var(--text-color-subtle);
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-lg);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.close-btn:hover,
.close-btn:focus {
    color: var(--text-color-dark);
    text-decoration: none;
}

/* Image Modal (for Gallery) */
.image-modal .modal-content-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius-medium);
}
.image-modal .modal-content { /* Override default modal content for image */
    background: transparent;
    padding: 0;
    box-shadow: none;
    width: auto;
    max-width: 90vw;
    border-radius: 0;
}
.image-modal .image-modal-close-btn {
    color: var(--text-color-light);
    top: var(--spacing-lg);
    right: var(--spacing-xl);
    font-size: 2.5rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
#caption {
    text-align: center;
    color: var(--text-color-light);
    padding: var(--spacing-md);
    font-size: 0.9rem;
    background-color: rgba(0,0,0,0.5);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* 17. Page-Specific Styles
---------------------------------------------------------------------------------------------------- */

/* Generic Page Title Section (for about, contacts, legal pages) */
.page-title-section {
    padding: var(--spacing-xxxl) 0;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color-light); /* Assuming dark background image */
}
.page-title-section .hero-overlay { /* Re-use hero overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay-dark);
    z-index: 1;
}
.page-title-section .container {
    position: relative;
    z-index: 2;
}
.page-title-section h1 {
    font-size: 2.8rem;
    color: var(--text-color-light); /* Ensure title is white/light */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* About, Privacy, Terms content alignment and padding */
.about-content-section,
.legal-content-section {
    /* For privacy/terms, the prompt asked for padding-top: 100px.
       The section-padding already provides var(--spacing-xxxl) = 64px.
       So, we need an additional 36px or set it directly.
       Let's assume the 100px is the total top padding for these sections. */
    padding-top: 100px; /* Specific requirement */
}
.about-content-section .content-column,
.legal-content-section .content-column {
    max-width: 800px; /* For better readability of long text */
    margin-left: auto;
    margin-right: auto;
}
.legal-content-section h2 {
    font-size: 1.8rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}
.legal-content-section h2:first-of-type {
    margin-top: 0;
}
.legal-content-section ul {
    padding-left: var(--spacing-lg);
}
.legal-content-section ul li {
    margin-bottom: var(--spacing-sm);
}
.subsection-title { /* For About Us page */
    font-size: 1.6rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

/* Contacts Page */
.contact-form-section .contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: var(--spacing-xxxl);
    align-items: flex-start; /* Align items to the top */
}
.contact-info h2.section-title-left {
    text-align: left;
    margin-bottom: var(--spacing-lg);
}
.contact-info h2.section-title-left::after {
    margin-left: 0; /* Align underline to left */
    margin-right: auto;
}
.contact-info ul {
    list-style: none;
    padding-left: 0;
}
.contact-info ul li {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}
.contact-info ul li strong {
    color: var(--text-color-dark);
}
.contact-form-container .form-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}
.map-section {
    padding-top: var(--spacing-xxxl);
    padding-bottom: var(--spacing-xxxl);
}
.map-placeholder img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--card-shadow);
}

/* Success Page */
.success-message-section {
    min-height: calc(100vh - var(--header-height) - 100px); /* Adjust 100px for footer height if footer is always visible */
    /* More robustly: */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xxxl) var(--container-padding-horizontal); /* Ensure padding */
}
/* If success page has a footer, body needs to be flex to push footer down */
body.success-page { /* Add this class to body of success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.success-page .main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
body.success-page main {
    flex-grow: 1;
    display: flex; /* To make .success-message-section fill height */
}
body.success-page .success-message-section {
    flex-grow: 1; /* Make section fill available space in main */
    /* min-height is already applied via its own class, this ensures it works within flex */
}
.success-icon {
    font-size: 6rem;
    color: var(--accent-color-1);
    margin-bottom: var(--spacing-lg);
    line-height: 1;
}
.success-message-section .section-title {
    font-size: 2.5rem;
}
.success-message-section .section-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
}
.success-message-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: var(--spacing-lg);
}
.success-message-section ul li a.text-link {
    font-weight: 700;
    font-size: 1.1rem;
}


/* 18. Animation Utility Classes & Keyframes
---------------------------------------------------------------------------------------------------- */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Cookie Consent Popup */
#cookieConsentPopup p a { color: var(--secondary-color); }
#cookieConsentPopup button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    transition: background-color var(--transition-medium);
}
#cookieConsentPopup button:hover {
    background-color: var(--primary-color-darker);
}

/* 19. Responsive Media Queries
---------------------------------------------------------------------------------------------------- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }

    .behind-the-scenes-content {
        grid-template-columns: 1fr; /* Stack on medium screens as well for better readability */
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px; /* Smaller header on mobile */
    }
    body {
        padding-top: var(--header-height);
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 1.9rem; margin-bottom: var(--spacing-xl); }

    .section-padding,
    .section-padding-dark,
    .contact-form-section,
    .map-section {
        padding-top: var(--spacing-xxl);
        padding-bottom: var(--spacing-xxl);
    }
    .about-content-section,
    .legal-content-section {
        padding-top: var(--spacing-xxxl); /* Adjust the 100px for mobile */
    }


    /* Mobile Navigation */
    .nav-toggle { display: block; z-index: 1001; }
    .main-nav .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--background-color-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-xl) 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-open .main-nav .nav-menu {
        display: flex;
        transform: translateX(0);
    }
    .main-nav .nav-menu li {
        margin: var(--spacing-md) 0;
    }
    .main-nav .nav-menu a {
        font-size: 1.3rem;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    .main-nav .nav-menu a:hover::after,
    .main-nav .nav-menu a.active::after {
        width: 50%;
    }

    .contact-form-section .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr; /* Stack footer widgets */
        text-align: center;
    }
    .footer-widget h4 {
        text-align: center;
    }
    .footer-widget ul {
        text-align: center;
    }
     .footer-widget .social-links-text {
        display: flex;
        justify-content: center;
        gap: var(--spacing-md);
    }
    .footer-widget .social-links-text li a {
        padding: var(--spacing-xs);
    }
}

@media (min-width: 769px) { /* For asymmetrical balance on larger screens */
    .behind-the-scenes-content {
        grid-template-columns: repeat(2, 1fr); /* Asymmetrical: 1.2fr 0.8fr or vice versa */
        /* Example: One column slightly larger for image or text */
        grid-template-columns: 1.1fr 0.9fr;
    }
    .behind-the-scenes-content .bts-column:first-child {
        /* Potentially shift content using grid-column or order for asymmetry */
        /* order: 1; For example, image on right on desktop */
    }
    .contact-form-section .contact-grid {
        grid-template-columns: 0.8fr 1.2fr; /* Info smaller, form larger */
        gap: var(--spacing-xxxl);
    }
}