/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    --primary-green:    #39b54a;
    --primary-teal:     #4ee2ec;
    --secondary-dark:   #153639;
    --secondary-gray:   #939598;
    --secondary-black:  #231f20;
    --white:            #ffffff;
    --light-gray:       #f5f5f5;
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--primary-teal));

    --nav-height:    80px;
    --transition:    0.3s ease;
    --container-max: 1200px;
}


/* ============================================================
   BASE RESET + TYPOGRAPHY
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--secondary-black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-dark);
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-teal);
}

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


/* ============================================================
   UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px; /*var(--container-max);*/
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(78, 226, 236, 0.3);
}

.btn:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 226, 236, 0.5);
}


/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

/* Navbar gets a dark background once the user scrolls down */
#header.scrolled {
    background: rgba(21, 54, 57, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

/* Logo */
.logo img {
    height: 60px;
    width: auto;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links > a {
    color: var(--white);
    font-size: 1.0rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color var(--transition);
}

.nav-links > a:hover {
    color: var(--primary-teal);
}

/* Language switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    cursor: pointer;
    font-size: 1.0rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background var(--transition);
    user-select: none;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-btn .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform var(--transition);
}

.language-btn.open .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown — hidden by default */
.language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 130px;
    z-index: 100;
}

.language-dropdown.open {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--secondary-black);
    font-size: 0.9rem;
    transition: background var(--transition);
}

.language-option:hover {
    background: var(--light-gray);
    color: var(--secondary-black);
}

.language-option.active {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--secondary-black);
}

.language-flag {
    width: 20px;
    height: auto;
    display: inline-block;
}

/* Mobile menu button — hidden on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    font-size: 1.4rem;
    padding: 4px;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(21, 54, 57, 0.78) 0%,
        rgba(0, 0, 0, 0.50) 100%
    );
    z-index: 1;
}

.hero-logo-icon {
    height: 100px;
    width: auto;
    margin-bottom: 1.5rem;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1.2rem, 1.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.7;
}


/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */
@media (max-width: 768px) {

    .mobile-menu-btn {
        display: block;
    }

    /* Desktop nav links hidden; shown when .open is toggled by JS */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(21, 54, 57, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 1.2rem;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    /* Language dropdown sits inline on mobile */
    .language-dropdown {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 4px;
        width: 100%;
    }

    .language-option {
        color: var(--white);
    }

    .language-option:hover,
    .language-option.active {
        background: rgba(255, 255, 255, 0.12);
        color: var(--white);
    }

    .hero-content {
        max-width: 100%;
    }
}
/* ============================================================
   CLIENTS — logo slider
   ============================================================ */
.clients {
    padding: 60px 0;
    background: var(--white);
    overflow: hidden;
}

.clients-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.clients-track-wrapper {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(
        to right,
        transparent 15%,
        black 25%,
        black 75%,
        transparent 85%
    );
}

/* The track holds two copies of all logos side by side */
.clients-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 56px;
}

.scroll-left {
    animation: scroll-left 28s linear infinite;
}

.scroll-right {
    animation: scroll-right 28s linear infinite;
}

/*!* Pause on hover so users can read a logo *!*/
/*.clients-track-wrapper:hover .clients-track {*/
/*    animation-play-state: paused;*/
/*}*/

.client-logo {
    flex-shrink: 0;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    height: 65px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter var(--transition), opacity var(--transition);
}

.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
/* ============================================================
   MISSION & PHILOSOPHY
   ============================================================ */
.mission {
    background: var(--secondary-dark);
    padding: 50px 0;
}

