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

/* Screen Reader Only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Brand Colors from PDF */
:root {
    --orange: rgb(214, 106, 38);
    --yellow: rgb(245, 205, 72);
    --green: rgb(42, 153, 115);
    --blue: rgb(0, 89, 169);
    --indigo: rgb(63, 63, 166);
    --azure: #4586C0;
}

body {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 300;
    color: #000;
    background: #fff;
    line-height: 1.7;
}

/* Header - Sticky with Logo Left, Nav Right */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    padding: 0.4rem 2rem 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: 'EB Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--indigo);
    white-space: nowrap;
}

.logo-tagline {
    font-family: 'EB Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    text-align: right;
    margin-right: 15px;
    color: var(--blue);
    white-space: nowrap;
}

.logo-butterfly {
    height: 90px;
    width: auto;
    margin-left: -6px;
    margin-top: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--green);
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

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

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green);
    transition: all 0.3s ease;
}

/* Hamburger animation when open */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section - Full Width Butterfly with White Text */
.hero {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('../images/butterfly-wings/indigo-1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero h1 {
    font-family: 'EB Garamond', serif;
    font-size: 4.5rem;
    font-weight: 400;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    /* Match the body content container */
    width: 100%;
    max-width: 1200px;
    padding: 0 6rem 3rem 6rem;
}

/* Page-specific hero backgrounds */
.hero-about {
    background-image: url('../images/butterfly-wings/yellow-1.png');
    position: relative;
}

/* Ensure title stays above slideshow layers */
.hero-about h1 {
    position: relative;
    z-index: 2;
}

/* Slideshow container and layers */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 112s infinite;
}

/* 14 images, 8 seconds each = 112 second cycle */
.hero-slideshow .slide:nth-child(1) { background-image: url('../images/butterfly-wings/yellow-1.png'); animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { background-image: url('../images/butterfly-wings/yellow-2.png'); animation-delay: 8s; }
.hero-slideshow .slide:nth-child(3) { background-image: url('../images/butterfly-wings/monarch-1.png'); animation-delay: 16s; }
.hero-slideshow .slide:nth-child(4) { background-image: url('../images/butterfly-wings/monarch-2.png'); animation-delay: 24s; }
.hero-slideshow .slide:nth-child(5) { background-image: url('../images/butterfly-wings/monarch-3.png'); animation-delay: 32s; }
.hero-slideshow .slide:nth-child(6) { background-image: url('../images/butterfly-wings/monarch-4.png'); animation-delay: 40s; }
.hero-slideshow .slide:nth-child(7) { background-image: url('../images/butterfly-wings/blue-morpho-1.png'); animation-delay: 48s; }
.hero-slideshow .slide:nth-child(8) { background-image: url('../images/butterfly-wings/blue-morpho-2.png'); animation-delay: 56s; }
.hero-slideshow .slide:nth-child(9) { background-image: url('../images/butterfly-wings/blue-morpho-3.png'); animation-delay: 64s; }
.hero-slideshow .slide:nth-child(10) { background-image: url('../images/butterfly-wings/green-1.png'); animation-delay: 72s; }
.hero-slideshow .slide:nth-child(11) { background-image: url('../images/butterfly-wings/green-2.png'); animation-delay: 80s; }
.hero-slideshow .slide:nth-child(12) { background-image: url('../images/butterfly-wings/purple-1.png'); animation-delay: 88s; }
.hero-slideshow .slide:nth-child(13) { background-image: url('../images/butterfly-wings/purple-2.png'); animation-delay: 96s; }
.hero-slideshow .slide:nth-child(14) { background-image: url('../images/butterfly-wings/indigo-1.png'); animation-delay: 104s; }

@keyframes fadeSlide {
    0% { opacity: 0; }
    1.79% { opacity: 1; }   /* Fade in over 2s (2/112 = 1.79%) */
    7.14% { opacity: 1; }   /* Stay visible (8s / 112s = 7.14%) */
    8.93% { opacity: 0; }   /* Fade out over 2s (2/112 = 1.79%) */
    100% { opacity: 0; }
}

/* Audio welcome section */
.audio-welcome {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.audio-welcome-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--azure);
    flex-shrink: 0;
}

