@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@500;700;800;900&display=swap');

/* ============================================
   ONETO7 STAYS — DESIGN SYSTEM
   Primary: Coral/Salmon (#E8725A) like the app
   ============================================ */

:root {
    /* === CORAL / SALMON BRAND PALETTE === */
    --primary-h: 12;
    --primary-s: 75%;
    --primary-l: 63%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    /* #E8725A — matches app header */

    --primary-dark: hsl(var(--primary-h), var(--primary-s), 50%);
    --primary-soft: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.12);
    --primary-softer: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.06);

    /* Accent warm gold/orange */
    --accent: #FF9F53;
    --accent-soft: rgba(255, 159, 83, 0.12);

    /* Teal/Mint for contrast */
    --secondary: #29B5A8;
    --secondary-soft: rgba(41, 181, 168, 0.12);

    /* Dark — very deep navy/charcoal */
    --dark: #1C1C2E;
    --dark-card: #2A2A3D;

    /* Neutrals */
    --surface: #FFF5F3;
    /* warm surface matching app bg */
    --surface-2: #FEF0ED;
    --white: #FFFFFF;
    --border: rgba(232, 114, 90, 0.15);

    /* Text */
    --text-main: #2D2D3A;
    --text-muted: #7C7C8E;
    --text-light: #ADADBE;

    /* Success */
    --success: #22C55E;
    --success-soft: rgba(34, 197, 94, 0.12);

    /* Shadows — warm coral-tinted */
    --shadow-sm: 0 1px 3px rgba(232, 114, 90, 0.08);
    --shadow-md: 0 4px 16px rgba(232, 114, 90, 0.12);
    --shadow-lg: 0 12px 32px rgba(232, 114, 90, 0.18);
    --shadow-xl: 0 24px 48px rgba(232, 114, 90, 0.20);
    --shadow-dark: 0 20px 60px rgba(28, 28, 46, 0.25);
    --shadow-glow: 0 0 30px rgba(232, 114, 90, 0.35);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 36px;
    --radius-pill: 100px;

    /* Layout */
    --nav-height: 78px;
    --container: 1240px;
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.65;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    line-height: 1.1;
    font-weight: 700;
}

h1 {
    letter-spacing: -0.03em;
}

h2 {
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============ NAVIGATION ============ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(232, 114, 90, 0.1);
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 20px rgba(232, 114, 90, 0.08);
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 114, 90, 0.4);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-8deg) scale(1.05);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-links li a:hover {
    color: var(--primary);
    background: var(--primary-softer);
}

.nav-actions {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #D4634A 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(232, 114, 90, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 114, 90, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 114, 90, 0.3);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: var(--surface);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ============ HERO — HOME ============ */
.hero {
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 6rem;
    padding-left: 5%;
    padding-right: 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    min-height: 92vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 75% 0%, hsla(12, 75%, 94%, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 100%, hsla(12, 75%, 94%, 0.4) 0%, transparent 40%),
        var(--white);
}

/* Decorative blob behind hero */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 114, 90, 0.08) 0%, transparent 70%);
    right: -100px;
    top: -100px;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* ============ PAGE HEADER (subpages) ============ */
.page-header {
    padding: calc(var(--nav-height) + 4rem) 5% 4rem;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(232, 114, 90, 0.12) 0%, transparent 60%),
        var(--surface);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 114, 90, 0.06), transparent 70%);
    bottom: -150px;
    right: -100px;
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============ SECTION SYSTEM ============ */
section {
    padding: 6rem 5%;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.section-header span,
.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Section tag pill */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border);
}

/* ============ GRID ============ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232, 114, 90, 0.1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 114, 90, 0.25);
}

/* Card shimmer on hover */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 114, 90, 0.06), transparent);
    transition: 0.6s ease;
}

.card:hover::after {
    left: 150%;
}

/* ============ CARD ICON ============ */
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(232, 114, 90, 0.4);
}

/* ============ GLASS PANEL ============ */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(232, 114, 90, 0.12);
}

