/* ========================================
   HUDGINS J STEPHEN MD — Primary Care Website
   Clean Minimalist · Teal & Slate Grey
   ======================================== */

/* ── 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: 16px;
    line-height: 1.7;
    color: #334155;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

/* ── Focus ── */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0f172a;
    color: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 9999;
    font-size: 0.875rem;
}

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

/* ── Typography ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: #0f172a;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
}

/* ── Accent ── */
.accent {
    color: #0d9488;
    font-style: italic;
}

.accent-light {
    color: #5eead4;
    font-style: italic;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: #0d9488;
    color: #ffffff;
    border-color: #0d9488;
}

.btn-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    background: transparent;
    color: #0d9488;
    border-color: #0d9488;
}

.btn-outline:hover {
    background: #0d9488;
    color: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-white {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

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

/* ── Section ── */
.section {
    padding: 7rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header--centered {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 1rem;
}

.section-eyebrow--light {
    color: #5eead4;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
}

.section-title--light {
    color: #f8fafc;
}

.section-desc {
    font-size: 1.0625rem;
    color: #64748b;
    line-height: 1.8;
}

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo--light .logo-name {
    color: #f8fafc;
}

.logo--light .logo-tagline {
    color: rgba(248, 250, 252, 0.55);
}

.logo-mark {
    color: #0d9488;
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 500;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.logo-tagline {
    font-size: 0.6875rem;
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: #64748b;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-link:hover {
    color: #0f172a;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #0f172a;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #0f172a;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.75) 50%,
        rgba(13, 148, 136, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    padding-bottom: 4rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5eead4;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #f8fafc;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-headline .accent {
    color: #5eead4;
}

.hero-sub {
    font-size: 1.125rem;
    color: rgba(248, 250, 252, 0.7);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
}

.hero-card-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(13, 148, 136, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5eead4;
}

.hero-card-text {
    font-size: 1rem;
    color: rgba(248, 250, 252, 0.8);
    line-height: 1.7;
}

.hero-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-card-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.7);
}

.hero-card-features svg {
    color: #0d9488;
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(248, 250, 252, 0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 1;
}

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

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

/* ── About ── */
.about {
    background: #ffffff;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

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

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-content .lead {
    color: #475569;
}

.about-content p {
    color: #64748b;
}

.about-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 500;
}

.stat-label {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    background: #e2e8f0;
    align-self: stretch;
}

/* ── Services ── */
.services {
    background: #f8fafc;
}

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

.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.25rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #0d9488;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.08);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: #0d9488;
    color: #ffffff;
}

.service-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.7;
}

/* ── Approach ── */
.approach {
    background: #ffffff;
}

.approach-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.approach-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.approach-pillars {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.pillar {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.pillar-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #e2e8f0;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
}

.pillar-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.375rem;
}

.pillar-content p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.7;
}

.approach-image {
    border-radius: 16px;
    overflow: hidden;
}

.approach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 7/9;
}

/* ── CTA ── */
.cta {
    background: #0f172a;
    padding: 6rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.cta-content {
    flex: 1;
    max-width: 560px;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(248, 250, 252, 0.6);
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* ── Contact ── */
.contact {
    background: #f8fafc;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-desc {
    font-size: 1.0625rem;
    color: #64748b;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact-item-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.contact-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #0d9488;
}

.contact-link svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: #0d9488;
}

/* ── Contact Form ── */
.contact-form-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
}

.contact-form-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #0d9488;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 10px;
    color: #0d9488;
    font-size: 0.9375rem;
    margin-top: 1rem;
}

.form-success svg {
    flex-shrink: 0;
}

/* ── Footer ── */
.footer {
    background: #0f172a;
    padding: 4rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-brand .logo-name {
    color: #f8fafc;
}

.footer-brand .logo-tagline {
    color: rgba(248, 250, 252, 0.45);
}

.footer-desc {
    font-size: 0.9375rem;
    color: rgba(248, 250, 252, 0.5);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.9375rem;
    color: rgba(248, 250, 252, 0.55);
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: #5eead4;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(248, 250, 252, 0.3);
}

/* ── 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; }
}

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

    .hero-card {
        max-width: 480px;
    }

    .about-layout,
    .approach-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image,
    .approach-image {
        max-width: 500px;
    }

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

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

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-actions .btn-outline {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 8rem 0 5rem;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-card {
        padding: 1.75rem;
    }

    .hero-scroll {
        display: none;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 1.25rem;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .cta {
        padding: 4rem 0;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.75rem;
    }
}

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

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

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