/* =========================================================
   Critical ThinkAR® — Master Stylesheet
   =========================================================
   1.  Variables & Reset
   2.  Global Typography
   3.  Navigation
   4.  Hero (index.html)
   5.  CTA Buttons
   6.  Page Header (inner pages)
   7.  Decorative Elements
   8.  Stats Section
   9.  About Section
   10. Credentials Section
   11. Founder Section
   12. Analysis / Newsletter CTA
   13. Testimonials / Ticker
   14. Final CTA
   15. Founder Modal
   16. Footer
   17. Animate-on-Scroll
   18. Responsive
   ========================================================= */


/* =========================================================
   1. VARIABLES & RESET
   ========================================================= */
:root {
    --primary-teal:  #399CA1;
    --dark-teal:     #2C7A7F;
    --accent-teal:   #5BB3B7;
    --light-teal:    #E6F5F6;
    --teal-pale:     #e8f4f4;
    --white:         #FFFFFF;
    --off-white:     #f8f9fa;
    --dark:          #2c3e50;
    --dark-gray:     #333333;
    --medium-gray:   #636E72;
    --body-gray:     #5d6d7e;
    --border-teal:   rgba(57, 156, 161, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.3;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }


/* =========================================================
   3. NAVIGATION
   ========================================================= */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-teal);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image { height: 38px; width: auto; }

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

.nav-links a {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Dropdown */
.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 210px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.6rem 0;
    z-index: 600;
    border: 1px solid var(--border-teal);
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.3rem;
    font-size: 0.82rem;
    color: var(--dark);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background: var(--teal-pale);
    color: var(--primary-teal);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* =========================================================
   4. HERO (index.html)
   ========================================================= */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero {
    min-height: 100vh;
    background:
        url('hero-bg.jpg') center center / cover no-repeat,
        linear-gradient(135deg, #142a30 0%, #2C7A7F 60%, #399CA1 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 3rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 55, 65, 0.88) 0%,
        rgba(44, 122, 127, 0.72) 60%,
        rgba(57, 156, 161, 0.52) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    animation: heroFadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.75rem;
    letter-spacing: -0.5px;
    animation: heroFadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-content h1 strong {
    font-weight: 700;
    color: #7dd4d8;
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.87);
    line-height: 1.85;
    max-width: 640px;
    margin: 0 auto 2.75rem;
    animation: heroFadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.hero-content .cta-button {
    animation: heroFadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}


/* =========================================================
   5. CTA BUTTONS
   ========================================================= */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-teal);
    color: var(--white);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid var(--primary-teal);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.8);
}

.cta-button.primary {
    background: var(--primary-teal);
    color: var(--white);
    border-color: var(--primary-teal);
}

.cta-button.primary:hover {
    background: var(--dark-teal);
    border-color: var(--dark-teal);
}

/* On light backgrounds (analysis section, etc.) */
.cta-button.on-light {
    background: var(--primary-teal);
    color: var(--white);
    border-color: var(--primary-teal);
}

.cta-button.on-light:hover {
    background: var(--dark-teal);
    border-color: var(--dark-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(57,156,161,0.3);
}


/* =========================================================
   6. PAGE HEADER (inner pages)
   ========================================================= */
@keyframes pgFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-header {
    background: linear-gradient(135deg, var(--dark-teal) 0%, var(--primary-teal) 100%);
    padding: 150px 3rem 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20,55,65,0.35) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 300;
    animation: pgFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    animation: pgFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}


/* =========================================================
   7. DECORATIVE ELEMENTS
   ========================================================= */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Utility — used inline in approach.html */
.dec-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}


/* =========================================================
   8. STATS SECTION
   ========================================================= */
.stats-section {
    background: var(--white);
    padding: 72px 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-teal);
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(57,156,161,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(57,156,161,0.15);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-teal);
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-number .counter { color: var(--primary-teal); }

.stat-number .suffix {
    font-size: 3rem;
    color: var(--primary-teal);
    margin-left: 3px;
    font-weight: 400;
}

.stat-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary-teal);
    margin-top: 0.85rem;
}


/* =========================================================
   9. ABOUT SECTION
   ========================================================= */
.about-section {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    padding: 100px 3rem;
    position: relative;
    overflow: hidden;
}

