/* ==========================================================================
   FRANCHISE PAGE — Styles
   ========================================================================== */

/* ---------- Hero ---------- */
.franchise-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
}

.franchise-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.franchise-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 1;
}

.franchise-hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

.franchise-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 40px;
}

.franchise-hero-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: white;
}

.gradient-text-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #00d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.franchise-hero-tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Stats Grid ---------- */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.stat-card {
    flex: 0 1 calc(25% - 18px);
    min-width: 200px;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.stat-number {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1.4;
}

/* ---------- Reason / Support Cards ---------- */
.reason-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.reason-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.reason-card h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 16px;
    font-weight: 700;
}

.reason-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---------- Pillar Cards (Key Factors) ---------- */
.pillar-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.pillar-card h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 12px;
    font-weight: 700;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ---------- Owner Checklist ---------- */
.owner-checklist {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.owner-checklist li {
    padding-left: 32px;
    position: relative;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.owner-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f0f7ff;
    border: 2px solid var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230099ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* ---------- Training List ---------- */
.training-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.training-list li {
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.training-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ---------- Investment Card ---------- */
.investment-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.investment-range {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.investment-amount {
    display: block;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.investment-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

.investment-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.investment-item {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.investment-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-weight: 600;
}

.investment-value {
    display: block;
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3a8a;
}

/* ---------- Steps Grid ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-card h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 12px;
    font-weight: 700;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ---------- Franchise Form ---------- */
.franchise-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 48px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group .required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--dark);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.12);
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
}

.radio-label input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

/* ---------- Form + Image Grid ---------- */
.form-image-grid {
    align-items: start;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .franchise-hero-title {
        font-size: 2.5rem;
    }

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

    .reasons-grid,
    .steps-grid {
        grid-template-columns: 1fr !important;
    }

    .ideal-owner-grid,
    .form-image-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .investment-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .franchise-hero-title {
        font-size: 2rem;
    }

    .franchise-hero-content {
        padding: 80px 20px;
    }

    .franchise-hero-tagline {
        font-size: 1rem;
    }

    .stat-card {
        flex: 0 1 calc(50% - 8px);
        min-width: 140px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .investment-amount {
        font-size: 1.8rem;
    }

    .investment-value {
        font-size: 1.4rem;
    }

    .franchise-form {
        padding: 24px;
    }

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

    .investment-card {
        padding: 28px;
    }
}
