/* ===================================
   Denison Forum Capital Campaign
   CSS Stylesheet
   =================================== */

/* --- CSS Variables (Brand Colors) --- */
:root {
    /* Primary Colors */
    --orange: #F47E50;
    --charcoal: #4E4E4E;
    --light-gray: #E5E5E5;
    --white: #FFFFFF;
    
    /* Supporting Colors */
    --gunmetal: #18414F;
    --mustard: #A87B37;
    --warm-red: #EB5557;
    --slate: #74898D;
    
    /* Typography */
    --font-primary: 'Roboto', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 15px;
}

.large-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
}

/* --- Navigation --- */
.main-nav {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

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

.btn-primary-nav {
    background-color: var(--orange);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-primary-nav:hover {
    background-color: #e06a3c;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--charcoal);
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--gunmetal) 0%, var(--charcoal) 100%);
    filter: brightness(0.9);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(244,126,80,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 50px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===================================
   Parallax Hero Enhancements
   =================================== */

/* Layer 1: Animated Gradient Background */
.parallax-hero {
    position: relative;
    overflow: hidden;
}

.layer-background {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, var(--gunmetal) 0%, var(--charcoal) 100%);
    animation: subtleShift 20s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes subtleShift {
    0% {
        transform: translate(0, 0);
        filter: hue-rotate(0deg) brightness(0.9);
    }
    100% {
        transform: translate(-3%, 3%);
        filter: hue-rotate(8deg) brightness(0.95);
    }
}

/* Layer 2: Geometric Pattern Overlay */
.layer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, transparent 48%, rgba(244, 126, 80, 0.03) 49%, rgba(244, 126, 80, 0.03) 51%, transparent 52%),
        linear-gradient(150deg, transparent 48%, rgba(244, 126, 80, 0.03) 49%, rgba(244, 126, 80, 0.03) 51%, transparent 52%);
    background-size: 100px 100px;
    animation: patternMove 60s linear infinite;
    opacity: 0.4;
    z-index: 2;
    pointer-events: none;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

/* Layer 3: Floating Orange Particles */
.layer-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(244, 126, 80, 0.5);
    animation: floatUp 15s infinite ease-in-out;
    opacity: 0;
}

/* Position each particle */
.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 75%;
    animation-delay: 3s;
    animation-duration: 22s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 30%;
    animation-delay: 6s;
    animation-duration: 20s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 65%;
    animation-delay: 9s;
    animation-duration: 25s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 2s;
    animation-duration: 19s;
}

.particle:nth-child(6) {
    top: 70%;
    left: 15%;
    animation-delay: 5s;
    animation-duration: 23s;
}

.particle:nth-child(7) {
    top: 50%;
    left: 90%;
    animation-delay: 7s;
    animation-duration: 21s;
}

.particle:nth-child(8) {
    top: 15%;
    left: 60%;
    animation-delay: 4s;
    animation-duration: 17s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-150px) translateX(30px);
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-300px) translateX(60px);
        opacity: 0;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .layer-background,
    .layer-pattern,
    .particle,
    .progress-fill {
        animation: none !important;
    }

    .layer-background,
    .layer-pattern {
        transform: none;
    }

    .progress-fill,
    .timeline-card-hidden,
    .timeline-amount {
        transition: none !important;
    }

    .timeline-card-hidden {
        opacity: 1;
        transform: none;
    }

    .timeline-item-compact:hover {
        transform: none !important;
    }
}

/* Mobile: Fewer particles for performance */
@media (max-width: 768px) {
    .particle:nth-child(4),
    .particle:nth-child(5),
    .particle:nth-child(6),
    .particle:nth-child(7),
    .particle:nth-child(8) {
        display: none;
    }
}