.about-section .decorative-circle {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-section .circle-1 {
    width: 400px; height: 400px;
    top: -100px; right: -100px;
}

.about-section .circle-2 {
    width: 250px; height: 250px;
    bottom: -50px; left: -50px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-section h2.animate-on-scroll {
    color: var(--white);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-section h2.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card.animate-on-scroll {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out 0.1s, transform 0.6s ease-out 0.1s;
}

.about-card.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--body-gray);
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-card p:last-child { margin-bottom: 0; }

.about-divider {
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary-teal), var(--accent-teal));
    margin: 2rem auto;
    border-radius: 2px;
}


/* =========================================================
   10. CREDENTIALS SECTION
   ========================================================= */
.credentials-section {
    background: var(--off-white);
    padding: 100px 3rem;
    position: relative;
    overflow: hidden;
}

.credentials-section .decorative-circle {
    border: 1px solid rgba(57, 156, 161, 0.1);
}

.credentials-section .circle-1 {
    width: 300px; height: 300px;
    top: -100px; left: -100px;
}

.credentials-section .circle-2 {
    width: 200px; height: 200px;
    bottom: -50px; right: -50px;
}

.credentials-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.credentials-header h2.animate-on-scroll {
    font-size: 3.2rem;
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}

.credentials-header h2.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.credentials-header p {
    font-size: 1.1rem;
    color: var(--body-gray);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.credential-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
    border-top: 4px solid var(--primary-teal);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.credential-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(57, 156, 161, 0.14);
}

.credential-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    color: var(--dark);
    margin-bottom: 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.credential-card:hover h4,
.credential-card.expanded h4 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.card-details {
    font-size: 1rem;
    color: var(--body-gray);
    line-height: 1.75;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.credential-card:hover .card-details,
.credential-card.expanded .card-details {
    max-height: 200px;
    opacity: 1;
}


/* =========================================================
   11. FOUNDER SECTION
   ========================================================= */
.founder-section {
    background: var(--white);
    padding: 100px 3rem;
}

.founder-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4.5rem;
    align-items: start;
}

.founder-image-wrapper { position: relative; }

.founder-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.founder-info h2.animate-on-scroll {
    font-size: 1.6rem;
    color: var(--primary-teal);
    margin-bottom: 0.4rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.founder-info h2.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.founder-info h3 {
    font-size: 1.9rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1.75rem;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.2;
}

/* Bio text */
.founder-bio { margin-bottom: 2rem; }

.founder-bio p {
    font-size: 1rem;
    line-height: 1.82;
    color: var(--body-gray);
    margin-bottom: 1.1rem;
}

.founder-bio p:last-child { margin-bottom: 0; }

/* Credential list */
.founder-credentials-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--teal-pale);
}

.founder-cred-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.cred-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-teal);
    flex-shrink: 0;
    margin-top: 0.42rem;
}

/* LinkedIn newsletter CTA */
.newsletter-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: #0a66c2;
    color: var(--white);
    border-radius: 4px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-cta-link svg { flex-shrink: 0; }

.newsletter-cta-link em { font-style: italic; font-weight: 700; }

.newsletter-cta-link:hover {
    background: #004182;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.3);
}


/* =========================================================
   12. ANALYSIS / NEWSLETTER CTA SECTION
   ========================================================= */
.analysis-section {
    background: linear-gradient(135deg, var(--teal-pale) 0%, #d4ebec 100%);
    padding: 80px 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.analysis-section .decorative-circle {
    border: 1px solid rgba(57, 156, 161, 0.15);
}

.analysis-section .circle-1 {
    width: 250px; height: 250px;
    top: -80px; left: -80px;
}

.analysis-section .circle-2 {
    width: 180px; height: 180px;
    bottom: -60px; right: -60px;
}

.analysis-content { position: relative; z-index: 1; }

.analysis-section h2.animate-on-scroll {
    font-size: 3.2rem;
    color: var(--primary-teal);
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.analysis-section h2.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.analysis-section p {
    font-size: 1.1rem;
    color: var(--body-gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}


/* =========================================================
   13. TESTIMONIALS / TICKER
   ========================================================= */
.testimonials-section {
    background: #1a2a35;
    padding: 80px 0;
    overflow: hidden;
}

.testimonials-section > h2 {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    padding: 0 3rem;
}

.ticker-container {
    display: flex;
    gap: 2rem;
    animation: ticker-scroll 40s linear infinite;
    width: max-content;
    padding: 0 1rem;
}

.ticker-container:hover { animation-play-state: paused; }

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

.ticker-item {
    flex-shrink: 0;
    width: 520px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.testimonial-card blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--dark);
    line-height: 1.75;
    font-style: italic;
    margin: 0 0 1.75rem;
}

.testimonial-card cite {
    display: block;
    font-style: normal;
}

.testimonial-card cite strong {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    color: var(--primary-teal);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.testimonial-card cite span {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    color: #8a9aaa;
    line-height: 1.5;
}


/* =========================================================
   14. FINAL CTA
   ========================================================= */
.final-cta {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    padding: 100px 3rem;
    text-align: center;
}

.final-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.final-cta h2.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.final-cta h2.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.final-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    margin: 0 auto 2.75rem;
    line-height: 1.8;
}

.final-cta .cta-button {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--white);
}

.final-cta .cta-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}


/* =========================================================
   15. FOUNDER MODAL
   ========================================================= */
.founder-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.72);
    overflow: auto;
}

