/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;

    --color-primary: #a0d2db; /* Pastel Blue/Teal */
    --color-secondary: #fceade; /* Pastel Peach/Apricot */
    --color-accent: #79c7b3; /* Pastel Mint Green */
    --color-accent-dark: #64b4a0; /* Darker Mint Green for hover */

    --color-background-light: #faf7f0; /* Creamy Off-White */
    --color-background-medium: #e0f2f7; /* Very Light Sky Blue */
    --color-background-dark: #2c3e50; /* Dark Slate Blue for contrast backgrounds */

    --color-text-dark: #4a4a4a; /* Dark Grey */
    --color-text-light: #ffffff;
    --color-text-headings: #2c3e50; /* Dark Slate Blue */
    --color-text-muted: #7f8c8d; /* Muted Grey */

    --color-border: #dde2e5; /* Light Grey */
    --color-shadow: rgba(0, 0, 0, 0.1);

    --header-height: 80px;
    --border-radius-soft: 8px;
    --border-radius-round: 25px;
    --border-radius-biomorphic: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/*--------------------------------------------------------------
# Global Resets & 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-secondary);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-text-headings);
    margin-bottom: 0.75em;
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1.25em;
    color: var(--color-text-dark);
}

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

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

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

/*--------------------------------------------------------------
# Layout & Container
--------------------------------------------------------------*/
.container {
    width: 90%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.content-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-title {
    text-align: center;
    color: var(--color-text-headings);
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

/* Column system (Bulma-like, as used in HTML) */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-top: -0.75rem;
}
.columns:not(:last-child) {
    margin-bottom: 1.5rem;
}
.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.image-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 10px var(--color-shadow);
    height: var(--header-height);
    transition: background-color 0.3s ease;
}

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

.logo img {
    max-height: 50px;
    transition: transform 0.3s ease;
}
.logo:hover img {
    transform: scale(1.05);
}

.main-navigation .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-navigation .nav-menu li {
    margin-left: 25px;
}

.main-navigation .nav-menu a {
    color: var(--color-text-dark);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-soft);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu a.active {
    color: var(--color-accent-dark);
    background-color: var(--color-secondary);
    text-decoration: none;
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: none; /* Hidden by default, shown in media query */
    z-index: 1001; /* Above nav menu when open */
}

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

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-headings);
    left: 0;
    transition: all 0.3s ease-in-out;
}

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

.nav-toggle[aria-expanded="true"] .hamburger-icon {
    background-color: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}

/*--------------------------------------------------------------
# Global UI Components
--------------------------------------------------------------*/
/* Buttons */
.cta-button,
.submit-button,
button[type="submit"], /* Ensure all submit buttons are styled */
.modal-trigger { /* Style modal trigger buttons consistently */
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-text-light) !important; /* Important to override link color */
    padding: 14px 30px;
    border: none;
    border-radius: var(--border-radius-round);
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(121, 199, 179, 0.4); /* Shadow related to accent color */
}

.cta-button:hover,
.submit-button:hover,
button[type="submit"]:hover,
.modal-trigger:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-text-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(100, 180, 160, 0.5);
    text-decoration: none;
}

/* Cards */
.card {
    background-color: var(--color-text-light);
    border-radius: 15px; /* Softer biomorphic edge */
    box-shadow: 0 8px 25px var(--color-shadow);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center image and content if not full width */
    text-align: center; /* Center text within the card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensure content respects border-radius */
}

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

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px; /* Softer radius for image container */
    display: flex; /* For centering image if it's smaller */
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    display: block;
}

.card-content {
    width: 100%; /* Ensure content takes full width of card padding */
}

.card-content h3, .card-content h4 {
    color: var(--color-text-headings);
    margin-top: 0;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Accordions */
details.accordion {
    background: var(--color-background-medium);
    border-radius: var(--border-radius-soft);
    margin-top: 15px;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease;
}
details.accordion:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

details.accordion summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    list-style: none; /* Remove default marker */
    position: relative;
    outline: none; /* Remove focus outline for a cleaner look */
}

details.accordion summary::-webkit-details-marker { display: none; } /* Chrome/Safari */
details.accordion summary::marker { display: none; } /* Firefox */

