/* ----- ROOT THEME (exactly as provided) ----- */
:root {
    --color-primary: #1E3557;
    --color-secondary: #2F8C8F;
    --color-accent: #D4A64A;
    --color-bg-light: #F5F7F8;
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #14243C;
    --color-text-primary: #2B2B2B;
    --color-text-secondary: #6B7C86;
    --color-text-light: #FFFFFF;
    --color-border: #E0E6ED;
    --color-shadow: rgba(30, 53, 87, 0.1);
    --color-success: #4CAF50;
    --color-warning: #F4B740;
    --color-error: #E57373;
    --color-info: #3A86C6;
    --gradient-primary: linear-gradient(135deg, #2F8C8F, #1E3557);
    --gradient-accent: linear-gradient(135deg, #D4A64A, #F1C27D);
    --btn-primary-bg: var(--color-primary);
    --btn-primary-text: #FFFFFF;
    --btn-primary-hover: #162944;
    --btn-secondary-bg: var(--color-secondary);
    --btn-secondary-text: #FFFFFF;
    --btn-secondary-hover: #256F72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ----- TYPOGRAPHY (Poppins headings) ----- */
h1,
h2,
h3,
h4,
.heading-font {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: var(--color-secondary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 1.2rem;
    border-radius: 40px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* ----- BUTTONS (using theme vars) ----- */
.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-weight: 600;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(30, 53, 87, 0.20);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(30, 53, 87, 0.30);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    font-weight: 600;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 60px;
    transition: all 0.25s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(47, 140, 143, 0.25);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: 60px;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* ----- STATS BAR (with counter animation) ----- */
.stats-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 3.5rem 0;
    margin: 1rem 0 2rem 0;
    box-shadow: 0 8px 24px rgba(30, 53, 87, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 500;
}

/* ----- CARDS (white, rounded, shadow) ----- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.card {
    background: var(--color-bg-white);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 8px 24px var(--color-shadow), 0 2px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--color-border);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 35px -8px rgba(30, 53, 87, 0.15);
    border-color: var(--color-secondary);
}

.card:nth-child(2) {
    animation-delay: 0.08s;
}

.card:nth-child(3) {
    animation-delay: 0.16s;
}

.card:nth-child(4) {
    animation-delay: 0.24s;
}

.card:nth-child(5) {
    animation-delay: 0.32s;
}

.card:nth-child(6) {
    animation-delay: 0.40s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-icon {
    font-size: 2.4rem;
    color: var(--color-secondary);
    background: rgba(47, 140, 143, 0.08);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 1.2rem;
    transition: 0.2s;
}

.card:hover .card-icon {
    background: rgba(47, 140, 143, 0.15);
    color: var(--color-primary);
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.card ul {
    list-style: none;
    margin-top: 0.5rem;
}

.card li {
    padding: 0.3rem 0 0.3rem 1.8rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

.card li i {
    position: absolute;
    left: 0;
    top: 0.45rem;
    color: var(--color-accent);
    font-size: 1rem;
    width: 1.4rem;
    text-align: center;
}

.card li strong {
    color: var(--color-primary);
}

/* ----- SECTION PADDING ----- */
.section {
    padding: 4.5rem 0;
}

/* ----- TESTIMONIALS (theme colors) ----- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--color-bg-white);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 4px 12px var(--color-shadow);
    border-left: 6px solid var(--color-accent);
    transition: 0.2s;
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.testimonial-card .attribution {
    font-weight: 600;
    color: var(--color-primary);
}

.testimonial-card .role {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* ----- FRANCHISE BANNER (accent) ----- */
.franchise-banner {
    background: var(--gradient-primary);
    border-radius: 30px;
    padding: 3rem 2.5rem;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1.5rem;
    box-shadow: 0 12px 30px rgba(30, 53, 87, 0.25);
}

.franchise-banner h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.franchise-banner p {
    opacity: 0.9;
    max-width: 500px;
}

.franchise-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-top: 1rem;
}

.franchise-features span i {
    margin-right: 0.5rem;
    color: var(--color-accent);
    background: white;
    padding: 4px 6px;
    border-radius: 40px;
    font-size: 0.8rem;
}

/* ----- FOOTER (dark) ----- */
.footer {
    background: var(--color-bg-dark);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer a {
    color: #94b8d4;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.2rem;
    }

    .franchise-banner {
        flex-direction: column;
        text-align: center;
    }

    .franchise-features {
        justify-content: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 1.2rem;
    }
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.gap-2 {
    gap: 2rem;
}