/* ============================================
   Elite Internal Medicine — Stylesheet
   Burgundy (#7B2D3B) + Blush (#F5E6E0) palette
   Fonts: Cormorant Garamond + Inter
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: #2D2D2D;
    background-color: #FFFAF8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: #7B2D3B;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #5A1F2A;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: #1A1A1A;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #7B2D3B;
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 4px 4px;
    z-index: 9999;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 8px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    padding: 12px 28px;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: #7B2D3B;
    color: #fff;
    border-color: #7B2D3B;
}

.btn-primary:hover {
    background-color: #5A1F2A;
    border-color: #5A1F2A;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: #7B2D3B;
    border-color: #7B2D3B;
}

.btn-outline:hover {
    background-color: #7B2D3B;
    color: #fff;
}

.btn-light {
    background-color: #fff;
    color: #7B2D3B;
    border-color: #fff;
}

.btn-light:hover {
    background-color: #F5E6E0;
    color: #7B2D3B;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

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

/* ---------- Top Bar ---------- */
.top-bar {
    background-color: #7B2D3B;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: #fff;
}

/* ---------- Header / Nav ---------- */
.site-header {
    background-color: rgba(255, 250, 248, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo:hover {
    color: #7B2D3B;
}

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

.nav-links a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 400;
    color: #4A4A4A;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #7B2D3B;
    transition: width 0.25s ease;
}

.nav-links a:not(.btn):hover {
    color: #7B2D3B;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links .btn {
    font-size: 0.8125rem;
    padding: 10px 22px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: #2D2D2D;
    transition: all 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 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(4px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 100px;
    background-color: #FFFAF8;
    overflow: hidden;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7B2D3B;
    margin-bottom: 24px;
}

.accent-line {
    display: block;
    width: 40px;
    height: 1.5px;
    background-color: #7B2D3B;
    flex-shrink: 0;
}

.hero-headline {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.15;
    color: #1A1A1A;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: #7B2D3B;
}

.hero-desc {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #5A5A5A;
    margin-bottom: 36px;
    max-width: 520px;
}

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

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

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4A4A4A;
    letter-spacing: 0.02em;
}

/* Hero image */
.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(123, 45, 59, 0.12);
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 560 / 700;
}

.hero-img-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(123, 45, 59, 0.15);
    border-radius: 8px;
    z-index: -1;
}

/* ---------- Divider ---------- */
.section-divider {
    padding: 0;
}

.divider-line {
    width: 60px;
    height: 1px;
    background-color: rgba(123, 45, 59, 0.2);
    margin: 0 auto;
}

/* ---------- Section shared ---------- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7B2D3B;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: #1A1A1A;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1rem;
    color: #6A6A6A;
    line-height: 1.8;
}

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

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

.service-card {
    background-color: #fff;
    border: 1px solid rgba(123, 45, 59, 0.08);
    border-radius: 8px;
    padding: 40px 32px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(123, 45, 59, 0.2);
    box-shadow: 0 16px 48px rgba(123, 45, 59, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(123, 45, 59, 0.15);
    border-radius: 8px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.service-card p {
    font-size: 0.9375rem;
    color: #6A6A6A;
    line-height: 1.75;
}

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

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

.about-image {
    position: relative;
}

.about-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(123, 45, 59, 0.1);
}

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 540 / 620;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    padding: 24px 32px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.06);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #7B2D3B;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8A8A8A;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(123, 45, 59, 0.15);
}

.about-content .section-eyebrow {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 0.9375rem;
    color: #5A5A5A;
    line-height: 1.85;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-top: 32px;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 400;
    color: #3A3A3A;
}

/* ---------- Insurance ---------- */
.insurance {
    padding: 100px 0;
    background-color: #7B2D3B;
    color: #fff;
}

.insurance-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
}

.insurance-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.insurance-title {
    color: #fff;
    margin-bottom: 20px;
}

.insurance-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.85;
    max-width: 520px;
}

.insurance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
}

.insurance-cta {
    text-align: center;
    flex-shrink: 0;
}

.insurance-cta-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

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

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

.contact-info .section-eyebrow {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 0.9375rem;
    color: #6A6A6A;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

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

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(123, 45, 59, 0.15);
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: #1A1A1A;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.contact-detail p {
    font-size: 0.875rem;
    color: #6A6A6A;
    line-height: 1.7;
}

.contact-detail a {
    color: #7B2D3B;
}

/* Form */
.contact-form-wrapper {
    background-color: #fff;
    border: 1px solid rgba(123, 45, 59, 0.08);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 16px 48px rgba(123, 45, 59, 0.06);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1A1A1A;
}

.form-note {
    font-size: 0.8125rem;
    color: #8A8A8A;
    margin-bottom: 28px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #3A3A3A;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(123, 45, 59, 0.15);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #2D2D2D;
    background-color: #FFFAF8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7B2D3B;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}

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

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

.form-privacy {
    font-size: 0.75rem;
    color: #A09898;
    margin-top: 16px;
    text-align: center;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    background-color: #F0F7F0;
    border: 1px solid rgba(76, 145, 76, 0.2);
    border-radius: 4px;
    font-size: 0.875rem;
    color: #2D6A2D;
}

.form-success svg {
    flex-shrink: 0;
    stroke: #4C914C;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: #1A1A1A;
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand .logo:hover {
    color: #F5E6E0;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-contact a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #F5E6E0;
}

.footer-contact address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
    max-width: 400px;
    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.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-grid,
    .about-grid,
    .contact-grid {
        gap: 48px;
    }

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

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

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

    .insurance-cta {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 4px;
        font-size: 0.75rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background-color: #FFFAF8;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 24px;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 99;
    }

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

    .nav-links a:not(.btn) {
        font-size: 1rem;
    }

    .hero {
        padding: 48px 0 64px;
    }

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

    .hero-image {
        order: -1;
    }

    .hero-img-wrapper {
        box-shadow: 0 16px 40px rgba(123, 45, 59, 0.1);
    }

    .hero-img-accent {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }

    .services {
        padding: 64px 0;
    }

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

    .service-card {
        padding: 28px 24px;
    }

    .about {
        padding: 64px 0;
    }

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

    .about-content .section-eyebrow,
    .about-content .section-title {
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

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

    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .insurance {
        padding: 64px 0;
    }

    .insurance-badges {
        justify-content: center;
    }

    .insurance-cta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .contact {
        padding: 64px 0;
    }

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

    .contact-info .section-eyebrow,
    .contact-info .section-title {
        text-align: center;
    }

    .contact-desc {
        text-align: center;
    }

    .contact-form-wrapper {
        padding: 28px 24px;
    }

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

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav {
        padding: 12px 16px;
    }

    .hero-headline {
        font-size: 1.875rem;
    }

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

    .logo span {
        font-size: 1.0625rem;
    }
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 98;
}

.nav-overlay.active {
    display: block;
}
