/* style.css */

/* -------------------------------------------------------------------
   1. ROOT VARIABLES & BASIC SETUP
------------------------------------------------------------------- */
:root {
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Nunito', sans-serif;

    /* Retro Gradient Palette */
    --color-primary-deep: #6a11cb; /* Deep Purple */
    --color-primary-light: #2575fc; /* Bright Blue */
    --color-accent-pink: #ff00cc; /* Neon Pink */
    --color-accent-teal: #30cfd0; /* Bright Teal */
    --color-accent-gold: #f7b733; /* Warm Gold */

    --gradient-main: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary-light));
    --gradient-accent: linear-gradient(135deg, var(--color-accent-pink), var(--color-accent-teal));
    --gradient-hero-overlay: linear-gradient(135deg, rgba(30, 10, 80, 0.85), rgba(0, 50, 150, 0.85));
    --gradient-section-overlay: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.4));


    --text-light: #FFFFFF;
    --text-dark: #222222; /* For strong contrast on light backgrounds */
    --text-dark-secondary: #333333;
    --text-muted: #666666;
    --text-on-dark-bg: #F0F0F0; /* Slightly off-white for better readability on dark */

    --bg-light-main: #FDFCFB; /* Very light, almost white */
    --bg-light-section: #F5F7FA; /* Light grey for subtle section differentiation */
    --bg-dark-section: #1A1A2E; /* Deep retro blue/purple for dark sections */
    --card-bg: #FFFFFF;
    --border-color-light: #E0E0E0;
    --border-color-dark: #444444;

    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.15);

    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2.5rem;   /* 40px */
    --spacing-xl: 4rem;     /* 64px */

    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Corresponds to 16px by default */
}

body {
    font-family: var(--font-secondary);
    line-height: 1.65;
    color: var(--text-dark-secondary);
    background-color: var(--bg-light-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.main-container {
    overflow-x: hidden; /* Prevent horizontal scroll from AOS or other animations */
}


/* -------------------------------------------------------------------
   2. TYPOGRAPHY
------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem); /* Responsive font size */
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
}

h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
}

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

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

.link-download {
    font-weight: 600;
    color: var(--color-accent-teal);
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-accent-teal);
    border-radius: var(--border-radius-sm);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.link-download:hover {
    background-color: var(--color-accent-teal);
    color: var(--text-light);
    text-decoration: none;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: var(--spacing-sm) auto 0;
    border-radius: var(--border-radius-sm);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------------
   3. LAYOUT HELPERS
------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.content-section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    position: relative; /* For overlays */
}

/* For sections with background images that need text protection */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-section-overlay); /* Default dark overlay */
    z-index: 1;
}
.content-section > .container { /* Ensure content is above overlay */
    position: relative;
    z-index: 2;
}

/* Basic column system */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-top: -0.75rem;
}

.column {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 0.75rem;
}

.column.is-two-thirds {
    flex: none;
    width: 66.6666%;
}
.column.is-one-third {
    flex: none;
    width: 33.3333%;
}


/* -------------------------------------------------------------------
   4. GLOBAL COMPONENTS
------------------------------------------------------------------- */
/* Buttons */
.cta-button,
button,
input[type="submit"],
input[type="button"],
.button-secondary {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--shadow-sm);
}

.cta-button,
input[type="submit"],
input[type="button"] { /* Primary button style */
    background: var(--gradient-accent);
    color: var(--text-light);
}

.cta-button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.button-secondary {
    background-color: transparent;
    color: var(--color-primary-light);
    border: 2px solid var(--color-primary-light);
}

.button-secondary:hover {
    background-color: var(--color-primary-light);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff; /* Ensure inputs have a background */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-light-rgb, 37, 117, 252), 0.25); /* Create RGB version or use a fixed color */
}

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


/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row equal height */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card .card-image {
    width: 100%;
    height: 200px; /* Default height for card images, adjust per card type */
    overflow: hidden;
    display: flex; /* For centering the image if it's smaller than container, though object-fit usually handles this */
    justify-content: center;
    align-items: center;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card .card-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allows content to fill space, useful for equal height cards */
    display: flex;
    flex-direction: column;
}

.card .card-content > *:last-child {
    margin-bottom: 0;
}

.card .card-title {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.card .card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1; /* If you want text to push other elements to bottom */
}


/* -------------------------------------------------------------------
   5. HEADER & NAVIGATION
------------------------------------------------------------------- */
.site-header {
    background: linear-gradient(to right, rgba(26, 26, 46, 0.95), rgba(40, 40, 70, 0.95)); /* Dark retro gradient */
    backdrop-filter: blur(5px);
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
}
.logo:hover {
    color: var(--color-accent-gold);
    text-decoration: none;
}

