/* style.css */

:root {
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Monochromatic Palette - Grays */
    --color-black: #1a1a1a;
    --color-darkest-gray: #2b2b2b; /* Adjusted for better contrast */
    --color-dark-gray: #3f3f3f;
    --color-medium-gray: #666666; /* Adjusted */
    --color-light-gray: #a0a0a0;
    --color-lighter-gray: #d3d3d3; /* Adjusted */
    --color-lightest-gray: #eeeeee; /* Adjusted */
    --color-off-white: #f9f9f9; /* Adjusted */
    --color-white: #ffffff;

    /* Semantic Colors */
    --color-primary-main: var(--color-dark-gray);
    --color-primary-hover: var(--color-black);
    --color-secondary-main: var(--color-medium-gray);

    --color-accent-main: var(--color-darkest-gray); /* For buttons, interactive elements */
    --color-accent-hover: var(--color-black);
    --color-accent-text: var(--color-white); /* Text on accent buttons */

    --color-background-body: var(--color-off-white);
    --color-background-section-alt: var(--color-lightest-gray);
    --color-surface: var(--color-white); /* Cards, modals */

    --color-text-main: var(--color-darkest-gray);
    --color-text-subtle: var(--color-medium-gray);
    --color-text-on-dark-bg: var(--color-off-white);
    --color-text-hero: var(--color-white);
    --color-link: var(--color-primary-main);
    --color-link-hover: var(--color-primary-hover);

    --color-border: var(--color-lighter-gray);
    --color-input-border: var(--color-light-gray);
    --color-input-focus-border: var(--color-dark-gray);
    --color-input-background: var(--color-white);
    --color-input-text: var(--color-text-main);
    --color-input-placeholder: var(--color-light-gray);

    /* Shadows - subtle for eco-minimalism */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.08);

    /* Spacing & Sizing */
    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-sm: 1rem;    /* 16px */
    --spacing-md: 1.5rem;  /* 24px */
    --spacing-lg: 2rem;    /* 32px */
    --spacing-xl: 3rem;    /* 48px */
    --spacing-xxl: 4rem;   /* 64px */

    --header-height: 80px; /* Adjust if needed */
    --border-radius: 6px;
    --border-radius-lg: 10px;

    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--color-text-main);
    background-color: var(--color-background-body);
    padding-top: var(--header-height); /* For fixed header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-main);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; margin-bottom: var(--spacing-md); }
h2 { font-size: 2.5rem; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.75rem; margin-bottom: var(--spacing-sm); }
h4 { font-size: 1.25rem; }

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

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover, a:focus {
    color: var(--color-link-hover);
    text-decoration: underline;
}

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

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

/* Particle Container (JS will populate this) */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind all content */
    pointer-events: none;
}

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

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white for a light glassmorphism effect */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-speed) var(--transition-timing);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

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

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

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

.main-nav .nav-list a {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text-subtle);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: color var(--transition-speed), background-color var(--transition-speed);
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a:focus,
.main-nav .nav-list a.active { /* Add 'active' class with JS for current page/section */
    color: var(--color-primary-main);
    background-color: var(--color-lightest-gray);
    text-decoration: none;
}

.nav-toggle { /* Hamburger */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary-main);
    position: relative;
    transition: transform var(--transition-speed) var(--transition-timing);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary-main);
    transition: transform var(--transition-speed) var(--transition-timing), top var(--transition-speed) var(--transition-timing), bottom var(--transition-speed) var(--transition-timing);
}

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

.hamburger::after {
    bottom: -7px;
}

/* Mobile Nav Open State (toggled by JS) */
.nav-open .hamburger {
    transform: rotate(45deg);
}
.nav-open .hamburger::before {
    top: 0;
    transform: rotate(90deg);
}
.nav-open .hamburger::after {
    bottom: 0;
    transform: rotate(90deg);
    opacity: 0; /* Hide this one, use the other two for X */
}
.nav-open .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md) 0;
    align-items: center;
}
.nav-open .nav-list li {
    margin: var(--spacing-sm) 0;
    width: 100%;
    text-align: center;
}
.nav-open .nav-list a {
    display: block;
    padding: var(--spacing-sm);
    width: 100%;
}