.mission-overline {
    font-size: 0.9rem;
    color: var(--primary-teal);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.mission-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.mission-intro {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* --- Framework cards --- */
.framework-cards {
    display: flex;
    gap: 12px;
    height: 320px;
    margin-bottom: 3rem;
}

.framework-card {
    flex-grow: 1;
    flex-basis: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: flex-grow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.framework-card:hover:not(.active) {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}

.framework-card.active {
    flex-grow: 4;
    border-color: rgba(57, 181, 74, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

/* Background image layer */
.framework-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: var(--card-image);
    background-size: cover;
    background-position: center right;
    opacity: 0.5;
    mask-image: linear-gradient(to right, transparent 0%, black 100%);
    z-index: 0;
    transition: opacity 0.45s ease;
}

.framework-card.active::before {
    opacity: 0.5;
}

/* All content sits above the image layer */
.framework-card > * {
    position: relative;
    z-index: 1;
}

.card-number {
    font-size: 0.9rem;
    color: var(--primary-teal);
    letter-spacing: 2px;
    opacity: 0.75;
    margin-bottom: 12px;
}

.card-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 12px;
    transition: color var(--transition);
}

.framework-card.active .card-icon {
    color: var(--primary-green);
}

/* Vertical keyword (collapsed) */
.card-vwrap {
    flex-grow: 1;
    overflow: hidden;
}

.card-vkey {
    writing-mode: vertical-lr;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.framework-card.active .card-vwrap {
    display: none;
}

/* Expand hint (collapsed) */
.card-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6px;
}

.card-hint i {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.25);
}

.framework-card.active .card-hint {
    display: none;
}

/* Expanded content */
.card-expanded {
    display: none;
    flex-direction: column;
    flex: 1;
}

.framework-card.active .card-expanded {
    display: flex;
}

.card-keyword {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
}

.card-subtitle {
    font-size: 1.1rem;
    color: var(--primary-teal);
    opacity: 0.85;
    margin-bottom: 0;
}

.card-description {
    font-size: 1.0rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-top: 14px;
    opacity: 0;
    transition: opacity 0.25s ease 0.3s;
}

.framework-card.active .card-description {
    opacity: 1;
}

/* --- Service pills --- */
.services-pill-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
}

.services-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition);
}

.service-pill:hover {
    border-color: rgba(57, 181, 74, 0.45);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(57, 181, 74, 0.06);
}

.service-pill i {
    font-size: 1.4rem;
    color: var(--primary-green);
}

/* --- Responsive: 5D Framework Cards --- */
@media (max-width: 768px) {

    .framework-cards {
        flex-direction: column;
        height: auto;
        gap: 8px;
        margin-bottom: 2rem;
    }

    /* Horizontal header row, wraps body below */
    .framework-card {
        flex-grow: unset !important;
        flex-basis: auto !important;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 12px;
        row-gap: 0;
        padding: 12px 16px;
        transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
    }

    .framework-card.active {
        flex-grow: unset !important;
        padding: 14px 16px;
    }

    /* Header row elements */
    .card-number {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .card-icon {
        flex-shrink: 0;
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    /* Override base active rule that hides vwrap */
    .card-vwrap,
    .framework-card.active .card-vwrap {
        display: block !important;
        flex: 1;
        overflow: visible;
    }

    /* Horizontal text — no writing-mode */
    .card-vkey {
        writing-mode: horizontal-tb;
        font-size: 0.82rem;
        letter-spacing: 0.8px;
        white-space: nowrap;
    }

    .framework-card.active .card-vkey {
        color: var(--white);
    }

    /* Override base active rule that hides hint */
    .card-hint,
    .framework-card.active .card-hint {
        display: flex !important;
        flex-shrink: 0;
        padding-top: 0;
    }

    /* Body row — display and max-height controlled entirely by JS */
    .card-expanded {
        flex-basis: 100%;
        overflow: hidden;
        flex-direction: column;
        transition: max-height 0.4s ease;
    }

    /* Keyword already visible in header via card-vkey */
    .card-keyword {
        display: none;
    }

    /* Remove opacity animation — max-height handles the reveal */
    .card-description {
        opacity: 1 !important;
        transition: none;
        margin-top: 8px;
    }
    .mission-intro {
        max-width: 100%;
    }
}
/* ============================================================
   ABOUT
   ============================================================ */
.about {
    background: var(--light-gray);
    padding: 100px 0 0;
}

/* --- Two-column layout --- */
.about-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 64px;
}

/* Photo */
.about-photo-col img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    display: block;
}