.main-navigation .nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-list li {
    margin-left: var(--spacing-md);
}

.main-navigation .nav-list a {
    color: var(--text-on-dark-bg);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-gold);
    transition: width 0.3s ease;
}

.main-navigation .nav-list a:hover,
.main-navigation .nav-list a.active {
    color: var(--color-accent-gold);
    text-decoration: none;
}

.main-navigation .nav-list a:hover::after,
.main-navigation .nav-list a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Active state for hamburger menu */
.menu-toggle.is-active .hamburger {
    background-color: transparent;
}
.menu-toggle.is-active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle.is-active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}


/* -------------------------------------------------------------------
   6. FOOTER
------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-dark-section);
    color: var(--text-on-dark-bg);
    padding: var(--spacing-lg) 0;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.footer-nav,
.footer-social,
.footer-copyright {
    flex: 1 1 200px; /* Flex basis, allow grow and shrink */
    min-width: 180px;
}

.footer-nav h4,
.footer-social h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--color-accent-gold);
    margin-bottom: var(--spacing-sm);
}

.footer-nav ul,
.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li,
.footer-social li {
    margin-bottom: var(--spacing-xs);
}

.footer-nav a,
.footer-social a {
    color: var(--text-on-dark-bg);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-social a:hover {
    color: var(--color-accent-gold);
    text-decoration: underline;
}

.footer-copyright {
    flex-basis: 100%; /* Full width on smaller screens or when wrapping */
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 0.85rem;
}

.footer-copyright p {
    margin-bottom: var(--spacing-xs);
    color: #aaa; /* Lighter muted color */
}


/* -------------------------------------------------------------------
   7. MAIN SECTIONS
------------------------------------------------------------------- */

/* Hero Section */
.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    padding-top: var(--header-height); /* Account for fixed header */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Simple parallax */
}

.hero-section .hero-overlay { /* Specific overlay for hero, can differ from .section-overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero-overlay);
    z-index: 1;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    color: var(--text-light); /* Enforced by prompt */
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light); /* Enforced by prompt */
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.hero-section .cta-button {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.1rem;
}

/* Portfolio Section (Body Types) */
#portfolio .body-type-card .card-image {
    height: 350px; /* Taller images for body types */
}
#portfolio .body-type-card .card-title {
    color: var(--color-primary-deep);
}

/* Innovation Section */
#innovacion {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-on-dark-bg); /* Text on dark background */
}
#innovacion .section-title,
#innovacion .section-intro,
#innovacion .custom-slider-placeholder p {
    color: var(--text-light); /* Ensure text is light */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Improve readability */
}
#innovacion .section-title::after {
     background: var(--text-light); /* Adjust title underline for dark bg */
}
#innovacion .custom-slider-placeholder img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: var(--spacing-md);
}

/* Research Section */
.research-columns {
    align-items: center; /* Vertically align items in columns */
}
.research-columns .subsection-title {
    color: var(--color-primary-deep);
    margin-bottom: var(--spacing-sm);
}
.research-columns img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: auto;
}

/* Webinars & Events Section */
.webinar-card .card-image,
.event-card .card-image {
    height: 200px;
}
.webinar-card .button-secondary,
.event-card .button-secondary { /* Assuming links to register/details */
    margin-top: auto; /* Push button to bottom of card */
    align-self: flex-start;
}

/* Events Section (with background image) */
#eventos {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
#eventos .section-title, #eventos .section-intro, #eventos .event-card h3, #eventos .event-card p {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
#eventos .section-title::after {
     background: var(--text-light);
}
#eventos .event-card {
    background-color: rgba(0,0,0,0.3); /* Semi-transparent cards on dark bg */
    backdrop-filter: blur(3px); /* Glassmorphism touch */
    border: 1px solid rgba(255,255,255,0.1);
}

/* Resources Section (Accordion) */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    background-color: var(--card-bg);
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}
.accordion-header {
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-primary-deep);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}
.accordion-header::after { /* Toggle icon */
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--color-primary-light);
}
.accordion-header.active::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}
.accordion-header:hover {
    background-color: #f0f4ff;
}
.accordion-content {
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.95rem;
}
.accordion-content.active {
    max-height: 500px; /* Adjust as needed */
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-md);
}

/* Success Stories Section */
.success-story-card .card-image {
    height: 250px;
    width: 250px; /* If circular */
    border-radius: 50%; /* For circular profile pics */
    margin: 0 auto var(--spacing-sm) auto; /* Center image */
    border: 4px solid var(--color-accent-gold);
}
.success-story-card .card-image img {
    border-radius: 50%;
}
.success-story-card .card-content {
    text-align: center;
}
.success-story-card h3 {
    color: var(--color-primary-deep);
}

