/*
Theme Name: Doulaology
Theme URI: https://doulaology.co.uk
Author: Doulaology
Author URI: https://doulaology.co.uk
Description: Doulaology — The Science of Support, The Heart of Connection. A modern, dynamic WordPress theme for perinatal support services.
Version: 3.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: doulaology
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --primary: #4A5D23;
    --primary-dark: #3A4A1C;
    --secondary: #8A9A5B;
    --accent: #C4A86A;
    --white: #FFFFFF;
    --off-white: #F5F2EB;
    --light-gray: #F0EDE8;
    --text: #2D2D2D;
    --text-light: #5A5A5A;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 44px; width: auto; }
.site-logo span { font-weight: 700; font-size: 1.2rem; color: var(--primary); letter-spacing: 0.5px; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 6px;
    transition: var(--transition);
}
.main-nav a:hover { background: var(--off-white); color: var(--primary); }
.main-nav .cta-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}
.main-nav .cta-btn:hover { background: var(--primary-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.nav-toggle span { width: 26px; height: 3px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===== VIDEO HERO ===== */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 72px;
    background: var(--primary-dark);
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-video-fallback {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(74,93,35,0.85) 0%, rgba(74,93,35,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-content .tagline {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-content .subhead {
    font-size: 1.15rem;
    font-weight: 300;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--white); color: var(--primary) !important; }
.btn-primary:hover { background: var(--off-white); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--white) !important; border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary) !important; transform: translateY(-2px); }

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}
.section-off { background: var(--light-gray); }
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
}
.section-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 48px;
}

/* ===== WHY DOULA — 3 BOXES ===== */
.why-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.why-box {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.why-box:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.why-box-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.why-box-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(transparent 30%, rgba(74,93,35,0.85) 100%);
}

.why-box-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: var(--white);
}

.why-box-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.why-box-content p {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.6;
}

/* ===== DOULAOLOGY METHODOLOGY SECTION ===== */
.doulaology-section {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0;
}

.doulaology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.doulaology-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.doulaology-content p {
    font-size: 1.05rem;
    margin-bottom: 16px;
    opacity: 0.9;
    line-height: 1.7;
}

.doulaology-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.doulaology-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.service-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; flex: 1; }
.service-card .btn { margin-top: auto; align-self: center; font-size: 0.9rem; padding: 10px 24px; }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 24px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
}

.testimonial-card p { font-style: italic; color: var(--text-light); margin-bottom: 16px; }
.testimonial-card .author { font-weight: 600; color: var(--primary); }

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.stat-label { font-size: 0.95rem; color: var(--text-light); margin-top: 4px; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 48px 0 24px;
}

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

.footer-col h4 { font-size: 1.1rem; margin-bottom: 16px; color: var(--secondary); }
.footer-col p, .footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 2; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 120px 24px 60px;
    margin-top: 72px;
}

.page-hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; }
.page-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* ===== FORMS ===== */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--text); font-size: 0.95rem; }
.form-group label .optional { color: var(--text-light); font-weight: 300; font-size: 0.85rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); outline: none; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; font-weight: 600; }

/* ===== PRICING CARDS ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured { border: 2px solid var(--primary); transform: scale(1.03); }
.pricing-card:hover { box-shadow: var(--shadow-hover); }
.pricing-card h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 8px; }
.pricing-card .price { font-size: 2.5rem; font-weight: 900; color: var(--text); margin-bottom: 16px; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 24px; flex: 1; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px solid var(--light-gray); font-size: 0.9rem; }
.pricing-card ul li:before { content: '✓ '; color: var(--primary); font-weight: 700; }
.pricing-card .btn { margin-top: auto; }

/* ===== AGENCY REGISTRATION ===== */
.agency-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.agency-benefit {
    text-align: center;
    padding: 24px;
    background: var(--off-white);
    border-radius: var(--radius);
}
.agency-benefit .icon { font-size: 2rem; margin-bottom: 12px; }
.agency-benefit h4 { font-size: 1rem; color: var(--primary); margin-bottom: 4px; }
.agency-benefit p { font-size: 0.85rem; color: var(--text-light); }

/* ===== CONTENT PAGE ===== */
.content-page { padding: 60px 24px; max-width: 800px; margin: 0 auto; }
.content-page h2 { color: var(--primary); margin: 32px 0 16px; font-size: 1.8rem; }
.content-page h3 { color: var(--text); margin: 24px 0 12px; font-size: 1.3rem; }
.content-page p { margin-bottom: 16px; line-height: 1.8; }
.content-page ul, .content-page ol { margin-bottom: 16px; padding-left: 24px; }
.content-page li { margin-bottom: 8px; line-height: 1.7; }

/* ===== DONATE / VOUCHER ===== */
.donate-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.donate-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    text-align: center;
}
.donate-card h3 { color: var(--primary); margin-bottom: 12px; font-size: 1.3rem; }
.donate-card p { color: var(--text-light); margin-bottom: 20px; }
.amount-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.amount-btn {
    padding: 10px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    background: var(--white);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.amount-btn:hover, .amount-btn.active { border-color: var(--primary); background: var(--off-white); color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .agency-benefits { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .doulaology-grid { grid-template-columns: 1fr; }
    .doulaology-image { order: -1; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .tagline { font-size: 1rem; }
    .hero-section { height: 70vh; min-height: 420px; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow);
        gap: 4px;
        display: none;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 16px; width: 100%; }

    .why-boxes { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .donate-options { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .agency-benefits { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .section-title { font-size: 1.7rem; }
    .cta-section h2 { font-size: 1.7rem; }
}