/* ============ DARK SECTIONS ============ */
.dark-section {
    background: var(--dark);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 114, 90, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

/* ============ HERO SEARCH BAR ============ */
.hero-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 40px rgba(232, 114, 90, 0.2), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 0.4rem 0.4rem 0.4rem 1.4rem;
    gap: 0.5rem;
    border: 1.5px solid rgba(232, 114, 90, 0.15);
    max-width: 580px;
    margin-top: 2.5rem;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.hero-search:focus-within {
    box-shadow: 0 8px 40px rgba(232, 114, 90, 0.3);
    border-color: rgba(232, 114, 90, 0.4);
}

.hero-search input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-main);
    flex: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: transparent;
}

.hero-search input::placeholder {
    color: var(--text-light);
}

.hero-search .search-divider {
    width: 1px;
    height: 26px;
    background: rgba(232, 114, 90, 0.15);
    flex-shrink: 0;
}

.hero-search select {
    border: none;
    outline: none;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: transparent;
    cursor: pointer;
    padding: 0 0.5rem;
}

.hero-search .search-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(232, 114, 90, 0.3);
}

.hero-search .search-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(232, 114, 90, 0.45);
}

/* ============ STAT CHIPS ============ */
.stat-chips {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    background: var(--surface);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

/* ============ BACKGROUND VARIANTS ============ */
.bg-surface {
    background: var(--surface);
}

.bg-surface-2 {
    background: var(--surface-2);
}

.bg-white {
    background: var(--white);
}

/* ============ HOVER FLOAT ============ */
.hover-float {
    transition: transform 0.35s ease;
}

.hover-float:hover {
    transform: translateY(-5px);
}

/* ============ ANIMATIONS ============ */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-float-slow {
    animation: float 7s ease-in-out infinite;
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 {
    transition-delay: 0.1s;
}

.reveal.delay-2 {
    transition-delay: 0.2s;
}

.reveal.delay-3 {
    transition-delay: 0.3s;
}

/* ============ FOOTER ============ */
footer {
    background: var(--dark);
    color: white;
    padding: 5rem 5% 2rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 114, 90, 0.08) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

footer h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    font-size: 0.85rem;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(232, 114, 90, 0.4);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* ============ DROPDOWN (header menu) ============ */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.95);
    background: white;
    box-shadow: 0 16px 48px rgba(232, 114, 90, 0.18), 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(232, 114, 90, 0.1);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid rgba(232, 114, 90, 0.1);
    border-top: 1px solid rgba(232, 114, 90, 0.1);
}

.dropdown-menu li a {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-main);
    transition: all 0.2s;
    gap: 0.6rem;
}

.dropdown-menu li a:hover {
    background: var(--primary-softer);
    color: var(--primary);
    padding-left: 1.2rem;
}

/* ============ STATS BAR ============ */
.stats-bar {
    background: var(--dark);
    padding: 3rem 5%;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 114, 90, 0.12) 0%, transparent 50%);
}

/* ============ PILL FILTERS ============ */
.filter-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.filter-pill {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(232, 114, 90, 0.2);
    background: white;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.filter-pill:hover,
.filter-pill.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

/* ============ STEP CIRCLES ============ */
.step-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    position: relative;
}

.step-circle.outlined {
    border: 2.5px solid var(--primary);
    color: var(--primary);
    background: var(--white);
    box-shadow: 0 4px 16px rgba(232, 114, 90, 0.15);
}

