:root {
    /* Retro Split-Complementary Color Scheme */
    --color-primary: #00695C; /* Deep Teal - Main, trustworthy */
    --color-secondary: #FF7043; /* Coral/Orange - CTA, accent */
    --color-accent-1: #EF5350; /* Retro Red - Highlight, warning */
    --color-accent-2: #A1887F; /* Muted Brown - Grounding, subtle backgrounds */

    /* Text Colors */
    --color-text-dark: #263238; /* Blue Grey Darken-3 - Strong readability */
    --color-text-light: #FFFFFF; /* White - For hero and dark backgrounds */
    --color-text-muted: #546E7A; /* Blue Grey - Secondary text */
    --color-text-on-primary: #FFFFFF;
    --color-text-on-secondary: #FFFFFF;

    /* Background Colors */
    --color-background-light: #FFFDE7; /* Cream - Main light background, retro */
    --color-background-dark-section: #2A3F54; /* Darker, slightly desaturated blue/teal for contrast sections */
    --color-background-card: #FFFFFF;
    --color-background-footer: #1D2D3C; /* Dark blue/grey for footer */

    /* Borders and Shadows */
    --color-border: #B0BEC5; /* Blue Grey Lighten-2 - Subtle borders */
    --shadow-soft: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 8px 16px rgba(0, 0, 0, 0.2);

    /* Typography */
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-size-base: 16px;
    --font-size-lg: 1.125rem; /* 18px */
    --font-size-xl: 1.25rem;  /* 20px */
    --font-size-h1: 2.8rem;   /* ~45px */
    --font-size-h2: 2rem;     /* 32px */
    --font-size-h3: 1.5rem;   /* 24px */
    --line-height-base: 1.6;

    /* Spacing & Layout */
    --spacing-unit: 1rem; /* 16px */
    --container-width: 1140px;
    --container-padding: 1.5rem;
    --border-radius: 6px; /* Slightly rounded for retro block feel */
    --transition-speed: 0.3s;
}

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

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

body {
    font-family: var(--font-secondary);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    color: var(--color-text-dark); /* Ensure high contrast for headers */
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

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

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

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

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

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

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

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

.content-section {
    padding-top: calc(var(--spacing-unit) * 3);
    padding-bottom: calc(var(--spacing-unit) * 3);
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--color-text-dark); /* Ensure high contrast for section titles */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle retro shadow */
}

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

/* Columns (Basic Implementation) */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin: calc(var(--spacing-unit) * -0.75); /* Negative margin for gutter */
}

.column {
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: calc(var(--spacing-unit) * 0.75); /* Gutter */
}

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

@media screen and (max-width: 768px) {
    .columns {
        display: block; /* Stack columns on smaller screens */
        margin-left: 0;
        margin-right: 0;
    }
    .column,
    .column.is-two-thirds,
    .column.is-one-third {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: var(--spacing-unit);
    }
    .columns > .column:last-child {
        margin-bottom: 0;
    }
}


/* Header & Navigation */
.site-header {
    background-color: var(--color-background-light);
    padding: var(--spacing-unit) 0;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.logo img {
    height: 60px; /* As per HTML */
    width: auto;
}

.main-navigation ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    align-items: center;
}

.main-navigation li {
    margin-left: calc(var(--spacing-unit) * 1.5);
}

.main-navigation a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text-dark);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
    text-decoration: none;
}

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

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    position: relative;
    transition: background-color 0s var(--transition-speed) linear; /* Hide middle bar instantly on transform */
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    position: absolute;
    left: 0;
    transition: transform var(--transition-speed) ease, top var(--transition-speed) ease;
}

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

/* Mobile Menu Styles */
@media (max-width: 992px) { /* Breakpoint for burger menu */
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--color-background-light);
        box-shadow: var(--shadow-soft);
        padding: var(--spacing-unit) 0;
    }

    .main-navigation ul.open {
        display: flex;
    }

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

    .main-navigation a {
        display: block;
        padding: var(--spacing-unit);
        border-bottom: 1px solid var(--color-border);
    }
     .main-navigation li:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }
    
    .menu-toggle[aria-expanded="true"] .hamburger-icon {
        background-color: transparent; /* Middle bar disappears */
    }
    .menu-toggle[aria-expanded="true"] .hamburger-icon::before {
        transform: rotate(45deg);
        top: 0;
    }
    .menu-toggle[aria-expanded="true"] .hamburger-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }
}


/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--font-size-base);
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    box-shadow: var(--shadow-soft);
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-text-on-secondary);
    border-color: var(--color-secondary);
}

.btn-primary:hover {
    background-color: #E65100; /* Darker shade of secondary */
    border-color: #E65100;
    color: var(--color-text-on-secondary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
    border-color: var(--color-primary);
}


/* Form Styles */
.form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.25);
}

.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 0.4);
    color: var(--color-text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 0.75);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    background-color: #FFFFFF;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.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);
    box-shadow: 0 0 0 3px rgba(0, 105, 92, 0.2); /* Primary color with alpha */
}

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

