/* ============================================
   Dr. Jennifer Nowasielski, MD — Website Styles
   Palette: Forest Green + Off-White
   ============================================ */

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

:root {
    --green-900: #0B2218;
    --green-800: #1B4332;
    --green-700: #2D6A4F;
    --green-600: #40916C;
    --green-500: #52B788;
    --green-400: #74C69D;
    --green-300: #95D5B2;
    --green-200: #B7E4C7;
    --green-100: #D8F3DC;
    --green-50:  #EFF7F1;

    --cream-50:  #FDFCF8;
    --cream-100: #FAF8F3;
    --cream-200: #F5F0E8;
    --cream-300: #EDE5D8;

    --text-dark:  #1A2E23;
    --text-mid:   #3D5A4C;
    --text-light: #6B8F7D;

    --white: #FFFFFF;
    --shadow-sm:  0 1px 3px rgba(27,67,50,0.08), 0 1px 2px rgba(27,67,50,0.06);
    --shadow-md:  0 4px 16px rgba(27,67,50,0.10), 0 2px 4px rgba(27,67,50,0.06);
    --shadow-lg:  0 12px 40px rgba(27,67,50,0.12), 0 4px 12px rgba(27,67,50,0.08);
    --shadow-xl:  0 24px 60px rgba(27,67,50,0.14), 0 8px 20px rgba(27,67,50,0.10);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Lora', 'Georgia', serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-500); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; color: var(--green-800); }

.skip-link {
    position: absolute; top: -100%; left: 16px;
    background: var(--green-800); color: var(--white);
    padding: 8px 16px; border-radius: var(--radius-sm);
    z-index: 9999; font-weight: 700;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(253,252,248,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27,67,50,0.08);
    transition: box-shadow var(--transition), background var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(253,252,248,0.97);
}

.nav-inner {
    display: flex; align-items: center;
    padding-top: 0; padding-bottom: 0;
    height: 72px;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 600;
    color: var(--green-800);
    flex-shrink: 0;
}
.nav-logo:hover { color: var(--green-700); }
.nav-logo-icon { width: 36px; height: 36px; }

.nav-menu {
    display: flex; align-items: center; gap: 4px;
    margin-left: auto; margin-right: 20px;
}
.nav-menu a {
    padding: 8px 16px; border-radius: var(--radius-full);
    font-weight: 600; font-size: 0.9rem;
    color: var(--text-mid); transition: all var(--transition);
}
.nav-menu a:hover { color: var(--green-700); background: var(--green-50); }

.nav-cta {
    display: flex; align-items: center; gap: 6px;
    background: var(--green-700); color: var(--white) !important;
    padding: 10px 20px; border-radius: var(--radius-full);
    font-weight: 700; font-size: 0.88rem;
    transition: all var(--transition);
    flex-shrink: 0;
}
.nav-cta:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-cta svg { width: 16px; height: 16px; }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; position: relative;
    flex-shrink: 0; margin-left: 8px;
}
.nav-toggle-bar {
    display: block; width: 22px; height: 2px;
    background: var(--green-800); border-radius: 2px;
    position: absolute; left: 9px;
    transition: all var(--transition);
}
.nav-toggle-bar:nth-child(1) { top: 12px; }
.nav-toggle-bar:nth-child(2) { top: 19px; }
.nav-toggle-bar:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11,34,24,0.82) 0%,
        rgba(27,67,50,0.72) 50%,
        rgba(45,106,79,0.60) 100%
    );
}
.hero-content {
    position: relative; z-index: 1;
    max-width: 720px; padding-top: 100px; padding-bottom: 60px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(82,183,136,0.2); border: 1px solid rgba(82,183,136,0.4);
    color: var(--green-200); font-weight: 700; font-size: 0.82rem;
    padding: 8px 18px; border-radius: var(--radius-full);
    margin-bottom: 28px; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-badge svg { width: 16px; height: 16px; }

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 600; color: var(--white);
    margin-bottom: 24px; line-height: 1.2;
}
.hero-title em {
    font-style: italic; color: var(--green-300);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85); line-height: 1.8;
    margin-bottom: 40px; max-width: 600px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-full);
    font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
    border: 2px solid transparent; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: var(--green-500); color: var(--white);
    border-color: var(--green-500);
}
.btn-primary:hover { background: var(--green-400); border-color: var(--green-400); color: var(--green-900); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-secondary {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); transform: translateY(-2px); }