.step-circle.filled {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 24px rgba(232, 114, 90, 0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: calc(var(--nav-height) + 3rem);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        order: 3;
        margin-left: auto;
    }

    .nav-actions {
        display: none !important;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        background: white;
        padding: 1.5rem 5%;
        box-shadow: 0 16px 48px rgba(232, 114, 90, 0.18);
        gap: 1.2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(232, 114, 90, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 1rem;
        border: none;
        display: none;
        margin-top: 0.5rem;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .nav-actions .btn-outline {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 5%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-search {
        flex-wrap: wrap;
        border-radius: var(--radius-lg);
        padding: 1rem;
        gap: 0.8rem;
    }

    .hero-search .search-divider {
        display: none;
    }

    .hero-search input,
    .hero-search select {
        width: 100%;
    }

    .hero-search .search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============ MOBILE OVERRIDES (Added for responsiveness) ============ */
@media (max-width: 768px) {

    /* Home Hero Layout */
    .hero {
        gap: 2rem !important;
        padding-top: calc(var(--nav-height) + 1.5rem) !important;
        min-height: auto !important;
    }

    .hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.15 !important;
    }

    #hero-img {
        height: 380px !important;
        margin-top: 1rem;
    }

    #hero-img>img {
        height: auto !important;
    }

    #hero-img>img:first-of-type {
        height: 320px !important;
        width: 100% !important;
    }

    #hero-img>img:nth-of-type(2) {
        height: 160px !important;
        width: 65% !important;
    }

    .hero-verified-card {
        top: 1rem !important;
        left: -1rem !important;
        transform: scale(0.85);
    }

    /* Other sections flex/grid overrides */
    section {
        padding: 3rem 5% !important;
    }

    .section-header {
        margin-bottom: 2rem !important;
    }

    .section-header h2 {
        font-size: 2rem !important;
    }

    div[style*="grid-template-columns:repeat(4,1fr)"],
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    div[style*="grid-template-columns:repeat(5,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1.5fr"],
    div[style*="grid-template-columns:1fr 1.5fr"],
    div[style*="grid-template-columns:1fr auto"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Special case: index.php bento grid */
    div[style*="grid-template-rows:auto auto"]>div {
        grid-column: span 1 !important;
        grid-row: auto !important;
        min-height: auto !important;
    }

    img[style*="height:480px"] {
        height: 300px !important;
    }

    /* App promo section specific fix */
    div[style*="rotate(-4deg)"],
    div[style*="rotate(-5deg)"] {
        transform: rotate(0) translateY(0) !important;
        margin-bottom: 1rem;
        width: 140px !important;
    }

    div[style*="rotate(3deg)"],
    div[style*="rotate(4deg)"] {
        display: none !important;
        /* hide 2nd phone on mobile to avoid overflow */
    }

    /* Ensure no stray elements cause overflow */
    img,
    svg,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* Ensure no stray elements cause overflow, but allow marquees to extend */
    body {
        width: 100%;
        overflow-x: hidden !important;
    }

    html {
        width: 100%;
        overflow-x: hidden !important;
    }

    * {
        max-width: 100vw;
        box-sizing: border-box;
        overflow-wrap: break-word;
        /* prevent long links from breaking width */
    }

    .flex,
    div[style*="display:flex"]:not(.nav-links):not(.hero-search) {
        flex-wrap: wrap !important;
    }

    /* Hard reset on standard row definitions commonly found in grids */
    .row,
    .grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .desktop-only {
        display: none !important;
    }

    .hero,
    section,
    footer {
        overflow: hidden !important;
    }

    /* Timeline lines */
    div[style*="left:17px"] {
        display: none !important;
    }

    /* Final CTA */
    section[style*="padding:10rem 5%"] {
        padding: 5rem 5% !important;
    }

    section[style*="padding:8rem"] {
        padding: 4rem 5% !important;
    }

    h2[style*="font-size:clamp(2.5rem, 5vw, 4.2rem)"] {
        font-size: 2.2rem !important;
    }

    /* Testimonials scrolling row */
    div[style*="flex-shrink:0; width:340px"] {
        width: 280px !important;
    }

    /* Fix large inline padding on desktop banners */
    div[style*="padding:5rem"] {
        padding: 2.5rem !important;
    }

    div[style*="padding:7rem"] {
        padding: 3rem 5% !important;
    }

    /* Make buttons stack properly if space is tight */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Make sure all inputs don't break flex boundaries */
    input,
    select,
    textarea {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}