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

:root {
    /* Colors from Charles & Associates branding */
    --primary-teal: #4A9B8E;
    --primary-dark: #2C3E50;
    --primary-gray: #5A6C7D;
    --accent-blue: #2B5F8F;
    --dark-bg: #1A1A1A;
    --light-gray: #F5F7FA;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #5A6C7D;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1400px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

.section-padding {
    padding: var(--section-padding);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    font-weight: 400;
}

.section-subtitle-italic {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    font-weight: 300;
    font-style: italic;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    background: #3d8374;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 155, 142, 0.3);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-teal);
}

.btn-lg {
    padding: 20px 50px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/hero-bg.png') center/cover no-repeat fixed;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.03) 0px,
            transparent 1px,
            transparent 40px,
            rgba(255,255,255,0.03) 41px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 0px,
            transparent 1px,
            transparent 40px,
            rgba(255,255,255,0.03) 41px
        );
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 30px;
}

.logo-partnership {
    margin-bottom: 60px;
}

.logo-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.logo {
    height: 80px;
}

.logo svg {
    height: 100%;
    width: auto;
}

/* Real image logo container */
.logo-image {
    max-width: 420px;
    width: 70%;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: saturate(120%) blur(2px);
}

.logo-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: contrast(1.05) saturate(1.05);
}

@media (max-width: 640px) {
    .logo-image {
        max-width: 260px;
        width: 80%;
        padding: 8px 12px;
    }
}

.divider {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
}

.partnership-text {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: #A8E6D7;
    margin-bottom: 50px;
}

.hero-cta {
    margin-bottom: 40px;
}

.hero-badge {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.hero-badge p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--white);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Fade-in animations */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.fade-in-delay-4 {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   LIFECYCLE SECTION
   ========================================== */
.lifecycle {
    background: var(--white);
}

.lifecycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.lifecycle-card {
    padding: 40px 30px;
    background: var(--white);
    border: 2px solid #E5E9F0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.lifecycle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-teal);
}

.lifecycle-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.lifecycle-icon svg {
    width: 100%;
    height: 100%;
}

.lifecycle-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lifecycle-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================
   BENEFITS SECTION
   ========================================== */
.bg-light {
    background: var(--light-gray);
}

.benefits-banner {
    position: relative;
    margin: 30px auto 50px;
    width: 88%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.benefits-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
}

.benefits-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 40px 60px;
    max-width: 1100px;
    margin: 0 auto 80px;
    justify-content: center;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 15px 0 15px 40px;
    font-size: 1.05rem;
    color: var(--text-dark);
    position: relative;
    border-bottom: 1px solid #E5E9F0;
}

.benefits-column {
    display: flex;
    justify-content: center;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 1.3rem;
}

.feature-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.badge-item {
    text-align: center;
    padding: 30px 20px;
}

.badge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.badge-icon svg {
    width: 100%;
    height: 100%;
}

.badge-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================
   BUSINESS MODELS SECTION
   ========================================== */
.business-models {
    background: var(--white);
    position: relative;
    padding: var(--section-padding);
}

/* Who We Serve background image and overlay */
.business-models {
    background: url('assets/who-we-serve-bg.jpg') center/cover no-repeat fixed;
}

.business-models::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.65);
}

.business-models > .container {
    position: relative;
    z-index: 1;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.model-card {
    padding: 36px 28px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #E5E9F0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-teal), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.model-card:hover::before {
    transform: scaleX(1);
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-teal);
}

.model-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-teal);
    opacity: 0.2;
    margin-bottom: 10px;
}

.model-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.model-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
}

.model-card > p {
    font-size: 1.1rem;
    color: var(--primary-teal);
    font-weight: 600;
    margin-bottom: 20px;
    font-style: italic;
}

.model-card ul {
    list-style: none;
}

.model-card ul li {
    padding: 10px 0 10px 30px;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
}

.model-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: bold;
}

/* ==========================================
   PROOF SECTION
   ========================================== */
.bg-dark {
    background: linear-gradient(135deg, #1A1A1A 0%, #2C3E50 100%);
    color: var(--white);
}

.proof-quote {
    margin-bottom: 60px;
}

.quote-mark {
    font-size: 6rem;
    color: var(--primary-teal);
    line-height: 1;
    font-family: Georgia, serif;
    margin-bottom: 20px;
}

.proof-quote blockquote {
    font-size: 1.5rem;
    line-height: 1.8;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    max-width: 1000px;
    margin: 0 auto;
}

/* stats section removed */

.proof-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.highlight-icon {
    font-size: 1.5rem;
    color: var(--primary-teal);
    flex-shrink: 0;
}

.highlight-item p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ==========================================
   FINAL CTA SECTION
   ========================================== */
.final-cta {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-blue) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.95);
}

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

/* ==========================================
   MODAL / CONTACT FORM
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 40px 20px;
}

.modal:target {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    margin: auto;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    color: var(--text-light);
    text-decoration: none;
    line-height: 1;
    transition: color 0.3s;
}

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

.modal-header {
    padding: 40px 40px 20px;
    border-bottom: 2px solid var(--light-gray);
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.modal-header p {
    font-size: 1rem;
    color: var(--text-light);
}

.contact-form {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid #E5E9F0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-group-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

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

.footer-tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo-group {
        flex-direction: column;
        gap: 20px;
    }
    
    .divider {
        width: 60px;
        height: 2px;
    }
    
    .lifecycle-grid,
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .proof-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 0;
    }
    
    .modal-header,
    .contact-form {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