.btn-light {
    background: var(--white); color: var(--green-800);
    border-color: var(--white);
}
.btn-light:hover { background: var(--green-50); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

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

.hero-trust {
    display: flex; flex-direction: column; gap: 10px;
}
.hero-trust-item {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.75); font-size: 0.9rem;
}
.hero-trust-item svg { width: 16px; height: 16px; color: var(--green-400); flex-shrink: 0; }

.hero-scroll {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%); z-index: 1;
    color: rgba(255,255,255,0.6);
    animation: heroBounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 28px; height: 28px; }
@keyframes heroBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Section shared ---------- */
.section { padding: 100px 0; }

.section-label {
    display: inline-block;
    font-weight: 800; font-size: 0.78rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--green-600); margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 600; margin-bottom: 18px;
    color: var(--green-800);
}
.section-subtitle {
    font-size: 1.08rem; color: var(--text-mid);
    max-width: 600px; line-height: 1.8;
}
.text-center { text-align: center; }
.section-header { margin-bottom: 60px; }

/* ---------- About ---------- */
.about { background: var(--cream-50); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}

.about-image-wrap {
    position: relative; padding-bottom: 30px;
}
.about-image-main {
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.about-image-main img { width: 100%; aspect-ratio: 5/6; object-fit: cover; }

.about-image-accent {
    position: absolute; bottom: 0; right: -30px;
    width: 55%; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 4px solid var(--cream-50);
}
.about-image-accent img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.about-exp-badge {
    position: absolute; top: -16px; left: -16px;
    background: var(--green-700); color: var(--white);
    padding: 16px 20px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.about-exp-number { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.about-exp-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }

.about-content { padding: 10px 0; }
.about-text {
    font-size: 1.02rem; color: var(--text-mid);
    margin-bottom: 18px; line-height: 1.85;
}
.about-values { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.about-value {
    display: flex; align-items: center; gap: 14px;
    font-weight: 600; color: var(--text-dark); font-size: 0.98rem;
}
.about-value-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--green-100); border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
}
.about-value-icon svg { width: 20px; height: 20px; color: var(--green-700); }

/* ---------- Services ---------- */
.services {
    background: var(--green-800);
    position: relative; overflow: hidden;
}
.services-bg-pattern {
    position: absolute; inset: 0; opacity: 0.04;
    background-image: radial-gradient(circle at 2px 2px, var(--white) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}
.services .section-label { color: var(--green-400); }
.services .section-title { color: var(--white); }
.services .section-subtitle { color: rgba(255,255,255,0.7); }

.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; position: relative; z-index: 1;
}
.service-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg); padding: 36px 28px;
    transition: all var(--transition);
}
.service-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border-color: rgba(82,183,136,0.3);
}
.service-card-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
}
.service-card-icon svg { width: 26px; height: 26px; color: var(--green-900); }
.service-card-title {
    font-size: 1.15rem; color: var(--white);
    margin-bottom: 10px; font-weight: 600;
}
.service-card-desc {
    font-size: 0.92rem; color: rgba(255,255,255,0.65);
    line-height: 1.75;
}