/* Card Styles */
.card {
    background-color: var(--color-background-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a grid have same height if content varies */
    text-align: center; /* Center inline/inline-block children */
}

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

.card-image { /* Container for the image */
    width: 100%;
    height: 200px; /* Fixed height for image area in cards */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Crucial for object-fit */
}

.card-image img {
    width: 100%;
    height: 100%; /* Fill the container */
    object-fit: cover; /* Crop and center, maintaining aspect ratio */
}

.card-content {
    padding: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1; /* Allows content to fill space if card height is fixed by grid */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* If there's a button at the bottom */
}

.card-content h3 {
    margin-top: 0;
    color: var(--color-primary);
}
.card-content p {
    font-size: 0.95rem; /* Slightly smaller text in cards */
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-unit); /* Default margin */
}
.card-content .btn { /* Button inside card */
    margin-top: auto; /* Push to bottom if flexed */
}

/* Accordion Styles */
.accordion-item {
    background-color: var(--color-background-card);
    margin-bottom: var(--spacing-unit);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.accordion-header {
    background-color: transparent;
    border: none;
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.25);
    text-align: left;
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed) ease;
}

.accordion-header:hover {
    background-color: rgba(0,0,0,0.03);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform var(--transition-speed) ease;
}
.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 1.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease-out;
    color: var(--color-text-muted);
}
.accordion-header[aria-expanded="true"] + .accordion-content {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: calc(var(--spacing-unit) * 0.5);
    padding-bottom: calc(var(--spacing-unit) * 1.25);
}


/* 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.6); /* Dim background */
}

.modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--color-background-light);
    margin: auto;
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    width: 90%;
    max-width: 700px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal-btn {
    color: var(--color-text-muted);
    position: absolute;
    top: var(--spacing-unit);
    right: calc(var(--spacing-unit) * 1.5);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal-btn:hover,
.close-modal-btn:focus {
    color: var(--color-text-dark);
}
.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-unit);
}


/* Section Specific Styles */

/* Hero Section */
.hero-section {
    min-height: 70vh; /* Adjust as needed, avoid fixed large heights */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: calc(var(--spacing-unit) * 4) var(--container-padding);
}
.hero-section h1 {
    color: var(--color-text-light); /* Enforced by prompt */
    font-size: calc(var(--font-size-h1) * 1.2); /* Larger hero H1 */
    margin-bottom: var(--spacing-unit);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7); /* Stronger shadow for readability */
}
.hero-section p {
    color: var(--color-text-light); /* Enforced by prompt */
    font-size: var(--font-size-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 2);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
.hero-section .btn-primary {
    padding: calc(var(--spacing-unit) * 0.9) calc(var(--spacing-unit) * 2);
    font-size: var(--font-size-lg);
}


/* About Us Section */
.about-us-section .image-container img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Statistics Section */
.statistics-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-text-light); /* Text color for on dark background */
}
.statistics-section .section-title {
    color: var(--color-text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    text-align: center;
}
.stat-item {
    padding: calc(var(--spacing-unit) * 1.5);
    background-color: rgba(255, 255, 255, 0.1); /* Subtle glassmorphism */
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--color-secondary); /* Accent color for numbers */
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.stat-label {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.stat-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

/* Clientele Section */
.client-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2.5);
}
.client-logo-item img {
    max-height: 80px; /* As per HTML */
    width: auto;
    filter: grayscale(80%);
    opacity: 0.8;
    transition: filter var(--transition-speed) ease, opacity var(--transition-speed) ease;
}
.client-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}
.team-member .card-image img {
    border-radius: 50%; /* Circular team images */
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-top: calc(var(--spacing-unit) * 1); /* Space from card top to image */
    border: 4px solid var(--color-background-light);
    box-shadow: var(--shadow-soft);
}
.team-member .team-title {
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-top: calc(var(--spacing-unit) * -0.5); /* Pull up closer to name */
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* Case Studies Section */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}
.case-study-card .btn-secondary { /* "Leer Mas" */
    margin-top: auto; /* Push to bottom */
}
/* Styling "Read More" links/buttons specifically if needed */
.open-modal-btn {
    /* Additional styles if different from general .btn-secondary */
    font-weight: bold;
}


/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    align-items: stretch; /* Make cards in a row same height */
}
.pricing-plan {
    border: 2px solid var(--color-border);
    padding: calc(var(--spacing-unit) * 2);
    text-align: center;
    border-radius: var(--border-radius);
    background-color: var(--color-background-card);
    display: flex;
    flex-direction: column;
}
.pricing-plan.popular {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-medium);
    transform: scale(1.03); /* Make popular plan slightly larger */
    position: relative;
}
.popular-badge {
    position: absolute;
    top: -1px; /* Adjust to sit nicely on border */
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: var(--color-secondary);
    color: var(--color-text-on-secondary);
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}
.pricing-plan h3 {
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.price-description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-unit);
    min-height: 40px; /* Ensure consistent spacing */
}
.features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    text-align: left;
    flex-grow: 1;
}
.features-list li {
    padding: calc(var(--spacing-unit) * 0.5) 0;
    border-bottom: 1px dashed var(--color-border);
    color: var(--color-text-dark);
}
.features-list li:last-child {
    border-bottom: none;
}
.features-list li::before {
    content: '✓'; /* Retro checkmark */
    color: var(--color-primary);
    margin-right: calc(var(--spacing-unit) * 0.5);
    font-weight: bold;
}
.pricing-plan .btn {
    margin-top: auto; /* Push button to bottom */
}


