/*
  FILE: franchise.css
  ══════════════════════════════════════════════════
  PURPOSE:
  Layout and presentation styles for the franchise application page.

  RESPONSIBILITIES:
  - Establishes sizing and slow-zoom backdrops for the franchise hero block.
  - Formats numbers, titles, and layout containers for stats counters.
  - Controls grid sizing, border highlights, and hover transitions for step cards.
  - Implements glowing pulses and placement coordinates for expansion map pins.
  - Styles accordions, active class reveals, and transition timings.
  - Houses form layouts, input borders, dynamic focus labels, and mobile media queries.

  DEVELOPED BY : MIRRO
  CODED BY     : SIVASURYA
  ══════════════════════════════════════════════════
*/

.franchise-page {
    background: var(--navy-deep);
    color: var(--cream);
    overflow-x: hidden;
}

/* ── Hero ────────────────────────────────────────── */
.franchise-hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.franchise-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.franchise-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.8);
    transform: scale(1.05);
    animation: slowZoom 20s ease-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.franchise-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--navy-deep) 100%),
                linear-gradient(to bottom, rgba(4,16,31,0.2), var(--navy-deep));
}

.franchise-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.franchise-hero__actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* ── Stats ───────────────────────────────────────── */
.franchise-stats {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 80px;
    background: rgba(4, 16, 31, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 36px 80px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    border-top: 1px solid rgba(184, 115, 51, 0.4);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.4);
    z-index: 3;
    border-radius: var(--r-md) var(--r-md) 0 0;
}

.franchise-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.franchise-stats__divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(200, 164, 107, 0.3), transparent);
}

.franchise-stats__val {
    font-family: var(--font-display);
    font-size: 3.2rem;
    color: var(--copper);
    text-shadow: 0 0 20px rgba(184, 115, 51, 0.3);
    line-height: 1;
}

.stats-val-group {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

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

.step-card {
    background: white;
    padding: 48px;
    border: 1px solid rgba(4, 16, 31, 0.05);
    border-radius: var(--r-md);
    transition: transform 0.6s var(--ease-rr), box-shadow 0.6s var(--ease-rr), border-color 0.6s var(--ease-rr);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(4, 16, 31, 0.03);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.step-card:hover {
    transform: translateY(-12px);
    border-color: rgba(184, 115, 51, 0.3);
    box-shadow: 0 24px 60px rgba(4, 16, 31, 0.08);
}

.step-card:hover::before {
    opacity: 1;
}

.step-card__icon {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--copper);
    margin-bottom: 24px;
    transition: color 0.6s ease;
}

.step-card:hover .step-card__icon {
    color: var(--copper);
    text-shadow: 0 0 20px rgba(184, 115, 51, 0.4);
}

/* ── Benefits Row ────────────────────────────────── */
.benefit-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.benefit-content {
    flex: 1;
}

.benefit-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-list li {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 16px;
}

.copper-dot {
    width: 6px;
    height: 6px;
    background: var(--copper);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--copper);
}

.benefit-visual {
    flex: 1;
    position: relative;
}

.benefit-img {
    width: 100%;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-dark);
}

/* ── Investment ──────────────────────────────────── */
.inv-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.inv-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid var(--copper);
    border-radius: var(--r-sm);
    box-shadow: inset 0 20px 40px rgba(0,0,0,0.2);
}

/* ── Success Carousel ────────────────────────────── */
.success-carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.success-card {
    background: white;
    padding: 48px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
}

.success-quote {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--navy);
    line-height: 1.6;
    margin-bottom: 32px;
}

.success-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.success-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.success-author .name {
    display: block;
    font-family: var(--font-ui);
    font-weight: 500;
    color: var(--navy-deep);
}

.success-author .location {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Requirements & FAQ ──────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.req-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.req-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--text-secondary);
}

