/* ==================== G7 MASTER STYLES ==================== */
/* This file contains all page-specific styles for GTM7 */
/* Sections: Colours, Tools Page, Services, Case Study, Wave Logic */

/* ==================== COLOURS ==================== */

:root {
    --primary: #E97E00;
    --secondary: #B65800;
    --tertiary: #7C3400;
    --quaternary: #FFC785;
    --grey: #E3E3EB;
    --bg: #FDFAF7;
    --text-main: #111315;
    --white: #FFFFFF;
}

/* ==================== HOMEPAGE STYLES ==================== */
/* Styles specific to the GTM7 homepage (default.php) */

/* --- Services Section with Rotating Animation --- */
.services-section-hp {
    background-color: var(--bg);
    padding: 100px 0 250px;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.services-rotating-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

.services-text-part {
    display: inline;
}


.services-subtext {
    font-size: 20px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--text-main);
}

/* --- Service Quick Grid (4 Boxes) --- */
.services-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-quick-box {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 40px 30px;
    text-align: center;
}

/* Orange overlay (similar to service hero sections) */
.service-quick-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tertiary);
    opacity: 0.85;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.service-quick-box:hover .service-quick-overlay {
    opacity: 0.75;
}

.service-quick-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.service-quick-box h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.service-quick-box p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 20px;
}

.service-quick-arrow {
    font-size: 18px;
    font-weight: 600;
    color: var(--quaternary);
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-quick-box:hover .service-quick-arrow {
    transform: translateX(5px);
}

.service-quick-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* --- Tools Expertise Section --- */
.tools-expertise {
    padding: 100px 0 150px;
}

/* --- Case Study Spotlight (Homepage Version) --- */
.case-study-spotlight-home {
    background-color: var(--secondary);
    color: var(--white);
    padding: 150px 0 250px;
}

.case-study-spotlight-home .spotlight-title,
.case-study-spotlight-home .spotlight-text,
.case-study-spotlight-home .spotlight-label {
    color: var(--white);
}

.case-study-spotlight-home .spotlight-image-caption {
    color: var(--white);
    opacity: 0.9;
}

/* Inline Stats Display */
.case-study-stats-inline {
    display: flex;
    gap: 60px;
    margin: 40px 0;
}

.stat-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number-inline {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label-inline {
    font-size: 16px;
    color: var(--white);
    opacity: 0.9;
    line-height: 1.4;
}

/* --- Audience Section Tweaks --- */
.audience {
    background-color: var(--bg);
}

.audience-title-main {
    color: var(--white);
}

/* ==================== HOMEPAGE RESPONSIVE ==================== */

@media (max-width: 1100px) {
    .services-rotating-title {
        font-size: 42px;
    }
    
    .rotating-word-container {
        min-width: 160px;
    }
}

@media (max-width: 900px) {
    .services-section {
        padding: 80px 0 120px;
    }
    
    .services-rotating-title {
        font-size: 32px;
        line-height: 1.4;
    }
    
    .services-text-part,
    .rotating-word-container {
        display: block;
        text-align: center;
    }
    
    .rotating-word-container {
        min-width: auto;
        margin: 10px 0;
    }
    
    .services-subtext {
        font-size: 18px;
        padding: 0 20px;
    }
    
    .services-quick-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .service-quick-box {
        min-height: 280px;
        padding: 30px 20px;
    }
    
    .service-quick-box h3 {
        font-size: 28px;
    }
    
    .service-quick-box p {
        font-size: 16px;
    }
    
    .tools-expertise {
        padding: 80px 0 120px;
    }
    
    .case-study-spotlight-home {
        padding: 100px 0 100px;
    }
    
    .case-study-stats-inline {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-number-inline {
        font-size: 44px;
    }
}

@media (max-width: 600px) {
    .services-rotating-title {
        font-size: 26px;
    }
    
    .service-quick-box {
        min-height: 240px;
    }
    
    .service-quick-box h3 {
        font-size: 24px;
    }
    
    .stat-number-inline {
        font-size: 36px;
    }
}

/* ==================== TOOLS PAGE STYLES ==================== */

/* --- Title Section --- */
.tools-header {
    text-align: center;
}

.tools-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--tertiary);
    margin-bottom: 0;
}

/* --- Intro Section --- */
.tools-intro-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.tools-intro-text {
    margin-bottom: 30px;
}

.tools-standout-phrase {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 30px;
    display: block;
    line-height: 1.3;
}

/* --- Category Box (Main Container) --- */
.tools-category-box {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tools-category-header {
    background-color: var(--secondary);
    padding: 20px 30px;
}

.tools-category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tools-category-content {
    background-color: var(--grey);
    padding: 30px;
}

/* --- Subcategory Grid --- */
.tools-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- Subcategory Box --- */
.tools-subcategory-box {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid color-mix(in srgb, var(--grey), transparent 30%);
}

.tools-subcategory-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tertiary);
    margin: 0 0 20px 0;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--quaternary);
}