/* Press Section */
.press-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.press-list li {
    background-color: rgba(0,0,0,0.02);
    padding: var(--spacing-unit);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-unit);
    border-left: 4px solid var(--color-primary);
}
.press-list li p { margin-bottom: 0; }
.press-list li strong { color: var(--color-primary); }

.press-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 2.5);
}
.press-logo-item img {
    max-height: 60px; /* As per HTML */
    width: auto;
    filter: grayscale(50%);
    opacity: 0.9;
}


/* External Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}
.resource-card .card-content h3 {
    font-size: var(--font-size-lg);
}
.resource-card .card-content h3 a {
    color: var(--color-primary);
}
.resource-card .card-content h3 a:hover {
    color: var(--color-secondary);
}


/* Contact Section */
.contact-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.contact-form-container {
    background-color: var(--color-background-card);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.contact-details {
    background-color: var(--color-background-card);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: left;
}
.contact-details h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
}
.contact-details p {
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    color: var(--color-text-muted);
}
.contact-details p strong {
    color: var(--color-text-dark);
}
.contact-details a {
    color: var(--color-secondary);
}
.contact-details a:hover {
    color: var(--color-primary);
}


/* Footer */
.site-footer {
    background-color: var(--color-background-footer);
    color: var(--color-text-light);
    padding: calc(var(--spacing-unit) * 3) 0 calc(var(--spacing-unit) * 1.5);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-column h4 {
    font-family: var(--font-primary);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-unit);
    font-size: var(--font-size-lg);
    border-bottom: 2px solid var(--color-primary); /* Retro underline */
    padding-bottom: calc(var(--spacing-unit) * 0.5);
    display: inline-block;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition-speed) ease;
}

.footer-column a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-column p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.social-links-text a { /* Text-only social links */
    display: inline-block;
    padding: 0.3rem 0; /* Minimal padding for text links */
    font-weight: 500;
}
.social-links-text a::before { /* Optional: subtle marker for retro feel */
    content: "» ";
    color: var(--color-secondary);
    opacity: 0.7;
}


.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 1.5);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Page Specific Styles */
/* Success Page */
.success-page body { /* Assuming success.html has this body class or use a wrapper div */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.success-page-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--container-padding);
}
.success-page-content h1 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
}
.success-page-content p {
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Privacy & Terms Pages */
.legal-page-content { /* Wrapper for content on privacy.html and terms.html */
    padding-top: calc(var(--spacing-unit) * 4); /* Space below sticky header */
    padding-bottom: calc(var(--spacing-unit) * 4);
}
.legal-page-content h1 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.legal-page-content h2 {
    margin-top: calc(var(--spacing-unit) * 2.5);
    margin-bottom: var(--spacing-unit);
    color: var(--color-primary);
}


/* Animations and Transitions (beyond Animate.css handled by JS) */
.animate__animated {
    visibility: hidden; /* Hide elements until GSAP makes them visible */
}
/* Ensure Animate.css classes are applied correctly by GSAP */
.gsap-animate-in {
    visibility: visible !important;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    h1 { font-size: calc(var(--font-size-h1) * 0.9); }
    h2 { font-size: calc(var(--font-size-h2) * 0.9); }
    .hero-section h1 { font-size: calc(var(--font-size-h1) * 1.0); } /* Keep hero H1 relatively large */
    .hero-section p { font-size: var(--font-size-lg); }
    .section-title { margin-bottom: calc(var(--spacing-unit) * 1.5); }
    .section-intro { margin-bottom: calc(var(--spacing-unit) * 1.5); font-size: var(--font-size-base); }
}

@media (max-width: 768px) {
    :root {
        --font-size-h1: 2.2rem;
        --font-size-h2: 1.7rem;
        --font-size-h3: 1.3rem;
    }
    .content-section {
        padding-top: calc(var(--spacing-unit) * 2);
        padding-bottom: calc(var(--spacing-unit) * 2);
    }
    .hero-section { min-height: 60vh; }
    .hero-section h1 { font-size: calc(var(--font-size-h1) * 0.9); }
    .hero-section p { font-size: var(--font-size-base); }

    .stats-grid,
    .services-grid,
    .team-grid,
    .case-studies-grid,
    .pricing-grid,
    .resources-grid,
    .footer-content {
        grid-template-columns: 1fr; /* Stack grids on mobile */
    }
    .pricing-plan.popular {
        transform: scale(1); /* Reset popular plan scaling */
    }
    .footer-column { text-align: center; }
    .footer-column h4 { display: block; }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --font-size-h1: 1.9rem;
        --font-size-h2: 1.5rem;
    }
    .hero-section { min-height: 50vh; }
     .btn, button, input[type="submit"], input[type="button"] {
        padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 1.2);
        font-size: 0.9rem;
    }
}