.req-list svg {
    width: 24px;
    height: 24px;
    color: var(--copper);
    flex-shrink: 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: var(--r-sm);
    box-shadow: 0 4px 20px rgba(4,16,31,0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: none;
    border: none;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    color: var(--copper);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.4s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s var(--ease-luxury);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 400px;
    opacity: 1;
}

/* ── Form ────────────────────────────────────────── */
.premium-form {
    max-width: 800px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.input-group {
    position: relative;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 0 8px;
    color: var(--cream);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    transition: border-color 0.4s;
}

.input-group input:focus, 
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--copper);
}

.input-group label {
    position: absolute;
    left: 0;
    top: 16px;
    pointer-events: none;
    transition: all 0.4s var(--ease-luxury);
    opacity: 0.5;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label,
.input-group select:focus ~ label,
.input-group select:valid ~ label {
    top: -16px;
    font-size: 0.65rem;
    color: var(--copper);
    opacity: 1;
}

/* ── Map ─────────────────────────────────────────── */
.map-visual {
    position: relative;
    margin-top: 60px;
    height: 500px;
}

.map-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(184, 115, 51, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--copper);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--copper), 0 0 40px var(--copper);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(184, 115, 51, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(184, 115, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(184, 115, 51, 0); }
}

.map-pin span {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* ── Final CTA ───────────────────────────────────── */
.final-cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.final-cta__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
    z-index: 0;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ── Mobile Responsiveness ──────────────────────── */
@media (max-width: 992px) {
    .franchise-hero {
        flex-direction: column;
        justify-content: center;
        height: auto;
        min-height: 100vh;
    }
    .franchise-hero__content {
        padding-top: 140px;
        padding-bottom: 60px;
        width: 100%;
    }
    .franchise-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        gap: 32px;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 40px;
    }
    .franchise-stats__divider {
        width: 60px;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(200, 164, 107, 0.3), transparent);
    }
    .steps-grid, .inv-dashboard, .benefit-row, .success-carousel, .info-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 40px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .map-visual {
        height: 300px;
    }
    .franchise-hero__actions, .final-cta__actions {
        flex-direction: column;
        align-items: center;
    }
    .franchise-hero__actions .btn, .final-cta__actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ── Brochure Section & Card ────────────────────────── */
.brochure-download-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.brochure-card {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(4, 16, 31, 0.15);
    transition: transform 0.6s var(--ease-luxury), box-shadow 0.6s var(--ease-luxury);
    aspect-ratio: 1/1.4;
    background: var(--navy);
}

.brochure-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-luxury);
}

.brochure-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 43, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease, background 0.4s ease;
    backdrop-filter: blur(0px);
}

.brochure-card__btn {
    background: var(--cream);
    color: var(--navy);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--r-full);
    box-shadow: var(--shadow-dark);
    transform: translateY(15px);
    transition: transform 0.6s var(--ease-luxury), background 0.3s;
}

.brochure-download-link:hover .brochure-card {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 65px rgba(184, 115, 51, 0.25);
}

.brochure-download-link:hover .brochure-card__img {
    transform: scale(1.05);
}

.brochure-download-link:hover .brochure-card__overlay {
    opacity: 1;
    background: rgba(7, 20, 43, 0.6);
    backdrop-filter: blur(4px);
}

.brochure-download-link:hover .brochure-card__btn {
    transform: translateY(0);
}

.brochure-download-link:hover .brochure-card__btn:hover {
    background: var(--copper);
    color: white;
}

/* Map controls overlay (Google Maps & Reset) styles styled consistently */
.map-controls-overlay {
    position: absolute;
    bottom: 24px;
    right: 24px;
    left: auto;
    z-index: 1002;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.map-controls-overlay > * {
    pointer-events: auto;
}

.map-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 30%, #b38728 70%, #aa771c 100%);
    border: none;
    border-radius: 999px;
    color: #1d100a !important; /* Force dark text color */
    font-family: var(--font-ui);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
    box-shadow: 
      0 10px 30px rgba(184, 115, 51, 0.25),
      0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.map-reset-btn:hover {
    color: #1d100a !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
      0 14px 35px rgba(184, 115, 51, 0.4),
      0 4px 15px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
}

.map-reset-btn:active {
    transform: translateY(0) scale(0.97);
}

.map-reset-btn svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