/* --- Tool Logos Grid --- */
.tools-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Layout variations based on number of items */
.tools-logos-1 .tool-item {
    width: 100%;
    max-width: 100px;
}

.tools-logos-2 .tool-item {
    width: calc(50% - 15px);
    max-width: 100px;
}

.tools-logos-3 .tool-item {
    width: calc(33.333% - 15px);
    max-width: 100px;
}

/* 4 items: 2x2 grid */
.tools-logos-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
}

.tools-logos-4 .tool-item {
    width: 100px;
}

/* --- Individual Tool Item --- */
.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-3px);
}

.tool-item:hover .tool-logo-circle {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tool-item:hover .tool-name {
    color: var(--primary);
}

/* --- Tool Logo Circle --- */
.tool-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    border: 1px solid var(--grey);
}

.tool-logo-circle img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

/* --- Tool Name --- */
.tool-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    margin-top: 10px;
    line-height: 1.3;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

/* Allow wrapping for longer names like "La Growth Machine" */
.tools-logos-2 .tool-name {
    white-space: normal;
    word-wrap: break-word;
}

/* --- Clay Mega Quote Section --- */
.clay-mega-quote {
    font-size: 56px; 
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Clay Detail Section --- */
.section-clay {
    background-color: var(--tertiary);
    color: var(--white);
    padding: 80px 0 100px;
}

.clay-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.clay-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
}

.clay-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.95;
}

.clay-text strong {
    color: var(--quaternary);
}

.btn-certificate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 40px;
    background: var(--quaternary);
    color: var(--tertiary);
    border: none;
    border-radius: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-family: 'Open Sans', sans-serif;
}

.btn-certificate:hover {
    background: var(--white);
    color: var(--tertiary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--quaternary), transparent 50%);
}

/* ==================== G7 SERVICES HOMEPAGE ==================== */
/* These replicate the D7 section-home patterns for G7's Services landing page */


/* ==================== MANIFESTO SECTION ==================== */

.manifesto-section {
    padding: 100px 0 150px;
    background-color: var(--bg);
}

.manifesto-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.manifesto-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 30px;
}

.manifesto-intro {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
}

.manifesto-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.manifesto-pillar {
    padding: 30px;
    border-left: 4px solid var(--primary);
    background-color: var(--white);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.manifesto-pillar h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 10px;
}

.manifesto-pillar p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}


/* ==================== SERVICES QUICK GRID (Section Homepage) ==================== */

.services-section {
    background-color: var(--grey);
    padding: 100px 0 250px;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.services-rotating-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.2;
}

.services-text-part {
    display: inline;
}

.services-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-quick-box {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 40px 30px;
    text-align: center;
}

.service-quick-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tertiary);
    opacity: 0.85;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.service-quick-box:hover .service-quick-overlay {
    opacity: 0.75;
}

.service-quick-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.service-quick-box h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.service-quick-box p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 20px;
}

.service-quick-arrow {
    font-size: 18px;
    font-weight: 600;
    color: var(--quaternary);
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-quick-box:hover .service-quick-arrow {
    transform: translateX(5px);
}

.service-quick-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}


/* ==================== WHY US SECTION ==================== */

.why-us-section {
    padding: 100px 0 150px;
    background-color: var(--white);
}

