/* ═══════════════════════════════════════════════════════════════
   MyEstate — Home Page Enhanced Styles
   3D Hero  ·  Animated Sections  ·  Property Cards  ·  CTA
   ═══════════════════════════════════════════════════════════════ */

/* ── Base extras ───────────────────────────────────────────── */
:root {
    --red:        #e63946;
    --red-dark:   #c1121f;
    --red-light:  #fff0f1;
    --navy:       #0d1b2a;
    --navy-mid:   #1b2d3e;
    --font:       'Plus Jakarta Sans', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   3D HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero3d-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero3dCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(230,57,70,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230,57,70,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.hero3d-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 16px 100px;
    width: 100%;
}

/* Badge */
.hero3d-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(230,57,70,0.4);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
}
.badge-dot {
    width: 8px; height: 8px;
    background: #e63946;
    border-radius: 50%;
    animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.5); opacity: .6; }
}

/* Title */
.hero3d-title {
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 22px;
}
.hero3d-accent {
    background: linear-gradient(135deg, #e63946 0%, #ff6b7a 50%, #c1121f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
.hero3d-word-swap {
    position: relative;
    display: inline-block;
    color: rgba(255,255,255,0.92);
}
.swap-word {
    display: inline-block;
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s, transform .5s;
    white-space: nowrap;
}
.swap-word.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

/* Sub */
.hero3d-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 38px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search */
.hero3d-search {
    max-width: 760px;
    margin: 0 auto 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
    transition: box-shadow .3s;
}
.hero3d-search:focus-within {
    box-shadow: 0 24px 64px rgba(230,57,70,0.25), 0 0 0 1px rgba(230,57,70,0.3);
}
.search3d-tabs {
    display: flex;
    padding: 12px 16px 0;
    gap: 4px;
}
.stab {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: background .18s, color .18s;
}
.stab.active {
    background: rgba(230,57,70,0.18);
    color: #e63946;
}
.search3d-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 14px;
}
.sbar-icon { color: rgba(255,255,255,0.35); font-size: 16px; flex-shrink: 0; padding: 0 4px; }
.search3d-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    min-width: 0;
}
.search3d-bar input::placeholder { color: rgba(255,255,255,0.35); }
.sbar-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-family: var(--font);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}
.sbar-btn {
    background: var(--red);
    color: #fff;
    border: none;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.sbar-btn:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Pills */
.hero3d-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.hpill {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.hpill:hover {
    background: rgba(230,57,70,0.18);
    color: #e63946;
    border-color: rgba(230,57,70,0.4);
}

/* Floating Cards */
.hero3d-floaters {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 8;
}
.floater-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.fc-icon {
    width: 38px; height: 38px;
    background: rgba(230,57,70,0.12);
    color: var(--red);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.fc-text { display: flex; flex-direction: column; gap: 1px; }
.fc-text strong { color: #fff; font-size: 15px; font-weight: 800; line-height: 1; }
.fc-text span   { color: rgba(255,255,255,.5); font-size: 11px; }

.f1 { top: 20%; left: 4%; }
.f2 { top: 55%; right: 4%; }
.f3 { bottom: 18%; left: 6%; }

@keyframes float1 {
    0%,100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-14px) rotate(1deg); }
}
@keyframes float2 {
    0%,100% { transform: translateY(0) rotate(1deg); }
    50%      { transform: translateY(-18px) rotate(-1deg); }
}
@keyframes float3 {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.animate-float1 { animation: float1 5s ease-in-out infinite; }
.animate-float2 { animation: float2 6s ease-in-out infinite .8s; }
.animate-float3 { animation: float3 4.5s ease-in-out infinite 1.4s; }

/* Scroll indicator */
.hero-scroll-ind {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.scroll-arrow {
    width: 22px; height: 34px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 11px;
    position: relative;
}
.scroll-arrow::after {
    content: '';
    position: absolute;
    width: 4px; height: 8px;
    background: var(--red);
    border-radius: 2px;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%,100% { top: 5px; opacity: 1; }
    80%      { top: 16px; opacity: 0; }
}

/* fadeup entrance */
.animate-fadeup {
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp .8s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════════════════════════ */
.stats-strip {
    background: #fff;
    border-bottom: 2px solid #f1f5f9;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    position: relative;
    z-index: 5;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.stat-item {
    padding: 28px 16px;
    border-right: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    transition: background .2s;
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), transparent);
    transform: scaleX(0);
    transition: transform .4s;
    transform-origin: left;
}
.stat-item:hover::before { transform: scaleX(1); }
.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}
.stat-unit {
    font-size: 22px;
    font-weight: 800;
    color: var(--red);
}
.stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION BLOCKS
   ═══════════════════════════════════════════════════════════════ */
.section-block {
    padding: 90px 0;
}
.section-block.section-dark {
    background: var(--navy);
}
.section-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 10px;
}
.section-h2 {
    font-size: clamp(26px,4vw,40px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -1px;
    margin-bottom: 10px;
}
.section-h2 span {
    background: linear-gradient(135deg, var(--red), #ff6b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 48px;
}

/* Scroll Reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-up-stagger.revealed .type-card:nth-child(1) { animation: revStagger .6s .05s forwards; }
.reveal-up-stagger.revealed .type-card:nth-child(2) { animation: revStagger .6s .12s forwards; }
.reveal-up-stagger.revealed .type-card:nth-child(3) { animation: revStagger .6s .19s forwards; }
.reveal-up-stagger.revealed .type-card:nth-child(4) { animation: revStagger .6s .26s forwards; }
.reveal-up-stagger.revealed .type-card:nth-child(5) { animation: revStagger .6s .33s forwards; }
.reveal-up-stagger.revealed .type-card:nth-child(6) { animation: revStagger .6s .40s forwards; }
.reveal-up-stagger.revealed .city-card:nth-child(1) { animation: revStagger .6s .05s forwards; }
.reveal-up-stagger.revealed .city-card:nth-child(2) { animation: revStagger .6s .13s forwards; }
.reveal-up-stagger.revealed .city-card:nth-child(3) { animation: revStagger .6s .21s forwards; }
.reveal-up-stagger.revealed .city-card:nth-child(4) { animation: revStagger .6s .29s forwards; }
.reveal-up-stagger.revealed .city-card:nth-child(5) { animation: revStagger .6s .37s forwards; }
@keyframes revStagger {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
}
.reveal-up-stagger .type-card,
.reveal-up-stagger .city-card { opacity: 0; }
.reveal-up-stagger { opacity: 1 !important; transform: none !important; }

/* ═══════════════════════════════════════════════════════════════
   PROPERTY TYPE GRID
   ═══════════════════════════════════════════════════════════════ */
.type-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}
@media(max-width:768px){ .type-grid{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .type-grid{ grid-template-columns: 1fr; } }

.type-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px 24px;
    cursor: pointer;
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.type-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--tc-accent, var(--red));
    transform: scaleX(0);
    transition: transform .35s;
    transform-origin: left;
}
.type-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.1); border-color: transparent; }
.type-card:hover::before { transform: scaleX(1); }

