/* ===================================
   DESIGN SYSTEM RULES
   ===================================

   TYPOGRAPHY:
   - Headings: Plus Jakarta Sans, 700 weight
   - Body: Glacial Indifference
   - Line height: 1.8 (body), 1.2 (headings)

   FONT SIZES:
   - H2 section titles: 2.5rem
   - H4 card titles: 1.1-1.5rem
   - Body text: 1rem (default)
   - Lead text: 1.25rem
   - Intro paragraphs: 1.1rem
   - Labels/tags: 0.75-0.85rem

   COLORS:
   - Black (#121212): All body text, headings, paragraphs
   - Black + 0.85 opacity: Secondary/description text
   - Warm-umber: Category labels, subheadings
   - Deep-forest: Links, accents, quote marks, tag badges
   - Hidden-gem: Source citations (italic)
   - Mist: Card backgrounds, section alternating bg
   - Cream: Highlight boxes, contact section bg
   - Snow: Main background

   SPACING:
   - Section padding: 4rem 2rem
   - Container max-width: 900px
   - Card gap: 1.5rem
   - Element margins: 1-1.5rem

   ALIGNMENT:
   - All content left-aligned
   - Pull quotes centered
   - Footer centered

   =================================== */

/* ===================================
   BRAND COLOR PALETTE (from Canva)
   =================================== */
:root {
    --snow: #fbfcfb;
    --black: #121212;
    --deep-forest: #3a5248;
    --hidden-gem: #5c7a6b;
    --warm-umber: #9b5a4a;
    --navy: #213047;
    --mist: #eef2ef;
    --sand: #c4a082;
    --cream: #d9d2c7;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Glacial Indifference', sans-serif;
    color: var(--black);
    background-color: var(--snow);
    line-height: 1.8;
}

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

/* ===================================
   ACCESSIBILITY: FOCUS STATES
   =================================== */
/* Visible focus for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--deep-forest);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* ===================================
   ACCESSIBILITY: REDUCED MOTION
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-slide {
        transition: opacity 0.01ms ease-in-out;
    }
}

/* ===================================
   NAVIGATION BAR
   =================================== */
.navbar {
    background-color: var(--snow);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 0;
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: auto;
    fill: var(--deep-forest);
}

.logo-combined {
    height: 52px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.4rem;
    color: var(--black);
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.logo .tagline {
    font-size: 0.7rem;
    color: var(--black);
    opacity: 0.7;
    font-family: 'Glacial Indifference', sans-serif;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--snow);
    background-color: var(--black);
}

.cta-button {
    background-color: var(--warm-umber);
    color: var(--snow);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover,
.cta-button:focus {
    background-color: var(--black);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--snow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--black);
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--mist);
    transition: color 0.3s ease;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    color: var(--deep-forest);
}

.mobile-menu .mobile-cta {
    background-color: var(--warm-umber);
    color: var(--snow);
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-align: center;
    margin-top: 1rem;
    border: none;
    display: inline-block;
    width: auto;
}

