/* style.css */

/*------------------------------------*\
  :ROOT VARIABLES
\*------------------------------------*/
:root {
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;

    --color-background: #f8f9fa; /* Very light gray */
    --color-surface: #ffffff;    /* White for cards, etc. */
    --color-text-primary: #212529; /* Dark gray, almost black for high contrast */
    --color-text-secondary: #495057; /* Medium-dark gray */
    --color-text-muted: #6c757d;    /* Muted gray */
    --color-text-hero: #FFFFFF;     /* White text for hero */

    --color-primary-accent: #007bff; /* A classic, corporate blue */
    --color-primary-accent-dark: #0056b3; /* Darker blue for hover/active */
    --color-secondary-accent: #6c757d; /* Neutral accent, e.g., for borders or subtle UI */

    --color-border: #dee2e6;       /* Light gray border */
    --color-input-border: #ced4da; /* Input border */
    --color-input-focus-border: #86b7fe; /* Blue focus like Bootstrap */
    --color-success: #198754;
    --color-danger: #dc3545;

    --border-radius-sm: 0.25rem; /* 4px */
    --border-radius-md: 0.5rem;  /* 8px */
    --border-radius-lg: 0.75rem; /* 12px */

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --transition-base: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy */
    --transition-fast: all 0.2s ease-in-out;

    --header-height: 80px;
    --section-padding-y: 4rem; /* 64px */
    --section-padding-y-sm: 3rem; /* 48px */
}

/*------------------------------------*\
  :BASE & TYPOGRAPHY
\*------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary); /* Ensuring headings are dark on light backgrounds */
    text-shadow: none; /* Default, can be overridden */
}

h1 { font-size: 2.8rem; margin-bottom: 1.5rem; } /* ~44.8px */
h2 { font-size: 2.2rem; margin-bottom: 1.25rem; } /* ~35.2px */
h3 { font-size: 1.7rem; margin-bottom: 1rem; }    /* ~27.2px */
h4 { font-size: 1.3rem; }    /* ~20.8px */

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

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

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

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

ul, ol {
    list-style: none;
    padding-left: 0;
}

/*------------------------------------*\
  :LAYOUT & CONTAINER
\*------------------------------------*/
.main-container {
    overflow-x: hidden; /* Prevents horizontal scroll from animations */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Section Base Styles */
.section-padding {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}
.section-padding-bottom {
    padding-bottom: var(--section-padding-y);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    font-size: 2.5rem; /* Slightly larger for emphasis */
}

.section-title::after { /* Subtle underline accent */
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--color-primary-accent);
    margin: 0.75rem auto 0;
    border-radius: var(--border-radius-sm);
}

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

/*------------------------------------*\
  :BUTTONS (GLOBAL)
\*------------------------------------*/
.cta-button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-surface);
    background-color: var(--color-primary-accent);
    border: 2px solid var(--color-primary-accent);
    padding: 0.75rem 1.75rem; /* Generous padding */
    border-radius: var(--border-radius-md);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.cta-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--color-primary-accent-dark);
    border-color: var(--color-primary-accent-dark);
    transform: translateY(-3px) scale(1.02); /* Bouncy lift */
    box-shadow: var(--shadow-md);
    color: var(--color-surface);
    text-decoration: none;
}

.cta-button:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(0px) scale(0.98); /* Press down */
    box-shadow: var(--shadow-sm);
}

/* Secondary/Outline Button Style (Example) */
.cta-button-outline {
    background-color: transparent;
    color: var(--color-primary-accent);
    border: 2px solid var(--color-primary-accent);
}

.cta-button-outline:hover {
    background-color: var(--color-primary-accent);
    color: var(--color-surface);
}

/*------------------------------------*\
  :HEADER & NAVIGATION
\*------------------------------------*/
.site-header {
    background-color: var(--color-surface);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.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(--color-text-primary);
    text-decoration: none;
}
.logo:hover {
    color: var(--color-primary-accent);
    text-decoration: none;
}

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

.main-navigation .nav-list li {
    margin-left: 1.8rem;
}

.main-navigation .nav-list a {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.95rem;
}

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

.main-navigation .nav-list a:hover,
.main-navigation .nav-list a.active { /* Add .active class via JS for current page/section */
    color: var(--color-primary-accent);
}

.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;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Above nav list on mobile */
    box-shadow: none;
}
.menu-toggle:hover {
    background: none;
    border: none;
    box-shadow: none;
    color: var(--color-primary-accent);
    transform: none;
}

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