.why-us-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.why-us-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 60px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-us-item {
    text-align: center;
    padding: 30px 20px;
}

.why-us-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us-icon img {
    width: 100px;
    height: 100px;
}

.why-us-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 10px;
}

.why-us-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
}


/* ==================== WAVE CONTEXT SELECTORS (Services Homepage) ==================== */

.manifesto-section + .services-section .wave-transition svg path {
    fill: var(--grey) !important;
}


/* ==================== RESPONSIVE (Services Homepage) ==================== */

@media (max-width: 1100px) {
    .manifesto-pillars {
        grid-template-columns: 1fr;
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .services-quick-grid {
        grid-template-columns: 1fr;
    }
    
    .manifesto-title {
        font-size: 36px;
    }
    
    .services-rotating-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .manifesto-title,
    .why-us-title {
        font-size: 28px;
    }
    
    .manifesto-container {
        padding: 0 20px;
    }
}


/* ==================== SERVICE PAGES STYLES ==================== */
/* Marketing/GTM, ABM/GTM, Sales/GTM, RevOps/GTM */

/* --- Hero Section with Background Image --- */
.service-hero {
    position: relative;
    background-color: var(--tertiary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    
    /* Fixed height + vertical centering */
    min-height: 700px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 0 250px 0; 
}

/* Orange overlay (creates the "washed" effect over the image) */
.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tertiary);
    opacity: 0.75; 
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.service-hero-quote {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 25px;
}

.service-hero-quote span {
    color: var(--quaternary);
}

.service-hero-subtext {
    font-size: 20px;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Services List Section --- */
.service-list-section {
    background-color: var(--grey);
    padding: 100px 0 250px;
}

.service-list-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.service-list-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 20px;
}

.service-list-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
}

