/*
 * STYLES.CSS
 * Main stylesheet for POps Consultants Website
 */

/* ======== 1. IMPORTS & VARIABLES ======== */

:root {
    /* Colors (from your logo) */
    --primary-dark-teal: #0c7a8a;
    --primary-accent-teal: #17a2b8;

    /* Neutrals */
    --text-dark: #333333;
    --text-light: #f4f7f6;
    --bg-white: #ffffff;
    --bg-light-grey: #f9f9f9;
    --border-color: #e0e0e0;
    --bg-light-teal: #e6f7f9;
    /* Light teal for background banding */

    /* Fonts */
    --font-heading: 'Economica', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Sizing */
    --nav-height: 60px;
    --container-width: 1200px;
}

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

/* Mobile portrait line breaks - hidden by default */
.mobile-portrait-br {
    display: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark-teal);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

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

/* ======== 3. UTILITY & LAYOUT CLASSES ======== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
    margin-bottom: 3rem;
    /* Added padding after More Frameworks button */
}

.text-center-mb-15 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.centered-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.service-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.clean-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

section {
    padding: 4rem 0;
}

/* ======== 4. BUTTON STYLES ======== */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-dark-teal);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-accent-teal);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: none;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.btn-light {
    background-color: var(--bg-white);
    color: var(--primary-dark-teal);
}

.btn-light:hover {
    background-color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-large {
    font-size: 1.15rem;
    padding: 1.25rem 3rem;
}

.btn-nav {
    padding: 0;
    background: none !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}


/* ======== 5. HEADER & NAVIGATION ======== */
header {
    background: linear-gradient(135deg, #085e6b 0%, #20c4dd 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 41px;
    /* Reduced by 25% from 55px */
    width: auto;
    display: block;
    background: white;
    padding: 2px 4px;
    border-radius: 3px;
    transition: opacity 0.3s ease;
    box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.5);
}

.logo:hover img {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bg-white);
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    /* For active state */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.nav-links a:not(.btn):hover {
    color: var(--bg-white);
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Style for the active page link */
.nav-links a.active:not(.btn) {
    color: var(--bg-white);
    border-bottom-color: var(--bg-white);
}

/* Active state for the button */
.nav-links a.btn-secondary.active {
    color: var(--bg-white);
    border-bottom-color: var(--bg-white);
}

/* Contact link should behave like other nav links */
.nav-links a.btn-nav:hover {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.nav-links a.btn-nav.active {
    border-bottom-color: var(--bg-white);
}


.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--bg-white);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* ======== 6. ANGLED SECTION STYLES (CLIP-PATH METHOD) ======== */
:root {
    --angle-height: 2.5vw;
    /* 5% of viewport width - adjust as needed */
}

/* Sections with angled top ONLY */
.angle-top {
    clip-path: polygon(0 var(--angle-height), 100% 0, 100% 100%, 0 100%);
}

/* Sections with angled bottom ONLY */
.angle-bottom {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle-height)), 0 100%);
}

/* Sections with BOTH top and bottom angled */
.angle-both {
    clip-path: polygon(0 var(--angle-height), 100% 0, 100% calc(100% - var(--angle-height)), 0 100%);
}

/* Hero section - flat top, angled bottom */
#hero {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle-height)), 0 100%);
}

/* Fix the "sliver" artifact - overlap sections */
.angled-section-overlap {
    margin-top: calc(-1 * var(--angle-height));
}

/* Fix section padding for overlapped sections */
.angled-section-overlap .container {
    padding-top: calc(var(--angle-height) + 2rem);
}

/* This tightens the bottom padding ONLY for angled sections */
.angled-section-overlap {
    padding-bottom: 2rem;
    /* CHANGED from the 6rem default */
}

/* Interior page heroes get the same treatment */
.page-hero {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle-height)), 0 100%);
}

/* ======== 7. PAGE-SPECIFIC SECTIONS (INDEX.HTML) ======== */

/* --- Hero --- */
#hero {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 2rem;
    background: linear-gradient(135deg, #20c4dd 0%, #085e6b 100%);
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
        "heading visual"
        "subtitle visual"
        "cta visual";
    gap: 2rem 4rem;
    align-items: center;
}

.hero-heading {
    grid-area: heading;
    font-family: 'Economica', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0;
    color: var(--bg-white);
}

.hero-subtitle {
    grid-area: subtitle;
    font-size: 1.3rem;
    color: var(--bg-white);
    margin-bottom: 0;
    text-align: center;
}

