:root {
    /* Premium Palette (Apple-like) */
    --color-milk: #FBFBFD; /* Extremely light grey/off-white */
    --color-sand: #F2F2F7; /* Apple system grey 6 */
    --color-sage: #9CAD9A; /* Kept for trust */
    --color-terracotta: #D35C45; /* Vibrant terracotta */
    --color-gold: #F2A900;
    --color-font: #1D1D1F; /* Apple solid dark text */
    --color-font-light: #86868B; /* Elegant grey for subtext */
    
    /* Modern Geographic Font */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Rounded corners for friendly but modern feel */
    --border-radius-xl: 32px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.04);
    
    /* Glassmorphism tokens */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-blur: blur(20px);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-font);
    background-color: var(--color-milk);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
.title-primary {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--color-font);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 3.5rem;
}

.text-center {
    text-align: center;
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
}

.btn--primary {
    background-color: var(--color-terracotta);
    color: #fff;
}

.btn--primary:hover {
    background-color: #BD4A35;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(211, 92, 69, 0.25);
}

.btn--large {
    padding: 1.2rem 2.8rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.btn--outline {
    border-color: rgba(29, 29, 31, 0.1);
    color: var(--color-font);
    background: transparent;
}

.btn--outline:hover {
    background-color: var(--color-font);
    color: #fff;
    border-color: var(--color-font);
}

.btn--text {
    background: transparent;
    color: var(--color-font);
    font-weight: 500;
}

.btn--text:hover {
    color: var(--color-terracotta);
}

.btn--sos {
    background-color: #FF3B30; /* Apple SOS Red */
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.25);
}

.btn--sos:hover {
    background-color: #E22B22;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 59, 48, 0.35);
}

.mobile-only {
    display: none;
}

/* Header Glassmorphism */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    padding: 0.8rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-font);
}

/* SVG icon in logo */
.logo__icon {
    stroke: var(--color-terracotta);
    transition: transform 0.3s ease;
}

.logo:hover .logo__icon {
    transform: rotate(10deg) scale(1.1);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-font-light);
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--color-font);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.burger span {
    width: 100%;
    height: 2px;
    background-color: var(--color-font);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* Subtle zoom for premium feel */
}

/* The gradient makes the text perfectly legible but keeps the image rich */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(251,251,253,0.98) 0%, rgba(251,251,253,0.85) 45%, rgba(251,251,253,0.1) 100%);
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    z-index: 1;
    position: relative;
}

.hero__text-box {
    max-width: 650px;
    margin-bottom: 3.5rem;
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--color-font-light);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.6;
}

/* Search Widget (Glassmorphism Pill) */
.search-widget {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 100px;
    padding: 0.6rem 0.6rem 0.6rem 2rem;
    display: inline-flex;
    align-items: center;
    box-shadow: var(--shadow-glass);
    animation: fadeUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.widget-field {
    display: flex;
    flex-direction: column;
    padding-right: 1.5rem;
}

.widget-field label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-font);
    margin-bottom: 0.2rem;
}

.widget-field input, .widget-field select {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-font-light);
    cursor: pointer;
    width: 120px;
}

.widget-field input::placeholder {
    color: #B4B4B8;
}

.widget-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(0,0,0,0.08); /* Subtle line */
    margin-right: 1.5rem;
}

.widget-btn {
    background: linear-gradient(135deg, var(--color-terracotta), #BD4A35);
    color: #fff;
    border: none;
    border-radius: 100px; /* Fully rounded */
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 92, 69, 0.3);
}

.widget-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(211, 92, 69, 0.4);
}

/* Sections */
.section {
    padding: 8rem 0;
}

.bg-sand {
    background-color: var(--color-sand);
}

/* Reveal classes for JavaScript Observer */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Trust Grid */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.trust-card {
    background-color: #fff;
    padding: 3.5rem 2.5rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: var(--shadow-soft);
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.trust-card__icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #F2F2F7 0%, #FFFFFF 100%);
    box-shadow: insert 0 2px 5px rgba(0,0,0,0.02), 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--color-font);
    border: 1px solid rgba(0,0,0,0.05);
}

.trust-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.trust-card p {
    color: var(--color-font-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Feed Grid (Nannies) */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
}

.nanny-card {
    background-color: #fff;
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Glass header inside card just for looks */
.nanny-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-sand) 0%, #fff 100%);
    z-index: 0;
    opacity: 0.5;
}

.nanny-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(211, 92, 69, 0.1);
}

.nanny-card__avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s ease;
}

.nanny-card:hover .nanny-card__avatar {
    transform: scale(1.05);
}

.nanny-card__info {
    position: relative;
    z-index: 1;
}

.nanny-card__info h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.nanny-card__rating {
    font-size: 0.95rem;
    color: var(--color-font-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.nanny-card__rating .star {
    color: var(--color-gold);
    font-size: 1.1rem;
}

.nanny-card__price {
    font-weight: 600;
    color: var(--color-font);
    font-size: 1.15rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-sand);
}

.nanny-card__price span {
    color: var(--color-font-light);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Footer */
.footer {
    background-color: var(--color-font);
    color: #fff;
    padding: 5rem 0 3rem;
    text-align: center;
}

.footer .logo {
    color: #fff;
    justify-content: center;
}

.footer-content p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .title-primary {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .search-widget {
        flex-direction: column;
        background: var(--glass-bg);
        border-radius: var(--border-radius-lg);
        padding: 1.5rem;
        width: 100%;
        max-width: 400px;
        align-items: stretch;
    }

    .widget-field {
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .widget-field input, .widget-field select {
        width: 100%;
        font-size: 1.1rem;
    }
    
    .widget-divider {
        width: 100%;
        height: 1px;
        margin: 0 0 1rem 0;
    }
    
    .widget-btn {
        margin-top: 0.5rem;
    }
    
    .hero__overlay {
        background: linear-gradient(to top, rgba(251,251,253,1) 0%, rgba(251,251,253,0.85) 50%, rgba(251,251,253,0.3) 100%);
    }

    .hero__content {
        justify-content: flex-end;
        padding-bottom: 5rem;
    }
}

@media (max-width: 768px) {
    .burger { display: flex; }

    .nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        padding: 2rem;
    }

    .nav.nav-active { right: 0; }

    .burger.burger-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .burger.burger-active span:nth-child(2) { opacity: 0; }
    .burger.burger-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .desktop-sos { display: none; }
    .mobile-only { display: inline-flex; margin-top: 1rem; width: 100%; }
    
    .title-primary { font-size: 2.6rem; }
    .section { padding: 5rem 0; }
}
