/* Custom Properties for Color Palette (Based on Logo & Warm Vibe) */
:root {
    --color-primary: #5A7F8C; /* Muted Teal/Blue - Authority/Trust */
    --color-secondary: #C3996B; /* Soft Gold/Taupe - Warm Accent */
    --color-background: #F8F4EE; /* Soft Cream/Beige - Calm Background */
    --color-text: #333333; /* Dark Gray for Contrast (A11Y) */
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

/* Base Styles and A11Y */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    line-height: 1.6;
}
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--color-secondary);
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* Ensure elements are keyboard focusable */
:focus {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}
.sr-only { /* Screen Reader Only - Hides visually but not from AT */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- 1. Header & Navigation (Mobile First) --- */
.main-header {
    background-color: var(--color-white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link img {
    height: 60px; /* Mobile logo size */
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
}
.index-img {
    height: auto;       /* Keeps the image proportional so it doesn't look stretched */
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);     /* Removes weird bottom spacing */
}
.index-img-wrapper {
    width: 100%;
    max-width: 200px;   /* Change this to make the headshot smaller/larger on desktop */
    margin: 0 auto;
}
.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    /* Placeholder for hamburger icon styling */
}
.main-nav {
    display: none; /* Hidden by default on mobile */
    /* JS will toggle a 'display: block' or 'flex' class */
}
.header-cta {
    display: none; /* Hide in header on mobile to push focus to the Hero CTA */
}

/* --- 2. Hero Section (Mobile First) --- */
.hero-section {
    background-color: var(--color-background);
    padding: 60px 0;
    text-align: center;
}
.hero-headline {
    font-size: 2em; /* Mobile H1 size */
    margin-bottom: 10px;
}
.hero-subhead {
    font-size: 1em;
    margin-bottom: 10px;
    color: var(--color-text);
}
.cta-button {
    display: inline-block;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s;
}
.cta-button:hover {
    background-color: #A9845B; /* Slightly darker gold on hover */
    transform: translateY(-2px);
}

/* Tablet and Desktop Enhancements */
@media (min-width: 768px) {
    .main-header .container {
        display: grid;
        grid-template-columns: auto 1fr auto; /* Logo | Nav | CTA */
        gap: 20px;
    }
    .menu-toggle {
        display: none; /* Hide hamburger on desktop */
    }
    .main-nav {
        display: block; /* Show menu on desktop */
        justify-self: center;
    }
    .main-nav ul {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .main-nav li a {
        padding: 10px 15px;
        display: block;
        font-weight: 500;
    }
    .header-cta {
        display: inline-block; /* Show CTA in header on desktop */
    }
    .hero-section {
        padding: 50px 0;
    }
    .hero-headline {
        font-size: 3em; /* Larger H1 for desktop */
    }
    /* --- 3. Trust Bar / Quick Facts --- */
.trust-bar {
    padding: 20px 0;
    background-color: var(--color-white);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.trust-bar .container {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 15px;
}
.fact-item {
    display: flex;
    align-items: center;
    justify-content: center;
}
.fact-icon {
    font-size: 1.5em;
    margin-right: 10px;
}
.fact-detail {
    margin: 0;
    font-weight: 600;
}

/* --- 4. About the Doula (Mobile First) --- */
.about-summary {
    padding: 60px 0;
}
.about-summary .container {
    display: flex;
    flex-direction: column; /* Image stacked above text on mobile */
    gap: 30px;
}
.about-image-wrapper {
    order: -1; /* Place image first on mobile */
    text-align: center;
}
.about-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* This ensures the image never exceeds its container and stays proportional */
.about-full-image, .about-image {
    max-width: 100%;    /* Never wider than its parent div */
    height: auto;       /* Maintain aspect ratio */
    display: block;     /* Removes weird bottom spacing */
    margin: 0 auto;     /* Centers it if the container is wider */
}

/* Optional: To prevent it from looking GIANT on huge monitors */
.about-image-wrapper, .headshot-block {
    max-width: 200px;   /* Sets a comfortable maximum size for a headshot */
    margin: 0 auto;
}
.link-secondary {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--color-secondary);
}

/* --- Services Layout --- */

/* 1. Mobile Styles (Vertical Stack) */
.service-cards {
    display: flex;
    flex-direction: column; /* This forces the vertical stack */
    gap: 25px;
    margin: 30px 0;
}

.service-card {
    background-color: var(--color-white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%; /* Ensures cards take full width on mobile */
    box-sizing: border-box; /* Prevents padding from breaking the width */
}

/* 2. Desktop Styles (Horizontal Layout) */
@media (min-width: 768px) {
    .service-cards {
        flex-direction: row; /* Switches to horizontal on tablets/desktops */
        flex-wrap: wrap;     /* Allows cards to wrap if there are many */
        justify-content: center;
        align-items: stretch; /* Ensures all cards in a row are the same height */
    }

    .service-card {
        flex: 1; /* Cards grow to fill the space equally */
        min-width: 300px; /* Prevents cards from getting too skinny */
        max-width: 400px; /* Keeps cards from getting too wide */
    }
}

/* Tablet and Desktop Enhancements */
@media (min-width: 768px) {
    /* Trust Bar Desktop */
    .trust-bar .container {
        flex-direction: row; /* Layout horizontally on desktop */
        justify-content: space-around;
        gap: 20px;
    }

    /* About Section Desktop (Side-by-side layout) */
    .about-summary .container {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .about-content, .about-image-wrapper {
        flex: 1; /* Equal width columns */
        order: initial; /* Reset order */
    }
    .about-image-wrapper {
        padding-left: 50px; /* Space between text and image */
    }

    /* Services Overview Desktop (2-column grid) */
    .service-cards {
        flex-direction: row;
        justify-content: center;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    .service-card {
        flex: 1; /* Cards take up equal space */
    }
}
/* --- 6. Testimonial Carousel --- */
.testimonials-section {
    padding: 60px 0;
    text-align: center;
}
.carousel-container {
    max-width: 700px; /* Constrain carousel width for readability */
    margin: 30px auto;
    position: relative;
}
.testimonial-carousel {
    overflow: hidden; /* Important to hide off-screen slides */
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 40px 25px;
    background-color: var(--color-white);
    min-height: 200px; /* Ensure space while empty */
}
.testimonial-slide {
    display: none; /* Hidden by default; JS will show the active one */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.testimonial-slide.active {
    display: block;
    opacity: 1;
}
.testimonial-quote {
    font-size: 1.2em;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 20px;
}
.testimonial-author {
    font-weight: 600;
    color: var(--color-primary);
}

/* --- 7. Final CTA Block --- */
.cta-final {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}
.cta-headline {
    color: var(--color-white); /* Override default H2 color */
    margin-bottom: 10px;
}
.cta-subhead {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--color-background); /* Use the cream color for contrast */
}

/* --- 8. Footer (Mobile First) --- */
.main-footer {
    background-color: #2D4050; /* Deep, dark navy for the footer */
    color: var(--color-background);
    padding: 40px 0 20px;
    font-size: 0.9em;
}
.footer-grid {
    display: flex;
    flex-direction: column; /* Stacked vertically on mobile */
    gap: 30px;
    margin-bottom: 30px;
}
.main-footer a {
    color: var(--color-background);
    opacity: 0.8;
}
.main-footer a:hover {
    color: var(--color-secondary);
    opacity: 1;
}
.main-footer h4 {
    color: var(--color-secondary);
    font-family: var(--font-body);
    margin-top: 0;
    margin-bottom: 10px;
}
.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

@media (min-width: 768px) {
    /* Footer Desktop */
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer-contact, .footer-links, .footer-legal {
        flex: 1;
    }
}
/* --- Class Signup Form --- */
.signup-section {
    padding: 60px 0;
    background-color: var(--color-background); /* Using your cream/light color */
}

.signup-container {
    max-width: 650px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.signup-header {
    text-align: center;
    margin-bottom: 30px;
}

.styled-form .form-group {
    margin-bottom: 20px;
}

.styled-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.styled-form input[type="text"],
.styled-form input[type="email"],
.styled-form select,
.styled-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.styled-form select {
    background-color: #fff;
    cursor: pointer;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.form-checkbox label {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
}

.form-checkbox input {
    margin-top: 4px;
}

/* Make button full width on mobile, auto on desktop */
.styled-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .styled-form .cta-button {
        width: auto;
        padding: 15px 40px;
    }
}
/* --- Success / Thank You Page Styling --- */
.success-message-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.next-steps-box {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--color-background);
    border-radius: 8px;
    text-align: left; /* Better for reading lists */
    border: 1px solid rgba(0,0,0,0.05);
}

.next-steps-box h3 {
    color: var(--color-secondary);
    margin-top: 0;
    text-align: center;
    margin-bottom: 20px;
}

.success-list {
    list-style: none;
    padding: 0;
}

.success-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

/* Custom bullet points */
.success-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

.success-actions {
    margin-top: 40px;
}

.success-actions .divider {
    margin: 0 15px;
    color: #ccc;
}
}