details.accordion summary::after { /* Custom arrow */
    content: '+';
    font-family: var(--font-primary);
    font-size: 1.5em;
    color: var(--color-accent);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

details.accordion[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

details.accordion .accordion-content, /* If you wrap content in a div */
details.accordion > p { /* Or style direct p child */
    padding: 0 20px 20px 20px;
    border-top: 1px dashed var(--color-border);
    margin-top: -1px; /* Overlap summary's bottom padding */
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.modal.active { /* JS can toggle this class or directly set display */
    display: flex;
}

.modal-content {
    background-color: var(--color-background-light);
    margin: auto;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-soft);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: modalOpen 0.4s ease-out;
}

@keyframes modalOpen {
    from { opacity: 0; transform: translateY(-50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-button {
    color: var(--color-text-muted);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    color: var(--color-text-light);
    min-height: 85vh; /* Responsive height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px; /* Padding for content */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem; /* Responsive font size */
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-text-light); /* Ensure white text */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Stronger shadow for readability */
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-light); /* Ensure white text */
    line-height: 1.8;
}

.hero-section .cta-button {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
# Vision Section
--------------------------------------------------------------*/
.vision-section {
    background-color: var(--color-background-medium);
}
.vision-content .column p {
    margin-bottom: 1.5em;
}
.biomorphic-image {
    border-radius: var(--border-radius-biomorphic);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    object-fit: cover;
    width: 100%; /* Ensure it fits column */
    max-width: 400px; /* Control max size */
    margin: 0 auto; /* Center in its column */
}


/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/*--------------------------------------------------------------
# Case Studies Section
--------------------------------------------------------------*/
.case-studies-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.case-studies-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.case-studies-section .card h4 {
    color: var(--color-primary);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials-section {
    background-color: var(--color-secondary);
}
.testimonials-slider { /* Basic grid, JS for actual slider */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: var(--color-text-light);
    text-align: left; /* Testimonials often look better left-aligned */
    align-items: flex-start;
}
.testimonial-card .card-image { /* For avatar */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    margin-right: auto; /* Aligns avatar left */
    margin-left: auto; /* Center avatar within its space if text is centered */
}
.testimonial-card .card-content p {
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}
.testimonial-card .card-content footer {
    font-weight: 600;
    color: var(--color-primary);
    font-style: normal;
}
/* If text-align: left for card */
@media (min-width: 769px) { /* Adjust breakpoint as needed */
    .testimonial-card { text-align: left; }
    .testimonial-card .card-image { margin-left: 0; }
}


/*--------------------------------------------------------------
# Behind the Scenes Section
--------------------------------------------------------------*/
.behind-the-scenes-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-gallery-bts img {
    border-radius: var(--border-radius-soft);
    margin-bottom: 15px;
    box-shadow: 0 5px 15px var(--color-shadow);
    transition: transform 0.3s ease;
}
.image-gallery-bts img:hover {
    transform: scale(1.03);
}

/*--------------------------------------------------------------
# Media Section
--------------------------------------------------------------*/
.media-mentions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.media-card .card-image {
    height: auto; /* Allow natural height for logos */
    max-height: 75px; /* Control max logo height */
    margin-bottom: 15px;
}
.media-card .card-image img {
    object-fit: contain; /* Ensure logo is not cropped */
    width: auto; /* Allow natural width based on height */
    max-width: 100%;
    max-height: 75px;
}
.media-card h4 {
    font-size: 1.2rem;
    color: var(--color-primary);
}

/*--------------------------------------------------------------
# Partners Section
--------------------------------------------------------------*/
.partners-section {
    background-color: var(--color-background-medium);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.partners-logo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.partner-logo {
    text-align: center;
}
.partner-logo img {
    max-height: 75px;
    width: auto;
    margin-bottom: 10px;
    filter: grayscale(80%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.partner-logo p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
.external-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
.link-card {
    background-color: var(--color-text-light);
    padding: 20px;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}
.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.link-card h4 a {
    color: var(--color-text-headings);
    font-weight: 600;
}
.link-card h4 a:hover {
    color: var(--color-accent);
}
.link-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-section {
    background-color: var(--color-background-medium);
}
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-text-light);
    padding: 30px 40px;
    border-radius: 15px; /* Softer biomorphic edge */
    box-shadow: 0 10px 30px var(--color-shadow);
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-soft);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(121, 199, 179, 0.25); /* Accent color focus ring */
    outline: none;
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-group input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}
.form-group .checkbox-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: inline;
}
.form-group .checkbox-label a {
    color: var(--color-accent);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding: 50px 0 0;
    font-size: 0.95rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-column h4 {
    color: var(--color-primary); /* Lighter accent for dark bg */
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 12px;
}
.footer-column ul li a {
    color: var(--color-text-light);
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.footer-column ul li a:hover {
    opacity: 1;
    color: var(--color-secondary); /* Another light accent for hover */
    text-decoration: none;
}
.footer-column p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Footer Social Links (already text based in HTML) */
.footer-column .social-links li a {
    /* Styles from .footer-column ul li a already apply */
    font-weight: 500; /* Make them slightly bolder */
}
.footer-column .social-links li a:hover {
    color: var(--color-accent); /* Use main accent for hover */
}

/*--------------------------------------------------------------
# Page Specific Styles
--------------------------------------------------------------*/
/* Success Page */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--color-background-light);
}
.success-page-container .icon-success { /* Add an icon div if needed */
    font-size: 5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}
.success-page-container h1 {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-size: 2.8rem;
}
.success-page-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-text-dark);
    max-width: 600px;
}

/* Privacy Policy & Terms Pages - Targeting main content area of these specific pages */
/* Assuming they will have a <main class="main-content-wrapper"> or just <main> */
body.privacy-page .main-content-wrapper,
body.terms-page .main-content-wrapper,
main.privacy-content, /* For standalone privacy.html main tag */
main.terms-content {   /* For standalone terms.html main tag */
    padding-top: calc(var(--header-height) + 40px); /* Header height + extra space */
    padding-bottom: 60px;
}

/* Generic styling for content on simple pages like privacy/terms */
.simple-page-content .container { /* Wrap content in this div in privacy/terms html */
    max-width: 800px; /* Readable width for text-heavy pages */
}
.simple-page-content h1 {
    margin-bottom: 30px;
    font-size: 2.5em;
    color: var(--color-text-headings);
}
.simple-page-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: var(--color-primary);
}
.simple-page-content p,
.simple-page-content ul,
.simple-page-content ol {
    margin-bottom: 20px;
    line-height: 1.8;
}
.simple-page-content ul,
.simple-page-content ol {
    padding-left: 25px;
}
.simple-page-content ul li,
.simple-page-content ol li {
    margin-bottom: 10px;
}


/*--------------------------------------------------------------
# Animations & Transitions
--------------------------------------------------------------*/
.parallax-bg {
    background-attachment: fixed; /* Simple parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0.1s; /* Slight delay for staggered effect if desired via JS */
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-title { font-size: 2.2rem; }

    .main-navigation .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-background-light);
        padding: 15px 0;
        box-shadow: 0 4px 8px var(--color-shadow);
        border-top: 1px solid var(--color-border);
    }
    .main-navigation .nav-menu.active {
        display: flex;
    }
    .main-navigation .nav-menu li {
        text-align: center;
        margin: 10px 0;
        width: 100%;
    }
    .main-navigation .nav-menu a {
        display: block;
        padding: 12px 20px;
    }
    .nav-toggle { display: block; }

    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; }

    .columns { display: block; } /* Stack columns */
    .column { width: 100% !important; margin-bottom: 20px; }
    .column.image-column img { max-width: 300px; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    .site-header { padding: 10px 0; }
    .logo img { max-height: 40px; }

    .content-section { padding-top: 40px; padding-bottom: 40px; }
    .section-title { font-size: 1.8rem; margin-bottom: 30px; }
    .section-title::after { width: 50px; height: 3px; margin-top: 10px; }
    .section-subtitle { font-size: 1rem; margin-bottom: 30px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.5rem; }

    .hero-section { min-height: 70vh; padding: 80px 15px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }

    .services-grid,
    .case-studies-gallery,
    .testimonials-slider,
    .media-mentions-grid,
    .external-links-grid {
        grid-template-columns: 1fr; /* Single column stack */
        gap: 20px;
    }
    .card { padding: 20px; }
    .card-image { height: 180px; }

    .contact-form-container { padding: 25px; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-column h4 { margin-top: 20px; }
    .footer-column:first-child h4 { margin-top: 0; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 0.9rem; }
    .cta-button, .submit-button, button[type="submit"] { padding: 12px 25px; font-size: 0.9rem; }
    .hero-section .cta-button { padding: 12px 28px; font-size: 1rem; }

    body.privacy-page .main-content-wrapper,
    body.terms-page .main-content-wrapper,
    main.privacy-content,
    main.terms-content {
        padding-top: calc(var(--header-height) + 20px);
    }
    .simple-page-content h1 { font-size: 2em; }
    .simple-page-content h2 { font-size: 1.5em; }
}