/* ============================================
   St Joseph Hospital Northcoast Specialty Clinic
   Classic & Elegant Medical Website
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --forest-950: #0a1f0f;
    --forest-900: #0f2e17;
    --forest-800: #143d1f;
    --forest-700: #1a4d28;
    --forest-600: #226133;
    --forest-500: #2d7a42;
    --forest-400: #4a9b5e;
    --forest-300: #7bb88a;
    --forest-200: #b3d4bc;
    --forest-100: #dcedcf;
    --forest-50:  #f0f7f2;

    --cream-50:  #faf9f6;
    --cream-100: #f5f4ef;
    --cream-200: #ebe9e1;
    --cream-300: #ddd9cf;
    --cream-400: #c8c2b4;

    --ink-950: #0f1a12;
    --ink-900: #1a2e1f;
    --ink-800: #243d29;
    --ink-700: #2f4d35;
    --ink-600: #3d5c44;
    --ink-500: #4a6b52;
    --ink-400: #6b8a72;
    --ink-300: #8fa896;
    --ink-200: #b8c8be;
    --ink-100: #dce6df;
    --ink-50:  #eff4f0;

    --gold-500: #b8943e;
    --gold-400: #c9a84c;
    --gold-300: #d4b96a;

    --font-serif: 'Crimson Text', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;

    --shadow-sm: 0 1px 3px rgba(10, 31, 15, 0.06), 0 1px 2px rgba(10, 31, 15, 0.04);
    --shadow-md: 0 4px 16px rgba(10, 31, 15, 0.08), 0 2px 6px rgba(10, 31, 15, 0.04);
    --shadow-lg: 0 12px 40px rgba(10, 31, 15, 0.12), 0 4px 12px rgba(10, 31, 15, 0.06);
    --shadow-xl: 0 24px 60px rgba(10, 31, 15, 0.16), 0 8px 20px rgba(10, 31, 15, 0.08);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

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

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

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-800);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--forest-600);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--forest-500);
}

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

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--ink-700);
}

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

/* --- Section Labels --- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest-500);
    margin-bottom: 12px;
    position: relative;
    padding-left: 32px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 2px;
    background: var(--forest-400);
}

.section-title {
    margin-bottom: 16px;
    color: var(--ink-900);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--ink-600);
    max-width: 640px;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--forest-700);
    color: #ffffff;
    border: 2px solid var(--forest-700);
}

.btn-primary:hover {
    background: var(--forest-600);
    border-color: var(--forest-600);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--forest-800);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.0625rem;
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cream-200);
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(250, 249, 246, 0.97);
    box-shadow: var(--shadow-sm);
}

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

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

.nav-logo-icon {
    width: 36px;
    height: 36px;
    color: var(--forest-600);
}

.nav-logo-icon svg {
    width: 100%;
    height: 100%;
}

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

.nav-logo-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
}

.nav-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ink-500);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-700);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--forest-700);
    background: var(--forest-50);
}

.nav-cta {
    background: var(--forest-700) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
    background: var(--forest-600) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
}

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink-800);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink-800);
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mobile-menu-link:hover {
    color: var(--forest-700);
    background: var(--forest-50);
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--forest-700);
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mobile-menu-cta:hover {
    background: var(--forest-600);
    color: #ffffff;
    transform: translateY(-2px);
}

.mobile-menu-cta svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--forest-900);
}

.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(10, 31, 15, 0.88) 0%,
        rgba(20, 61, 31, 0.82) 40%,
        rgba(26, 77, 40, 0.75) 70%,
        rgba(34, 97, 51, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-card {
    max-width: 720px;
    background: rgba(250, 249, 246, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 48px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest-200);
    background: rgba(74, 155, 94, 0.2);
    border: 1px solid rgba(74, 155, 94, 0.35);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero-headline {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 24px;
}

.hero-subheadline {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.85;
    margin-bottom: 36px;
    max-width: 580px;
}

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

/* Floating Stat Cards */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0 24px 24px;
    pointer-events: none;
}

.stat-card {
    pointer-events: auto;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    flex: 1;
    max-width: 260px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    color: var(--forest-600);
    margin-bottom: 4px;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

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

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-600);
    text-align: center;
    line-height: 1.3;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 100px 0;
    background: var(--cream-50);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header .section-label {
    padding-left: 0;
}

.section-header .section-label::before {
    display: none;
}

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

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

.service-card {
    background: #ffffff;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--forest-500), var(--forest-300));
    opacity: 0;
    transition: opacity var(--transition);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    width: 52px;
    height: 52px;
    background: var(--forest-50);
    border: 1px solid var(--forest-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--forest-600);
    transition: all var(--transition);
}

.service-card:hover .service-card-icon {
    background: var(--forest-600);
    border-color: var(--forest-600);
    color: #ffffff;
}

.service-card-icon svg {
    width: 26px;
    height: 26px;
}

.service-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: var(--ink-600);
    line-height: 1.75;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 100px 0;
    background: #ffffff;
}

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

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid #ffffff;
}

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

.about-content .section-label {
    padding-left: 32px;
}

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

.about-values {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-value {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-value-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--forest-50);
    border: 1px solid var(--forest-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-600);
}

.about-value-icon svg {
    width: 22px;
    height: 22px;
}

.about-value strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 4px;
}

.about-value span {
    font-size: 0.9375rem;
    color: var(--ink-600);
    line-height: 1.65;
}

/* ============================================
   Patients Section
   ============================================ */
.patients {
    padding: 100px 0;
    background: var(--cream-50);
}

