/* =============================================================================
   FRANCHISE PAGE — page-franchise.php styles
   Loaded conditionally (franchise page only) via functions.php
   Sections: Hero | Stats | Pillars | CTA Form | Location Teaser
   ============================================================================= */

/* ── CSS Variables ── */
:root {
    --ap:      #f98c1f;        /* Brand orange */
    --dark:    #0f172a;        /* Dark text */
    --slate-500: #64748b;      /* Medium grey */
    --slate-600: #475569;      /* Darker grey */
    --slate-200: #e2e8f0;      /* Light grey */
    --light-bg: #f8f7f5;       /* Off-white background */
    --dark-bg: #120d08;        /* Very dark background */
    --white:   #ffffff;
    --light-gray: #f1f5f9;
    --radius:  0.75rem;        /* Border radius */
}

/* ── FRANCHISE HERO SECTION ── */
.ap-franchise-hero {
    position: relative;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ap-franchise-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ap-franchise-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3);
    transform-origin: center center;
}

.ap-franchise-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.75), rgba(0,0,0,0.5), rgba(0,0,0,0));
    z-index: 1;
}

.ap-franchise-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.ap-franchise-hero-inner {
    max-width: 640px;
    color: white;
}

.ap-franchise-hero-tag {
    display: inline-block;
    background: var(--ap);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.ap-franchise-hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.ap-franchise-hero-title span {
    display: block;
}

.ap-franchise-hero-title-accent {
    color: var(--ap);
    font-style: italic;
}

.ap-franchise-hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.ap-franchise-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ap-franchise-hero-btn-primary {
    display: inline-block;
    background: var(--ap);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-transform: capitalize;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 20px 25px rgba(249, 140, 31, 0.2);
}

.ap-franchise-hero-btn-primary:hover {
    background: white;
    color: var(--ap);
    transform: translateY(-2px);
    box-shadow: 0 25px 35px rgba(249, 140, 31, 0.3);
}

.ap-franchise-hero-btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-transform: capitalize;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ap-franchise-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ── STATS SECTION ── */
.ap-franchise-stats {
    background: white;
    padding: 4rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.ap-franchise-stats-container {
    max-width: 1280px;
    margin: 0 auto;
}

.ap-franchise-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .ap-franchise-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ap-franchise-stat-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.ap-franchise-stat-number {
    color: var(--ap);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.ap-franchise-stat-label {
    color: var(--slate-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.ap-franchise-stat-growth {
    color: #22c55e;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ap-franchise-stat-card:hover .ap-franchise-stat-number {
    transform: scale(1.1);
}

/* ── PILLARS SECTION ── */
.ap-franchise-pillars {
    background: var(--light-bg);
    padding: 6rem 1.5rem;
}

.ap-franchise-pillars-container {
    max-width: 1280px;
    margin: 0 auto;
}

.ap-franchise-pillars-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 5rem;
}

.ap-franchise-pillars-title {
    font-size: clamp(1.875rem, 5vw, 2.25rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.ap-franchise-pillars-desc {
    color: var(--slate-600);
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.6;
}

.ap-franchise-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ap-franchise-pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ap-franchise-pillar-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ap-franchise-pillar-card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.ap-franchise-pillar-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(249, 140, 31, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-size: 1.875rem;
}

.ap-franchise-pillar-card:hover .ap-franchise-pillar-icon {
    background: var(--ap);
    color: white;
}

.ap-franchise-pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.ap-franchise-pillar-desc {
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
}

/* ── CTA FORM SECTION ── */
.ap-franchise-cta {
    background: #1e293b;
    color: white;
    padding: 6rem 1.5rem;
    overflow: hidden;
    position: relative;
}

.ap-franchise-cta-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    overflow: hidden;
}

.ap-franchise-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-franchise-cta-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.ap-franchise-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .ap-franchise-cta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ap-franchise-cta-content h2 {
    font-size: clamp(1.875rem, 5vw, 2.25rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.ap-franchise-cta-content h2 .ap-franchise-cta-accent {
    color: var(--ap);
    font-style: italic;
}

.ap-franchise-cta-desc {
    color: #cbd5e1;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 300;
}

.ap-franchise-cta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ap-franchise-cta-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ap-franchise-cta-icon {
    color: var(--ap);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.ap-franchise-cta-item h4 {
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.ap-franchise-cta-item p {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
}

.ap-franchise-form-box {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    color: #1e293b;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .ap-franchise-form-box {
        padding: 3rem;
    }
}

.ap-franchise-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ap-franchise-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ap-franchise-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ap-franchise-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ap-franchise-form-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    margin-left: 0.25rem;
}

.ap-franchise-form-input,
.ap-franchise-form-textarea,
.ap-franchise-form-select {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    color: var(--dark);
}

.ap-franchise-form-input:focus,
.ap-franchise-form-textarea:focus,
.ap-franchise-form-select:focus {
    outline: none;
    border-color: var(--ap);
    box-shadow: 0 0 0 3px rgba(249, 140, 31, 0.1);
}

.ap-franchise-form-textarea {
    resize: vertical;
    min-height: 5rem;
}

.ap-franchise-form-submit {
    width: 100%;
    background: var(--ap);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 900;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px rgba(249, 140, 31, 0.2);
}

.ap-franchise-form-submit:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(249, 140, 31, 0.3);
}

.ap-franchise-form-disclaimer {
    font-size: 0.625rem;
    text-align: center;
    color: #94a3b8;
    margin-top: 1rem;
    line-height: 1.4;
}

/* ── LOCATION TEASER SECTION ── */
.ap-franchise-location {
    background: white;
    padding: 6rem 1.5rem;
}

.ap-franchise-location-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.ap-franchise-location-title {
    font-size: clamp(1.875rem, 5vw, 2.25rem);
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    color: var(--dark);
}

.ap-franchise-location-title .ap-franchise-location-accent {
    color: var(--ap);
}

.ap-franchise-location-map {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 400px;
    border: 1px solid #e2e8f0;
}

.ap-franchise-location-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-franchise-location-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.ap-franchise-location-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.ap-franchise-location-card-icon {
    color: var(--ap);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ap-franchise-location-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.ap-franchise-location-card p {
    color: var(--slate-600);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.ap-franchise-location-card a {
    color: var(--ap);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ap-franchise-location-card a:hover {
    text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .ap-franchise-cta-bg {
        display: none;
    }

    .ap-franchise-hero-buttons {
        flex-direction: column;
    }

    .ap-franchise-hero-btn-primary,
    .ap-franchise-hero-btn-secondary {
        width: 100%;
        text-align: center;
    }
}