/* Bio content */
.about-overline {
    font-size: 0.72rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.about-name {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 4px;
}

.about-role {
    font-size: 0.9rem;
    color: var(--secondary-gray);
    margin-bottom: 28px;
}

/* Tagline pull quote */
.about-tagline {
    border-left: 3px solid var(--primary-green);
    padding: 4px 0 4px 18px;
    margin: 0 0 24px;
    font-size: 1rem;
    font-style: italic;
    color: var(--secondary-dark);
    font-weight: 400;
    line-height: 1.6;
}

/* Bio paragraphs */
.about-bio p {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-bio p:last-child {
    margin-bottom: 28px;
}

/* --- Stats row --- */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 0;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--secondary-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* --- Highlights strip --- */
.highlights-strip {
    background: var(--white);
    margin-top: 64px;
    padding: 48px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.highlights-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1;
    min-width: 100px;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--transition);
}

.highlight-item:hover {
    background: var(--light-gray);
}

.highlight-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-logo img {
    height: 120px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter var(--transition), opacity var(--transition);
}

.highlight-item:hover .highlight-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.highlight-logo i {
    font-size: 2rem;
    color: var(--secondary-gray);
    transition: color var(--transition);
}

.highlight-item:hover .highlight-logo i {
    color: var(--primary-green);
}

.highlight-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-dark);
    margin: 0;
}

.highlight-sublabel {
    font-size: 0.7rem;
    color: var(--secondary-gray);
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .about {
        padding: 80px 0 0;
    }

    .about-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-photo-col img {
        max-width: 260px;
        margin: 0 auto;
        aspect-ratio: 1 / 1;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlights-items {
        justify-content: center;
        gap: 12px;
    }

    .highlight-item {
        min-width: 80px;
        flex: 0 0 calc(33% - 12px);
    }
}

/* ===================== PROJECTS SECTION ===================== */

.section-overline {
    display: block;
    font-size: 0.72rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-align: center;
}

.section-projects {
  background: var(--light-gray);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto 60px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 40px 32px;
  background: var(--white);
  border: 1.5px solid #e0e0e0;
  border-radius: 16px;
  text-decoration: none;
  color: var(--secondary-black);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(21, 54, 57, 0.14);
  border-color: var(--primary-green);
  color: var(--secondary-black);
}

.product-card--coming-soon {
  cursor: default;
}

.product-card--coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: #e0e0e0;
}

.product-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.product-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
  margin-bottom: 20px;
}

.product-logo {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.product-tagline {
  font-size: 0.9rem;
  color: var(--secondary-gray);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 16px;
}

.product-explore {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-green);
  letter-spacing: 0.04em;
  margin-top: auto;
  transition: color 0.2s ease;
}

.product-card:hover .product-explore {
  color: var(--primary-teal);
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* ===================== PORTFOLIO GRID ===================== */

.projects-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 0 0 48px;
}

/* ── Filter bar ── */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.project-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid #d4d4d4;
  background: var(--white);
  color: var(--secondary-gray);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.project-filter-btn i {
  font-size: 0.85rem;
}

.project-filter-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.project-filter-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
}

/* ── Column layout ── */
.project-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 0px;  /* space for the centre-column offset */
}

.project-col--center {
  margin-top: 0px;
  /*transition: margin-top 0.3s ease;*/
}

/* ── Project card ── */
.project-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 20px;
  background: var(--secondary-gray);
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.project-card:hover .project-card-img {
  transform: scale(1.06);
}

/* Year pill — top left */
.project-card-year {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(21, 54, 57, 0.82);
  color: var(--primary-teal);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}

/* Category badge — top right */
.project-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  z-index: 2;
  pointer-events: none;
}

.project-card-badge--consulting { color: var(--primary-green); }
.project-card-badge--research   { color: #7B5EA7; }

/* Hover overlay — slides up from bottom, 50% height */
.project-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 70%;
  background: rgba(21, 54, 57, 0.70);
  transform: translateY(100%);
  transition: transform 0.32s ease;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.project-card:hover .project-card-overlay {
  transform: translateY(0);
}

.project-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
  line-height: 1.3;
}