.hero-visual {
    grid-area: visual;
}

.hero-cta {
    grid-area: cta;
    text-align: center;
}

/* Hero image styling - white border for all views */
.hero-image {
    width: 150%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bg-white);
}

/* Hero button styling - white border and dark shadow for all views */
.hero-btn {
    border: 1px solid var(--bg-white);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

/* Hide mobile line breaks on desktop */
.mobile-br {
    display: none;
}


/* --- Social Proof --- */
#social-proof {
    padding: 3rem 0;
    background-color: var(--bg-white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark-teal);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-bar img {
    max-height: 45px;
    max-width: 150px;
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Problem --- */
#problem {
    padding-top: 4.5rem;
    /* Reduced by 25% from 6rem */
    padding-bottom: 6rem;
    /* Reduced by 50% from 12rem */
    background-color: var(--bg-white);
    min-height: 400px;
}

#problem .container {
    max-width: 900px;
}

#problem h2 {
    color: var(--text-dark);
}

.section-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
}

#problem p {
    color: var(--text-dark);
}

#problem .highlight {
    color: var(--primary-dark-teal);
    font-weight: 700;
    text-decoration: underline;
}

/* --- Solution Teasers --- */
#solution-teasers {
    background: linear-gradient(135deg, #20c4dd 0%, #085e6b 100%);
    padding-top: 2.5rem;
    /* Desktop only - reduced from 4.5rem */
    padding-bottom: 6rem;
    /* Reduced by 50% from 12rem */
}

#solution-teasers h2 {
    color: var(--bg-white);
}

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

.teaser-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease, border 0.3s ease;
    display: flex;
    flex-direction: column;
}

.teaser-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--primary-dark-teal);
}

.teaser-card h3 {
    margin: -2.5rem -2.5rem 1.5rem -2.5rem;
    padding: 1.5rem 2.5rem;
    border-radius: 10px 10px 0 0;
    background-color: transparent;
    color: var(--primary-dark-teal);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.teaser-card:hover h3 {
    background-color: var(--primary-dark-teal);
    color: var(--bg-white);
}

/* Permanent blue styling for hero teaser cards */
.teaser-card-blue {
    border: none !important;
}

.teaser-card-blue h3 {
    background-color: var(--primary-dark-teal);
    color: var(--bg-white);
}

/* Darker drop shadow on hover for blue cards */
.teaser-card-blue:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

.teaser-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Pushes the button to the bottom of the card */
.teaser-card .btn-primary {
    margin-top: auto;
}

.teaser-card .btn-primary:hover {
    background-color: var(--primary-accent-teal);
}


/* --- Frameworks Teaser --- */
#the-growth-lab-teaser {
    background-color: var(--bg-white);
    /* BAND 5: WHITE */
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin: 4rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.framework-card {
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border 0.3s ease;
    position: relative;
}

.framework-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-dark-teal);
}

/* Coming Soon Framework Cards */
.framework-card-coming-soon {
    opacity: 0.6;
    border: 2px dashed var(--border-color);
}

.framework-card-coming-soon:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    border: 2px dashed var(--border-color);
}

.framework-card-coming-soon::before {
    content: "Coming Soon";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-accent-teal);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.framework-card-coming-soon .read-more-btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.card-image-placeholder {
    height: 200px;
    background: #e0e0e0;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: fill;
    object-position: center;
    display: block;
}

.framework-card h3 {
    padding: 1.5rem 2rem 0.5rem 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.framework-card h3.teal-header {
    background-color: var(--primary-dark-teal);
    color: var(--bg-white);
    padding-bottom: 1.5rem;
    /* Increase bottom padding for balance */
    margin-bottom: 0;
}

/* Add padding to the paragraph specifically when it follows a teal header */
.framework-card h3.teal-header+p {
    padding-top: 1.5rem;
}

.framework-card p {
    padding: 0 2rem 1.5rem 2rem;
}

.read-more {
    font-weight: 700;
    color: var(--primary-dark-teal);
    padding: 0 2rem 2rem 2rem;
    display: block;
}

.read-more-btn {
    display: inline-block;
    font-weight: 700;
    color: var(--bg-white);
    background-color: var(--primary-dark-teal);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 2rem 2rem 2rem;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    width: fit-content;
}

.read-more-btn:hover {
    background-color: var(--primary-accent-teal);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* --- Final CTA --- */
#final-cta {
    background: linear-gradient(135deg, #20c4dd 0%, #085e6b 100%);
    color: var(--bg-white);
    padding: 4rem 0;
    /* Increased padding above and below */
}

#final-cta .container {
    text-align: center;
}

#final-cta h2 {
    font-size: 3rem;
    color: var(--bg-white);
    text-align: center;
}