/* Service List Grid - 3 columns on desktop, centered last row */
.service-list-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-list-grid .service-item {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

/* Service List Grid - 2 columns (ABM page) */
.service-list-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Reset service-item inside 2col to not use flex sizing */
.service-list-grid-2col .service-item {
    flex: none;
    max-width: none;
    width: 100%;
}

.service-item {
    background-color: var(--white);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    background-color: var(--quaternary);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.service-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.service-item-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

.service-item-tools {
    font-size: 13px;
    color: var(--tertiary);
    margin-top: 8px;
    font-style: italic;
}

/* --- Spotlight Section --- */
.spotlight-section {
    padding: 100px 0 150px;
}

.spotlight-section.bg-dark {
    background-color: var(--tertiary);
    color: var(--white);
}

.spotlight-section.bg-light {
    background-color: var(--secondary);
    color: var(--white);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.spotlight-grid.reverse {
    direction: rtl;
}

.spotlight-grid.reverse > * {
    direction: ltr;
}


/* Spotlight Content */
.spotlight-content {
    padding: 20px 0;
}

.spotlight-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.bg-dark .spotlight-label {
    color: var(--quaternary);
}

.bg-light .spotlight-label {
    color: var(--quaternary);
}

.spotlight-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.bg-dark .spotlight-title {
    color: var(--white);
}

.bg-light .spotlight-title {
    color: var(--white);
}

.spotlight-text {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.bg-dark .spotlight-text {
    opacity: 0.95;
}

.spotlight-text strong {
    font-weight: 600;
}

.bg-dark .spotlight-text strong {
    color: var(--quaternary);
}

.bg-light .spotlight-text strong {
    color: var(--quaternary);
}

/* Spotlight Steps */
.spotlight-steps {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spotlight-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.spotlight-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 1px 1px 12px 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.bg-dark .spotlight-step-number {
    background-color: var(--quaternary);
    color: var(--tertiary);
}

.bg-light .spotlight-step-number {
    background-color: var(--quaternary);
    color: var(--tertiary);
}

.spotlight-step-text {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 4px;
}

.bg-dark .spotlight-step-text strong {
    color: var(--quaternary);
}

.bg-light .spotlight-step-text strong {
    color: var(--quaternary);
}

/* --- Dual CTA Section --- */
.dual-cta-section {
    background-color: var(--bg);
    padding: 80px 0;
}

.dual-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.dual-cta-box {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dual-cta-box:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.dual-cta-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: var(--quaternary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dual-cta-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--tertiary);
}

.dual-cta-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 12px;
}

.dual-cta-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 25px;
}

.dual-cta-box .btn-primary {
    width: 100%;
    justify-content: center;
}

/* --- Signal Categories (ABM Page) --- */
.signal-categories-section {
    background-color: var(--bg);
    padding: 80px 0 150px;
}

.signal-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.signal-category {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.signal-category:hover {
    transform: translateY(-3px);
}

.signal-category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.signal-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.signal-category-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 10px;
}

.signal-category-examples {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
    opacity: 0.8;
}

/* ==================== SERVICE PAGES RESPONSIVE ==================== */

@media (max-width: 1100px) {
    .service-hero-quote {
        font-size: 40px;
    }
    
    .service-list-grid,
    .spotlight-grid {
        gap: 40px;
    }
    
    .spotlight-title {
        font-size: 32px;
    }
}

@media (max-width: 900px) {
    .service-hero {
        padding: 160px 0 140px;
    }
    
    .service-hero-quote {
        font-size: 32px;
    }
    
    .service-hero-subtext {
        font-size: 17px;
    }
    
    .service-list-section {
        padding: 60px 0 200px;
    }
    
    .service-list-title {
        font-size: 44px;
    }
    
    .service-list-grid,
    .service-list-grid-2col { 
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    
    .service-list-grid .service-item,
    .service-list-grid-2col .service-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .spotlight-section {
        padding: 70px 0;
    }
    
    .spotlight-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .spotlight-grid.reverse {
        direction: ltr;
    }
    
    .spotlight-image-wrapper {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .spotlight-title {
        font-size: 28px;
    }
    
    .spotlight-text {
        font-size: 16px;
    }
    
    .dual-cta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
    }
    
    .signal-categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .signal-categories-section {
        padding: 60px 0 200px;
    }
    
    .quote-large {
        font-size: 26px;
    }
    
    /* --- TOOLS PAGE FIXES (Mobile Vertical Stack + Small Logos) --- */
    .tools-title {
        font-size: 40px;
        padding: 0 20px;
    }

    .tools-standout-phrase {
        font-size: 26px;
    }

    /* 1. Vertical Stack for Subcategories (1 per row) */
    .tools-subcategory-grid {
        display: grid;
        grid-template-columns: 1fr; /* One column, full width */
        gap: 20px;
        overflow-x: visible; /* Disable scrolling */
        padding-bottom: 0;
    }

    .tools-subcategory-box {
        width: 100%; /* Full width */
        min-width: 0;
    }

    .tools-category-header {
        padding: 15px 20px;
    }

    .tools-category-title {
        font-size: 20px;
    }

    .tools-category-content {
        padding: 20px 15px;
    }

    /* 2. Smaller Logo Bubbles */
    .tool-logo-circle {
        width: 50px; /* Reduced from 65px */
        height: 50px;
    }
    
    .tool-logo-circle img {
        width: 60%; /* Adjusted scale for smaller circle */
        height: 60%;
    }

    .tool-name {
        font-size: 10px; /* Smaller text */
        max-width: 100%;
        margin-top: 6px;
    }

    /* Grid Layout for logos inside the cards */
    .tools-logos-1,
    .tools-logos-2,
    .tools-logos-3,
    .tools-logos-4 {
        display: grid;
        justify-content: center;
        gap: 10px;
    }

    /* 2 Items: 2 Columns */
    .tools-logos-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 3 Items: 3 Columns */
    .tools-logos-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 4 Items: 2 Columns (2x2 grid) */
    .tools-logos-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-logos-1 .tool-item,
    .tools-logos-2 .tool-item,
    .tools-logos-3 .tool-item,
    .tools-logos-4 .tool-item {
        width: 100%;
        max-width: none;
    }

    /* Clay Sections */
    .clay-mega-quote {
        font-size: 32px;
        padding: 0 20px;
    }

    .section-clay {
        padding: 60px 0 80px;
    }

    .clay-title {
        font-size: 32px;
    }

    .clay-text {
        font-size: 16px;
    }

    .clay-content {
        padding: 0 20px;
    }

    .btn-certificate {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .service-hero {
        padding: 140px 0 120px;
    }
    
    .service-hero-quote {
        font-size: 26px;
    }
    
    .service-hero-subtext {
        font-size: 16px;
    }
    
    .service-list-section {
        padding: 50px 0;
    }
    
    .service-list-title {
        font-size: 32px;
    }
    
    .service-item {
        padding: 20px;
    }
    
    .service-item-title {
        font-size: 16px;
    }
    
    .spotlight-section {
        padding: 50px 0;
    }
    
    .spotlight-title {
        font-size: 24px;
    }
    
    .spotlight-content {
        padding: 10px 0;
    }
    
    .spotlight-step-text {
        font-size: 15px;
    }
    
    .dual-cta-box {
        padding: 30px 25px;
    }
    
    .dual-cta-title {
        font-size: 20px;
    }
    
    .signal-categories-section {
        padding: 50px 0 150px;
    }
}

/* ==================== CASE STUDY PAGE STYLES ==================== */

/* --- Hero Section --- */
.case-study-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 200px 0 250px;
    text-align: center;
}

.case-study-hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Client Section --- */
.case-study-client {
    padding: 150px 0 200px;
    background-color: var(--bg); /* Light */
}

.client-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.client-text h3 {
    margin-bottom: 25px;
}

.client-text p {
    font-size: 18px;
    line-height: 1.7;
}

.client-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-placeholder {
    width: 280px;
    height: 180px;
    background-color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 2px solid var(--grey);
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--tertiary);
    letter-spacing: 2px;
}

/* --- Challenge Section --- */
.case-study-challenge {
    background-color: var(--tertiary); /* Dark */
    color: var(--white);
    padding: 150px 0 250px;
}

.case-study-section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.case-study-text {
    font-size: 20px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;
}

/* --- Statement/Insight Section --- */
.case-study-statement {
    padding: 150px 0 200px;
    background-color: var(--bg); /* Light */
    text-align: center;
}

.statement-quote {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, sans-serif;
}

/* --- Turning Point Section --- */
.case-study-turning-point {
    padding: 180px 0 250px;
    background-color: var(--secondary); /* Secondary Color */
}

/* --- Secondary Section Helper --- */
.section-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.case-study-section-title-light {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
    text-align: center;
}

.case-study-text-light {
    font-size: 20px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;
}

/* --- Process Section --- */
.case-study-process {
    background-color: var(--tertiary); /* Dark */
    color: var(--white);
    padding: 150px 0 150px;
}

.case-study-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-top: 30px;
}

.process-step {
    padding-left: 25px;
    border-left: 4px solid var(--quaternary);
}

.process-step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--quaternary);
    margin-bottom: 10px;
}