.audio-welcome-content {
    flex: 1;
}

.audio-welcome-label {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.audio-welcome audio {
    width: 100%;
    height: 40px;
}

/* Circular profile thumbnail (fixed position) */
.profile-thumbnail {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

.hero-services {
    background-image: url('../images/butterfly-wings/purple-2.png');
}

.hero-fees {
    background-image: url('../images/butterfly-wings/green-2.png');
}

.hero-faq {
    background-image: url('../images/butterfly-wings/monarch-3.png');
}

.hero-started {
    background-image: url('../images/butterfly-wings/blue-morpho-1.png');
}

/* Buttons */
.buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'EB Garamond', serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

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

.btn-secondary {
    background: white;
    border: 2px solid var(--azure);
    color: var(--azure);
}

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

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.3rem;
}

/* Schedule CTA */
.schedule-cta {
    text-align: center;
    margin: 2.5rem 0;
}

.schedule-help {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.schedule-help a {
    color: var(--azure);
}

/* Insurance List */
.insurance-list {
    columns: 2;
    column-gap: 3rem;
    margin-bottom: 2rem;
    padding-left: 1.2rem;
}

.insurance-list li {
    padding: 0.3rem 0;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding-top: 1rem;
    margin-bottom: 3rem;
}

.cards .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 1rem);
    margin: 0 auto;
}

.card {
    background: white;
    padding: 2rem;
    padding-left: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--azure);
}

.card h3 {
    font-family: 'EB Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--blue);
    margin-bottom: 1rem;
}

.card p {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 300;
    color: #333;
    line-height: 1.7;
    margin-bottom: 0;
}

.focus-cta {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--azure);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

footer p {
    font-family: 'EB Garamond', serif;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-size: 1.05rem;
}

/* Page Content - for inner pages */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 6rem;
    background: white;
}

.page-content h1 {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--blue);
    margin-bottom: 2rem;
}

.page-content h2 {
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    font-size: 2rem;
    color: var(--blue);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.page-content h3 {
    font-family: 'EB Garamond', serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--blue);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: #000;
    margin-bottom: 1.5rem;
}

.page-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-content li {
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

.page-content a:not(.btn) {
    color: var(--blue);
    text-decoration: underline;
}

.page-content a:not(.btn):hover {
    color: var(--indigo);
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid rgba(0, 89, 169, 0.15);
    margin: 3rem 0;
}

/* Highlight Box */
.highlight-box {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* CTA Box */
.cta-box {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #fafafa 100%);
    border-radius: 8px;
}

.cta-box h3 {
    margin-bottom: 1rem;
    margin-top: 0;
}

.cta-box p {
    margin-bottom: 2rem;
}

/* Button Row */
.button-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Contact Info */
.contact-info {
    margin-top: 2rem;
}

.contact-details {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contact-details h3 {
    margin-top: 0;
}

/* Telehealth Box */
.telehealth-box {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #fafafa 100%);
    border-radius: 8px;
    text-align: center;
}

.telehealth-box h3 {
    margin-bottom: 1rem;
    margin-top: 0;
}

.telehealth-box p {
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 1000px) {
    /* Show hamburger button on mobile */
    .menu-toggle {
        display: flex;
    }

    /* Mobile nav - hidden by default, shown when active */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    nav li {
        width: 100%;
        text-align: left;
    }

    nav a {
        display: block;
        padding: 0.75rem 2rem;
        font-size: 1.1rem;
    }

    nav a:hover {
        background: #f5f5f5;
    }

    .logo-name {
        font-size: 0.93rem;
    }

    .logo-tagline {
        font-size: 0.84rem;
        margin-right: 10px;
    }

    .logo-butterfly {
        height: 60px;
        margin-left: -4px;
        margin-top: 10px;
    }

    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 2.5rem;
        padding: 0 2rem 2rem 2rem;
    }

    .page-content {
        padding: 3rem 2rem;
    }

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

    .cards .card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }

    .buttons,
    .button-row {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .insurance-list {
        columns: 1;
    }
}