.tc-3d-wrap {
    width: 60px; height: 60px;
    position: relative;
    margin-bottom: 16px;
}
.tc-icon-wrap {
    width: 60px; height: 60px;
    background: color-mix(in srgb, var(--tc-accent, var(--red)) 12%, transparent);
    color: var(--tc-accent, var(--red));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    transition: transform .3s, box-shadow .3s;
}
.type-card:hover .tc-icon-wrap {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--tc-accent, var(--red)) 30%, transparent);
}
.tc-shine {
    position: absolute;
    top: -6px; right: -6px;
    width: 20px; height: 20px;
    background: var(--tc-accent, var(--red));
    border-radius: 50%;
    opacity: 0;
    transition: opacity .3s;
    filter: blur(8px);
}
.type-card:hover .tc-shine { opacity: 0.5; }

.tc-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}
.tc-count {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
.tc-arrow {
    position: absolute;
    bottom: 24px; right: 24px;
    width: 32px; height: 32px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
    font-size: 13px;
    transition: background .2s, color .2s, transform .2s;
}
.type-card:hover .tc-arrow {
    background: var(--tc-accent, var(--red));
    color: #fff;
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════
   PROPERTY CARDS (3D)
   ═══════════════════════════════════════════════════════════════ */
.prop-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px,1fr));
    gap: 24px;
}