.process-step-text {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.95;
    margin: 0;
}

.case-study-image-wrapper {
    margin-bottom: 25px;
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.case-study-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: var(--white);
}

.case-study-image:hover {
    transform: scale(1.02);
}

.case-study-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    font-size: 14px;
    font-style: italic;
    text-align: center;
    opacity: 0.7;
    margin-top: 10px;
}

.tech-tools-list {
    background-color: color-mix(in srgb, var(--tertiary), var(--white) 5%);
    padding: 25px 30px;
    border-radius: 12px;
    border-left: 4px solid var(--quaternary);
}

.tech-tools-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--quaternary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tech-tools {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    grid-template-rows: repeat(4, auto); /* Force 4 items per column */
    grid-auto-flow: column; /* Fill vertically (col 1 then col 2) */
    column-gap: 40px;
    row-gap: 8px;
}

.tech-tools li {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    padding: 5px 0;
}

.tech-tools li strong {
    color: var(--quaternary);
    font-weight: 600;
}

/* --- Data Section --- */
.case-study-data {
    padding: 150px 0 250px;
    background-color: var(--bg); /* Light */
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.data-item {
    background-color: var(--white);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.data-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--tertiary);
    line-height: 1.4;
}

/* --- System Design Section --- */
.case-study-system {
    background-color: var(--tertiary); /* Dark */
    color: var(--white);
    padding: 150px 0 150px;
}