/* Global Button Styles */
.cta-button, .cta-button-secondary, button[type="submit"], input[type="submit"] {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-speed) var(--transition-timing),
                color var(--transition-speed) var(--transition-timing),
                transform var(--transition-speed) var(--transition-timing),
                box-shadow var(--transition-speed) var(--transition-timing);
    border: 2px solid transparent;
    line-height: 1.5; /* Ensure text is vertically centered */
}

.cta-button {
    background-color: var(--color-accent-main);
    color: var(--color-accent-text);
    border-color: var(--color-accent-main);
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-accent-text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--color-accent-main);
    border: 2px solid var(--color-accent-main);
}

.cta-button-secondary:hover, .cta-button-secondary:focus {
    background-color: var(--color-accent-main);
    color: var(--color-accent-text);
    text-decoration: none;
    transform: translateY(-2px);
}


/* Hero Section */
.hero-section {
    position: relative;
    color: var(--color-text-hero);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(80vh - var(--header-height)); /* Ensure it's substantial but not fixed huge */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)); /* Darkening overlay for text readability */
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-hero); /* Explicitly white as per requirement */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* From HTML, good to keep */
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-hero); /* Explicitly white */
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* From HTML */
}


/* Content Sections */
.content-section {
    padding: var(--spacing-xxl) 0;
}

.content-section.alt-bg {
    background-color: var(--color-background-section-alt);
}

.section-title {
    text-align: center;
    font-size: 2.2rem; /* Slightly smaller than H1 */
    margin-bottom: var(--spacing-md); /* Default was lg, trying md */
    color: var(--color-text-main);
    font-weight: 700;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-subtle);
    font-size: 1.1rem;
    line-height: 1.7;
}

.image-container { /* For standalone images in sections */
    margin: var(--spacing-lg) auto;
    max-width: 800px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.image-container img {
    border-radius: var(--border-radius); /* If image itself needs rounding */
}

/* Card Styles (Generic) */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg); /* More pronounced radius for retro */
    box-shadow: var(--shadow-md);
    overflow: hidden; /* Important for child elements like images */
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    height: 100%; /* For equal height cards in a grid */
}

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

.card-image { /* This is the container for the image within a card */
    width: 100%;
    height: 200px; /* Example fixed height - can be overridden for specific card types */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill space, useful for button alignment */
    justify-content: space-between; /* Pushes button to bottom if card-content is flex parent */
}
.card-content > *:last-child {
    margin-bottom: 0; /* Remove bottom margin from last element in card content */
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
}

/* Specific Card types / Grids */
.gallery-container, .team-container, .pricing-plans, .blog-summary-grid, .external-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Case Studies Section - Modal Trigger Button */
.card .modal-trigger {
    margin-top: auto; /* Pushes button to the bottom of card-content if card-content is flex */
    align-self: center; /* Center button if card-content isn't full width */
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
    background-color: var(--color-lightest-gray);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}
.card .modal-trigger:hover {
    background-color: var(--color-lighter-gray);
    color: var(--color-text-main);
    text-decoration: none;
    transform: none; /* No lift for these small buttons */
    box-shadow: none;
}