.project-card-location {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.project-card-summary {
  font-size: 0.8rem;
  color: var(--white);
  line-height: 1.5;
  overflow: hidden;
}

/* ── Show more ── */
.project-showmore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px; /* pulls up inside the grid padding-bottom */
  padding-bottom: 20px;
}

.project-count {
  font-size: 0.8rem;
  color: var(--secondary-gray);
  margin: 0;
}

.project-showmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 30px;
  border: 1.5px solid #d4d4d4;
  background: var(--white);
  color: var(--secondary-black);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.project-showmore-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .project-columns {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 0;
  }
  .project-col--center {
    margin-top: 0 !important;
  }
  .project-showmore {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .project-columns {
    grid-template-columns: 1fr;
  }
  .project-filter-btn span {
    display: none; /* icon-only on narrow screens */
  }
  .project-filter-btn {
    padding: 8px 12px;
  }
}

/* ===================== SERVICE PILL BUBBLE ===================== */
/* Make pills interactive */
.service-pill {
  cursor: pointer;
  user-select: none;
}

.service-pill:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 3px;
}

/* Overlay — subtle, just enough to signal focus */
.bubble-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 990;
}

.bubble-overlay.active {
  display: block;
}

/* Bubble card */
.service-bubble {
  position: fixed;
  width: 320px;
  background: var(--white);
  border-radius: 14px;
  padding: 28px 28px 22px;
  z-index: 1001;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
  transform: scale(0);
  opacity: 0;
  /* Spring easing gives the "grows from pill" feel */
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.18s ease;
  pointer-events: none;
}

.service-bubble.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}

.bubble-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--secondary-gray);
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  transition: color 0.2s ease;
}

.bubble-close:hover {
  color: var(--secondary-dark);
}

.bubble-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.bubble-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(57, 181, 74, 0.1);
  flex-shrink: 0;
  margin-top: 2px;
}

.bubble-icon-wrap i {
  font-size: 1.1rem;
  color: var(--primary-green);
}

.service-bubble h4 {
  font-size: 0.95rem;
  color: var(--secondary-dark);
  line-height: 1.35;
  margin: 0;
}

.service-bubble p {
  font-size: 0.875rem;
  color: var(--secondary-black);
  line-height: 1.65;
  margin: 0 0 16px;
}

.bubble-cta {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-green);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bubble-cta:hover {
  color: var(--primary-teal);
}

@media (max-width: 768px) {
  .service-bubble {
    /* JS overrides left/width on mobile — see JS note */
    width: calc(100vw - 32px);
  }
}

/* ============================================================
   INSIGHTS SECTION (homepage preview)
   ============================================================ */

.insights-section {
  background-color: var(--white);
}

.insights-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.insights-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.insights-section-heading {
  font-size: 2rem;
  font-weight: 500;
  color: var(--secondary-black);
  margin: 0 0 0.75rem;
}

.insights-section-subtext {
  font-size: 1rem;
  color: var(--secondary-gray);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid layout */
.insights-preview-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.insights-preview-single {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* Cards */
.insights-card {
  border: 0.5px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s ease;
}

.insights-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Image wrapper — position relative for tag overlay */
.insights-card__image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.insights-card--featured .insights-card__image-wrap {
  height: 220px;
}

.insights-card--small .insights-card__image-wrap {
  height: 110px;
}

.insights-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.insights-card__image-wrap:hover .insights-card__img {
  transform: scale(1.03);
}

.insights-card__img-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--secondary-dark);
}

/* Tag rows */
.insights-card__tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.insights-card__tag-row--overlay {
  position: absolute;
  top: 12px;
  left: 12px;
}

/* Tag variants */
.insights-tag--pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--white);
  background-color: var(--primary-green);
  padding: 3px 9px;
  border-radius: 4px;
}