#final-cta p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    color: var(--bg-white);
    text-align: center;
}

#final-cta .btn {
    display: inline-block;
}

/* Floating CTA effect - test on index.html only */
.floating-cta {
    position: relative;
    z-index: 10;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* --- Proof Stats --- */
.proof-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

.proof-stat {
    text-align: center;
}

.proof-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark-teal);
    line-height: 1.2;
}

.proof-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .proof-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .proof-number {
        font-size: 2rem;
    }
}

/* --- Testimonials --- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: var(--bg-light-teal);
    border-radius: 10px;
    padding: 2rem;
    border-left: 4px solid var(--primary-accent-teal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote {
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-headshot {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-accent-teal);
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-dark-teal);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 1024px) {
    .testimonials {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
}

/* ======== 7. FOOTER ======== */
footer {
    background-color: var(--text-dark);
    color: #aaa;
    text-align: center;
    padding: 1.5rem 0;
    /* Reduced by 50% from 3rem */
}


/* ======== 8. INTERIOR PAGE STYLES ======== */
.page-hero {
    padding-top: calc(var(--nav-height) + 6rem);
    padding-bottom: 9rem;
    /* Reduced by 25% from 12rem */
    background: linear-gradient(135deg, #20c4dd 0%, #085e6b 100%);
    text-align: center;
    min-height: 400px;
}

.page-hero h1 {
    font-family: 'Economica', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--bg-white);
}

.page-hero .page-subtitle {
    font-size: 1.3rem;
    color: var(--bg-white);
    margin: 0;
}

.page-content {
    background-color: var(--bg-white);
}

/* Styles for checkmark lists inside cards */
.teaser-card ul {
    list-style: none;
    margin: 0 0 2rem 0;
    padding-left: 0;
    text-align: left;
    font-size: 1rem;
    color: var(--text-dark);
}

.teaser-card li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.teaser-card li::before {
    content: '✓';
    color: var(--primary-accent-teal);
    font-weight: 900;
    font-size: 1.1rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Special styling for outcome bullet points with target icon */
.teaser-card li.outcome::before {
    content: '🎯';
    font-weight: normal;
}

.teaser-card li.outcome {
    font-weight: 700;
}


/* ======== 9. ARTICLE TEMPLATE STYLES ======== */
.article-hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
    background-color: var(--bg-light-teal);
    /* Light teal hero */
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle-height)), 0 100%);
}

.article-hero h1 {
    font-size: 3.2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-hero .article-subtitle {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
    font-family: var(--font-body);
}

.article-body {
    background-color: var(--bg-white);
    padding: 4rem 0;
}

/* This is the centered, readable text column */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Typography styles *inside* an article */
.article-content h2 {
    font-size: 2.2rem;
    text-align: left;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.article-content ul {
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0 0 2rem 1.5rem;
    padding-left: 1rem;
}

.article-content li {
    margin-bottom: 1rem;
}

.article-content blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 2.5rem 0;
    padding: 1rem 1.5rem 1rem 2rem;
    border-left: 5px solid var(--primary-accent-teal);
    background-color: var(--bg-light-teal);
    border-radius: 0 5px 5px 0;
}

.article-content blockquote p {
    margin-bottom: 0;
}


/* ======== 10. CONTACT FORM STYLES ======== */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--primary-dark-teal);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark-teal);
    margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent-teal);
}

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

.button-wrapper {
    text-align: right;
}