/* Team Member Cards */
.team-member .card-image {
    height: 250px; /* Larger image for profiles */
    width: 250px; /* Make it square if desired, or adjust width to 100% */
    max-width: 250px; /* Ensure it doesn't get too large */
    border-radius: 50%; /* Circular images for retro feel */
    margin-top: var(--spacing-md); /* Space from top of card to image */
    margin-bottom: var(--spacing-md);
}
.team-member .card-image img {
    border-radius: 50%;
}
.team-member-title {
    font-size: 0.9rem;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

/* Webinars Section */
.webinars-list .webinar-item {
    background-color: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
@media (min-width: 768px) {
    .webinars-list .webinar-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.webinar-info {
    flex-grow: 1;
}
.webinar-title {
    font-size: 1.5rem;
    color: var(--color-primary-main);
}
.webinar-date {
    font-size: 0.9rem;
    color: var(--color-text-subtle);
    margin-bottom: var(--spacing-xs);
}
.webinar-item p {
    margin-bottom: var(--spacing-xs);
}
.webinar-button {
    flex-shrink: 0; /* Prevent button from shrinking */
    align-self: flex-start; /* Align to start in column, or center in row */
}
@media (min-width: 768px) {
    .webinar-button {
        align-self: center;
    }
}


/* Pricing Section */
.pricing-plan {
    border: 1px solid var(--color-border);
}
.pricing-plan.popular {
    border: 2px solid var(--color-accent-main);
    position: relative; /* For badge */
    box-shadow: var(--shadow-lg); /* Make popular plan stand out */
}
.plan-badge {
    position: absolute;
    top: -1px; /* Adjust to sit nicely on border */
    right: var(--spacing-md);
    background-color: var(--color-accent-main);
    color: var(--color-accent-text);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    text-transform: uppercase;
}
.pricing-plan .card-image { /* Icon container */
    height: 100px; /* Smaller for icons */
    width: 100px;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}
.pricing-plan .card-image img {
    object-fit: contain; /* Icons should not be cropped */
}
.plan-name {
    font-size: 1.6rem;
}
.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-main);
    margin-bottom: var(--spacing-md);
}
.plan-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--spacing-lg);
    text-align: left; /* Align features left within centered card */
    align-self: stretch; /* Make ul take width for text-align left */
    padding: 0 var(--spacing-md); /* Add some padding so text is not at edge */
}
.plan-features li {
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-md);
    position: relative;
}
.plan-features li::before {
    content: '✓'; /* Retro checkmark */
    color: var(--color-accent-main);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.pricing-plan .cta-button, .pricing-plan .cta-button-secondary {
    width: 80%;
    margin-top: auto; /* Push to bottom */
}

/* External Resources */
.resource-card {
    background-color: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: left; /* Override card default center */
}
.resource-title a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary-main);
}
.resource-title a:hover {
    color: var(--color-primary-hover);
}
.resource-description {
    font-size: 0.9rem;
    color: var(--color-text-subtle);
    margin-top: var(--spacing-xs);
}

/* Blog Summary */
.blog-post-summary .card-image {
    height: 220px;
}
.blog-post-summary .card-content {
    text-align: left;
}
.post-meta {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
    margin-bottom: var(--spacing-xs);
}
.read-more-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-weight: 700;
    color: var(--color-accent-main);
    text-decoration: none;
}
.read-more-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}
.read-more-link::after {
    content: ' \2192'; /* Right arrow */
    display: inline-block;
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-speed) var(--transition-timing);
}
.read-more-link:hover::after {
    transform: translateX(3px);
}


/* Contact Form Section */
.contact-form-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xxl) 0;
}
.contact-form-section .form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)); /* Darker overlay for form readability */
    z-index: 1;
}
.contact-form-section .container {
    position: relative;
    z-index: 2;
}
.contact-form-section .section-title,
.contact-form-section .section-intro,
.contact-form-section .contact-alternative,
.contact-form-section .contact-alternative a {
    color: var(--color-text-on-dark-bg); /* White text on dark bg */
}
.contact-form-section .section-title,
.contact-form-section .section-intro {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7); /* From HTML */
}
.contact-form-section .contact-alternative a {
    font-weight: bold;
    text-decoration: underline;
}
.contact-form-section .contact-alternative a:hover {
    color: var(--color-lighter-gray);
}

.contact-form {
    max-width: 700px;
    margin: var(--spacing-lg) auto 0;
    background-color: rgba(255, 255, 255, 0.1); /* Glassmorphism base for retro touch */
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-on-dark-bg); /* Labels also need to be light */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-input-border);
    border-radius: var(--border-radius);
    background-color: var(--color-input-background);
    color: var(--color-input-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed) var(--transition-timing);
}
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
    color: var(--color-input-placeholder);
    opacity: 1; /* Firefox fix */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-input-focus-border);
    box-shadow: 0 0 0 2px rgba(var(--color-dark-gray-rgb, 63, 63, 63), 0.2); /* Fallback if --color-dark-gray-rgb not set */
}
/* For a var like --color-dark-gray-rgb, you'd define it as e.g., 63, 63, 63 */
/* Without it, it would be: box-shadow: 0 0 0 2px rgba(63, 63, 63, 0.2); */


.contact-form button[type="submit"] {
    width: 100%;
    padding: var(--spacing-md); /* Larger padding for main submit */
}


