:root {
    /* Brand Colors - Official Palette */
    --primary: #52BBAA;
    /* Teal - Main Action */
    --primary-dark: #3da090;
    /* Darker Teal for hover states */
    --secondary: #1E2E3E;
    /* Primary Text - Dark Navy */

    --blue: #4AB9CF;
    /* Brand Blue */
    --yellow: #F5C848;
    /* Brand Yellow */
    --orange: #F9944C;
    /* Brand Orange */
    --pink: #EE788C;
    /* Brand Pink */
    --teal: #52BBAA;
    /* Brand Teal */
    --green: #7FC4A8;
    /* Brand Green */
    --peach: #F4A878;
    /* Brand Peach */

    /* Accent Colors (using brand palette) */
    --accent-pink: #EE788C;
    --accent-yellow: #F5C848;
    --accent-orange: #F9944C;
    --accent-blue: #4AB9CF;

    /* Backgrounds */
    --bg: #F2F2F2;
    /* White background */
    --bg-soft: #F7FAFB;
    /* Soft background */
    --bg-blue-wash: #E1F2F6;
    /* Blue Wash background */

    /* Text Colors */
    --text: #1E2E3E;
    /* Primary text */
    --text-secondary: #4A4A62;
    /* Secondary text */
    --text-muted: #989898;
    /* Muted text */
    --white: #FFFFFF;

    /* Shadows & Borders */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Header */
header {
    background: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}


#mainNav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: var(--primary);
}

/* Card Styles */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Mobile Menu Hidden by Default */
.menu-toggle,
.menu-backdrop {
    display: none;
}

/* Mobile Menu */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        padding: 20px;
    }

    /* Fix Mobile Header Alignment & Logo Scale */
    header .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    header .logo {
        margin-left: 0;
        max-width: 75%;
        /* Ensure logo leaves room for the hamburger menu */
    }

    header .logo img {
        height: auto !important;
        max-height: 45px;
        max-width: 100%;
        object-fit: contain;
    }

    /* Beautiful Mobile Menu */
    .menu-toggle {
        display: flex;
        background: transparent;
        border: none;
        width: 45px;
        height: 45px;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: var(--secondary);
        cursor: pointer;
        z-index: 2001;
        box-shadow: none;
        transition: all 0.3s ease;
        padding: 0;
    }

    .menu-toggle:active {
        transform: scale(0.9);
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex !important;
        flex-direction: column;
        padding: 100px 30px;
        gap: 15px;
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        visibility: hidden;
    }

    nav.active {
        right: 0;
        visibility: visible;
    }

    nav a {
        margin: 0 !important;
        padding: 15px 20px !important;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        color: var(--secondary) !important;
    }

    nav a:hover {
        background: var(--bg);
        color: var(--primary) !important;
        padding-left: 30px !important;
    }

    nav .btn-primary {
        margin-top: 20px;
        justify-content: center;
        background: var(--primary) !important;
        color: white !important;
    }

    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1999;
    }

    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

/* Feature Section */
.feature-card {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #E1F2F6;
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
}

/* CTA Section */
.cta-banner {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 60px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

@media (max-width: 992px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
}

/* SEO Optimization Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Autocomplete Styles moved to assets/css/search-autocomplete.css */
/* Color Utilities */
.text-teal {
    color: var(--primary);
}

.bg-teal-soft {
    background: #E1F2F6;
    color: var(--primary-dark);
}

.text-pink {
    color: var(--pink);
}

.bg-pink-soft {
    background: #fce8ec;
    color: var(--pink);
}

.text-yellow {
    color: var(--yellow);
}

.bg-yellow-soft {
    background: #fef9e7;
    color: var(--yellow);
}

.text-orange {
    color: var(--orange);
}

.bg-orange-soft {
    background: #fef3e9;
    color: var(--orange);
}

.text-blue {
    color: var(--blue);
}

.bg-blue-soft {
    background: #e8f6fa;
    color: var(--blue);
}

.text-green {
    color: var(--green);
}

.bg-green-soft {
    background: #e9f5f0;
    color: var(--green);
}

.text-peach {
    color: var(--peach);
}

.bg-peach-soft {
    background: #fef2eb;
    color: var(--peach);
}

/* Hero Search Form Styles */
.hero-search-form {
    background: white;
    padding: 10px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    align-items: center;
}

.search-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-city-group {
    flex: 0.8;
    border-left: 1px solid #eee;
    padding-left: 10px;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
    z-index: 1;
}

.search-input {
    width: 100%;
    border: none;
    padding: 20px 20px 20px 50px;
    font-size: 1.1rem;
    border-radius: var(--radius);
    outline: none;
    background: transparent;
}

.search-btn {
    padding: 0 40px;
    border-radius: var(--radius);
    height: 60px;
    /* Match input height roughly */
}

/* Mobile Search Optimization */
@media (max-width: 768px) {
    .hero-search-form {
        flex-direction: row;
        /* Keep row */
        padding: 5px;
        gap: 5px;
    }

    /* Hide City Input on Mobile */
    .search-city-group {
        display: none;
    }

    .search-keyword-group {
        flex: 1;
        /* Take full available width */
    }

    .search-input {
        padding: 15px 15px 15px 40px;
        /* Slightly smaller padding */
        font-size: 1rem;
    }

    .search-icon {
        left: 15px;
    }

    .search-btn {
        padding: 0 20px;
        /* Comfortable touch target */
        width: 50px;
        /* Fixed width for icon */
        height: 50px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        /* Match container radius roughly */
    }

    .search-btn .btn-text {
        display: none;
    }

    .search-btn .btn-icon {
        display: block;
        font-size: 1.2rem;
    }

    /* Remove padding/gap from form container for sleeker look */
    .hero-search-form {
        padding: 4px;
        gap: 4px;
    }
}

/* Desktop defaults for new elements */
@media (min-width: 769px) {
    .search-btn .btn-icon {
        display: none;
    }

    .search-btn .btn-text {
        display: inline;
    }
}

/* How It Works Page */
.hiw-section {
    padding: 80px 0;
}

.hiw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hiw-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hiw-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.hiw-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Background Utilities (if not already present or specific to this page) */
.bg-soft {
    background: var(--bg);
}

.bg-white {
    background: white;
}

.bg-primary {
    background: var(--primary);
}

.bg-secondary {
    background: var(--secondary);
}

/* Mobile Optimization for How It Works */
@media (max-width: 768px) {
    .hiw-section {
        padding: 40px 0;
        /* Reduced padding */
    }

    .hiw-grid {
        display: block;
        /* Stack content */
    }

    .hiw-img-col {
        display: none;
        /* Hide images on mobile as requested */
    }

    .hiw-content-col {
        text-align: left;
        /* Ensure text is aligned nicely */
    }

    .hiw-step {
        margin-bottom: 20px;
    }
}