/* Active state for hamburger menu */
.menu-toggle[aria-expanded="true"] .hamburger-icon {
    background-color: transparent; /* Middle line disappears */
}
.menu-toggle[aria-expanded="true"] .hamburger-icon::before {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-icon::after {
    transform: translateY(-7px) rotate(-45deg);
}


/*------------------------------------*\
  :HERO SECTION
\*------------------------------------*/
.hero-section {
    position: relative;
    color: var(--color-text-hero); /* Global white text for hero */
    padding: calc(var(--section-padding-y) * 1.8) 0; /* More padding for hero */
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: calc(100vh - var(--header-height)); /* Ensure it's substantial */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.hero-title {
    font-size: 3.5rem; /* Larger for hero */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--color-text-hero);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Ensure readability */
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    color: var(--color-text-hero);
    opacity: 0.9;
}

.hero-section .cta-button {
    padding: 1rem 2.5rem; /* Larger CTA */
    font-size: 1.1rem;
}

/*------------------------------------*\
  :CARDS (GLOBAL)
\*------------------------------------*/
.card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg); /* More pronounced radius */
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    /* align-items: center; /* This will center fixed-width image containers if they are not 100% width */
    text-align: center; /* Centers text and inline-block elements like images if not full width */
    height: 100%; /* For equal height in grids */
}

.card:hover {
    transform: translateY(-8px) /* rotate(0.5deg) */; /* Subtle lift, optional rotate */
    box-shadow: var(--shadow-lg);
}

.card .card-image.image-container { /* or just .card-image if that's the direct wrapper */
    width: 100%;
    height: 220px; /* Consistent height for card images */
    overflow: hidden;
    /* margin-bottom: 1.5rem; No margin, content padding will handle */
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for consistent image display */
    transition: transform 0.4s ease-out;
}

.card:hover .card-image img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.card-content {
    padding: 1.75rem;
    flex-grow: 1; /* Allows content to fill space if card heights are equalized by grid */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes "read more" down if present */
}
.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}
.card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}
.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1; /* Allows paragraph to take up space */
}
.card-content .read-more {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-primary-accent);
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem; /* Space above if other content is short */
    align-self: flex-start; /* Align to left if card text-align is center */
    text-align: left; /* Ensure its own text is left aligned */
}
.card-content .read-more:hover {
    color: var(--color-primary-accent-dark);
    text-decoration: underline;
}

/* Specific grids */
.services-grid,
.insights-grid,
.news-grid,
.bts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/*------------------------------------*\
  :MISSION SECTION
\*------------------------------------*/
.mission-section .mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.mission-section .mission-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/*------------------------------------*\
  :PORTFOLIO SECTION
\*------------------------------------*/
.portfolio-slider .slide.card { /* Slider items are cards */
    min-width: 80%; /* Example: adjust for desired number of visible slides */
    margin-right: 1.5rem; /* Space between slides */
}
.portfolio-slider .card-image.image-container {
    height: 300px; /* Taller images for portfolio */
}
.slider-controls {
    text-align: center;
    margin-top: 2rem;
}
.slider-controls button {
    background-color: transparent;
    color: var(--color-primary-accent);
    border: 1px solid var(--color-primary-accent);
    margin: 0 0.5rem;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    line-height: 36px;
    padding: 0;
    border-radius: 50%;
}
.slider-controls button:hover {
    background-color: var(--color-primary-accent);
    color: var(--color-surface);
    border-color: var(--color-primary-accent);
}

/*------------------------------------*\
  :ACCOLADES SECTION
\*------------------------------------*/
.accolades-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.accolade-item {
    max-width: 200px;
}
.accolade-item img {
    max-height: 100px; /* Control logo size */
    width: auto;
    margin: 0 auto 1rem;
    filter: grayscale(50%); /* Subtle effect */
    opacity: 0.8;
}
.accolade-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/*------------------------------------*\
  :EXTERNAL RESOURCES SECTION
\*------------------------------------*/
.resources-list .resource-item.card {
    padding: 1.5rem;
    text-align: left; /* Override card default text-align */
    box-shadow: var(--shadow-sm);
    background-color: #fdfdfd; /* Slightly off-white */
}
.resources-list .resource-item.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.resources-list .resource-item h4 {
    margin-bottom: 0.5rem;
}
.resources-list .resource-item h4 a {
    font-size: 1.1rem;
    font-weight: 500;
}
.resources-list .resource-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}
.resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}


/*------------------------------------*\
  :NEWS SECTION
\*------------------------------------*/
.news-item .news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    text-align: left; /* Override card text-align if needed */
}
.news-item .card-content {
    text-align: left; /* Ensure content is left aligned */
}
.news-item .card-content h4 {
    text-align: left;
}
.news-item .card-content p {
    text-align: left;
}


/*------------------------------------*\
  :BEHIND THE SCENES SECTION
\*------------------------------------*/
/* Uses generic .card styles */

/*------------------------------------*\
  :COMMUNITY SECTION
\*------------------------------------*/
.community-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.community-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}
.community-image-container img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

/*------------------------------------*\
  :CONTACT SECTION
\*------------------------------------*/
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    /* Glassmorphism attempt - use with caution for performance */
    /* background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); */
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}
.contact-info p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.contact-info a {
    word-break: break-all;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    border: 1px solid var(--color-input-border);
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
    background-color: var(--color-background); /* Slight contrast from surface */
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-input-focus-border);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: var(--color-surface);
}

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