/* ---------- Insurance ---------- */
.insurance { padding: 72px 0; background: var(--green-700); }
.insurance-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
}
.insurance-text { flex: 1; min-width: 260px; }
.section-title-light { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.insurance-desc { color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.8; }
.insurance .btn-light { flex-shrink: 0; }

/* ---------- Visit / Steps ---------- */
.visit { background: var(--cream-100); }
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.step-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 40px 32px; text-align: center;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(27,67,50,0.06);
    transition: all var(--transition);
    position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card--accent {
    background: var(--green-700); border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.step-card--accent:hover { box-shadow: var(--shadow-xl); }
.step-card--accent .step-title { color: var(--white); }
.step-card--accent .step-desc { color: rgba(255,255,255,0.8); }

.step-number {
    width: 52px; height: 52px; margin: 0 auto 22px;
    background: var(--green-100); color: var(--green-700);
    border-radius: var(--radius-full);
    font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.step-card--accent .step-number { background: rgba(255,255,255,0.15); color: var(--green-200); }
.step-title { font-size: 1.2rem; margin-bottom: 12px; color: var(--green-800); }
.step-desc { font-size: 0.95rem; color: var(--text-mid); line-height: 1.8; }
.step-desc a { color: var(--green-600); font-weight: 700; }
.step-card--accent .step-desc a { color: var(--green-300); }

/* ---------- Contact ---------- */
.contact { background: var(--cream-50); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
}
.contact-desc { font-size: 1.02rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 36px; }

.contact-details { display: flex; flex-direction: column; gap: 28px; }
.contact-detail { display: flex; flex-direction: column; gap: 6px; }
.contact-detail-label {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 0.82rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--green-700);
}
.contact-detail-label svg { width: 18px; height: 18px; }
.contact-detail dd {
    font-size: 1rem; color: var(--text-mid); line-height: 1.7;
    padding-left: 28px;
}
.contact-detail dd a { color: var(--text-dark); font-weight: 600; }
.contact-detail dd a:hover { color: var(--green-600); }
.contact-hours-note { font-size: 0.88rem; color: var(--text-light); font-style: italic; }

.contact-form-wrap {
    background: var(--white); border-radius: var(--radius-xl);
    padding: 44px; box-shadow: var(--shadow-lg);
    border: 1px solid rgba(27,67,50,0.06);
}
.contact-form-title {
    font-size: 1.5rem; color: var(--green-800); margin-bottom: 8px;
}
.contact-form-note {
    font-size: 0.88rem; color: var(--text-light); margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 700; font-size: 0.88rem;
    color: var(--text-dark); margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--cream-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: 0.95rem;
    color: var(--text-dark); background: var(--cream-50);
    transition: all var(--transition); outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(82,183,136,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-privacy {
    font-size: 0.78rem; color: var(--text-light);
    text-align: center; margin-top: 14px;
}
.form-success {
    display: flex; align-items: center; gap: 10px;
    background: var(--green-100); color: var(--green-800);
    padding: 16px 20px; border-radius: var(--radius-md);
    font-weight: 700; margin-top: 16px;
}
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer {
    background: var(--green-900); color: rgba(255,255,255,0.7);
    padding: 72px 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px; padding-bottom: 52px;
}
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-heading); font-size: 1.15rem;
    font-weight: 600; color: var(--white); margin-bottom: 14px;
}
.footer-logo-icon { width: 32px; height: 32px; }
.footer-tagline { font-size: 0.92rem; line-height: 1.7; max-width: 280px; }

.footer-heading {
    font-family: var(--font-body); font-size: 0.82rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--green-400); margin-bottom: 18px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.65); font-size: 0.92rem;
    transition: all var(--transition);
}
.footer-links a:hover { color: var(--green-300); padding-left: 4px; }

.footer address { font-style: normal; font-size: 0.92rem; line-height: 1.8; }
.footer address a { color: var(--green-400); }
.footer address a:hover { color: var(--green-300); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-disclaimer { max-width: 500px; text-align: right; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid { gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 72px; left: 0; right: 0;
        background: rgba(253,252,248,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column; padding: 20px 24px;
        border-bottom: 1px solid rgba(27,67,50,0.08);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%); opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    .nav-menu.open {
        transform: translateY(0); opacity: 1;
        pointer-events: all;
    }
    .nav-menu a { padding: 12px 16px; font-size: 1rem; width: 100%; }
    .nav-toggle { display: block; }
    .nav-cta { display: none; }

    .hero-content { padding-top: 88px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }

    .about-grid { grid-template-columns: 1fr; }
    .about-image-wrap { max-width: 480px; }
    .about-image-accent { right: -10px; }

    .services-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 28px; }
    .insurance-inner { flex-direction: column; text-align: center; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-disclaimer { text-align: center; max-width: 100%; }
}

@media (max-width: 480px) {
    .section { padding: 72px 0; }
    .container { padding: 0 18px; }
    .hero-title { font-size: 1.9rem; }
    .about-exp-badge { top: -10px; left: -8px; padding: 12px 14px; }
    .about-exp-number { font-size: 1.3rem; }
    .about-exp-label { font-size: 0.65rem; }
}
