/* /assets/css/home.css */

/* --- ULTRA-PREMIUM FINTECH HERO SECTION (FIXED SPACING) --- */
.hero-section {
    position: relative;
    /* Strict pixel padding prevents the massive vertical stretching in Desktop Mode */
    padding: 120px 5%; 
    background-color: var(--navy-blue);
    background-image: linear-gradient(100deg, rgba(19, 27, 61, 0.98) 0%, rgba(19, 27, 61, 0.85) 50%, rgba(19, 27, 61, 0.1) 100%), url('../images/hero-bg.jpg');
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    /* Removed min-height completely so the container wraps tightly around content */
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); 
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
}

.hero-text {
    text-align: left;
    width: 100%;
}

/* Glassmorphism Badges & Pills */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 50px;
    color: #F9FAFB;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 600;
    margin-bottom: clamp(15px, 3vw, 30px);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.hero-badge i { color: #10B981; font-size: 1.1rem; }

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 4rem); 
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: clamp(15px, 3vw, 25px);
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(90deg, #93C5FD, var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-text p.lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #E5E7EB;
    margin-bottom: clamp(20px, 4vw, 35px);
    line-height: 1.7;
    max-width: 95%;
    font-weight: 300;
}

.hero-feature-pills {
    display: flex;
    gap: 12px;
    margin-bottom: clamp(25px, 5vw, 45px);
    flex-wrap: wrap; 
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    font-weight: 500;
    color: #F3F4F6;
    white-space: nowrap;
}

.feature-pill i { color: #93C5FD; }

/* Refined Premium Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: clamp(30px, 6vw, 60px);
    flex-wrap: wrap; 
}

.btn-white {
    background-color: var(--white);
    color: var(--navy-blue);
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 36px);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--white);
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 36px);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Floating Glass Cards for Stats */
.hero-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(10px, 2vw, 20px);
    padding-top: 15px;
}

.stat-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: clamp(15px, 2vw, 20px);
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 100%);
}

.stat-item h4 {
    color: var(--white);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0 0 5px 0;
    font-weight: 800;
}

.stat-item p {
    color: #D1D5DB;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
    .hero-section {
        /* Override desktop padding with tight, predictable mobile padding */
        padding: 80px 5%;
        background-image: linear-gradient(to bottom, rgba(19, 27, 61, 0.98) 25%, rgba(19, 27, 61, 0.7) 100%), url('../images/hero-bg.jpg');
        background-position: top center;
    }
    
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-text p.lead { text-align: center; max-width: 100%; }
    .hero-feature-pills { justify-content: center; }
    .hero-buttons { justify-content: center; width: 100%; }
    .stat-item { text-align: center; }
}

@media (max-width: 580px) {
    .hero-section {
        /* Even tighter padding for very small screens */
        padding: 60px 5%;
    }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-white, .btn-outline { width: 100%; }
    .hero-quick-stats { grid-template-columns: 1fr; width: 100%; }
    
    .stat-item { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        padding: 15px 20px;
    }
    .stat-item h4 { margin: 0; }
    .stat-item p { margin: 0; text-align: right; }
}









/* --- PREMIUM SPLIT-SCREEN SECTIONS (PHASE 3) --- */
.split-section-wrapper {
    padding: 80px 5%;
    background-color: var(--white);
    overflow: hidden;
}

.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 100px; /* Spacing between rows */
    align-items: center;
}

.split-row:last-child {
    margin-bottom: 0;
}

/* Image Container with Soft Float Effect */
.split-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    background-color: #F9FAFB;
}

.split-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.split-image-container:hover img {
    transform: scale(1.03);
}

/* Text Container Styling */
.split-text-container {
    text-align: left;
}

.split-text-container h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    color: var(--navy-blue);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.25;
}

.split-text-container p.split-desc {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #6B7280;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Premium Checkmark Lists */
.premium-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 15px;
}

.premium-check-list li i {
    color: #10B981; /* Success Green */
    background-color: rgba(16, 185, 129, 0.15);
    padding: 6px;
    border-radius: 50%;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
}

/* --- RESPONSIVE FIXES FOR SPLIT SCREEN --- */
@media (max-width: 992px) {
    .split-section-wrapper { padding: 60px 5%; }
    .split-row { 
        grid-template-columns: 1fr; /* Stacks image and text vertically */
        gap: 40px;
        margin-bottom: 60px;
    }
    
    /* Forces the image to always appear ON TOP of the text on mobile, even in reverse rows */
    .split-image-container { order: -1; }
    
    .split-text-container { text-align: center; }
    .premium-check-list li { justify-content: center; text-align: left; }
}












/* --- FRANCHISE MODELS SECTION --- */
.models-section {
    padding: 100px 5%;
    background-color: var(--navy-blue); /* Dark background makes the white pricing cards pop */
    color: var(--white);
}

.models-section .section-title {
    color: var(--white);
    text-align: center;
    margin-bottom: 60px;
}

.models-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.models-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* The White Corporate Card for each Model */
.model-card {
    background: var(--white);
    color: var(--text-dark);
    border-radius: 12px;
    padding: 50px;
    margin-bottom: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background-color: var(--primary-red);
}

.model-header {
    text-align: center;
    margin-bottom: 40px;
}

.model-header h3 {
    font-size: 2.5rem;
    color: var(--navy-blue);
    margin-bottom: 10px;
}

.model-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Premium Data Tables */
.data-table-wrapper {
    overflow-x: auto; /* Allows swiping on small mobile screens */
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border-light);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px; /* Ensures table doesn't crush text on mobile */
}