.system-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.system-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.system-bullet {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background-color: var(--quaternary);
    border-radius: 50%;
    margin-top: 11px;
}

.system-point p {
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
    opacity: 0.95;
}

.system-point strong {
    color: var(--quaternary);
    font-weight: 600;
}

/* --- Results Section --- */
.case-study-results {
    padding: 150px 0 250px;
}

/* Primary Section Helper */
.section-primary {
    background-color: var(--primary);
    color: var(--white);
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 50px auto 60px;
}

.result-stat {
    text-align: center;
    padding: 30px 20px;
    background-color: color-mix(in srgb, var(--white), transparent 30%);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--tertiary);
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 16px;
    line-height: 1.5;
    color: var(--tertiary);
    opacity: 0.9;
}

.results-visual {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Testimonial Section --- */
.case-study-testimonial {
    padding: 150px 0 150px;
    background-color: var(--bg); /* Light */
}

/* --- Lessons Learned Section --- */
.case-study-lessons {
    background-color: var(--tertiary); /* Dark */
    color: var(--white);
    padding: 150px 0 250px;
}

.lessons-text {
    max-width: 900px;
    margin: 40px auto 0;
}

.lesson-paragraph {
    font-size: 22px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    opacity: 0.95;
}

.lesson-paragraph.spacing-top {
    margin-top: 45px;
}


/* ==================== CASE STUDY RESPONSIVE ==================== */

@media (max-width: 1100px) {
    .case-study-hero-title {
        font-size: 52px;
    }
    
    .client-grid,
    .case-study-two-col {
        gap: 50px;
    }
    
    .statement-quote {
        font-size: 40px;
    }
    
    .case-study-section-title,
    .case-study-section-title-light {
        font-size: 42px;
    }
}

@media (max-width: 900px) {
    .case-study-hero {
        padding: 160px 0 120px;
    }
    
    .case-study-hero-title {
        font-size: 40px;
    }
    
    .client-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .client-logo-wrapper {
        order: -1;
    }
    
    /* Responsive Padding Adjustments */
    .case-study-client,
    .case-study-challenge,
    .case-study-turning-point,
    .case-study-process,
    .case-study-data,
    .case-study-system,
    .case-study-results,
    .case-study-testimonial,
    .case-study-statement {
        padding: 100px 0 140px; /* Adjusted for smaller screens */
    }
    
    .case-study-lessons {
        padding: 80px 0;
    }
    
    .case-study-section-title,
    .case-study-section-title-light {
        font-size: 36px;
    }
    
    .statement-quote {
        font-size: 32px;
    }
    
    .case-study-text,
    .case-study-text-light {
        font-size: 18px;
    }
    
    .case-study-two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .lesson-paragraph {
        font-size: 20px;
    }
    
    /* Adjust wave on mobile */
    .wave-transition, 
    .wave-transition svg,
    .case-study-hero + .wave-transition,
    .case-study-hero + .wave-transition svg,
    .case-study-challenge + .wave-transition,
    .case-study-challenge + .wave-transition svg,
    .case-study-turning-point + .wave-transition,
    .case-study-turning-point + .wave-transition svg,
    .case-study-system + .wave-transition,
    .case-study-system + .wave-transition svg,
    .service-hero + .wave-transition {
        height: 60px !important;
    }
    
    .wave-transition, 
    .case-study-hero + .wave-transition,
    .case-study-challenge + .wave-transition,
    .case-study-turning-point + .wave-transition,
    .case-study-system + .wave-transition,
    .service-hero + .wave-transition {
        margin-top: -60px !important;
    }
}

@media (max-width: 600px) {
    .case-study-hero {
        padding: 140px 0 100px;
    }
    
    .case-study-hero-title {
        font-size: 32px;
    }
    
    .case-study-section-title,
    .case-study-section-title-light {
        font-size: 28px;
    }
    
    .statement-quote {
        font-size: 26px;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 44px;
    }
    
    .lesson-paragraph {
        font-size: 18px;
    }
}

/* ===================== COMPANY PAGE STYLES ====================== */
/* Styles specific to the GTM7 Company page (/company/default.php) */

/* --- Section 2: Company Intro (70/30 Grid) --- */
.company-intro-section {
    background-color: var(--bg);
    padding: 100px 0 150px;
}

.company-intro-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.company-intro-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-intro-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
}