.insights-tag--text {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Card body */
.insights-card__body {
  padding: 1.25rem 1.5rem;
}

.insights-card--featured .insights-card__body {
  padding: 1.4rem 1.75rem;
}

.insights-card--small .insights-card__body {
  padding: 0.85rem 1rem;
}

.insights-card__meta {
  font-size: 11px;
  color: var(--secondary-gray);
  margin: 0 0 0.5rem;
}

.insights-card__title {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 0.6rem;
}

.insights-card__title--sm {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.insights-card__title a {
  color: var(--secondary-black);
  text-decoration: none;
}

.insights-card__title a:hover {
  color: var(--primary-green);
}

.insights-card__subtitle {
  font-size: 0.85rem;
  color: var(--secondary-gray);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.insights-card__cta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-green);
  text-decoration: none;
}

.insights-card__cta:hover {
  text-decoration: underline;
}

/* Secondary stack */
.insights-secondary-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* View all link */
.insights-view-all {
  text-align: center;
}

.insights-view-all-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-green);
  text-decoration: none;
}

.insights-view-all-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .insights-preview-grid {
    grid-template-columns: 1fr;
  }

  .insights-card--featured .insights-card__image-wrap {
    height: 180px;
  }
}

/* ============================================================
   NEWS SECTION
   ============================================================ */

.news-section {
  background-color: var(--light-gray);
}

.news-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.news-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.news-section-heading {
  font-size: 2rem;
  font-weight: 500;
  color: var(--secondary-black);
  margin: 0 0 0.75rem;
}

.news-section-subtext {
  font-size: 1rem;
  color: var(--secondary-gray);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Timeline ──────────────────────────────────────────────── */

.news-timeline {
  max-width: 100%;
  margin: 0 auto;
}

.news-timeline-row {
  display: flex;
  align-items: stretch;
}

/* Date column */
.news-tl-date {
  width: 72px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 12px;
  padding-top: 16px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--secondary-gray);
}

/* Spine */
.news-tl-spine {
  width: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 17px;
}

.news-tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--primary-green);
  flex-shrink: 0;
}

.news-tl-line {
  width: 1px;
  flex: 1;
  background-color: #d8d8d8;
  margin-top: 5px;
  min-height: 16px;
}

.news-timeline-row--last .news-tl-line {
  display: none;
}

/* Card */
.news-tl-card {
  flex: 1;
  margin-left: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;    /* ← add this */
  border: 0.5px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.news-tl-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.news-tl-card:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Card image */
.news-tl-img {
  width: 200px;           /* was 100px — wider so 16:9 height is usable */
  flex-shrink: 0;
  aspect-ratio: 16 / 9;  /* replaces align-self: stretch */
  overflow: hidden;
}

.news-tl-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.news-tl-card:hover .news-tl-img img {
  transform: scale(1.04);
}

/* Card content */
.news-tl-content {
  flex: 1;
  padding: 11px 13px;
  min-width: 0;
}

.news-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.news-tl-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--secondary-black);
  margin: 0 0 4px;
}

.news-tl-body {
  font-size: 12px;
  color: var(--secondary-gray);
  line-height: 1.5;
  margin: 0;
}

/* Chevron */
.news-tl-chevron {
  padding: 0 14px;
  flex-shrink: 0;
  color: var(--secondary-gray);
  font-size: 13px;
}

/* Load more */
.news-load-more-wrap {
  text-align: center;
  margin-top: 1.25rem;
  padding-left: 92px;
}

.news-load-btn {
  font-family: inherit;
  font-size: 13px;
  color: var(--secondary-gray);
  background: var(--white);
  border: 0.5px solid #d0d0d0;
  border-radius: 20px;
  padding: 8px 22px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.news-load-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

/* ── Modal ─────────────────────────────────────────────────── */

.news-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.news-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.news-modal {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.news-modal-overlay.is-active .news-modal {
  transform: translateY(0);
}

.news-modal__image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;  /* replaces height: 200px */
  overflow: hidden;
}

.news-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.news-modal__close:hover {
  background: rgba(0, 0, 0, 0.65);
}

.news-modal__body {
  padding: 20px 24px 26px;
}

.news-modal__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.news-modal__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
}

.news-modal__date {
  font-size: 11px;
  color: var(--secondary-gray);
}

.news-modal__title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--secondary-black);
  margin: 0 0 10px;
}

.news-modal__text {
  font-size: 13px;
  color: var(--secondary-gray);
  line-height: 1.7;
  margin: 0 0 20px;
}