/* --- Buttons --- */
.btn-primary-large,
.btn-secondary-large {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary-large {
    background-color: var(--orange);
    color: var(--white);
}

.btn-primary-large:hover {
    background-color: #e06a3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 126, 80, 0.4);
}

.btn-secondary-large {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary-large:hover {
    background-color: var(--white);
    color: var(--charcoal);
}

/* --- Campaign Progress --- */
.campaign-progress {
    background-color: var(--light-gray);
    padding: 60px 0;
}

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

.progress-content h2 {
    margin-bottom: 30px;
    color: var(--charcoal);
}

.progress-bar-wrapper {
    margin: 30px 0;
}

.progress-bar {
    height: 60px;
    background-color: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange) 0%, var(--warm-red) 100%);
    filter: brightness(0.9);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    animation: progressPulse 3s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        filter: brightness(0.9);
        box-shadow: 0 0 0 rgba(244, 126, 80, 0);
    }
    50% {
        filter: brightness(0.95);
        box-shadow: 0 0 20px rgba(244, 126, 80, 0.3);
    }
}

.progress-label {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-weight: 500;
    color: var(--charcoal);
}

.progress-description {
    margin-top: 25px;
    font-size: 1.1rem;
    color: var(--charcoal);
}

/* Milestone Markers */
.milestone-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.milestone-marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.milestone-marker:hover {
    opacity: 1;
}

.milestone-pin {
    width: 12px;
    height: 12px;
    background-color: var(--white);
    border: 3px solid var(--orange);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
}

.milestone-label {
    position: absolute;
    top: 100%;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    white-space: nowrap;
    background: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .milestone-marker {
        display: none;
    }

    .milestone-marker:last-child {
        display: flex;
    }

    .milestone-label {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--gunmetal) 0%, var(--charcoal) 100%);
    filter: brightness(0.9);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.header-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.8;
    opacity: 0.95;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 50px;
}

.section-header.center {
    text-align: center;
}

.section-label {
    display: block;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* --- Problem Section --- */
.problem-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.problem-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.problem-text p {
    margin-bottom: 20px;
}

.problem-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stat-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--orange);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: manual;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 32px rgba(244, 126, 80, 0.12);
    background-color: #fff;
    border-left-width: 8px;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .stat-card:hover {
        transform: none;
        box-shadow: none;
        background-color: var(--light-gray);
        border-left-width: 5px;
    }
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.stat-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--charcoal);
}

/* --- Solution Section --- */
.solution-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--gunmetal) 0%, var(--slate) 100%);
    filter: brightness(0.9);
    color: var(--white);
}

.solution-content {
    max-width: 1100px;
    margin: 0 auto;
}

.solution-main-title {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 700;
}

.solution-intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 60px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pillars-heading {
    text-align: center;
    font-size: 2rem;
    margin: 60px 0 40px;
    font-weight: 600;
    color: var(--white);
}

.pillars-titles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 15px;
    text-align: center;
}

.pillar-title-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.pillar-title-item h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    padding: 0 10px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.solution-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 0;
    margin-bottom: 50px;
}

.pillar {
    text-align: center;
    padding: 35px 25px;
    background-color: rgba(255, 255, 255, 0.18); /* Increased opacity for browsers without backdrop-filter */
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: manual;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* For browsers that support backdrop-filter, use lower opacity */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .pillar {
        background-color: rgba(255, 255, 255, 0.12);
    }
}

.pillar:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pillar p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.pillar h3 {
    color: var(--orange);
    font-size: 1.5rem;
    margin-bottom: 15px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.solution-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-solution-cta {
    display: inline-block;
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background-color: transparent;
    border: 2px solid var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-solution-cta:hover {
    background-color: var(--white);
    color: var(--gunmetal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* --- Timeline Section --- */
.timeline-section {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

/* Timeline Graphic */
.timeline-graphic {
    max-width: 600px;
    margin: 50px auto 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--gunmetal) 0%, var(--slate) 100%);
    filter: brightness(0.9);
    border-radius: 12px;
}

.timeline-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.arrow-segment {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.arrow-segment.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.arrow-segment:nth-child(2) {
    transition-delay: 0.3s;
}

.arrow-segment:nth-child(3) {
    transition-delay: 0.6s;
}

.arrow-shape {
    width: 100%;
    height: 80px;
    background-color: #C9B38A;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%, 30px 50%);
    position: relative;
}

.arrow-segment:first-child .arrow-shape {
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
}

.arrow-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 220px;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--orange) 0%, var(--warm-red) 100%);
    filter: brightness(0.9);
    border-radius: 3px;
}

/* Hide orange line for partner levels to prevent text overlap */
.partner-levels .timeline-item::before {
    display: none;
}

.timeline-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: manual;
    padding: 0 10px;
}