/* --- Section 3: Workflow List (Orange Bullets) --- */
.company-workflow-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.company-workflow-list li {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.95;
}

.company-workflow-list li::before {
    content: '•';
    color: var(--quaternary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 28px;
    line-height: 18px;
}

/* Float animation for images */
.spotlight-float-image {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

/* --- Section 5: Philosophy & Pillars --- */
.company-philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.company-section-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--quaternary);
    margin-bottom: 30px;
    text-align: center;
}

.company-section-title.light {
    color: var(--tertiary);
}

.company-intro-text {
    font-size: 20px;
    line-height: 1.6;
    color: var(--white);
    text-align: center;
    margin-bottom: 20px;
}

.company-intro-text.light {
    color: var(--text-main);
}


/* Pillars Grid */
.company-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 50px 0;
}

.company-pillar {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 6px solid var(--primary);
}

.company-pillar-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.company-pillar-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    flex-shrink: 0;
}

.company-pillar-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.company-pillar-desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
    margin: 0;
}

.company-standout-phrase {
    font-size: 32px;
    font-weight: 700;
    color: var(--quaternary);
    text-align: center;
    margin-top: 50px;
    display: block;
    line-height: 1.3;
}

/* --- Section 6: Business Models --- */
.company-models-section {
    background-color: var(--bg);
    padding: 100px 0 150px;
}

.company-models-content {
    max-width: 900px;
    margin: 0 auto;
}

.company-model-block {
    margin-top: 50px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid var(--secondary);
}

.company-model-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

.company-model-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
    margin: 0;
}

/* ==================== COMPANY PAGE RESPONSIVE ==================== */

@media (max-width: 1100px) {
    .company-section-title {
        font-size: 42px;
    }
    
    .company-standout-phrase {
        font-size: 28px;
    }
}

