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

:root {
    --primary: #2c5f2d;
    --primary-dark: #1e4620;
    --primary-light: #e8f0e8;
    --secondary: #1a3c34;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-800: #1e293b;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-left {
    order: 1;
}

.hero-right {
    order: 0;
}

.hero-left h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    line-height: 1.3;
    text-align: center;
}

.hero-left p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 24px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-600);
    justify-content: center;
}

.feature span {
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.primary-btn,
.secondary-btn,
.cta-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: inline-block;
    border: none;
}

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

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.secondary-btn:hover {
    background: var(--primary-light);
}

.mockup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mockup-top {
    background: #e2e8f0;
    padding: 10px 14px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.mockup-body img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== SECTION TITLES ========== */
.section-title {
    text-align: center;
    margin-bottom: 32px;
}

.section-title span {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
}

.section-title h2 {
    font-size: 24px;
    color: var(--gray-800);
    margin: 12px 0 12px;
    padding: 0 10px;
}

.section-title p {
    color: var(--gray-600);
    font-size: 14px;
    max-width: 90%;
    margin: 0 auto;
}

/* ========== WHY CANADA SECTION ========== */
.why-canada {
    padding: 40px 0;
    background: var(--gray-50);
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-card {
    background: white;
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.benefit-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.benefit-card p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.5;
}

/* ========== TEMPLATES SECTION ========== */
.templates-section {
    padding: 40px 0;
    background: white;
}

.templates-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.template-card {
    background: var(--gray-50);
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.template-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.template-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.template-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.template-card p {
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.5;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    padding: 40px 0;
    background: var(--primary-light);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step {
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.step p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.5;
    padding: 0 10px;
}

.center-btn-wrapper {
    text-align: center;
    margin-top: 32px;
}

.large-btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
}

/* ========== FAQ SECTION ========== */
.faq-section {
    padding: 40px 0;
    background: white;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-itemm {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.faq-questionn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    gap: 12px;
    background: white;
    transition: background 0.2s;
}

.faq-questionn:hover {
    background: var(--gray-50);
}

.faq-questionn h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    flex: 1;
    pointer-events: none;
}

.faq-questionn span {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    min-width: 28px;
    text-align: center;
    pointer-events: none;
}

.faq-answer {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: white;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 20px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

.faq-itemm.active .faq-answer {
    max-height: 400px;
}

.faq-itemm.active .faq-questionn span {
    transform: rotate(180deg);
}

/* ========== FINAL CTA ========== */
.final-cta {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
    color: white;
}

.final-cta h2 {
    font-size: 24px;
    margin-bottom: 12px;
    padding: 0 16px;
}

.cta-subtitle {
    font-size: 15px;
    margin-bottom: 10px;
    opacity: 0.95;
    padding: 0 16px;
}

.cta-guarantee {
    font-size: 13px;
    margin-bottom: 24px;
    opacity: 0.85;
    padding: 0 16px;
}

.cta-btn {
    background: white;
    color: var(--primary);
    width: 90%;
    max-width: 280px;
    padding: 14px 20px;
    font-weight: 700;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ========== TABLET STYLES (768px and up) ========== */
@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-left h1 {
        font-size: 36px;
    }

    .hero-left p {
        font-size: 18px;
    }

    .features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .feature {
        flex: 1;
        min-width: 200px;
        justify-content: flex-start;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .primary-btn,
    .secondary-btn {
        width: auto;
        min-width: 200px;
    }

    .benefits-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }

    .benefit-card {
        flex: 1;
        min-width: calc(50% - 12px);
    }

    .templates-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }

    .template-card {
        flex: 1;
        min-width: calc(50% - 12px);
    }

    .steps {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }

    .step {
        flex: 1;
        min-width: calc(33.33% - 16px);
    }

    .section-title h2 {
        font-size: 32px;
    }

    .final-cta h2 {
        font-size: 32px;
    }
}

/* ========== DESKTOP STYLES (1024px and up) ========== */
@media (min-width: 1024px) {
    .hero-wrapper {
        flex-direction: row;
        gap: 60px;
    }

    .hero-left {
        order: 0;
        flex: 1;
    }

    .hero-right {
        order: 0;
        flex: 1;
    }

    .hero-left h1 {
        font-size: 42px;
        text-align: left;
    }

    .hero-left p {
        text-align: left;
    }

    .features {
        justify-content: flex-start;
    }

    .feature {
        min-width: auto;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .benefit-card {
        min-width: calc(33.33% - 16px);
    }

    .template-card {
        min-width: calc(25% - 18px);
    }

    .step {
        min-width: auto;
    }

    .section-title h2 {
        font-size: 36px;
    }
}

/* ========== LARGE DESKTOP (1280px and up) ========== */
@media (min-width: 1280px) {
    .container {
        padding: 0 40px;
    }

    .hero-left h1 {
        font-size: 48px;
    }
}

/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */
@media (hover: none) and (pointer: coarse) {

    .primary-btn:hover,
    .secondary-btn:hover,
    .cta-btn:hover,
    .benefit-card:hover,
    .template-card:hover {
        transform: none;
    }

    .primary-btn:active,
    .secondary-btn:active,
    .cta-btn:active {
        transform: scale(0.97);
    }

    button,
    .faq-questionn {
        -webkit-tap-highlight-color: transparent;
    }
}