.news-modal__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--secondary-dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  width: fit-content;
  transition: background-color 0.2s ease;
}

.news-modal-link:hover {
  background-color: var(--primary-green);
}

.news-modal-link i {
  font-size: 11px;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .news-tl-date {
    width: 52px;
    font-size: 9px;
    padding-right: 8px;
  }

  .news-tl-img {
    width: 120px;   /* narrower on mobile, aspect-ratio handles height */
  }

  .news-load-more-wrap {
    padding-left: 72px;
  }
  /* note: news-modal__image-wrap no longer needs a mobile height override */
}

/* ===== FAQ ===== */

.section-faq {
  background-color: var(--white);
  padding: 80px 0;
}

.section-faq .section-title {
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--secondary-gray);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-dark);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-question:hover {
  background-color: rgba(78, 226, 236, 0.05);
}

.faq-item.open .faq-question {
  color: var(--primary-green);
}

.faq-question i {
  flex-shrink: 0;
  margin-top: 3px;
  transition: transform 0.3s ease;
  color: var(--secondary-gray);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
  color: var(--primary-green);
}

/* Smooth height animation via CSS grid trick */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  padding: 0 1.5rem;
  transition: padding-bottom 0.32s ease;
}

.faq-item.open .faq-answer-inner {
  padding-bottom: 1.5rem;
}

.faq-answer-inner p {
  margin: 0;
  color: var(--secondary-black);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ===== PARTNERS ===== */

.section-partners {
  background-color: var(--white);
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.section-partners .section-title {
  text-align: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 2rem;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 1rem 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.partner-item:hover {
  background-color: rgba(78, 226, 236, 0.05);
}

.partner-logo {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-item:hover .partner-logo img {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-item h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-dark);
  margin-bottom: 3px;
}

.partner-item span {
  font-size: 0.78rem;
  color: var(--secondary-gray);
}

@media (max-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== CONTACT ===== */

.section-contact {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.contact-overlay {
  background: linear-gradient(
    to bottom,
    rgba(21, 54, 57, 0.82),
    rgba(35, 31, 32, 0.75)
  );
  padding: 100px 0;
}

.contact-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-content h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-btn {
  margin-bottom: 2.5rem;
  display: inline-block;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.18);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
  background-color: var(--white);
  color: var(--primary-green);
  transform: translateY(-3px);
}
/* ===== FOOTER ===== */

footer {
  background-color: var(--secondary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links ul li a:hover {
  color: var(--primary-teal);
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact i {
  color: var(--primary-teal);
  width: 16px;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact a:hover {
  color: var(--primary-teal);
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-social {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-social:hover {
  background-color: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--primary-teal);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ===== LEGAL MODALS ===== */

.legal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 54, 57, 0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal-modal-overlay.is-active {
  display: flex;
  overflow-y: auto;
}

.legal-modal-box {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem 3rem 2.5rem;
  position: relative;
  margin: auto;
}

.legal-modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: -1rem -1rem 1rem 1rem;
  background: var(--light-gray);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--secondary-dark);
  font-size: 1rem;
  transition: background-color 0.2s ease;
  z-index: 1;
}

.legal-modal-close:hover {
  background: var(--secondary-gray);
  color: var(--white);
}

.legal-modal-panel h1 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  color: var(--secondary-dark);
}

.legal-modal-panel h2 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-dark);
}

.legal-modal-panel h3 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--secondary-dark);
}

.legal-modal-panel h4 {
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.legal-modal-panel p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--secondary-black);
  margin-bottom: 0.75rem;
}

.legal-modal-panel ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-modal-panel ul li {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.4rem;
  color: var(--secondary-black);
}

.legal-modal-panel a {
  color: var(--primary-green);
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--secondary-gray);
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .legal-modal-box {
    padding: 2rem 1.5rem;
    max-height: 90vh;
  }
}
/* ── Cookie Consent Banner ───────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary-dark);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9999;
  font-size: 0.875rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.cookie-banner p {
  margin: 0;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--primary-teal);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.45rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background-color: var(--primary-green);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background-color: #2da33c;
}

.cookie-btn-decline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-btn-decline:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
  }
}