/* ======== 11. RESPONSIVE (MOBILE) STYLES ======== */
@media (max-width: 1024px) {

    /* Adjust angle height for mobile to prevent artifacts */
    :root {
        --angle-height: 8vw;
        /* Larger on mobile for better visibility and overlap */
    }

    /* Ensure angled section overlap works on mobile */
    .angled-section-overlap .container {
        padding-top: calc(var(--angle-height) + 4rem);
        /* Reduced from 6rem for mobile */
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Reduce section intro font size on mobile */
    .section-intro {
        font-size: 1rem !important;
    }

    /* Show portrait line breaks on mobile portrait only */
    .mobile-portrait-br {
        display: inline;
    }

    /* --- Mobile Logo --- */
    .logo img {
        height: 34px;
        /* Reduced by 25% from 45px */
        padding: 2px 4px;
    }

    /* --- Mobile Nav --- */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: auto;
        min-width: 250px;
        height: auto;
        background-color: var(--bg-light-teal);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 1rem 0;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: auto;
        text-align: left;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: auto;
        white-space: nowrap;
        color: var(--text-dark);
        border-bottom: none;
        /* Remove desktop active border */
        text-shadow: none;
        /* Remove text shadow on mobile */
    }

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

    /* Mobile active link */
    .nav-links a.active:not(.btn) {
        color: var(--primary-accent-teal);
        font-weight: 700;
        border-bottom: none;
    }

    .nav-links a.btn {
        margin: 0.5rem 2rem;
        width: auto;
        color: var(--bg-white);
        background: var(--primary-dark-teal);
        border: none;
    }

    .nav-links a.btn:hover {
        background: var(--primary-accent-teal);
        color: var(--bg-white);
    }

    /* Mobile active contact button */
    .nav-links a.btn.active {
        background: var(--primary-accent-teal);
        color: var(--bg-white);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* --- Mobile Sections --- */
    #hero {
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 4rem;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "visual"
            "subtitle"
            "cta";
        gap: 2rem;
        text-align: center;
    }

    .hero-heading {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        font-size: 1.1rem;
    }

    .hero-visual {
        margin: 0;
    }

    /* Image fits neatly across mobile width */
    .hero-image {
        width: 100%;
        max-width: 100%;
    }

    /* Show line breaks on mobile */
    .mobile-br {
        display: inline;
    }

    /* Mobile layout for Transformational Engagement and Fractional Partnership */
    #transformational-engagement .container,
    #fractional-partnership .container {
        display: flex;
        flex-direction: column;
    }

    /* Order elements: Title, Scope, Image, What's Included, Outcome, Button */
    #transformational-engagement .service-title,
    #fractional-partnership .service-title {
        order: 1;
    }

    #transformational-engagement .service-scope,
    #fractional-partnership .service-scope {
        order: 2;
    }

    #transformational-engagement .service-content-grid,
    #fractional-partnership .service-content-grid {
        order: 3;
        display: flex !important;
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 2rem !important;
    }

    #transformational-engagement .service-image-wrapper,
    #fractional-partnership .service-image-wrapper {
        order: 1;
    }

    #transformational-engagement .service-details,
    #fractional-partnership .service-details {
        order: 2;
    }

    #transformational-engagement .service-outcome,
    #fractional-partnership .service-outcome {
        order: 4;
    }

    #transformational-engagement .service-cta,
    #fractional-partnership .service-cta {
        order: 5;
    }

    /* Make images fit neatly on mobile */
    .service-image {
        width: 100% !important;
        max-width: 100%;
    }

    /* Remove angled edges on mobile for Fractional Partnership */
    #fractional-partnership {
        clip-path: none !important;
        margin: 0 !important;
    }

    /* Mobile styles for problem section - now white background, no angles */
    #problem {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Ensure all angled sections have proper padding on mobile */
    #solution-teasers,
    #the-growth-lab-teaser {
        padding-top: 0;
        /* Padding handled by .angled-section-overlap .container */
        padding-bottom: 8rem;
    }

    /* Social proof at bottom - no angles, standard padding */
    #social-proof {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .teaser-grid,
    .framework-grid {
        grid-template-columns: 1fr;
    }

    #final-cta {
        padding: 4rem 0;
        /* Increased padding to match desktop */
    }

    #final-cta h2 {
        font-size: 2.5rem;
    }

    /* Mobile styles for interior pages */
    .page-hero {
        padding-top: calc(var(--nav-height) + 4rem);
        padding-bottom: 6rem;
        /* Reduced by 25% from 8rem */
        min-height: 300px;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero .page-subtitle {
        font-size: 1.1rem;
    }

    /* Mobile styles for articles */
    .article-hero h1 {
        font-size: 2.2rem;
    }

    .article-hero .article-subtitle {
        font-size: 1.1rem;
    }

    .article-body {
        padding: 3rem 0;
    }

    .article-content p,
    .article-content ul {
        font-size: 1.1rem;
    }

    /* Mobile styles for contact form */
    .form-container {
        padding: 2rem;
    }

    .button-wrapper {
        text-align: center;
    }

    .button-wrapper .btn {
        width: 100%;
    }
}