.prop-card-3d {
    position: relative;
    border-radius: 18px;
    transition: transform .35s cubic-bezier(.16,1,.3,1);
    will-change: transform;
    cursor: pointer;
}
.pc3d-inner {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.pc3d-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.pc3d-img-bg {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(13,27,42,0.9) 0%, rgba(27,45,62,0.8) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 60px;
    color: rgba(255,255,255,0.06);
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.prop-card-3d:hover .pc3d-img-bg { transform: scale(1.06); }

.pc3d-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.pc3d-tag {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 11px; font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.type-sale { background: rgba(230,57,70,0.9); color: #fff; }
.type-rent { background: rgba(14,165,233,0.9); color: #fff; }

.pc3d-wishlist {
    position: absolute;
    top: 10px; right: 12px;
    width: 32px; height: 32px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, color .2s;
    backdrop-filter: blur(4px);
}
.pc3d-wishlist:hover { background: var(--red); color: #fff; }

.pc3d-body {
    padding: 18px 18px 20px;
}
.pc3d-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 5px;
}
.pc3d-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 7px;
}
.pc3d-building {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}
.pc3d-loc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}
.pc3d-loc i { margin-right: 4px; color: var(--red); }

.pc3d-specs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.pc3d-spec {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
    padding: 4px 10px;
    border-radius: 6px;
}
.pc3d-spec i { color: var(--red); margin-right: 4px; }

.pc3d-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff !important;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s;
}
.pc3d-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230,57,70,0.4);
    color: #fff !important;
}
.pc3d-btn i { font-size: 12px; transition: transform .2s; }
.pc3d-btn:hover i { transform: translateX(3px); }

/* Glow effect */
.pc3d-glow {
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230,57,70,0.3) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    z-index: 0;
    filter: blur(20px);
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════ */
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 32px;
    position: relative;
}
@media(max-width:767px){ .hiw-grid{ grid-template-columns:1fr; } }

.hiw-item {
    text-align: center;
    padding: 36px 28px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    position: relative;
    transition: transform .3s, box-shadow .3s;
}
.hiw-item:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.1); }

.hiw-num {
    font-size: 64px;
    font-weight: 900;
    color: rgba(230,57,70,0.07);
    line-height: 1;
    position: absolute;
    top: 16px; right: 20px;
    letter-spacing: -2px;
    user-select: none;
}
.hiw-icon-wrap {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(230,57,70,0.12) 0%, rgba(230,57,70,0.06) 100%);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    color: var(--red);
    margin: 0 auto 20px;
    position: relative;
}
.hiw-ring {
    position: absolute;
    inset: -6px;
    border: 2px dashed rgba(230,57,70,0.2);
    border-radius: 26px;
    animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hiw-item h4 {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}
.hiw-item p { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 0; }

.hiw-connector {
    position: absolute;
    top: 56px;
    right: -18px;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
    z-index: 1;
}
@media(max-width:767px){ .hiw-connector{ display:none; } }

/* ═══════════════════════════════════════════════════════════════
   CITY EXPLORER
   ═══════════════════════════════════════════════════════════════ */
.city-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 16px;
}
@media(max-width:991px){
    .city-grid { grid-template-columns:1fr 1fr; grid-template-rows: auto; }
    .city-lg   { grid-column: span 2; }
}
@media(max-width:576px){
    .city-grid { grid-template-columns:1fr; }
    .city-lg   { grid-column: span 1; }
}