/* FAQ Section (uses Accordion styles) */
#faq .accordion-header {
    color: var(--text-dark);
}
#faq .accordion-header::after {
    color: var(--color-primary-light);
}


/* Sustainability Section */
#sostenibilidad {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
#sostenibilidad .section-title,
#sostenibilidad .section-intro,
#sostenibilidad .tip-block h3,
#sostenibilidad .tip-block p {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
#sostenibilidad .section-title::after {
     background: var(--text-light);
}
.sustainability-tips {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}
.tip-block {
    background: rgba(255,255,255,0.1); /* Glassmorphism */
    backdrop-filter: blur(5px);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    flex: 1 1 300px; /* Responsive blocks */
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.tip-block h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
}

/* External Links Section */
#enlaces-externos .external-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}
#enlaces-externos .external-link-card .card-title a {
    color: var(--color-primary-deep);
    font-size: 1.1rem;
}
#enlaces-externos .external-link-card .card-title a:hover {
    color: var(--color-accent-pink);
}
#enlaces-externos .external-link-card p {
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light-section);
}
.contact-form {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
    background-color: var(--card-bg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}
.contact-details {
    text-align: center;
}
.contact-details p {
    font-size: 1rem;
    color: var(--text-muted);
}
.contact-details a {
    color: var(--color-primary-light);
    font-weight: 600;
}


/* -------------------------------------------------------------------
   8. UI COMPONENTS (Carousels, Sliders - basic styling, JS handles functionality)
------------------------------------------------------------------- */
.content-carousel {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto; /* Basic horizontal scroll for carousel items */
    padding-bottom: var(--spacing-sm); /* Space for scrollbar if visible */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.content-carousel > .card {
    min-width: 280px; /* Ensure cards have a minimum width in carousel */
    flex-shrink: 0; /* Prevent cards from shrinking */
}

/* Basic styling for AOS animations - ensure elements are initially hidden if needed */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}
[data-aos].aos-animate {
    opacity: 1;
}

/* -------------------------------------------------------------------
   9. SPECIFIC PAGE STYLES
------------------------------------------------------------------- */
/* success.html */
body.success-page .success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--gradient-main);
    color: var(--text-light);
}
body.success-page .success-page-container h1 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}
body.success-page .success-page-container p {
    color: var(--text-on-dark-bg);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
}
body.success-page .success-page-container .cta-button {
    background: var(--color-accent-gold);
    color: var(--text-dark);
}
body.success-page .success-page-container .cta-button:hover {
    background: var(--text-light);
    color: var(--color-primary-deep);
}


/* privacy.html & terms.html */
body.privacy-page main,
body.terms-page main,
body.about-page main, /* Added for consistency if about page needs it */
body.contacts-page main { /* Added for consistency if contacts page needs it */
    padding-top: calc(var(--header-height) + var(--spacing-lg)); /* Header height + extra space */
    padding-bottom: var(--spacing-xl);
}
body.privacy-page .container,
body.terms-page .container,
body.about-page .container,
body.contacts-page .container {
    max-width: 800px; /* Narrower content for text-heavy pages */
}
body.privacy-page h1,
body.terms-page h1,
body.about-page h1,
body.contacts-page h1 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2.5rem;
}
body.privacy-page h2,
body.terms-page h2,
body.about-page h2,
body.contacts-page h2 {
    font-size: 1.8rem;
    color: var(--color-primary-deep);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

/* Cookie Popup (already has inline styles, this is for minor tweaks if needed) */
#cookie-popup {
    font-family: var(--font-secondary);
}
#cookie-popup button {
    font-family: var(--font-primary);
}


/* -------------------------------------------------------------------
   10. RESPONSIVE DESIGN (Media Queries)
------------------------------------------------------------------- */
@media (max-width: 992px) {
    .column.is-two-thirds,
    .column.is-one-third {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .main-navigation .nav-list {
        display: none; /* Hide by default */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.98); /* Slightly more opaque for readability */
        backdrop-filter: blur(8px);
        padding: var(--spacing-sm) 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color-dark);
    }

    .main-navigation.is-active .nav-list {
        display: flex; /* Show when active */
    }

    .main-navigation .nav-list li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .main-navigation .nav-list a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Separators */
    }
    .main-navigation .nav-list li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-list a::after {
        display: none; /* Remove underline effect on mobile nav items */
    }

    .menu-toggle {
        display: block; /* Show hamburger */
    }

    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-intro {
        font-size: 1rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav, .footer-social, .footer-copyright {
        flex-basis: auto;
        width: 100%;
        margin-bottom: var(--spacing-md);
    }
    .footer-social ul {
        display: flex;
        justify-content: center;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    .cta-button, button, input[type="submit"], input[type="button"] {
        padding: var(--spacing-sm) var(--spacing-sm);
        font-size: 0.9rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}