/* Footer */
.site-footer {
    background-color: var(--color-darkest-gray);
    color: var(--color-light-gray);
    padding: var(--spacing-xl) 0;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.footer-column h4.footer-heading {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

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

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

.footer-nav-list a, .footer-social-list a {
    color: var(--color-light-gray);
    text-decoration: none;
}

.footer-nav-list a:hover, .footer-social-list a:hover {
    color: var(--color-white);
    text-decoration: underline;
}
.footer-column p {
    margin-bottom: var(--spacing-xs);
}


/* Modals */
.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.6); /* Dimmed background */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--color-surface);
    margin: 10% auto;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: var(--color-light-gray);
    float: right; /* Classic close button position */
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-dark-gray);
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
}
.modal-image-container {
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.modal-image-container img {
    border-radius: var(--border-radius);
}
.modal p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-subtle);
}


/* Cookie Consent Popup (from HTML structure) */
#cookie-consent-popup {
    /* Basic styles provided in HTML, can be enhanced here if needed */
    /* Ensure it's above other elements if z-index in HTML isn't enough */
}
#accept-cookie-button {
    /* Styles from HTML, can be enhanced */
}

/* Specific Page Styles */

/* For success.html */
.page-success-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    text-align: center;
    padding: var(--spacing-lg);
}
.page-success-container h1 {
    color: var(--color-primary-main); /* Or a success color if defined */
    margin-bottom: var(--spacing-md);
}
.page-success-container p {
    color: var(--color-text-subtle);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
}

/* For privacy.html and terms.html */
.page-legal { /* Add this class to main content container of privacy/terms pages */
    padding-top: var(--spacing-xl); /* Initial padding from header already on body */
    padding-bottom: var(--spacing-xl);
}
.page-legal .container {
    max-width: 900px; /* Good width for text-heavy pages */
}
.page-legal h1 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}
.page-legal h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}
.page-legal p, .page-legal ul, .page-legal ol {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}
.page-legal ul, .page-legal ol {
    padding-left: var(--spacing-lg);
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    h1 { font-size: 2.5rem; }
    h2.section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block; /* Show hamburger */
        z-index: 1001; /* Above nav list when closed */
    }
    .main-nav .nav-list {
        display: none; /* Hide by default on mobile */
    }
    .main-nav.nav-open .nav-list {
        display: flex; /* Show when open */
    }

    .hero-title { font-size: 2.2rem; }
    .hero-section { padding: var(--spacing-xl) 0; min-height: calc(70vh - var(--header-height)); }

    .content-section { padding: var(--spacing-xl) 0; }
    .section-title { font-size: 1.8rem; }
    .section-intro { font-size: 1rem; margin-bottom: var(--spacing-lg); }

    .footer-container {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center;
    }
    .footer-column {
        margin-bottom: var(--spacing-md);
    }
    .footer-column h4.footer-heading {
        margin-bottom: var(--spacing-sm);
    }
    .footer-nav-list, .footer-social-list {
        justify-content: center; /* Center items if they become flex */
    }

    .modal-content {
        margin: 15% auto;
        width: 90%;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: calc(var(--header-height) - 10px); /* Slightly smaller header for small screens */
    }
    .site-header, .header-container {
        height: calc(var(--header-height) - 10px);
    }
    .logo { font-size: 1.5rem; }
    .nav-open .nav-list {
        top: calc(var(--header-height) - 10px);
    }


    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .cta-button, .cta-button-secondary, button[type="submit"] {
        font-size: 0.9rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea,
    .form-group select {
        padding: calc(var(--spacing-sm) - 2px) ;
    }
    .contact-form {
        padding: var(--spacing-md);
    }
}

/* ScrollReveal Animations (Base states, JS triggers visibility) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--transition-timing), transform 0.6s var(--transition-timing);
}
.reveal-on-scroll.is-visible { /* Class added by ScrollReveal */
    opacity: 1;
    transform: translateY(0);
}

/* Parallax-like effect for background images (can be enhanced with JS) */
[data-parallax] {
    /* Basic setup for JS to hook into. True parallax often needs JS to adjust background-position on scroll. */
    /* If it's just fixed background, it's simpler: */
    /* background-attachment: fixed; */
}

/* Ensure contrast and readability */
/* This is a general principle, specific instances are handled above */
/* For example, ensure text on images/dark backgrounds is light and vice-versa */