.year-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

.year-theme {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.timeline-content h3 {
    color: var(--charcoal);
    margin-bottom: 15px;
}

.timeline-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
    margin: 20px 0;
    display: inline-block;
    transition: transform 0.1s ease;
}

.timeline-amount.amount-revealed {
    color: var(--orange);
}

/* Compact Timeline Items */
.timeline-item-compact {
    background-color: var(--white);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    overflow: hidden;
    border-left: 6px solid var(--orange);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    perspective: 1000px;
}

/* 3D Tilt Hover Effect (Desktop Only) */
@media (hover: hover) and (min-width: 769px) {
    .timeline-item-compact:hover {
        transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
        box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    }
}

/* Mobile/Touch: Simple lift */
@media (hover: none) {
    .timeline-item-compact:active {
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    }
}

/* Progressive Reveal Animation */
.timeline-card-hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-card-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-item-compact:nth-child(2) {
    border-left-color: #C9B38A;
}

.timeline-item-compact:nth-child(3) {
    border-left-color: var(--warm-red);
}

.timeline-header {
    background: linear-gradient(135deg, var(--gunmetal) 0%, var(--slate) 100%);
    filter: brightness(0.9);
    padding: 25px 30px;
    margin-bottom: 0;
    color: var(--white);
}

.timeline-year-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

.timeline-theme {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-left: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-details {
    padding: 30px;
    display: grid;
    gap: 20px;
}

.timeline-detail-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.timeline-label {
    font-weight: 700;
    color: var(--charcoal);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 110px;
}

.timeline-value {
    color: var(--orange);
    font-weight: 700;
    font-size: 1.3rem;
    margin-right: 0;
}

.timeline-theme-value {
    color: var(--charcoal);
    font-weight: 600;
    font-size: 1.1rem;
}

.timeline-description {
    color: var(--charcoal);
    display: block;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-top: 0;
}

.timeline-highlights {
    list-style: none;
    padding-left: 0;
}

.timeline-highlights li {
    padding-left: 30px;
    margin-bottom: 10px;
    position: relative;
}

.timeline-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid var(--orange);
    position: relative;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: manual;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Ensure text is visible on testimonial cards regardless of parent section */
.testimonial-card p {
    color: var(--charcoal);
}

/* Preserve orange color for author attributions even with inline styles */
.testimonial-card p[style*="color: var(--orange)"],
.testimonial-card p[style*="orange"] {
    color: var(--orange) !important;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(244, 126, 80, 0.15);
    border-left-width: 8px;
}

@media (hover: none) {
    .testimonial-card:hover {
        transform: none;
        box-shadow: none;
        background-color: var(--light-gray);
        border-left-width: 5px;
    }
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.testimonial-card cite {
    display: block;
    font-weight: 700;
    color: var(--orange);
    font-style: normal;
    margin-top: 20px;
}

/* --- Investment Options Grid --- */
.investment-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.investment-card {
    background-color: var(--light-gray);
    color: var(--charcoal);
    padding: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.investment-card h3 {
    color: var(--orange);
    font-size: 1.8rem;
    margin: 0;
}

.investment-card p {
    color: var(--charcoal);
    margin: 0;
    flex-grow: 1;
}

.investment-card .btn-primary-large {
    align-self: center;
    margin-top: 10px;
}

/* Mobile: Horizontal Scrolling Cards */
@media (max-width: 768px) {
    .investment-options-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 0 20px 20px 20px;
        margin-left: -20px;
        margin-right: -20px;
        scrollbar-width: none; /* Firefox */
    }

    .investment-options-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .investment-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 280px;
    }
}

/* --- Partnership CTA --- */
.partnership-cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--orange) 0%, var(--warm-red) 100%);
    filter: brightness(0.9);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.cta-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.cta-emphasis {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0 !important;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.cta-buttons .btn-primary-large {
    background-color: var(--white);
    color: var(--orange);
}

.cta-buttons .btn-primary-large:hover {
    background-color: var(--light-gray);
}

.cta-buttons .btn-secondary-large {
    border-color: var(--white);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--charcoal);
    color: var(--light-gray);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo p {
    margin-top: 15px;
    font-style: italic;
    color: var(--light-gray);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--orange);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(229, 229, 229, 0.2);
    padding-top: 30px;
    text-align: center;
    color: var(--light-gray);
}