.mobile-menu .mobile-cta:hover,
.mobile-menu .mobile-cta:focus {
    background-color: var(--black);
    color: var(--snow);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    background-color: var(--deep-forest);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Hero with background image slideshow */
.hero-image-bg {
    min-height: 550px;
    height: 77vh;
    max-height: 770px;
    padding-top: 0;
    margin-top: 80px;
    position: relative;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 65% 30%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Individual slide positioning */
.hero-slide:nth-child(1) {
    background-position: 65% 15%; /* Image 1 - 5% higher */
}

.hero-slide:nth-child(2) {
    background-position: 65% 25%; /* Image 2 - 5% higher */
}

.hero-slide:nth-child(3) {
    background-position: 65% 70%; /* Image 3 - 10% lower */
}

/* Hero Navigation Dots */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 20;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(251, 252, 251, 0.5);
    border: 2px solid rgba(251, 252, 251, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background-color: rgba(251, 252, 251, 0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    background-color: var(--snow);
    border-color: var(--snow);
}

/* Hero Pause/Play Button */
.hero-pause {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(251, 252, 251, 0.15);
    border: 2px solid rgba(251, 252, 251, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.hero-pause:hover {
    background-color: rgba(251, 252, 251, 0.4);
    transform: scale(1.15);
}

.hero-pause:focus-visible {
    outline: 3px solid var(--snow);
    outline-offset: 2px;
}

/* Pause icon: two vertical bars */
.pause-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 12px;
    height: 12px;
    position: relative;
}

.pause-icon::before,
.pause-icon::after {
    content: '';
    display: block;
    width: 3px;
    height: 10px;
    background-color: var(--snow);
    border-radius: 1px;
}

/* Play icon: CSS triangle (when paused) */
.hero-pause.paused .pause-icon::before {
    width: 0;
    height: 0;
    background: none;
    border-left: 8px solid var(--snow);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-radius: 0;
    margin-left: 2px;
}

.hero-pause.paused .pause-icon::after {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(58, 82, 72, 0.95) 0%,
        rgba(58, 82, 72, 0.85) 35%,
        rgba(58, 82, 72, 0.4) 60%,
        rgba(58, 82, 72, 0.1) 80%,
        transparent 100%
    );
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.organic-shape {
    position: absolute;
    width: 60%;
    height: 120%;
    background-color: var(--warm-umber);
    border-radius: 0 50% 50% 0;
    left: 30%;
    top: -10%;
    transform: rotate(-15deg);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-image-bg .hero-content {
    justify-content: flex-start;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1,
.hero-text h2 {
    font-size: 3rem;
    color: var(--snow);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-text h1 span,
.hero-text h2 span {
    color: var(--cream);
}

.hero-text p {
    font-size: 0.95rem;
    color: var(--cream);
    margin-bottom: 2rem;
    max-width: 450px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    background-color: var(--warm-umber);
    color: var(--snow);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-cta:hover,
.hero-cta:focus {
    background-color: var(--sand);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hero Visual Elements (Trees & Moss) */
.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
}

.tree {
    position: absolute;
    border-radius: 50% 50% 10% 10%;
    background: linear-gradient(135deg, var(--hidden-gem) 0%, var(--deep-forest) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tree::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 40px;
    background-color: #5D4E37;
    border-radius: 4px;
}

.tree-1 {
    width: 180px;
    height: 200px;
    right: 10%;
    top: 5%;
}

.tree-2 {
    width: 140px;
    height: 160px;
    right: 35%;
    top: 25%;
}

.tree-3 {
    width: 200px;
    height: 220px;
    right: 5%;
    bottom: 15%;
}

.moss-ball {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--hidden-gem) 0%, #3D5A3D 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.moss-1 {
    width: 60px;
    height: 60px;
    left: 55%;
    top: 40%;
}

.moss-2 {
    width: 45px;
    height: 45px;
    left: 60%;
    bottom: 30%;
}

.moss-3 {
    width: 35px;
    height: 35px;
    right: 40%;
    bottom: 20%;
}

.moss-4 {
    width: 50px;
    height: 50px;
    right: 25%;
    top: 50%;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background-color: var(--snow);
    padding: 4rem 2rem;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-content h1 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.85;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-content p a {
    color: var(--deep-forest);
    text-decoration: none;
    font-weight: 500;
}

.about-content p a:hover {
    opacity: 0.8;
}

.about-content p.about-lead {
    font-size: 1.25rem;
    color: var(--black);
    opacity: 1;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-weight: 500;
}

/* About section with intro text and square image (homepage) */
.about-intro-with-image {
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.about-content p.about-lead {
    flex: 1;
}

.about-image-square {
    flex-shrink: 0;
}

.about-image-square img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    object-position: 65% 20%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* About section with side image (subpage - about.html) */
.subpage-section .about-intro-with-image {
    display: grid;
    grid-template-columns: 0.9fr 2.1fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

.subpage-section .about-intro-image {
    max-height: 90%;
    overflow: hidden;
    transform: translateY(1rem);
}

.about-intro-continued {
    margin-bottom: 2.5rem;
}

.about-intro-continued p {
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.85;
    line-height: 1.8;
}

.about-intro-text h1 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.about-intro-text p {
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.85;
    line-height: 1.8;
}

.about-intro-image {
    display: flex;
    order: -1;
}

.about-intro-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: 65% 25%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.credentials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--mist);
}

.credential-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--warm-umber);
    margin-bottom: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.credential-item p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.credential-item ul {
    list-style: none;
    padding: 0;
}

.credential-item li {
    font-size: 0.95rem;
    color: var(--black);
    opacity: 0.85;
    padding: 0.25rem 0;
}

/* Partner logos section */
.partner-logos-section {
    margin-top: 3rem;
}

.partner-logos-section h2 {
    font-size: 1.1rem;
    color: var(--warm-umber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.partner-logos-intro {
    font-size: 1rem;
    color: var(--black);
    opacity: 0.85;
    margin-bottom: 2rem;
}

.partner-logos-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem 2rem;
    align-items: center;
    justify-items: center;
}

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

.partner-logo img {
    max-height: 45px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

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

/* Inline partner logos within text flow */
.partner-logos-inline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: center;
    justify-items: center;
    margin: 1.5rem 0;
    padding: 1rem 0;
}

@media (max-width: 900px) {
    .partner-logos-inline {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 600px) {
    .partner-logos-inline {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem 1.25rem;
    }
}

@media (max-width: 900px) {
    .partner-logos-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 600px) {
    .partner-logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem 1.5rem;
    }

    .partner-logo {
        height: 40px;
    }

    .partner-logo img {
        max-height: 35px;
    }
}

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

/* Find out more section */
.find-out-more {
    margin-top: 2.5rem;
}

.find-out-more h2,
.find-out-more h3 {
    font-size: 1.1rem;
    color: var(--warm-umber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.interview-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.interview-link {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    background-color: var(--mist);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid var(--deep-forest);
}

.interview-link:hover {
    background-color: var(--cream);
    transform: translateX(4px);
}

.interview-source {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--warm-umber);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.interview-title {
    font-size: 1rem;
    color: var(--black);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Interview links with logos */
.interview-link-with-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--mist);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid var(--deep-forest);
    margin-bottom: 1rem;
}

.interview-link-with-logo:hover {
    background-color: var(--cream);
    transform: translateX(4px);
}

.interview-link-with-logo:last-child {
    margin-bottom: 0;
}

.interview-logo {
    width: 48px;
    height: 48px;
    background: var(--snow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--cream);
}

.interview-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.interview-logo-fallback {
    font-size: 0.5rem;
    color: var(--hidden-gem);
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
}

.interview-text {
    flex: 1;
}

.interview-source-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--warm-umber);
    margin-bottom: 0.25rem;
    font-weight: 600;
    display: block;
}

.interview-title-text {
    font-size: 1rem;
    color: var(--black);
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: block;
}

/* Large pull quote style */
.philosophy-quote {
    text-align: center;
    margin: 3rem 0;
    padding: 0 2rem;
}

.philosophy-quote p {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--black);
    line-height: 1.7;
    position: relative;
    display: block;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.philosophy-quote p::before {
    content: '"';
    font-size: 4rem;
    color: var(--deep-forest);
    opacity: 0.3;
    position: absolute;
    top: -0.5rem;
    left: 0;
    font-family: Georgia, serif;
    line-height: 1;
}

.philosophy-quote p::after {
    content: '"';
    font-size: 4rem;
    color: var(--deep-forest);
    opacity: 0.3;
    font-family: Georgia, serif;
    position: absolute;
    bottom: -1.5rem;
    right: 0;
    line-height: 1;
}

/* ===================================
   WHY BEHAVIOURAL SCIENCE SECTION
   =================================== */
.why-section {
    background-color: var(--mist);
    padding: 4rem 2rem;
}

.why-container {
    max-width: 900px;
    margin: 0 auto;
}

.why-header {
    margin-bottom: 2.5rem;
}

.why-header h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.why-header h1 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.why-header p {
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.85;
    line-height: 1.8;
}

/* Why Intro with Side Image */
.why-intro-with-image {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

.why-intro-continued {
    margin-bottom: 2.5rem;
}

.why-intro-continued p {
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.85;
    line-height: 1.8;
}

.why-intro-text h1 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.why-intro-text p {
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.85;
    line-height: 1.8;
}

.why-intro-text p.why-intro-lead {
    font-size: 1.25rem;
    opacity: 1;
    line-height: 1.7;
    font-weight: 500;
}

.why-intro-image {
    display: flex;
}

.why-intro-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Services Section */
.services-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 100px;
}

[id] {
    scroll-margin-top: 100px;
}

.services-section h2 {
    font-size: 1.25rem;
    color: var(--warm-umber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.services-section h3 {
    font-size: 1.25rem;
    color: var(--warm-umber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.services-intro {
    font-size: 1.05rem;
    color: var(--black);
    opacity: 0.85;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-box {
    background-color: var(--snow);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.service-icon {
    color: var(--warm-umber);
    flex-shrink: 0;
}

.service-box h3,
.service-box h4 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.service-box p {
    color: var(--black);
    opacity: 0.85;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Clickable service boxes */
a.service-box-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

a.service-box-link:hover,
a.service-box-link:focus {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--cream);
}

/* Approach sections with integrated case studies */
.approach-section {
    margin-bottom: 2rem;
}

.approach-section .service-box {
    margin-bottom: 0;
}

.approach-section .service-box:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Service box with nested case study */
.service-box-with-case-study {
    padding-bottom: 2rem;
}

/* Homepage service box case study teaser */
.service-case-study-teaser {
    position: relative;
    margin-top: 1.25rem;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2rem;
    height: 80px;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.service-case-study-teaser img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-case-study-teaser span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
}

/* Nested case study sub-card */
.case-study-subcard {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    background-color: var(--mist);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.case-study-subcard-image {
    position: relative;
    min-height: 180px;
    background: linear-gradient(135deg, var(--deep-forest) 0%, var(--hidden-gem) 100%);
}

.case-study-subcard-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-subcard-content {
    padding: 1.25rem 1.5rem 1.25rem 0;
}

.case-study-subcard-content .case-study-tag {
    margin-bottom: 0.5rem;
}

.case-study-subcard-content h4 {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.case-study-subcard-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--black);
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.case-study-subcard-content .case-study-link {
    font-size: 0.9rem;
    color: var(--warm-umber);
}

.case-study-subcard-content .case-study-link:hover {
    color: var(--deep-forest);
}

/* Approach activities section */
.approach-activities {
    margin-top: 1.25rem;
}

.approach-activities h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--warm-umber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.approach-activities ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.approach-activities li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--black);
}

.approach-activities li:last-child {
    margin-bottom: 0;
}

.approach-activities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    background-color: var(--warm-umber);
    border-radius: 50%;
}

/* Decorative illustrations in service boxes */
.approach-illustration {
    position: absolute;
    bottom: -8rem;
    right: -7rem;
    width: 450px;
    height: 380px;
    color: var(--warm-umber);
    opacity: 0.1;
    pointer-events: none;
    transform: scaleX(-1);
}

.approach-section .service-box {
    position: relative;
    overflow: hidden;
}

/* Adjust Discover illustration position and rotation */
#discover .approach-illustration {
    bottom: -6rem;
    transform: scaleX(-1) rotate(15deg);
}

/* Make Design illustration larger and shift left */
#design .approach-illustration {
    width: 495px;
    height: 418px;
    right: -8.5rem;
}

/* Keep Demonstrate illustration unflipped, shift left, and larger */
#demonstrate .approach-illustration {
    transform: none;
    right: -3rem;
    width: 470px;
    height: 397px;
}

.approach-activities li strong {
    color: var(--black);
}

.approach-deliverable {
    margin-top: 1.25rem;
}

.approach-deliverable h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--warm-umber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.approach-deliverable p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.speaking-note {
    margin: 2.5rem 0 2.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.speaking-note a {
    color: var(--warm-umber);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.speaking-note a:hover {
    text-decoration: underline;
}

/* Mobile responsive for nested case study */
@media (max-width: 768px) {
    .approach-illustration {
        display: none;
    }

    .why-intro-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-intro-image {
        order: -1;
    }

    .why-intro-image img {
        min-height: 200px;
        height: 200px;
    }

    .why-intro-text h1 {
        font-size: 2rem;
    }

    .case-study-subcard {
        grid-template-columns: 1fr;
    }

    .case-study-subcard-image {
        min-height: 150px;
    }

    .case-study-subcard-content {
        padding: 1.25rem;
    }
}

.case-studies h2 {
    font-size: 1.25rem;
    color: var(--warm-umber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.case-studies h3 {
    font-size: 1.25rem;
    color: var(--warm-umber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.case-study-card {
    background-color: var(--snow);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.case-study-tag {
    display: inline-block;
    background-color: var(--deep-forest);
    color: var(--snow);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.case-study-card h4 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.case-study-card p {
    color: var(--black);
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.case-study-outcome {
    background-color: var(--cream);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--warm-umber);
    margin-top: 1.5rem;
    margin-bottom: 0 !important;
}

.case-study-outcome strong {
    color: var(--warm-umber);
}

/* Case Study Cards with Images (Horizontal Layout) */
.case-study-card-with-image {
    background-color: var(--snow);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 200px 1fr;
    margin-bottom: 1.5rem;
}

.case-study-image {
    background: linear-gradient(135deg, var(--deep-forest) 0%, var(--hidden-gem) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--snow);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.case-study-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-image-placeholder {
    opacity: 0.6;
    font-size: 0.75rem;
    line-height: 1.4;
}

.case-study-card-with-image .case-study-content {
    padding: 2rem;
}

.case-study-card-with-image .case-study-tag {
    display: inline-block;
    background-color: var(--deep-forest);
    color: var(--snow);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.case-study-card-with-image h3,
.case-study-card-with-image h4 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.case-study-card-with-image p {
    color: var(--black);
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.case-study-card-with-image .case-study-outcome {
    background-color: var(--cream);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--warm-umber);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.case-study-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--deep-forest);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.case-study-link:hover {
    color: var(--warm-umber);
}

/* Project Spotlight and Compact Grid */
.project-spotlight {
    margin-bottom: 1.5rem;
    position: relative;
}

.project-spotlight .case-study-card-with-image {
    margin-bottom: 0;
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
    overflow: hidden;
}

.project-spotlight .case-study-image {
    height: 380px;
}

.project-spotlight .case-study-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Adjust specific image positions */
.project-spotlight .case-study-image img[src*="tuktuks"] {
    object-position: 80% center;
}

.project-spotlight .case-study-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    overflow: hidden;
    box-sizing: border-box;
}

.project-spotlight .case-study-content p {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.project-spotlight .case-study-content .case-study-link {
    flex-shrink: 0;
}

@keyframes spotlightFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animated clone styling */
.case-study-card-with-image[style*="position: fixed"] {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.project-card-compact[style*="position: fixed"] {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-card-compact {
    background-color: var(--snow);
    border: 1px solid var(--mist);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.project-card-compact:hover {
    background-color: var(--cream);
    border-color: var(--warm-umber);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-card-compact:focus {
    outline: 2px solid var(--deep-forest);
    outline-offset: 2px;
}

.project-card-compact.active {
    background-color: var(--deep-forest);
    border-color: var(--deep-forest);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-card-compact.active .project-card-tag {
    background-color: var(--warm-umber);
}

.project-card-compact.active .project-card-title {
    color: var(--snow);
}

.project-card-compact.active:hover {
    background-color: var(--deep-forest);
    border-color: var(--deep-forest);
    transform: none;
}

.project-card-tag {
    display: inline-block;
    background-color: var(--deep-forest);
    color: var(--snow);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    width: fit-content;
    max-width: 66%;
}

.project-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 66%;
}

/* Project card region map */
.project-card-region {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    pointer-events: none;
    background: url('world-map.svg') no-repeat;
    background-position: var(--map-pos-x, 50%) var(--map-pos-y, 50%);
    background-size: 500%;
    opacity: 0.1;
    transition: opacity 0.4s ease;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%);
    mask-image: linear-gradient(to right, transparent 0%, black 50%);
}

.project-card-compact:hover .project-card-region {
    opacity: 0.18;
}

.project-card-compact::after {
    content: '';
    position: absolute;
    right: 20%;
    bottom: 33%;
    transform: translate(50%, 50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--warm-umber);
    pointer-events: none;
    z-index: 1;
}

.project-card-compact.active .project-card-region {
    filter: brightness(0) invert(1);
    opacity: 0.2;
}

.project-card-compact.active::after {
    background-color: var(--snow);
}

/* Responsive adjustments for project grid */
@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card-compact {
        padding: 1rem;
    }
}

/* Mobile: inline-expand case studies within the grid */
@media (max-width: 768px) {
    .project-spotlight {
        display: none;
    }

    .project-grid {
        margin-top: 0;
    }

    /* Hide the tapped card when its content is expanded */
    .project-card-compact.mobile-hidden {
        display: none;
    }

    /* Inline expanded case study inserted into the grid */
    .mobile-inline-case-study {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        background-color: var(--snow);
    }

    .mobile-inline-case-study .case-study-image {
        height: 200px;
        min-height: 200px;
    }

    .mobile-inline-case-study .case-study-content {
        padding: 1.5rem;
        height: auto;
        overflow: visible;
    }

    .mobile-inline-case-study .case-study-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        overflow: visible;
    }

    /* Collapse button on expanded case study */
    .mobile-inline-collapse {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .mobile-inline-case-study {
        position: relative;
    }
}

/* ===================================
   INSIGHTS SECTION
   =================================== */
.insights {
    background-color: var(--snow);
    padding: 4rem 2rem;
}

.insights-container {
    max-width: 900px;
    margin: 0 auto;
}

.insights-container h1,
.insights-container h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.insights-intro {
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.85;
    margin-bottom: 2rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

/* Publications list (two column cards on main page) */
.publications-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Single column layout for publications subpage */
.subpage-section .publications-list {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Compact list layout for subpages with logo on left */
.subpage-section .publications-list .insight-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 0.75rem;
    align-items: start;
}

.subpage-section .publications-list .insight-link:hover {
    transform: translateY(-2px);
}

.subpage-section .publications-list .card-header {
    display: contents;
}

.subpage-section .publications-list .card-logo {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    width: 48px;
    height: 48px;
}

.subpage-section .publications-list .card-logo img {
    width: 40px;
    height: 40px;
}

.subpage-section .publications-list .insight-type {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0.125rem;
}

.subpage-section .publications-list .insight-link h4 {
    grid-column: 2;
    grid-row: 2;
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.subpage-section .publications-list .insight-link .insight-source {
    grid-column: 2;
    grid-row: 3;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.publications-list .insight-link {
    background-color: var(--mist);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.publications-list .insight-link:hover {
    background-color: var(--cream);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.publications-list .insight-link:hover .insight-type {
    background-color: var(--cream);
}

/* Publication/Media card header with logo */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-logo {
    width: 48px;
    height: 48px;
    background: var(--snow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--cream);
}

.card-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.card-logo-fallback {
    font-size: 0.55rem;
    color: var(--hidden-gem);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.publications-list .insight-link::after {
    display: none;
}

/* See More Button */
.see-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.see-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: var(--mist);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--deep-forest);
    transition: all 0.3s ease;
}

.see-more-button svg {
    width: 16px;
    height: 16px;
}

.see-more-button:hover,
.see-more-button:focus {
    background-color: var(--deep-forest);
    color: var(--snow);
}

.media-section .see-more-button,
.services-section .see-more-button {
    background-color: var(--snow);
    color: var(--deep-forest);
}

.media-section .see-more-button:hover,
.services-section .see-more-button:hover,
.see-more-button:focus {
    background-color: var(--deep-forest);
    color: var(--snow);
}

/* Toggle Buttons for Top/Latest */
.toggle-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--deep-forest);
    background-color: transparent;
    color: var(--deep-forest);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background-color: var(--mist);
}

.toggle-btn.active {
    background-color: var(--deep-forest);
    color: var(--snow);
}

.media-section .toggle-btn {
    border-color: var(--deep-forest);
    color: var(--deep-forest);
}

.media-section .toggle-btn.active {
    background-color: var(--deep-forest);
    color: var(--snow);
}

/* Toggle Content Visibility */
.toggle-content {
    display: none;
}

.toggle-content.active {
    display: grid;
}

/* Content loading fade-in */
@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toggle-content.content-loaded > * {
    animation: contentFadeIn 0.4s ease forwards;
}

.toggle-content.content-loaded > :nth-child(1) { animation-delay: 0ms; }
.toggle-content.content-loaded > :nth-child(2) { animation-delay: 60ms; }
.toggle-content.content-loaded > :nth-child(3) { animation-delay: 120ms; }
.toggle-content.content-loaded > :nth-child(4) { animation-delay: 180ms; }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--deep-forest);
    color: var(--snow);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Inverted style when over footer */
.back-to-top.on-footer {
    background-color: var(--snow);
    color: var(--deep-forest);
}

/* Read More Link */
.read-more-container {
    margin-top: 1.5rem;
}

.read-more-link {
    display: inline-block;
    color: var(--deep-forest);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.read-more-link:hover,
.read-more-link:focus {
    color: var(--warm-umber);
    text-decoration: underline;
}

.read-more-inline {
    margin-top: 1rem;
}

.read-more-inline a {
    color: var(--deep-forest);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-inline a:hover,
.read-more-inline a:focus {
    color: var(--warm-umber);
    text-decoration: underline;
}

/* Publications/Media Filter */
.publications-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 2px solid var(--deep-forest);
    background-color: transparent;
    color: var(--deep-forest);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background-color: var(--mist);
}

.filter-tab.active {
    background-color: var(--deep-forest);
    color: var(--snow);
}

.filter-search {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.filter-search input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 2px solid var(--deep-forest);
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.filter-search input:focus {
    border-color: var(--warm-umber);
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: var(--warm-umber);
    font-style: italic;
    display: none;
}

.no-results.visible {
    display: block;
}

/* Subpage Styles */
.subpage-section {
    padding-top: 4rem;
    margin-top: 70px;
}

.back-link {
    display: inline-block;
    color: var(--deep-forest);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.back-link:hover,
.back-link:focus {
    color: var(--warm-umber);
    transform: translateX(-4px);
}

/* Publication Categories */
.publication-category {
    margin-bottom: 2.5rem;
}

.publication-category .category-title {
    font-size: 1.1rem;
    color: var(--warm-umber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cream);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Collapsible Category Toggle */
.category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 2px solid var(--cream);
    cursor: pointer;
    padding: 0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-toggle .category-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-toggle:hover .category-title {
    color: var(--deep-forest);
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--warm-umber);
    font-weight: 600;
    transition: transform 0.3s ease;
}

/* Collapsible List */
.publications-list.collapsible {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 2000px;
    opacity: 1;
}

.publications-list.collapsible.collapsed {
    max-height: 0;
    opacity: 0;
}

/* Book Covers Section */
.book-covers-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.book-covers-section h3 {
    font-size: 1.1rem;
    color: var(--warm-umber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.book-covers-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.see-more-dots {
    color: var(--deep-forest);
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.see-more-dots:hover {
    color: var(--warm-umber);
}

.book-cover-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    max-width: 160px;
}

.book-cover-card:hover {
    transform: translateY(-4px);
}

.book-cover-card img {
    width: 140px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.book-cover-card:hover img {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.book-cover-title {
    font-size: 0.75rem;
    color: var(--black);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.4;
    opacity: 0.85;
}

/* Active nav link */
.nav-links a.active {
    color: var(--black);
    font-weight: 600;
}

.nav-links a.active:hover,
.nav-links a.active:focus {
    color: var(--snow);
    background-color: var(--black);
}

/* Media section - same style as publications */
.media-section {
    background-color: var(--mist);
}

.media-section .insight-link,
.media-section .publications-list div.insight-item {
    background-color: var(--snow);
}

.media-section .insight-link:hover {
    background-color: var(--cream);
}

.insight-category h3 {
    font-size: 1.25rem;
    color: var(--warm-umber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cream);
}

.insight-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--mist);
    display: block;
}

div.insight-item {
    cursor: default;
}

.publications-list div.insight-item {
    background-color: var(--mist);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.subpage-section .publications-list div.insight-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 0.75rem;
    align-items: start;
    background-color: var(--mist);
    border-bottom: none;
    margin: 0;
}

.subpage-section .publications-list div.insight-item .card-header {
    display: contents;
}

.subpage-section .publications-list div.insight-item h4 {
    grid-column: 2;
    grid-row: 2;
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.subpage-section .publications-list div.insight-item .insight-source {
    grid-column: 2;
    grid-row: 3;
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* Hide descriptions on subpages (kept in DOM for homepage dynamic loader) */
.subpage-section .insight-item > p:not(.insight-source) {
    display: none;
}

.insight-item:last-child {
    border-bottom: none;
}

/* Clickable publication/media links */
a.insight-link {
    text-decoration: none;
    display: block;
    padding: 1.5rem;
    margin: 0 -1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--mist);
}

a.insight-link:last-child {
    border-bottom: none;
}

a.insight-link:hover {
    background-color: var(--mist);
    transform: translateX(4px);
}

a.insight-link:hover h4 {
    color: var(--deep-forest);
}

a.insight-link::after {
    content: '→';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--deep-forest);
    font-size: 1.2rem;
}

a.insight-link {
    position: relative;
}

a.insight-link:hover::after {
    opacity: 1;
}

.insight-type {
    display: inline-block;
    background-color: var(--mist);
    color: var(--deep-forest);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    transition: background-color 0.3s ease;
}

.insight-item h4 {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.4;
}

.insight-source {
    font-size: 0.85rem;
    color: var(--hidden-gem);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.insight-item p:last-child {
    font-size: 0.9rem;
    color: var(--black);
    opacity: 0.85;
    line-height: 1.6;
}

/* ===================================
   CONTACT MODAL
   =================================== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.85);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(4px)) {
    .modal-overlay {
        background-color: rgba(18, 18, 18, 0.95);
    }
}

.modal-content {
    position: relative;
    background-color: var(--snow);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.contact-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--black);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover,
.modal-close:focus {
    opacity: 1;
    background-color: var(--mist);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.modal-header p {
    font-size: 1rem;
    color: var(--black);
    opacity: 0.85;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--mist);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Glacial Indifference', sans-serif;
    color: var(--black);
    background-color: var(--snow);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--deep-forest);
}

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

.form-submit {
    background-color: var(--warm-umber);
    color: var(--snow);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.form-submit:hover,
.form-submit:focus {
    background-color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Modal Footer */
.modal-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mist);
    text-align: center;
}

.contact-location {
    font-size: 0.95rem;
    color: var(--black);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.modal-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--mist);
    border-radius: 50%;
    color: var(--deep-forest);
    transition: all 0.3s ease;
}

.social-icon:hover,
.social-icon:focus {
    background-color: var(--deep-forest);
    color: var(--snow);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Thank You Modal */
.thank-you-content {
    text-align: center;
    padding: 3rem 2rem;
}

.thank-you-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    background-color: var(--mist);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: var(--deep-forest);
}

.thank-you-icon svg {
    width: 50px;
    height: 50px;
}

.thank-you-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
}

.thank-you-content p {
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.thank-you-content .form-submit {
    margin-top: 0;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--deep-forest);
    color: var(--snow);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-logo-combined {
    height: 48px;
    width: auto;
}

.footer-logo-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.footer-logo h2 {
    font-size: 1.4rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.footer-logo p {
    font-size: 0.7rem;
    color: var(--cream);
    opacity: 0.8;
    line-height: 1.3;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--snow);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--cream);
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--snow);
    transition: all 0.3s ease;
}

.footer-social-icon:hover,
.footer-social-icon:focus {
    background-color: var(--warm-umber);
    transform: translateY(-2px);
}

.footer-social-icon svg {
    width: 20px;
    height: 20px;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .hero-text h1,
    .hero-text h2 {
        font-size: 2.8rem;
    }

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

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .publications-list {
        grid-template-columns: 1fr;
    }

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

    .contact-info {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

/* Switch to mobile menu when content would overflow */
@media (max-width: 1100px) {
    .nav-links {
        display: none !important;
    }

    .nav-right .cta-button {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .mobile-menu {
        display: block;
    }

    .nav-right {
        gap: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-container {
        gap: 1rem;
    }

    .logo-combined {
        height: 44px;
    }


    .book-covers-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .see-more-dots {
        position: static;
        transform: none;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .modal-header h2 {
        font-size: 1.75rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
    }

    .hero-content {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        min-height: 100%;
    }

    .hero-image-bg .hero-content {
        justify-content: center;
        padding-top: 35vh;
    }

    .hero-text {
        margin-bottom: 0;
        text-align: left;
        max-width: 100%;
    }

    .hero-text p {
        text-align: left;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 2.2rem;
        text-align: left;
    }

    .hero-overlay {
        background: linear-gradient(
            to right,
            rgba(58, 82, 72, 0.95) 0%,
            rgba(58, 82, 72, 0.9) 50%,
            rgba(58, 82, 72, 0.7) 75%,
            rgba(58, 82, 72, 0.3) 100%
        );
    }

    .hero-visual {
        width: 100%;
        height: 300px;
    }

    .hero-image-bg {
        min-height: 600px;
        height: 100svh;
        max-height: none;
    }

    .hero-dots {
        bottom: 1.5rem;
    }

    .hero-pause {
        width: 32px;
        height: 32px;
    }

    /* Mobile-specific image positioning */
    .hero-slide:nth-child(3) {
        background-image: url('hero-images/Image3-alternate.jpg') !important;
        background-position: 78% 80%;
    }

    .about-content h1,
    .about-content h2,
    .why-header h1,
    .why-header h2,
    .insights-container h1,
    .insights-container h2,
    .contact-container h1,
    .contact-container h2 {
        font-size: 2rem;
    }

    .about-intro-with-image {
        flex-direction: column;
        gap: 1.5rem;
        text-align: left;
    }

    .about-image-square {
        margin: 0 auto;
    }

    .about-image-square img {
        width: 150px;
        height: 150px;
    }

    .subpage-section .about-intro-with-image {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .subpage-section .about-intro-image {
        order: -1;
    }

    .subpage-section .about-intro-image img {
        max-height: 300px;
        width: 100%;
    }

    .philosophy-quote {
        padding: 0 1rem;
        margin: 2rem 0;
    }

    .philosophy-quote p {
        font-size: 1.1rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .philosophy-quote p::before {
        font-size: 3rem;
        top: -0.3rem;
        left: 0;
    }

    .philosophy-quote p::after {
        font-size: 3rem;
        bottom: -1rem;
        right: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .credentials {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-study-card {
        padding: 1.5rem;
    }

    .case-study-card-with-image {
        grid-template-columns: 1fr;
    }

    .case-study-image {
        min-height: 140px;
    }

    .case-study-card-with-image .case-study-content {
        padding: 1.5rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Very small phones */
@media (max-width: 375px) {
    .modal-content {
        padding: 1.5rem 1rem;
        width: 98%;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .footer-logo-img {
        width: 30px;
        height: 30px;
    }

    .footer-logo h2 {
        font-size: 1.2rem;
    }

    .footer-logo p {
        font-size: 0.65rem;
    }
}
