/* 
 * Hebammenpraxis Design System 
 * Premium, Responsive, Modern
 */

:root {
    /* Color Palette */
    --primary-color: #c88ea7;
    /* Soft Rose */
    --primary-dark: #a66d86;
    --secondary-color: #8da399;
    /* Sage Green */
    --accent-color: #e6b8a2;
    /* Warm Peach */
    --bg-color: #fcfbf9;
    /* Off-White */
    --text-main: #2d3436;
    --text-muted: #636e72;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: 80px 0;
}

/* HEADER */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

.brand-name h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.1;
}

.brand-name p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* NAVIGATION */
nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav>a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

nav>a:hover,
nav>a.active {
    color: var(--primary-color);
}

nav>a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav>a:hover::after {
    width: 100%;
}

.mobile-nav-backdrop {
    display: none;
}

/* BUTTONS */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(200, 142, 167, 0.3);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(200, 142, 167, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

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

.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

body.menu-open {
    overflow: hidden;
}

/* HERO SECTION */
.hero {
    height: 90vh;
    /* Full viewport height */
    min-height: 600px;
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.7)), url('https://user-gen-media-assets.s3.amazonaws.com/seedream_images/817a7bad-6116-4fd9-93c9-f26c70f05acb.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* USER DROPDOWN */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 2001;
    margin-top: 10px;
    border: 1px solid #eee;
}

.user-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.user-dropdown a {
    color: var(--text-main) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background 0.2s;
    cursor: pointer;
    position: relative;
}

.user-dropdown a::after {
    display: none !important;
}

.user-dropdown a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

.auth-btn:focus {
    outline: none;
}

.hero-content {
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero .lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.hebamio-fallback-card {
    margin-top: 24px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e9d5e2;
}

.hebamio-fallback-card p {
    margin-bottom: 14px;
    color: #4a5568;
    font-size: 0.98rem;
}

.hebamio-fallback-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hebamio-fallback-actions .btn {
    min-width: 260px;
}

/* ABOUT SECTION */
.bio-section {
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.bio-section h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* SERVICES GRID */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideDown 0.4s ease-out;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: var(--text-main);
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.phone-input-group {
    display: grid;
    grid-template-columns: minmax(110px, 130px) minmax(0, 1fr);
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #fdfdfd;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 142, 167, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #758a80;
}

/* TIME GRID */
.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.time-slot:hover {
    background: #e9e9e9;
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

/* FOOTER */
footer {
    background: #2d3436;
    color: white;
    padding: 60px 0 20px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.footer-section a {
    display: block;
    margin-bottom: 10px;
    color: #b2bec3;
    cursor: pointer;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    margin-top: 50px;
    padding-top: 20px;
    color: #636e72;
    font-size: 0.9rem;
}

/* USER DASHBOARD */
.booking-card {
    background: white;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.booking-info {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

/* TOASTS */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 6px solid #ccc;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #2ecc71;
}

.toast-error {
    border-left-color: #e74c3c;
}

.toast-info {
    border-left-color: #3498db;
}

.toast-warning {
    border-left-color: #f1c40f;
}

/* TESTIMONIALS */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: #555;
    position: relative;
    transition: transform 0.3s;
}

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

.testimonial .author {
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-main);
    font-style: normal;
    text-align: right;
    font-size: 0.9rem;
}

/* CONTACT SECTION */
.contact {
    background: linear-gradient(to bottom, #fff, #fcfbf9);
    text-align: center;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.contact-item {
    text-align: center;
    min-width: 200px;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-item a,
.contact-item p {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    display: block;
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.contact-cta {
    margin-top: 12px;
}

.legal-content-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    .section {
        padding: 60px 0;
    }

    .header-content {
        justify-content: space-between;
        padding: 10px 20px;
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: var(--text-main);
        border-radius: 3px;
        transition: all 0.3s;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(82vw, 320px);
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(110%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        pointer-events: none;
    }

    nav.active {
        transform: translateX(0);
        pointer-events: auto;
    }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.38);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease;
        z-index: 999;
        backdrop-filter: blur(2px);
    }

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

    nav a {
        font-size: 1.2rem;
        margin-bottom: 20px;
        width: 100%;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }

    .auth-btn {
        width: 100%;
        text-align: center;
    }

    .user-dropdown {
        right: 0;
        left: auto;
    }

    .hero {
        min-height: 520px;
        height: auto;
        padding: 80px 18px;
    }

    .hero-content {
        width: 100%;
        max-width: 740px;
        padding: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .hebamio-fallback-actions .btn {
        width: 100%;
        min-width: auto;
    }

    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 15% auto;
        padding: 25px;
        width: 95%;
        max-height: calc(100vh - 30px);
        overflow-y: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .booking-info {
        flex-wrap: wrap;
        gap: 10px;
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .contact-info {
        gap: 20px;
        margin-bottom: 34px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }

    .header-content {
        padding: 10px 14px;
    }

    .logo-section {
        gap: 10px;
    }

    .logo {
        height: 42px;
    }

    .brand-name h1 {
        font-size: 1rem;
    }

    .brand-name p {
        font-size: 0.75rem;
    }

    nav {
        width: min(86vw, 300px);
        padding: 78px 20px 24px;
    }

    .hero {
        min-height: 500px;
        padding: 60px 12px;
    }

    .hero-content {
        padding: 24px 18px;
    }

    .hero h1 {
        font-size: 1.9rem;
        letter-spacing: -0.03em;
    }

    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero .lead {
        margin-bottom: 28px;
        font-size: 0.95rem;
    }

    .phone-input-group {
        grid-template-columns: 1fr;
    }

    .bio-section {
        padding: 24px 18px;
    }

    .service-card {
        padding: 26px 18px;
    }

    .time-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        width: 100%;
        min-width: 0;
    }

    .contact-item h4 {
        font-size: 1.15rem;
    }

    .contact-item a,
    .contact-item p {
        font-size: 1rem;
    }

    .legal-content-wrapper {
        padding: 20px 16px;
    }

    .user-dropdown {
        position: fixed;
        right: 10px;
        left: 10px;
        top: 70px;
        min-width: auto;
        margin-top: 0;
    }

    .toast-container {
        top: 12px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: 0;
        width: 100%;
        padding: 14px 12px;
    }

    footer {
        margin-top: 70px;
    }

    .footer-content {
        gap: 24px;
    }
}

/* Hide hamburger on desktop */
@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none;
    }

    .mobile-nav-backdrop {
        display: none !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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