/* --- Responsive Design --- */

/* Large tablets and small laptops (1100px and below) */
@media (max-width: 1100px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.95rem;
        letter-spacing: 0.3px;
    }

    .btn-primary-nav {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .logo img {
        height: 36px;
    }
}

/* Tablets (968px and below) */
@media (max-width: 968px) {
    /* Further reduce navigation spacing */
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .btn-primary-nav {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .logo img {
        height: 34px;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .problem-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .solution-pillars {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-item::before {
        display: none;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Small tablets (850px and below) */
@media (max-width: 850px) {
    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.85rem;
        letter-spacing: 0.2px;
    }

    .btn-primary-nav {
        padding: 8px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .logo img {
        height: 32px;
    }

    .main-nav {
        padding: 12px 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .header-subtitle {
        font-size: 1.1rem;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        text-align: center;
        min-height: 50px; /* Ensure minimum touch target */
        padding: 16px 32px;
        font-size: 1.05rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }

    .solution-main-title {
        font-size: 2rem;
    }

    .solution-intro-text {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .pillars-heading {
        font-size: 1.6rem;
        margin: 40px 0 30px;
    }

    .pillars-titles {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }

    .pillar-title-item {
        min-height: 40px;
    }

    .pillar-title-item h4 {
        font-size: 1.4rem;
    }

    .solution-pillars {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
        margin-top: 10px;
    }

    .pillar {
        padding: 30px 20px;
    }

    .btn-solution-cta {
        padding: 16px 35px;
        font-size: 1rem;
    }

    .timeline-graphic {
        max-width: 100%;
        padding: 30px 15px;
    }

    .arrow-shape {
        height: 60px;
    }

    .arrow-number {
        font-size: 1.5rem;
    }

    .timeline-item-compact {
        padding: 0;
    }

    .timeline-header {
        padding: 20px;
    }

    .timeline-year-label {
        font-size: 1.2rem;
    }

    .timeline-theme {
        font-size: 0.9rem;
    }

    .timeline-details {
        padding: 20px;
        gap: 15px;
    }

    .timeline-detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .timeline-label {
        font-size: 0.85rem;
    }

    .timeline-value {
        font-size: 1.1rem;
    }
}

/* --- Mobile Touch Enhancements --- */
/* Better tap highlight color for iOS/Android */
* {
    -webkit-tap-highlight-color: rgba(244, 126, 80, 0.2);
    tap-highlight-color: rgba(244, 126, 80, 0.2);
}

/* Ensure all interactive elements have minimum touch targets */
@media (max-width: 768px) {
    a, button, .btn-primary-large, .btn-secondary-large,
    .mobile-menu-toggle, .nav-links a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for mobile cards */
    .stat-card, .testimonial-card, .pillar {
        margin-bottom: 20px;
    }

    /* Improve touch feedback */
    .btn-primary-large:active,
    .btn-secondary-large:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    /* Better mobile navigation spacing */
    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding: 15px 20px;
    }
}

/* --- Smooth Scroll Enhancements --- */
html {
    scroll-behavior: smooth;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Smooth scroll offset for fixed headers */
:target {
    scroll-margin-top: 100px;
}

/* Better focus indicators for keyboard navigation */
a:focus-visible, button:focus-visible,
.btn-primary-large:focus-visible,
.btn-secondary-large:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
    border-radius: 4px;
}


/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}
