/* ========================================
   WUNDERPFLEGE - CARE.COM STYLE
   Modern, Clean, Conversion-Optimized
   ======================================== */

/* FONTS & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

:root {
    /* Brand Colors - Professional Teal */
    --primary: #2A9D8F;
    --primary-dark: #218F81;
    --primary-light: #3DB3A4;

    /* Neutrals */
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
    --text-light: #718096;

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-gray-50: #F9FAFB;
    --bg-gray-100: #F3F4F6;

    /* Borders */
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Spacing */
    --nav-height: 72px;

    /* Transitions */
    --transition: all 0.2s ease;
}

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    height: var(--nav-height);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary);
}

.logo-icon {
    height: 55px;
    width: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

/* Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    transition: var(--transition);
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 80px;
    background: linear-gradient(180deg, var(--bg-gray-50) 0%, var(--bg-white) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

/* Hero Content */
.hero-content {
    max-width: 580px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Search Box */
.search-box {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.search-input-group {
    position: relative;
    margin-bottom: 16px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    width: 20px;
    height: 20px;
}

.search-input,
.search-select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-primary);
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.btn-search {
    width: 100%;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: 16px;
}

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

.btn-search svg {
    width: 20px;
    height: 20px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.badge svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-photo {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

/* ========================================
   ANIMATED SERVICE TAGS
   ======================================== */
.services-slider {
    padding: 40px 0;
    background: var(--bg-gray-50);
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 16px;
    animation: slide 30s linear infinite;
    width: fit-content;
}

.service-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.service-tag svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.services-slider:hover .slider-track {
    animation-play-state: paused;
}

/* ========================================
   CAREGIVER SHOWCASE (Care.com Style)
   ======================================== */
.caregivers-showcase {
    padding: 80px 0;
    background: var(--bg-white);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.showcase-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.showcase-link:hover {
    gap: 10px;
}

.showcase-link svg {
    width: 18px;
    height: 18px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Profile Card */
.showcase-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    perspective: 1000px;
}

.showcase-flipper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.showcase-card:hover .showcase-flipper {
    transform: rotateY(180deg);
}

.showcase-front,
.showcase-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.showcase-front {
    z-index: 2;
}

.showcase-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    color: white;
}

.showcase-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.showcase-role {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 12px;
}

.showcase-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.showcase-stars {
    color: #FBBF24;
    font-size: 14px;
    letter-spacing: 2px;
}

.showcase-exp {
    font-size: 12px;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* BACK: Green Info Card */
.showcase-back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, #D1FAE5 0%, #A7F3D0 40%, #6EE7B7 100%);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.showcase-back-quote {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #064E3B;
    margin-bottom: 8px;
    font-style: italic;
}

.showcase-back-author {
    font-size: 13px;
    font-weight: 500;
    color: #065F46;
    margin-bottom: 20px;
}

.showcase-back-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #064E3B;
    margin-bottom: 10px;
}

.showcase-back-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.showcase-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(6, 78, 59, 0.15);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: #064E3B;
}

/* CTA Card */
.showcase-cta-card {
    background: linear-gradient(145deg, #E6F5F3 0%, #D0EEEA 100%);
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-cta-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 24px;
}

.showcase-cta-list {
    list-style: none;
    margin-bottom: 28px;
}

.showcase-cta-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.showcase-cta-list li svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.showcase-cta-btn {
    display: inline-block;
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 968px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-title {
        font-size: 26px;
    }
}

@media (max-width: 640px) {
    .showcase-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .showcase-name {
        font-size: 18px;
    }

    .showcase-role {
        font-size: 12px;
    }

    .showcase-cta-card {
        grid-column: 1 / -1;
    }
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits {
    padding: 80px 0;
    background: var(--bg-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.benefit-card {
    text-align: center;
    padding: 32px;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
}

.benefit-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.benefit-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 80px 0;
    background: var(--bg-gray-50);
}

.cta-card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-content {
    padding: 60px;
    color: white;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 32px;
}

.cta-list {
    list-style: none;
    margin-bottom: 32px;
}

.cta-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 1.5;
}

.cta-list svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-primary-large {
    display: inline-block;
    background: white;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

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

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    padding: 80px 0;
    background: var(--bg-white);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: 40px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-card {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: 40px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav-menu {
        display: none;
        /* Mobile menu needed */
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .search-box {
        padding: 24px;
    }

    .cta-content {
        padding: 32px 24px;
    }
}