.premium-table th {
    background-color: var(--off-white);
    color: var(--navy-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 18px 20px;
    border-bottom: 2px solid var(--border-light);
}

.premium-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.premium-table tr:hover {
    background-color: #FAFAFA;
}

/* Highlights the payout amounts in red */
.highlight-val {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.1rem;
}

.model-terms {
    background-color: var(--off-white);
    padding: 25px;
    border-left: 4px solid var(--navy-blue);
    border-radius: 0 8px 8px 0;
}

.model-terms h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.model-terms ul {
    list-style: none;
    padding: 0;
}

.model-terms li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

.model-terms li::before {
    content: '\f05a'; /* FontAwesome Info Circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--navy-blue);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .model-card { padding: 30px 20px; }
    .model-header h3 { font-size: 2rem; }
}




/* --- SITE REQUIREMENTS SECTION --- */
.requirements-section {
    padding: 80px 5%;
    background-color: var(--white);
}

.requirements-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.requirements-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.req-table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
}

/* --- DYNAMIC GALLERY SECTION --- */
.gallery-section {
    padding: 80px 5%;
    background-color: var(--off-white);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    aspect-ratio: 4 / 3;
    background-color: #E5E7EB;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(19, 27, 61, 0.9));
    color: var(--white);
    padding: 20px 15px 15px;
    text-align: left;
    font-size: 0.95rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.empty-gallery {
    grid-column: 1 / -1;
    padding: 40px;
    color: var(--text-gray);
    font-style: italic;
    background: var(--white);
    border-radius: 8px;
}









/* --- PREMIUM FEATURES & STATS SECTION (PHASE 2) --- */
.features-section {
    padding: 100px 5%;
    background-color: #FAFAFA; /* Soft off-white to make the white cards pop */
    text-align: center;
}

/* Pill Badge for Section Titles */
.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(19, 27, 61, 0.05);
    color: var(--navy-blue);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-pill i { color: var(--primary-red); }

.features-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--navy-blue);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.features-section p.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #6B7280;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* 3-Column Floating Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 80px; /* 80px bottom margin separates it from the stats */
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(96, 165, 250, 0.1);
    color: #3B82F6;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--navy-blue);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.feature-card p {
    color: #6B7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.highlight-text {
    font-weight: 700;
    color: var(--navy-blue);
    background-color: rgba(96, 165, 250, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 4-Column Floating Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--white);
    padding: 35px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-5px); }

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(19, 27, 61, 0.05);
    color: var(--navy-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin: 0 auto 15px;
}

.stat-card h4 {
    font-size: 2.2rem;
    color: var(--navy-blue);
    font-weight: 800;
    margin: 0 0 5px 0;
}

.stat-card p {
    color: #6B7280;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}










/* --- PREMIUM COST & COMMISSION SECTION (PHASE 4 - FULLY RESPONSIVE) --- */
.cost-section-wrapper {
    /* Uses clamp to gracefully reduce padding on smaller screens */
    padding: clamp(60px, 8vw, 100px) 5%;
    background-color: var(--white);
    width: 100%;
    max-width: 1920px; /* Aligns perfectly with the rest of your layout */
    margin: 0 auto;
    box-sizing: border-box; /* Prevents padding from breaking mobile width */
    overflow: hidden;
}

.cost-section-wrapper h2 {
    /* Fluid typography scales down smoothly on mobile */
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--navy-blue);
    font-weight: 800;
    margin-bottom: clamp(25px, 5vw, 40px);
    line-height: 1.25;
}

/* Premium Glass/Gradient Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(96, 165, 250, 0.02) 100%);
    border-left: 5px solid #60A5FA;
    border-radius: 12px;
    padding: clamp(20px, 4vw, 35px) clamp(20px, 5vw, 40px);
    margin-bottom: clamp(30px, 5vw, 40px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    border-right: 1px solid rgba(96, 165, 250, 0.1);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    box-sizing: border-box;
    width: 100%;
}

.highlight-box h4 {
    color: var(--navy-blue);
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    font-weight: 800;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-list li {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    color: #4B5563;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start; /* Keeps the checkmark at the top if text wraps to 2 lines */
    gap: 12px;
    line-height: 1.5;
}

.highlight-list li::before {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #10B981;
    font-size: 1.15rem;
    margin-top: 3px; /* Perfectly aligns the icon with the first line of text */
}

.highlight-list li:last-child { margin-bottom: 0; }
.highlight-list strong { color: var(--navy-blue); font-weight: 700; }

/* Standard Text Blocks */
.cost-text-block { 
    margin-bottom: clamp(30px, 5vw, 40px); 
    width: 100%;
}

.cost-text-block h3 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    color: var(--navy-blue);
    font-weight: 800;
    margin-bottom: 15px;
}

.cost-text-block p {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    color: #6B7280;
    line-height: 1.7;
    margin: 0;
}

/* Floating Resource Cards (Matches Features Grid) */
.resources-wrapper { 
    margin-top: clamp(40px, 8vw, 60px); 
    width: 100%;
    box-sizing: border-box;
}

.resources-wrapper h3 {
    font-size: clamp(1.4rem, 4vw, 1.6rem);
    color: var(--navy-blue);
    font-weight: 800;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.resources-grid {
    display: grid;
    /* 'min(100%, 280px)' ensures cards never overflow on the smallest phone screens */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(15px, 3vw, 25px);
    width: 100%;
}

.resource-card {
    background: var(--white);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(96, 165, 250, 0.3);
}

.resource-card h4 {
    font-size: clamp(1.05rem, 2.5vw, 1.1rem);
    color: var(--navy-blue);
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.resource-card p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}