.founder-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    max-height: 82vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--medium-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover { color: var(--primary-teal); }

.modal-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--dark-teal);
    margin-bottom: 20px;
}

.modal-content p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.75;
    margin-bottom: 15px;
}

.modal-content p:last-child { margin-bottom: 0; }


/* =========================================================
   16. FOOTER
   ========================================================= */
footer {
    background: #101e24;
    padding: 3rem;
    text-align: center;
}

footer p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
}

footer a {
    color: var(--accent-teal);
    transition: color 0.3s;
}

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

/* Footer social/contact links row */
.footer-links {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-teal);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social:hover { color: var(--white); }

.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-divider {
    color: rgba(255,255,255,0.15);
    font-size: 0.8rem;
}


/* =========================================================
   17. ANIMATE-ON-SCROLL (base)
   ========================================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   INNER PAGE SHARED COMPONENTS
   ========================================================= */

/* Generic section wrapper */
.section { padding: 80px 5%; }
.section-gray { background: var(--off-white); }

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

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--dark-teal);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--medium-gray);
    font-size: 1.05rem;
}

/* Services grid (services.html) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-teal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(57,156,161,0.15);
}

.service-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-teal);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--dark-teal);
    margin-bottom: 0.5rem;
}

.service-tagline {
    font-style: italic;
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-card p {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* Client grid (proof.html, etc.) */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.client-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-teal);
    transition: transform 0.3s ease;
}

.client-card:hover { transform: translateX(5px); }
.client-card h4 { font-size: 1.2rem; color: var(--dark-teal); margin-bottom: 0.75rem; }
.client-card p  { font-size: 0.9rem; color: var(--medium-gray); line-height: 1.6; }


/* =========================================================
   18. RESPONSIVE
   ========================================================= */

/* ── Tablet ── */
@media (max-width: 1100px) {
    .credentials-grid { grid-template-columns: repeat(2, 1fr); }
}

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

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

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(57,156,161,0.15);
        padding-bottom: 2rem;
    }

    .stat-item:nth-child(3),
    .stat-item:last-child { border-bottom: none; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    /* Nav */
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        padding: 1.5rem 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 1.2rem;
        border-top: 1px solid var(--border-teal);
    }

    .nav-links.active { display: flex; }
    .nav-container { padding: 0.9rem 1.5rem; }

    .dropdown-content { position: static; box-shadow: none; padding-left: 1rem; transform: none; }

    /* Hero */
    .hero { padding: 100px 1.5rem 3rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }

    /* Stats */
    .stats-section { padding: 60px 1.5rem; }
    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stat-number { font-size: 4rem; }
    .stat-number .suffix { font-size: 2.5rem; }

    /* About */
    .about-section { padding: 70px 1.5rem; }
    .about-card { padding: 2rem 1.5rem; }

    /* Credentials */
    .credentials-section { padding: 70px 1.5rem; }
    .credentials-grid { grid-template-columns: 1fr; }
    .credentials-header h2.animate-on-scroll { font-size: 2.2rem; }

    /* Founder */
    .founder-section { padding: 70px 1.5rem; }
    .founder-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .founder-image-wrapper { max-width: 240px; margin: 0 auto; }
    .founder-credentials-list { text-align: left; }
    .newsletter-cta-link { margin: 0 auto; }

    /* Analysis */
    .analysis-section { padding: 60px 1.5rem; }

    /* Final CTA */
    .final-cta { padding: 70px 1.5rem; }
    .final-cta h2 { font-size: 2.3rem; }

    /* Ticker */
    .ticker-item { width: 340px; }

    /* Page header */
    .page-header { padding: 120px 1.5rem 60px; }

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

    /* Footer */
    footer { padding: 2.5rem 1.5rem; }
}

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

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .stat-number { font-size: 3.2rem; }
    .stat-number .suffix { font-size: 2rem; }
}