@media (max-width: 900px) {
    .company-intro-section {
        padding: 100px 0 120px;
    }
    
    .company-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .company-intro-image {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .company-workflow-list {
        text-align: left;
        margin-left: 0;
    }
    
    .company-section-title {
        font-size: 36px;
    }
    
    .company-intro-text {
        font-size: 18px;
    }
    
    .company-pillar {
        padding: 30px 25px;
    }
    
    .company-pillar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .company-pillar-number {
        font-size: 40px;
    }
    
    .company-pillar-title {
        font-size: 24px;
    }
    
    .company-pillar-desc {
        font-size: 17px;
    }
    
    .company-standout-phrase {
        font-size: 24px;
        margin-top: 40px;
    }
    
    .company-models-section {
        padding: 80px 0 120px;
    }
    
    .company-model-block {
        padding: 30px 25px;
    }
    
    .company-model-title {
        font-size: 24px;
    }
    
    .company-model-text {
        font-size: 17px;
    }
}

@media (max-width: 600px) {
    .company-section-title {
        font-size: 28px;
    }
    
    .company-standout-phrase {
        font-size: 20px;
    }
    
    .company-model-title {
        font-size: 22px;
    }
}

/* ==================== WAVE TRANSITION LOGIC ==================== */
/* Consolidated logic for all overlapping waves across the site */

/* 1. Base Overlap Behavior */
/* This overrides base-style.css to ensure overlap transparency */
/* Increased specificity with 'body' to win against base-style loading order */
body .wave-transition {
    position: relative;
    z-index: 10; 
    margin-top: -101px; /* Pulls wave up over previous section */
    height: 100px;
    width: 100%;
    display: block;
    background: transparent !important; /* Forces transparency over base-style */
    pointer-events: none;
}

body .wave-transition svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* Fix for flipped waves */
.wave-flip-x svg {
    transform: scaleX(-1);
    transform-origin: center center;
}

/* 2. EXPLICIT COLOR CLASSES (Manual Control) */
/* Add these classes to the HTML div to force the colour. */
/* IMPORTANT: Use these if auto-detection fails */

.wave-fill-tertiary svg path { fill: var(--tertiary) !important; }
.wave-fill-secondary svg path { fill: var(--secondary) !important; }
.wave-fill-primary svg path   { fill: var(--primary) !important; }
.wave-fill-bg svg path        { fill: var(--bg) !important; }
.wave-fill-white svg path     { fill: var(--white) !important; }
.wave-fill-grey svg path      { fill: var(--grey) !important; }

/* 3. CONTEXTUAL SELECTORS (Auto-Magic) */
/* Uses !important to fight base-style.css loading order */


/* Services Section Homepage: Services (Gradient) -> Why Us (Light/BG) */
.services-section + .wave-transition svg path {
    fill: var(--grey) !important;
}

/* Services: Testimonial (Gradient) -> Client (Light/BG) */
.testimonial-section + .wave-transition svg path {
    fill: var(--secondary) !important;
}

/* Hero (Gradient) -> Spotlight #2 (Secondary) */
.case-study-hero + .wave-transition svg path {
    fill: var(--bg) !important;
}

/* Client (Light) -> Challenge (Dark/Tertiary) */
.case-study-client + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

/* Challenge (Dark) -> Statement (Light/BG) */
.case-study-challenge + .wave-transition svg path {
    fill: var(--bg) !important;
}

/* Statement (Light) -> Turning Point (Secondary) */
.case-study-statement + .wave-transition svg path {
    fill: var(--secondary) !important;
}

/* Turning Point (Secondary) -> Process (Dark/Tertiary) */
.case-study-turning-point + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

/* Process (Dark) -> Data (Light/BG) */
.case-study-process + .wave-transition svg path {
    fill: var(--bg) !important;
}

/* Data (Light) -> System (Dark/Tertiary) */
.case-study-data + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

/* System (Dark) -> Results (Primary) */
.case-study-system + .wave-transition svg path {
    fill: var(--primary) !important;
}

/* Results (Primary) -> Testimonial (Light/BG) */
.case-study-results + .wave-transition svg path {
    fill: var(--bg) !important;
}

/* Testimonial (Light) -> Lessons (Dark/Tertiary) */
.case-study-testimonial + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

/* Lessons (Dark/Tertiary) -> CTA (Light) */
.case-study-lessons + .wave-transition svg path {
    fill: var(--bg) !important;
}

/* Company Intro (Light) -> First GTM Spotlight (Dark/Tertiary) */
.company-intro-section + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

/* Homepage - Services Section (Light/BG) -> Tools Expertise (Dark/Tertiary) */
.services-section + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

/* Homepage - Tools Expertise (Dark/Tertiary) -> Case Study Spotlight (Secondary/Light-orange) */
.tools-expertise + .wave-transition svg path {
    fill: var(--secondary) !important;
}

/* Homepage - Case Study Spotlight (Secondary/Light-orange) -> Audience (Light/BG)*/
.case-study-spotlight-home + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

/* Updated Explicit Classes (Place at bottom of file) */
.wave-transition.wave-fill-tertiary svg path { fill: var(--tertiary) !important; }
.wave-transition.wave-fill-secondary svg path { fill: var(--secondary) !important; }
.wave-transition.wave-fill-primary svg path   { fill: var(--primary) !important; }
.wave-transition.wave-fill-bg svg path        { fill: var(--bg) !important; }
.wave-transition.wave-fill-white svg path     { fill: var(--white) !important; }
.wave-transition.wave-fill-grey svg path      { fill: var(--grey) !important; }

/* --- FIX FOR WHITE LINE GAP --- */

/* 1. Allow the SVG to spill out of its container */
body .wave-transition {
    overflow: visible !important;
    margin-bottom: -2px !important; /* Pulls the next section closer */
}

/* 2. Stretch the SVG height to overlap the section below */
body .wave-transition svg {
    height: 103% !important; /* Adds extra pixels to the bottom */
    display: block;
    position: relative;
    bottom: -1px; /* Pushes it down slightly further */
}