/* ============================================
   Primary Family Care — Stylesheet
   Classic & Elegant | Emerald + Cream
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Karla', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2C3E35;
    background-color: #FAF6F0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    color: #1B4332;
}

/* ---------- Utility ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #1B4332;
    color: #FAF6F0;
    padding: 8px 16px;
    border-radius: 0 0 4px 4px;
    z-index: 9999;
    font-size: 14px;
}

.skip-link:focus {
    top: 0;
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    font-family: 'Karla', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2D6A4F;
    margin-bottom: 12px;
}

/* ---------- Section Title ---------- */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4A6B5A;
    max-width: 560px;
}

/* ---------- Section Divider ---------- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #1B4332;
    color: #FAF6F0;
    border: 1.5px solid #1B4332;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #2D6A4F;
    border-color: #2D6A4F;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.25);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: #1B4332;
    color: #FAF6F0;
    transform: translateY(-1px);
}

.btn-light {
    background-color: #FAF6F0;
    color: #1B4332;
    border: 1.5px solid #FAF6F0;
}

.btn-light:hover,
.btn-light:focus-visible {
    background-color: #E8F0E8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 24px rgba(27, 67, 50, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1B4332;
}

.nav-logo-mark {
    font-size: 1.6rem;
    font-weight: 300;
    color: #2D6A4F;
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #4A6B5A;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #2D6A4F;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1B4332;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #1B4332;
    background-color: #E8F0E8;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background-color: #1B4332;
    color: #FAF6F0;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: 3px;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #1B4332;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #FAF6F0;
    padding-top: 72px;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero-layout {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 0;
    align-items: stretch;
    min-height: calc(100vh - 72px);
}

/* Left: Image Panel */
.hero-image-panel {
    position: relative;
    overflow: hidden;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(250, 246, 240, 0) 60%,
        rgba(250, 246, 240, 1) 100%
    );
}

.hero-accent-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #2D6A4F;
}

/* Right: Content Panel */
.hero-content-panel {
    display: flex;
    align-items: center;
    padding: 60px 0 60px 64px;
}

.hero-content-inner {
    max-width: 540px;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2D6A4F;
    margin-bottom: 20px;
}

.hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: #1B4332;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A6B5A;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4A6B5A;
}

/* ---------- Services Section ---------- */
.services {
    padding: 100px 0;
    background-color: #FAF6F0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.service-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(27, 67, 50, 0.08);
    border-radius: 6px;
    padding: 36px 32px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(27, 67, 50, 0.1);
    border-color: rgba(45, 106, 79, 0.2);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E8F0E8;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 12px;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4A6B5A;
}

/* ---------- About Section ---------- */
.about {
    padding: 100px 0;
    background-color: #F3EDE4;
}

.about-layout {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 64px;
    align-items: center;
}

.about-image-side {
    position: relative;
}

.about-image-main {
    border-radius: 6px;
    overflow: hidden;
}

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

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    border: 6px solid #F3EDE4;
    box-shadow: 0 8px 32px rgba(27, 67, 50, 0.12);
}

.about-image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: #1B4332;
    color: #FAF6F0;
    padding: 16px 20px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.25);
}

.about-experience-badge .experience-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.about-experience-badge .experience-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
}

.about-content-side {
    padding: 20px 0;
}

.about-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #4A6B5A;
    margin-bottom: 20px;
}

.about-values {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-value-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-value-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2C3E35;
}

/* ---------- Insurance Band ---------- */
.insurance-band {
    padding: 80px 0;
    background-color: #1B4332;
}

.insurance-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.insurance-content {
    flex: 1;
    min-width: 0;
}

.insurance-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #A8D5BA;
    margin-bottom: 12px;
}

.insurance-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 600;
    color: #FAF6F0;
    margin-bottom: 16px;
}

.insurance-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #B8D4BE;
    max-width: 520px;
}

.insurance-cta {
    flex-shrink: 0;
}

/* ---------- Contact Section ---------- */
.contact {
    padding: 100px 0;
    background-color: #FAF6F0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 64px;
    align-items: start;
}

.contact-intro {
    font-size: 1rem;
    line-height: 1.75;
    color: #4A6B5A;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E8F0E8;
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-detail-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-detail-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2D6A4F;
}

.contact-detail-value {
    font-size: 0.95rem;
    color: #2C3E35;
    line-height: 1.5;
}

.contact-detail-link {
    font-size: 0.95rem;
    color: #2D6A4F;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-detail-link:hover {
    color: #1B4332;
    text-decoration: underline;
}

/* Contact Form */
.contact-form-side {
    background-color: #FFFFFF;
    border: 1px solid rgba(27, 67, 50, 0.08);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(27, 67, 50, 0.06);
}

.form-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 28px;
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2C3E35;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    color: #2C3E35;
    background-color: #FAF6F0;
    border: 1.5px solid rgba(27, 67, 50, 0.15);
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9AAF9E;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A6B5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: #E8F0E8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 12px;
}

.success-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4A6B5A;
    max-width: 360px;
    margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
    background-color: #143326;
    padding: 56px 0 32px;
    color: #A8D5BA;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(168, 213, 186, 0.15);
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo-mark {
    font-size: 1.8rem;
    font-weight: 300;
    color: #A8D5BA;
    line-height: 1;
}

.footer-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #FAF6F0;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #8BB89A;
    line-height: 1.6;
    max-width: 280px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #8BB89A;
}

.footer-contact-item a {
    color: #8BB89A;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #FAF6F0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.82rem;
    color: #6B9E7B;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: #5A8A6A;
    text-align: right;
    max-width: 400px;
    line-height: 1.5;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content-panel {
        padding: 40px 40px 40px 32px;
    }

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

    .about-layout {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .contact-layout {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #FAF6F0;
        flex-direction: column;
        align-items: flex-start;
        padding: 96px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-cta {
        margin-top: 8px;
    }

    /* Mobile overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-image-panel {
        display: none;
    }

    .hero-content-panel {
        padding: 40px 24px;
        align-items: center;
        text-align: center;
    }

    .hero-content-inner {
        max-width: 100%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .services {
        padding: 72px 0;
    }

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

    .about {
        padding: 72px 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-side {
        order: -1;
    }

    .about-image-accent {
        width: 140px;
        height: 140px;
        bottom: -20px;
        right: -10px;
    }

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

    .insurance-band {
        padding: 60px 0;
    }

    .insurance-band-inner {
        flex-direction: column;
        text-align: center;
    }

    .contact {
        padding: 72px 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-side {
        padding: 28px;
    }

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

    .footer-top {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