.patients-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.patient-step {
    text-align: center;
    padding: 40px 24px;
    background: #ffffff;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
}

.patient-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--forest-200);
}

.patient-step-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--forest-100);
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.patient-step:hover .patient-step-number {
    color: var(--forest-300);
}

.patient-step-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 12px;
}

.patient-step-desc {
    font-size: 0.9375rem;
    color: var(--ink-600);
    line-height: 1.75;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    padding: 100px 0;
    background: var(--forest-900);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(74, 155, 94, 0.06);
    pointer-events: none;
}

.testimonials .section-label {
    color: var(--forest-300);
}

.testimonials .section-title {
    color: #ffffff;
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: var(--forest-400);
    line-height: 1;
    margin-bottom: 8px;
}

.testimonial-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}

.testimonial-location {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

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

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 46, 23, 0.92) 0%,
        rgba(26, 77, 40, 0.88) 50%,
        rgba(34, 97, 51, 0.85) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.85;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.cta-actions .btn-primary {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--forest-800);
}

.cta-actions .btn-primary:hover {
    background: var(--cream-100);
    border-color: var(--cream-100);
    color: var(--forest-900);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 100px 0;
    background: #ffffff;
}

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

.contact-intro {
    font-size: 1.0625rem;
    color: var(--ink-600);
    line-height: 1.8;
    margin-bottom: 36px;
}

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

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

.contact-detail-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--forest-50);
    border: 1px solid var(--forest-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-600);
}

.contact-detail-icon svg {
    width: 22px;
    height: 22px;
}

.contact-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 4px;
}

.contact-detail span,
.contact-detail a {
    font-size: 0.9375rem;
    color: var(--ink-600);
    line-height: 1.65;
}

.contact-detail a:hover {
    color: var(--forest-600);
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-map iframe {
    width: 100%;
    height: 220px;
    display: block;
}

/* Contact Form */
.contact-form-wrap {
    position: sticky;
    top: 96px;
}

.contact-form-card {
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 8px;
}

.contact-form-subtitle {
    font-size: 0.9375rem;
    color: var(--ink-500);
    margin-bottom: 28px;
    line-height: 1.65;
}

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

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--ink-800);
    background: #ffffff;
    border: 1.5px solid var(--cream-300);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--forest-400);
    box-shadow: 0 0 0 3px rgba(74, 155, 94, 0.15);
}

.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='%236b8a72' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--forest-50);
    border: 2px solid var(--forest-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-600);
}

.form-success-icon svg {
    width: 32px;
    height: 32px;
}

.form-success h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--ink-900);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--ink-600);
    line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--forest-950);
    padding: 64px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    color: var(--forest-400);
}

.footer-logo-icon svg {
    width: 100%;
    height: 100%;
}

.footer-logo-name {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1.2;
}

.footer-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ink-400);
    letter-spacing: 0.05em;
    display: block;
    line-height: 1.2;
}

.footer-desc {
    font-size: 0.9375rem;
    color: var(--ink-400);
    line-height: 1.75;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-300);
    margin-bottom: 20px;
}

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

.footer-links li a,
.footer-links li {
    font-size: 0.9375rem;
    color: var(--ink-400);
    transition: color var(--transition);
}

.footer-links li a:hover {
    color: var(--forest-300);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--ink-500);
    line-height: 1.6;
}

.footer-bottom p:first-child {
    color: var(--ink-400);
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    color: var(--ink-600) !important;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progressive enhancement: hide by default, reveal with JS */
@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }

    [data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger children */
    .services-grid [data-reveal] { transition-delay: 0.05s; }
    .services-grid [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
    .services-grid [data-reveal]:nth-child(3) { transition-delay: 0.15s; }
    .services-grid [data-reveal]:nth-child(4) { transition-delay: 0.2s; }
    .services-grid [data-reveal]:nth-child(5) { transition-delay: 0.25s; }
    .services-grid [data-reveal]:nth-child(6) { transition-delay: 0.3s; }
    .services-grid [data-reveal]:nth-child(7) { transition-delay: 0.35s; }
    .services-grid [data-reveal]:nth-child(8) { transition-delay: 0.4s; }

    .testimonials-grid [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
    .testimonials-grid [data-reveal]:nth-child(3) { transition-delay: 0.2s; }

    .patients-steps [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
    .patients-steps [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
    .patients-steps [data-reveal]:nth-child(4) { transition-delay: 0.3s; }
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

    .contact-grid {
        gap: 48px;
    }

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

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .about-image-accent {
        right: 0;
        bottom: -32px;
    }

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

    .patients-steps {
        grid-template-columns: 1fr 1fr;
    }

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

    .contact-form-wrap {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-card {
        padding: 32px 24px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: stretch;
        padding: 0 24px 24px;
        gap: 12px;
    }

    .stat-card {
        max-width: none;
        flex-direction: row;
        text-align: left;
        gap: 16px;
        min-width: auto;
        padding: 16px 20px;
    }

    .stat-icon {
        margin-bottom: 0;
        min-width: 36px;
    }

    .stat-number {
        font-size: 1.375rem;
    }

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

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

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

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

    .patients-steps {
        grid-template-columns: 1fr;
    }

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

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

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

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

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

    .hero-content {
        padding: 100px 16px 60px;
    }

    .hero-card {
        padding: 24px 20px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .services,
    .about,
    .patients,
    .testimonials,
    .cta,
    .contact {
        padding: 64px 0;
    }

    .contact-form-card {
        padding: 24px;
    }
}