.city-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background-image: var(--city-img);
    background-size: cover;
    background-position: center;
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.city-card:hover { transform: scale(1.02); }
.city-lg { grid-row: span 2; }

.city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 60%);
    transition: background .3s;
}
.city-card:hover .city-overlay {
    background: linear-gradient(to top, rgba(230,57,70,0.6) 0%, rgba(0,0,0,0.2) 70%);
}
.city-info {
    position: absolute;
    bottom: 18px; left: 20px;
    display: flex; flex-direction: column; gap: 3px;
}
.city-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.city-cnt {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   WHY CHOOSE US
   ═══════════════════════════════════════════════════════════════ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-top: 48px;
}
@media(max-width:991px){ .why-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:576px){ .why-grid{ grid-template-columns:1fr; } }

.why-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 28px 22px;
    transition: transform .3s, background .3s;
}
.why-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.07);
}
.why-icon {
    width: 52px; height: 52px;
    background: color-mix(in srgb, var(--wi-c, var(--red)) 15%, transparent);
    color: var(--wi-c, var(--red));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}
.why-card h4 { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.why-card p  { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════ */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
    margin-top: 40px;
}
@media(max-width:767px){ .testi-grid{ grid-template-columns:1fr; } }

.testi-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px 24px;
    transition: transform .3s, box-shadow .3s;
    position: relative;
}
.testi-card::before {
    content: '"';
    position: absolute;
    top: 14px; right: 22px;
    font-size: 80px;
    color: rgba(230,57,70,0.07);
    font-family: Georgia, serif;
    line-height: 1;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }

.testi-stars { color: #f59e0b; font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #374151;
    font-style: italic;
    margin-bottom: 20px;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testi-avatar {
    width: 40px; height: 40px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}
.testi-author div:last-child { display: flex; flex-direction: column; }
.testi-author strong { font-size: 14px; color: var(--navy); font-weight: 800; }
.testi-author span   { font-size: 12px; color: #6b7280; }

/* ═══════════════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════════════ */
.cta-banner {
    background: var(--navy);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-bg-animate {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 300px at 20% 50%, rgba(230,57,70,0.15), transparent),
        radial-gradient(ellipse 400px 400px at 80% 50%, rgba(13,100,180,0.1), transparent);
    animation: ctaBgPulse 6s ease-in-out infinite;
}
@keyframes ctaBgPulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.6; }
}
.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-inner h2 {
    font-size: clamp(22px,3.5vw,36px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.cta-inner h2 span {
    background: linear-gradient(135deg, var(--red), #ff6b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-inner p { font-size: 15px; color: rgba(255,255,255,0.55); margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-cta-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff !important;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(230,57,70,0.45);
    color: #fff !important;
}

.btn-cta-outline {
    background: transparent;
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    padding: 13px 28px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.btn-cta-outline:hover {
    border-color: rgba(255,255,255,0.6);
    color: #fff !important;
    background: rgba(255,255,255,0.06);
}

/* Hero CTA */
.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff !important;
    text-decoration: none;
    padding: 15px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(230,57,70,0.3);
}
.btn-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(230,57,70,0.5);
    color: #fff !important;
}

/* ─── Responsive ─────────────────────────────────────── */
@media(max-width:991px){
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .hero3d-floaters { display: none; }
    .f1,.f2,.f3 { display: none; }
}
@media(max-width:575px){
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .stat-num { font-size: 26px; }
    .hero3d-title { letter-spacing: -1px; }
    .search3d-bar { flex-wrap: wrap; }
    .sbar-select { width: 100%; }
    .sbar-btn { width: 100%; justify-content: center; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
}
