/* ========================================
   Dr. Tuviah S. Shulman — Medical Website
   Bold Editorial Style | Forest Green & Off-White
======================================== */

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

:root {
    --forest: #1B4332;
    --forest-light: #2D6A4F;
    --forest-dark: #0F2B1F;
    --cream: #FEFAE0;
    --cream-dark: #F5F0DC;
    --sand: #D4A373;
    --sand-light: #E9C46A;
    --white: #FFFFFF;
    --off-white: #FAFAF7;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.06);
    --shadow-md: 0 8px 30px rgba(27, 67, 50, 0.10);
    --shadow-lg: 0 20px 60px rgba(27, 67, 50, 0.12);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

/* ---------- TYPOGRAPHY ---------- */
.section-label {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 16px;
    display: block;
}

.section-headline {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--forest);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.06);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(250, 250, 247, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-mark {
    width: 38px;
    height: 38px;
    background: var(--forest);
    color: var(--cream);
    font-family: var(--serif);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.nav-logo-text {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--sand);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--forest);
}

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

.nav-link--cta {
    background: var(--forest);
    color: var(--cream) !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition) !important;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--forest-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--forest);
    color: var(--cream);
}

.btn--primary:hover {
    background: var(--forest-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: transparent;
    color: var(--forest);
    border: 1.5px solid var(--forest);
}

.btn--ghost:hover {
    background: var(--forest);
    color: var(--cream);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--forest);
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(45, 106, 79, 0.5) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(212, 163, 115, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 80px,
        rgba(255, 255, 255, 0.015) 80px,
        rgba(255, 255, 255, 0.015) 81px
    );
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--cream);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--sand);
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(254, 250, 224, 0.7);
    margin-bottom: 40px;
    max-width: 480px;
}

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

.hero-actions .btn--ghost {
    border-color: rgba(254, 250, 224, 0.4);
    color: var(--cream);
}

.hero-actions .btn--ghost:hover {
    border-color: var(--cream);
    background: var(--cream);
    color: var(--forest);
}

/* Hero Visual + Stat Cards */
.hero-visual {
    position: relative;
    min-height: 520px;
}

.hero-image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

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

.stat-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 4s ease-in-out infinite;
}

.stat-card--1 {
    bottom: 40px;
    left: -40px;
    animation-delay: 0s;
}

.stat-card--1 .stat-number {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1;
}

.stat-card--1 .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

.stat-card--2 {
    top: 60px;
    right: -30px;
    animation-delay: 1s;
}

.stat-card--2 svg {
    color: var(--sand);
    flex-shrink: 0;
}

.stat-card--2 .stat-value {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest);
}

.stat-card--3 {
    bottom: -20px;
    right: 20px;
    animation-delay: 2s;
}

.stat-card--3 svg {
    color: var(--forest-light);
    flex-shrink: 0;
}

.stat-card--3 .stat-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(254, 250, 224, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(4px); opacity: 1; }
}

/* ---------- ABOUT ---------- */
.about {
    padding: 120px 0;
    background: var(--off-white);
}

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

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

.about-image-wrap img {
    width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--sand);
    border-radius: var(--radius);
    z-index: -1;
}

.about-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 20px;
}

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

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.value-item svg {
    color: var(--sand);
    flex-shrink: 0;
}

/* ---------- SERVICES ---------- */
.services {
    padding: 120px 0;
    background: var(--cream);
}

.services-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.services-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-mid);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
    border: 1px solid rgba(27, 67, 50, 0.05);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--forest), var(--forest-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.925rem;
    line-height: 1.75;
    color: var(--text-mid);
}

/* ---------- APPROACH ---------- */
.approach {
    padding: 120px 0;
    background: var(--forest);
    position: relative;
    overflow: hidden;
}

.approach::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(45, 106, 79, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(212, 163, 115, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.approach-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.approach-text .section-label {
    color: var(--sand);
}

.approach-text .section-headline {
    color: var(--cream);
}

.approach-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(254, 250, 224, 0.7);
    margin-bottom: 20px;
}

.approach-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.approach-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
}

.approach-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.approach-stat-number {
    display: block;
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--sand);
    line-height: 1;
    margin-bottom: 10px;
}

.approach-stat-label {
    font-size: 0.85rem;
    color: rgba(254, 250, 224, 0.6);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---------- LOCATION ---------- */
.location {
    padding: 120px 0;
    background: var(--off-white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 40px 0;
}

.location-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.location-item svg {
    color: var(--sand);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-item strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.location-item p,
.location-item a {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.location-item a:hover {
    color: var(--forest);
    text-decoration: underline;
}

.location-map {
    margin-top: 32px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.location-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-height: 600px;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 120px 0;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: color var(--transition);
}

.contact-method:hover {
    color: var(--forest);
}

.contact-method svg {
    color: var(--sand);
    flex-shrink: 0;
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(27, 67, 50, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid rgba(27, 67, 50, 0.12);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--off-white);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--forest);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

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

.form-notice {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding: 48px 24px;
}

.form-success svg {
    color: var(--forest-light);
}

.form-success h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--forest);
}

.form-success p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
    max-width: 320px;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--forest-dark);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(254, 250, 224, 0.5);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(254, 250, 224, 0.5);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--sand);
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(254, 250, 224, 0.5);
    line-height: 1.8;
}

.footer-contact a:hover {
    color: var(--sand);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(254, 250, 224, 0.3);
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    max-width: 400px;
    text-align: right;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .about-grid,
    .approach-content,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-wrap img,
    .location-visual img {
        height: 400px;
        min-height: auto;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 247, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(27, 67, 50, 0.06);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 24px 80px;
        min-height: auto;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .hero-visual {
        min-height: 360px;
    }

    .hero-image-card img {
        height: 400px;
    }

    .stat-card--1 {
        left: 10px;
        bottom: 20px;
    }

    .stat-card--2 {
        right: 10px;
        top: 30px;
    }

    .stat-card--3 {
        right: 0;
        bottom: -10px;
    }

    .hero-scroll {
        display: none;
    }

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

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

    .approach-stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .contact-form-wrap {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

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

    .approach-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 14px 16px;
    }

    .stat-card--1 .stat-number {
        font-size: 1.4rem;
    }
}
