/*
Theme Name: Cherrydale Pediatrics
Theme URI: https://cherrydalepediatrics.com
Author: Cherrydale Pediatrics
Description: Custom theme for Cherrydale Pediatrics - Expert Pediatric House Calls in Arlington, VA
Version: 1.0
*/

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

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: 'Pacifico', cursive;
    font-size: 2.0rem;
    font-weight: 400;
    color: #C27BA0;
    letter-spacing: 0;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    font-family: 'Inter', Helvetica, sans-serif;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #C27BA0;
}

.nav-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-family: 'Inter', Helvetica, sans-serif;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    display: inline-block;
}

.btn-primary {
    background: #2E4057;
    color: #fff;
}

.btn-primary:hover {
    background: #1a2a3a;
    color: #fff;
}

.btn-primary-pink {
    background: #C27BA0;
    color: #fff;
}

.btn-primary-pink:hover {
    background: #a86889;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #C27BA0;
    border: 1px solid #C27BA0;
}

.btn-secondary:hover {
    background: #f0f9fa;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.btn-white {
    background: #fff;
    color: #C27BA0;
}

.btn-white:hover {
    background: #f5f5f5;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: #4D5F76;
    color: #fff;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: left;
    max-width: 550px;
}

.hero h1 {
    font-family: 'Lora', 'Times New Roman', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero p {
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-headshot {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: right center;
    border: none;
    box-shadow: none;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(77, 95, 118, 0.95) 0%, rgba(77, 95, 118, 0.85) 35%, rgba(77, 95, 118, 0.4) 70%);
    z-index: 1;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
    position: relative;
    z-index: 1;
}

section {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

section:first-child {
    padding-top: 3rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h2 {
    font-family: 'Lora', 'Times New Roman', serif;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: #2E4057;
    font-weight: 600;
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #C27BA0 0%, rgba(194, 123, 160, 0.3) 100%);
    border-radius: 2px;
}

h3 {
    font-family: 'Lora', 'Times New Roman', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.step {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.step:hover {
    border-color: #8FA3B0;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(143, 163, 176, 0.2);
}

.step-number {
    background: #C27BA0;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border-left: 2px solid #8FA3B0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(194, 123, 160, 0.12);
    transform: translateX(4px);
}

.service-card h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    padding: 0.375rem 0;
    color: #4a4a4a;
    font-size: 0.9375rem;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

.service-card li:before {
    content: "✓ ";
    color: #C27BA0;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pricing-card.featured {
    border-color: #8FA3B0;
    border-width: 2px;
    box-shadow: 0 8px 24px rgba(143, 163, 176, 0.2);
    transform: scale(1.02);
}

.pricing-card:hover {
    border-color: #8FA3B0;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(143, 163, 176, 0.2);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-card h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0;
    letter-spacing: -0.02em;
}

.pricing-card .price-detail {
    color: #6b6b6b;
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

.pricing-card ul {
    text-align: left;
    list-style: none;
    margin: 2rem 0;
}

.pricing-card li {
    padding: 0.625rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9375rem;
    color: #4a4a4a;
    padding-left: 2rem;
    text-indent: -2rem;
}

.pricing-card li:before {
    content: "✓";
    color: #C27BA0;
    font-weight: 600;
    margin-right: 0.75rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-row span:first-child {
    color: #4a4a4a;
}

.pricing-row span:last-child {
    color: #2E4057;
    font-weight: 600;
}

.pricing-subhead {
    color: #2E4057;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: left;
}

.pricing-block {
    text-align: left;
    margin-bottom: 2rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-main p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.headshot {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #8FA3B0;
    box-shadow: 0 8px 24px rgba(46, 64, 87, 0.15), 0 2px 6px rgba(143, 163, 176, 0.1);
    margin: 0 auto 1.5rem auto;
    display: block;
}

.credentials {
    background: #f7f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.credentials h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.credentials ul {
    list-style: none;
    text-align: left;
}

.credentials li {
    padding: 0.5rem 0;
    color: #4a4a4a;
    font-size: 0.9375rem;
    display: flex;
    align-items: baseline;
}

.credentials li:before {
    content: "•";
    color: #C27BA0;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 2rem;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #8FA3B0;
}

.faq-item h4 {
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.faq-item p {
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* ============================================================
   HIGHLIGHT BOX
   ============================================================ */
.highlight-box {
    background: linear-gradient(135deg, #fef9fc 0%, #f7f9fa 100%);
    border-left: 4px solid #C27BA0;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(194, 123, 160, 0.08);
}

.highlight-box.muted {
    background: linear-gradient(to right, rgba(143, 163, 176, 0.04), #fff);
    border-left: 2px solid #8FA3B0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.highlight-box strong {
    color: #1a1a1a;
    font-weight: 600;
}

.highlight-box h4 {
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.highlight-box p {
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}

.contact-card h4 {
    margin-bottom: 0;
}

.contact-link {
    font-size: 1.0rem;
    color: #2E4057;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-decoration: none;
    display: block;
}

.contact-link:hover {
    color: #C27BA0;
}

/* ============================================================
   MATERIAL ICONS
   ============================================================ */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 1.2em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    vertical-align: middle;
    margin-right: 0.35rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #4D5F76;
    color: #fff;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 1rem;
}

.footer-section p,
.footer-section a {
    color: #b3b3b3;
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.footer-section a:hover {
    color: #C27BA0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #808080;
    font-size: 0.875rem;
}

.footer-bottom p + p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* ============================================================
   WAITLIST & PRIVACY PAGE LAYOUTS
   ============================================================ */
.page-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
}

.page-container.wide {
    max-width: 900px;
}

.back-link {
    display: inline-block;
    color: #C27BA0;
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.page-container h1 {
    color: #2E4057;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Lora', serif;
}

.intro {
    color: #4a4a4a;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ============================================================
   FORMS
   ============================================================ */
form {
    margin-top: 2rem;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section h2 {
    color: #2E4057;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #C27BA0;
    font-family: 'Lora', serif;
}

.form-section h2::after {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: #2E4057;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.required {
    color: #C27BA0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #C27BA0;
}

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

.checkbox-group,
.radio-group {
    margin-top: 0.5rem;
}

.checkbox-item,
.radio-item {
    margin-bottom: 0.75rem;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    margin-right: 0.5rem;
}

.checkbox-item label,
.radio-item label {
    display: inline;
    font-weight: 400;
    cursor: pointer;
}

.help-text {
    font-size: 0.875rem;
    color: #6b6b6b;
    margin-top: 0.25rem;
}

.submit-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e8e8;
}

/* ============================================================
   CONFIRMATION MODAL
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 64, 87, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 12px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #C27BA0;
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal h2 {
    color: #2E4057;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.modal h2::after {
    display: none;
}

.modal p {
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.modal .btn {
    margin-top: 0.5rem;
}

/* ============================================================
   PRIVACY POLICY & HIPAA PAGES
   ============================================================ */
.hipaa-notice-banner {
    background: #f0f4f8;
    border-left: 4px solid #C27BA0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
    border-radius: 0 4px 4px 0;
}

.hipaa-notice-banner p {
    color: #2E4057;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}
.privacy-content h2 {
    color: #2E4057;
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Lora', serif;
    padding-bottom: 0;
}

.privacy-content h2::after {
    display: none;
}

.privacy-content h3 {
    color: #2E4057;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-content p {
    margin-bottom: 1rem;
    color: #4a4a4a;
}

.privacy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: #4a4a4a;
}

.privacy-content strong {
    color: #2E4057;
}

.last-updated {
    color: #6b6b6b;
    font-style: italic;
    margin-bottom: 2rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-content {
        min-height: 400px;
        padding: 2rem 1.5rem;
        justify-content: center;
    }

    .hero {
        min-height: 400px;
    }

    .hero-headshot {
        object-position: center top;
    }

    .hero::before {
        background: linear-gradient(to bottom, rgba(77, 95, 118, 0.85) 0%, rgba(77, 95, 118, 0.7) 50%, rgba(77, 95, 118, 0.5) 100%);
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .hero p {
        font-size: 1.125rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 3rem 1.5rem;
    }

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

    .page-container h1 {
        font-size: 2rem;
    }

    .page-container {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