/* === Tablet landscape - ensure section-intro stays small === */
@media (min-width: 1025px) and (max-width: 1400px) and (orientation: landscape) {
    .section-intro {
        font-size: 1rem !important;
    }

    /* Hide portrait line breaks in landscape */
    .mobile-portrait-br {
        display: none;
    }
}

/* === Desktop-only hero layout === */
@media (min-width: 1025px) {

    /* Remove container width constraint for hero on desktop */
    #hero .container {
        max-width: none;
        padding: 0 4rem;
    }

    /* 3-row, 2-column grid */
    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "heading image"
            "subtitle image"
            "cta cta";
        gap: 1.5rem 4rem;
        align-items: start;
        max-width: 1400px;
        margin: 0 auto;
    }

    /* Row 1, Column 1: Title */
    .hero-heading {
        grid-area: heading;
        text-align: center;
        margin-bottom: 0;
        font-size: 3.6rem;
        line-height: 1.2;
    }

    /* Row 2, Column 1: Subtitle text */
    .hero-subtitle {
        grid-area: subtitle;
        text-align: center;
        margin-bottom: 0;
    }

    /* Row 3: Button spans both columns, centered */
    .hero-cta {
        grid-area: cta;
        text-align: center;
        margin-top: 1rem;
    }

    /* Right column - image spans both rows */
    .hero-visual {
        grid-area: image;
        align-self: center;
        justify-self: center;
    }

    /* Desktop: override image width to 110% (keeps border, shadow, etc. from base rule) */
    .hero-image {
        width: 110%;
    }

    /* Hide mobile line breaks on desktop */
    .mobile-br {
        display: none;
    }

    /* Hide portrait line breaks on desktop */
    .mobile-portrait-br {
        display: none;
    }
}

/* === Mobile HORIZONTAL view only - add padding to avoid notch === */
@media (max-width: 1280px) and (orientation: landscape) {
    .container {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }

    /* Ensure section intro is also small in landscape */
    .section-intro {
        font-size: 1rem !important;
    }

    /* Hide portrait line breaks in landscape */
    .mobile-portrait-br {
        display: none;
    }
}

/* ======== 12. EXPERIENCE PAGE SPECIFIC STYLES ======== */

/* Advisor Card Styles */
.advisor-card {
    text-align: center;
    border: 1px solid transparent;
    transition: box-shadow 0.2s ease-in-out, border 0.2s ease-in-out;
    padding: 1.875rem !important;
}

.advisor-card:hover {
    background-color: #ffffff !important;
    border: 1px solid var(--primary-dark-teal);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.advisor-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    padding-right: 2.5rem;
    margin: -1.875rem -1.875rem 1.5rem -1.875rem !important;
}

.advisor-card h3 .advisor-link {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
}

.advisor-card h3 .advisor-link svg {
    fill: #ffffff;
    transition: transform 0.2s ease-in-out;
}

.advisor-card h3 .advisor-link:hover svg {
    transform: scale(1.15);
}

.advisor-headshot {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    margin: 0;
}

.advisor-name-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.advisor-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.advisor-title {
    font-size: 1.125rem;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.9;
    padding-left: 0.5rem;
}

.advisor-bio {
    text-align: left;
    padding: 0;
}

/* Progressive alignment styling */
.progressive-indent {
    line-height: 2;
    font-size: 1.15rem;
}

.progressive-indent .line-1 {
    display: block;
    text-align: left;
    margin-bottom: 1rem;
}

.progressive-indent .line-2 {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
}

.progressive-indent .line-3 {
    display: block;
    text-align: right;
}

/* Desktop line break handling */
.desktop-br-inline {
    display: inline;
}

.mobile-text-inline {
    display: none;
}

/* Social proof section spacing */
#social-proof .section-subtitle {
    margin-bottom: 3rem;
}

/* Experience Page Responsive Styles */
@media (max-width: 768px) {
    .advisor-name {
        font-size: 1.5rem;
    }

    .advisor-title {
        font-size: 1.125rem;
    }

    .progressive-indent .line-1,
    .progressive-indent .line-2,
    .progressive-indent .line-3 {
        text-align: center;
    }

    .desktop-br-inline {
        display: none;
    }

    .mobile-text-inline {
        display: inline;
    }

    #social-proof .section-subtitle {
        margin-bottom: 5rem;
    }

    #social-proof .logo-bar {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 769px) {
    .advisor-headshot {
        width: 75px;
        height: 75px;
    }

    .desktop-br-inline::before {
        content: "\A";
        white-space: pre;
    }

    .mobile-text-inline {
        display: none;
    }
}