.contact-form .form-submit-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Switch Group for Budget */
.switch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.switch-group input[type="radio"] {
    display: none; /* Hide actual radio */
}
.switch-group .switch-label {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--color-input-border);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    background-color: var(--color-background);
    color: var(--color-text-secondary);
}
.switch-group input[type="radio"]:checked + .switch-label {
    background-color: var(--color-primary-accent);
    color: var(--color-surface);
    border-color: var(--color-primary-accent);
    font-weight: 500;
}
.switch-group .switch-label:hover {
    border-color: var(--color-primary-accent);
}


/*------------------------------------*\
  :FOOTER
\*------------------------------------*/
.site-footer {
    background-color: var(--color-text-primary); /* Dark footer */
    color: rgba(255, 255, 255, 0.7);
    padding-top: var(--section-padding-y);
    font-size: 0.9rem;
}

.site-footer .logo {
    color: var(--color-surface);
}
.site-footer .logo:hover {
    color: var(--color-primary-accent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding-bottom: var(--section-padding-y);
}

.footer-column h4 {
    font-family: var(--font-primary);
    color: var(--color-surface);
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

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

.footer-social .social-links-text a {
    display: inline-block; /* For better spacing if needed */
    padding: 0.2rem 0; /* Minimal padding */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p {
    margin-bottom: 0;
}

/*------------------------------------*\
  :SPECIFIC PAGE STYLES
\*------------------------------------*/
/* success.html centering */
.success-page-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: 2rem;
}
.success-page-container h1 {
    color: var(--color-success);
    font-size: 3rem;
    margin-bottom: 1rem;
}
.success-page-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* privacy.html & terms.html */
.privacy-page-container,
.terms-page-container,
.about-page-container, /* Assuming similar structure for other content pages */
.contacts-page-container {
    padding-top: 3rem; /* Additional padding since body already has header padding */
    padding-bottom: var(--section-padding-y);
}

.privacy-page-container .container > h1, /* Target h1 directly inside container for these pages */
.terms-page-container .container > h1,
.about-page-container .container > h1,
.contacts-page-container .container > h1 {
    margin-bottom: 2rem;
    text-align: left; /* Default for content pages */
}
.privacy-page-container .container > h1::after,
.terms-page-container .container > h1::after,
.about-page-container .container > h1::after,
.contacts-page-container .container > h1::after {
    display: none; /* Remove section title underline */
}

.privacy-page-container h2,
.terms-page-container h2,
.about-page-container h2,
.contacts-page-container h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/*------------------------------------*\
  :ANIMATIONS (SCROLLREVEAL PLACEHOLDERS)
\*------------------------------------*/
/* ScrollReveal will add 'is-visible'. These are initial states */
.sr-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.sr-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.sr-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.is-visible .sr-fade-in-up,
.is-visible .sr-fade-in-left,
.is-visible .sr-fade-in-right {
    opacity: 1;
    transform: translate(0, 0);
}

/*------------------------------------*\
  :UTILITY CLASSES
\*------------------------------------*/
.sr-only { /* Screenreader only */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.margin-top-md { margin-top: 2rem; }


/*------------------------------------*\
  :RESPONSIVE STYLES
\*------------------------------------*/
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2.1rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { padding-top: 0; } /* Remove body padding, header is not fixed or handled differently */

    .site-header {
        /* position: relative; /* Or manage fixed with JS */
        /* For now, assume fixed header logic remains, but nav list behavior changes */
    }
    
    .menu-toggle {
        display: block; /* Show hamburger */
    }

    .main-navigation .nav-list {
        position: absolute;
        top: var(--header-height); /* Position below header */
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--color-surface);
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        transform: translateY(-120%); /* Start off-screen */
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        z-index: 999; /* Below toggle but above content */
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .main-navigation .nav-list.is-active {
        transform: translateY(0);
    }

    .main-navigation .nav-list li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .main-navigation .nav-list a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--color-border);
        font-size: 1rem;
    }
    .main-navigation .nav-list li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-list a::after {
        display: none; /* No underline effect on mobile nav items */
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.9rem; }
    .hero-title { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1rem; }

    .section-padding {
        padding-top: var(--section-padding-y-sm);
        padding-bottom: var(--section-padding-y-sm);
    }
    .section-padding-bottom {
        padding-bottom: var(--section-padding-y-sm);
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .services-grid,
    .insights-grid,
    .news-grid,
    .bts-grid,
    .resources-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 1.5rem;
    }
    .portfolio-slider .slide.card {
        min-width: 90%;
    }
    .contact-wrapper {
        padding: 1.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column {
        margin-bottom: 1.5rem;
    }
    .footer-column h4 {
        margin-bottom: 0.75rem;
    }
    .footer-column ul {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    h1 { font-size: 2rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .cta-button, button, input[type="submit"] {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .hero-section .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    .card-content {
        padding: 1.25rem;
    }
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form select,
    .contact-form textarea {
        padding: 0.75rem 0.9rem;
    }
    .switch-group .switch-label {
        padding: 0.5rem 1rem;
    }
}
*{
    opacity: 1 !important;
}