/* iOS-Inspired Homepage Design with Animated Wave Background
   ============================================================
   CLEANED VERSION — duplicate/dead code removed.
   ============================================================ */

/* Import San Francisco-like font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Global iOS-style variables */
:root {
    /* Light mode — Premium Cream (default) */
    --bg-primary: #FAF6EF;
    --bg-secondary: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-primary: #1C1C1E;
    --text-secondary: #57534E;
    --text-muted: #8A8378;
    --border-color: #E8E1D5;
    --wave-color: rgba(13, 110, 253, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(28, 28, 30, 0.08);
}

[data-theme="dark"] {
    --bg-primary: #16151A;
    --bg-secondary: #1F1E24;
    --card-bg: #232228;
    --text-primary: #F5F1E8;
    --text-secondary: #B8B2A7;
    --text-muted: #8A8378;
    --border-color: #333039;
    --wave-color: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Wave Background Container */
.wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.wave {
    background: var(--wave-color);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% { transform: translateX(0); }
    25% { transform: translateX(-25%); }
    50% { transform: translateX(-50%); }
    75% { transform: translateX(-25%); }
    100% { transform: translateX(0); }
}

/* Content wrapper to sit above wave background */
section, header, footer {
    position: relative;
    z-index: 1;
}

/* Typography scale */
h1, .display-1, .display-2, .display-3, .display-4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h2, .display-5, .display-6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.lead {
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--ios-gray);
    line-height: 1.6;
}

/* Banner Slider — 16:10 ratio, looks correct on all screens */
.banner-slider {
    position: relative;
    margin-bottom: 0;
}

.banner-slider .carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
}

.banner-slider .carousel-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