@media (min-width: 1025px) {
    #social-proof .section-subtitle {
        font-size: 1.6rem;
    }
}

/* Growth Lab Animation Styles (V10 - Final Polish) */
.gl-anim-link {
    position: relative;
    text-decoration: none;
    /* Use standard inline display to ensure perfect baseline alignment */
}

/* Class to trigger animation loop */
.gl-anim-playing .gl-bar-1,
.gl-anim-playing .gl-bar-2,
.gl-anim-playing .gl-bar-3,
.gl-anim-playing .gl-bar-4,
.gl-anim-playing .gl-bar-5,
.gl-anim-playing .gl-arrow,
.gl-anim-playing .gl-arrow-head,
.gl-anim-playing .gl-link-text,
.gl-anim-playing .gl-icon-container {
    animation-play-state: running;
}

/* By default we can set animations, but maybe we only add animation name when class is present?
   Better approach: Define animation props here, but only set animation-name when key is present?
   Or just scope the entire existing block. 
*/

.gl-icon-container {
    position: absolute;
    display: flex;
    align-items: flex-end;
    /* Align SVG to bottom */
    justify-content: center;
    width: 60px;
    height: 40px;
    /* Fixed height for icon area */
    /* Center horizontally */
    left: 50%;
    transform: translateX(-50%);
    /* Move down a tad (was 0) */
    bottom: -3px;
    opacity: 1;
    /* Only fade out when playing */
    /* animation: fadeOutIcon 0.5s ease-in-out 3.9s forwards; MOVED BELOW */
    pointer-events: none;
}

.gl-icon-container svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    /* Squish vertically to 85% */
    transform: scaleY(0.85);
    transform-origin: bottom;
}

/* Animations Triggered by Class */
.gl-anim-playing .gl-icon-container {
    animation: fadeOutIcon 0.5s ease-in-out 3.9s forwards;
}

.gl-bar {
    fill: var(--bg-white);
    /* White for visibility on Teal header */
    opacity: 1;
    /* Uniform opacity for all bars */
    transform-origin: bottom;
    transform: scaleY(0);
}

.gl-anim-playing .gl-bar-1 {
    animation: growBar 1s ease-out 0.2s forwards;
}

.gl-anim-playing .gl-bar-2 {
    animation: growBar 1s ease-out 0.4s forwards;
}

.gl-anim-playing .gl-bar-3 {
    animation: growBar 1s ease-out 0.6s forwards;
}

.gl-bar-4 {
    /* Base styles */
    fill: var(--bg-white);
    /* opacity: 1; REMOVED Redundant/Inconsistent override */
}

.gl-anim-playing .gl-bar-4 {
    animation: growBar 1s ease-out 0.6s forwards;
}

.gl-anim-playing .gl-bar-5 {
    animation: growBar 1s ease-out 0.7s forwards;
}

.gl-arrow {
    fill: none;
    stroke: var(--bg-white);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    /* animation: drawArrow 1.7s ease-out 1.2s forwards; MOVED */
}

.gl-anim-playing .gl-arrow {
    animation: drawArrow 1.7s ease-out 1.2s forwards;
    /* Added keyframe fix for dashoffset if needed, but simple add/remove class resets it. */
}

.gl-arrow-head {
    fill: var(--bg-white);
    opacity: 0;
    /* animation: fadeInArrowHead 0.1s ease-out 2.8s forwards; MOVED */
}

.gl-anim-playing .gl-arrow-head {
    animation: fadeInArrowHead 0.1s ease-out 2.8s forwards;
}

.gl-link-text {
    opacity: 0;
    color: var(--bg-white);
    font-family: var(--font-body);
    font-weight: 700;
    white-space: nowrap;
    /* animation: fadeInText 0.5s ease-in-out 4.2s forwards; MOVED */
}

.gl-anim-playing .gl-link-text {
    animation: fadeInText 0.5s ease-in-out 4.2s forwards;
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes drawArrow {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInArrowHead {
    to {
        opacity: 1;
    }
}

@keyframes fadeOutIcon {
    to {
        opacity: 0;
        /* Maintain X centering while moving Y */
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}