.banner-slider .carousel-control-prev,
.banner-slider .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    background-color: rgba(0,0,0,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slider .carousel-control-prev { left: 10px; }
.banner-slider .carousel-control-next { right: 10px; }

.banner-slider .carousel-control-prev:hover,
.banner-slider .carousel-control-next:hover {
    background-color: rgba(0,0,0,0.55);
}

@media (max-width: 575px) {
    .banner-slider .carousel-inner {
        aspect-ratio: 16 / 10;
        border-radius: 8px;
    }
}

@media (min-width: 768px) {
    .banner-slider .carousel-inner {
        aspect-ratio: unset;
        height: auto;
    }
    .banner-slider .carousel-item {
        position: relative;
    }
    .banner-slider img {
        width: auto;
        height: auto;
        max-height: 400px;
        max-width: 700px;
        object-fit: unset;
        margin: 0 auto;
        display: block;
    }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.features-section .container {
    position: relative;
    z-index: 1;
}

.features-section h2 {
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: none;
}

.features-section .lead {
    color: var(--text-secondary);
    margin-bottom: 4rem;
    text-shadow: none;
}

.feature-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1rem;
    border-radius: var(--ios-radius-lg);
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
    border-color: rgba(13,110,253,.25);
}

.feature-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--ios-shadow);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.feature-icon.bg-primary {
    background: linear-gradient(135deg, var(--ios-primary) 0%, #0051D5 100%) !important;
}

.feature-icon.bg-success {
    background: linear-gradient(135deg, var(--ios-success) 0%, #30D158 100%) !important;
}

.feature-icon.bg-info {
    background: linear-gradient(135deg, var(--ios-info) 0%, #32ADE6 100%) !important;
}

.feature-icon.bg-warning {
    background: linear-gradient(135deg, var(--ios-warning) 0%, #FF9F0A 100%) !important;
}

.feature-item h5 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Call to Action Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.3) 0%, transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-section .lead {
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

.cta-section .btn {
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--ios-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-section .btn-light {
    background: rgba(255,255,255,0.95);
    color: var(--ios-dark-gray);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--ios-shadow-lg);
}

.cta-section .btn-light:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.cta-section .btn-outline-light {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cta-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
}

/* ── Review Section ──────────────────────────────────────────────── */
.rv-section {
    background: #ffffff !important;
    position: relative;
    z-index: 1;
}

.rv-score-box {
    background: #fff;
    border: 1.5px solid #fde68a;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.rv-big-num {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: #1e293b;
    letter-spacing: -2px;
}
.rv-stars-lg { color: #f59e0b; font-size: 1.1rem; letter-spacing: 1px; }

.rv-bar-row { display:flex; align-items:center; gap:.5rem; margin-bottom:.3rem; }
.rv-bar-label { font-size:.72rem; font-weight:700; color:#64748b; width:10px; text-align:right; flex-shrink:0; }
.rv-bar-star-icon { font-size:.6rem; color:#f59e0b; flex-shrink:0; }
.rv-bar-track { flex:1; height:7px; background:#e2e8f0; border-radius:99px; overflow:hidden; min-width:0; }
.rv-bar-fill { height:100%; background:#f59e0b; border-radius:99px; transition:width .4s ease; }
.rv-bar-count { font-size:.7rem; color:#94a3b8; width:20px; text-align:right; flex-shrink:0; }

.rv-slider-outer {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.rv-slider-track {
    display: flex;
    gap: 16px;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.rv-slide {
    flex: 0 0 calc(33.333% - 11px);
    min-width: 0;
}

.rv-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    z-index: 10;
    transition: background .2s, box-shadow .2s;
    color: #1e293b;
    font-size: .95rem;
}
.rv-btn:hover { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.rv-btn-prev { left: -14px; }
.rv-btn-next { right: -14px; }

.rv-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}
.rv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.rv-dot.active {
    background: #0d6efd;
    transform: scale(1.3);
}

.rv-card-home {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 1.1rem 1.2rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.rv-card-home:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

.rv-avatar-sm {
    width: 38px; height: 38px;
    border-radius: 50%; object-fit: cover;
    flex-shrink: 0; border: 2px solid #e2e8f0;
}
.rv-avatar-ph {
    width: 38px; height: 38px;
    border-radius: 50%; color: #fff;
    font-weight: 700; font-size: .95rem;
    display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.rv-verified-sm { font-size:.67rem; color:#16a34a; font-weight:700; }
.rv-title-sm { font-size:.87rem; font-weight:700; color:#1e293b; margin-bottom:.25rem; }

.rv-body-sm {
    font-size: .8rem;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rv-read-more {
    font-size: .75rem;
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    margin-top: .2rem;
    display: inline-block;
}
.rv-read-more:hover { text-decoration: underline; }

.rv-star-sm { color: #f59e0b; font-size: .75rem; }

@media (max-width: 575px) {
    .rv-slide { flex: 0 0 100%; }
    .rv-btn-prev { left: 2px; }
    .rv-btn-next { right: 2px; }
    .rv-score-box { margin-bottom: 1rem; }
    .rv-big-num { font-size: 2.5rem; }
}

@media (min-width: 576px) and (max-width: 991px) {
    .rv-slide { flex: 0 0 calc(50% - 8px); }
}

/* ============================================================
   HERO v4.1 — current active hero (matches index.php .hero-v2 markup)
   1) Tagline font-size increased on desktop
   2) Photo container locked to EXACT source-image ratio (1290x1219)
      so object-fit:cover never crops — box shape === image shape
   3) Mobile: photo-first via order:-1
      Desktop: order reset to 0 so natural HTML order applies
      (text first/left, photo second/right)
   ============================================================ */

.hero-v2 {
    padding: 14px 14px 18px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.hero-v2-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.hero-v2-photo-wrap { order: -1; }

.hero-v2-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1290 / 1219;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.3);
    flex-shrink: 0;
}

.hero-v2-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-v2-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(60,132,206,0)   0%,
        rgba(88,86,214,.12) 60%,
        rgba(60,132,206,.3) 100%
    );
    pointer-events: none;
}

.hero-v2-text { width: 100%; }

.hero-tagline {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: .3rem;
}
.hero-tagline .accent { color: #d4820a; }

.hero-v2-title {
    font-size: clamp(1.35rem, 6vw, 3rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.15;
    margin: 0 0 .4rem;
    text-shadow: none;
}
.hero-v2-title .accent-block {
    background: linear-gradient(90deg, #7b2ff7, #f107a3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub-full { display: none; color: var(--text-secondary); }
.hero-sub-short {
    display: block;
    color: var(--text-secondary);
    font-size: .78rem;
    margin: 0 0 .7rem;
}

.hero-perks { display: none; }

.hero-v2-cta {
    display: flex;
    justify-content: center;
    gap: .5rem;
    width: 100%;
}
.btn-hero-primary,
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 10px 16px;
    min-height: 44px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .8rem;
    text-decoration: none;
    flex: 1 1 0;
    max-width: 180px;
    transition: transform .15s ease;
}
.btn-hero-primary {
    background: var(--card-bg);
    color: #0d6efd;
    border: 1.5px solid rgba(13,110,253,.15);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

@media (max-width: 767px) {
    .hero-v2 {
        display: none;
    }

    /* Give the banner slider a little breathing room at the top
       now that the hero isn't there to provide natural spacing */
    .banner-slider {
        padding-top: .6rem;
    }
}
.btn-hero-primary:active { transform: scale(.96); }
.btn-hero-outline {
    background: var(--glass-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}
.btn-hero-primary:hover,
.btn-hero-outline:hover { color: inherit; text-decoration: none; }

/* ===== TABLET (>=576px) ===== */
@media (min-width: 576px) {
    .hero-v2 { padding: 32px 20px; }
    .hero-v2-photo-wrap { max-width: 360px; }
    .hero-sub-full { display: block; font-size: .92rem; max-width: 480px; margin: 0 auto 1rem; line-height: 1.6; color: var(--text-secondary); }
    .hero-sub-short { display: none; }
    .hero-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.3rem; }
    .perk {
        display: flex; align-items: center; gap: .35rem;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        padding: .42rem .8rem; border-radius: 99px;
        font-size: .7rem; font-weight: 700; color: var(--text-primary);
    }
    .btn-hero-primary, .btn-hero-outline {
        padding: 14px 26px; font-size: .92rem; max-width: 240px; min-height: 48px;
    }
}

/* ===== DESKTOP (>=992px) ===== */
@media (min-width: 992px) {
    .hero-v2-wrap {
        flex-direction: row;
        text-align: left;
        gap: 48px;
        align-items: center;
    }

    .hero-v2-photo-wrap { order: 0; flex: 0 0 420px; max-width: 420px; }
    .hero-v2-text { order: 0; flex: 1 1 55%; }

    .hero-sub-full { margin-left: 0; }
    .hero-perks, .hero-v2-cta { justify-content: flex-start; }

    .hero-tagline {
        font-size: .95rem;
        letter-spacing: .04em;
        margin-bottom: .6rem;
    }
}