/* ============================================
   GREENWOOD FAMILY MEDICAL CLINIC
   Custom Styles
   ============================================ */

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

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

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0d9488;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-weight: 600;
}

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

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

/* --- Section Headers --- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 1rem;
}

.section-tag::before {
    content: '';
    width: 2rem;
    height: 2px;
    background: #0d9488;
    display: inline-block;
}

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

.section-tag-light::before {
    background: #5eead4;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.7;
    max-width: 600px;
}

.section-subtitle-light {
    color: #94a3b8;
    max-width: 560px;
}

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

.section-header-light {
    text-align: center;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 60px;
    padding: 0.875rem 1.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background: #0d9488;
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.4);
}

.btn-outline {
    background: transparent;
    color: #0f172a;
    border: 2px solid rgba(15, 23, 42, 0.2);
}

.btn-outline:hover {
    border-color: #0d9488;
    color: #0d9488;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

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

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

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

/* --- Navigation --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.35s ease;
    padding: 1rem 0;
}

.nav-fixed.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 0.6rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    z-index: 1001;
}

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

.nav-logo-bold {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}

.nav-logo-regular {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 0.02em;
}

.nav-fixed.scrolled .nav-logo-regular,
.nav-fixed .nav-logo-regular {
    color: #64748b;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    transition: color 0.2s;
    position: relative;
}

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

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

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    background: #0d9488;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.nav-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #0f172a;
    z-index: 1001;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #fff;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu.active .mobile-menu-inner {
    transform: translateX(0);
}

.mobile-menu-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s;
}

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

.mobile-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: #0d9488;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-top: 1rem;
    transition: background 0.3s;
}

.mobile-menu-cta:hover {
    background: #0f766e;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: #f0fdfa;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -100px;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(13, 148, 136, 0.05);
    border-radius: 40px;
    top: 20%;
    left: 45%;
    transform: rotate(45deg);
}

.hero-shape-4 {
    width: 120px;
    height: 120px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 24px;
    top: 30%;
    right: 35%;
    transform: rotate(20deg);
}

.hero-shape-5 {
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 50%;
    bottom: 25%;
    left: 10%;
}

.hero-shape-6 {
    width: 50px;
    height: 50px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    top: 60%;
    right: 20%;
    transform: rotate(30deg);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0d9488;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #0d9488;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-badge-dot:last-child {
    animation-delay: 1s;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.hero-headline-line {
    display: block;
}

.hero-headline-accent {
    color: #0d9488;
}

.hero-headline-dark {
    color: #1e293b;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.hero-trust-item svg {
    color: #0d9488;
    flex-shrink: 0;
}

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

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.hero-image-wrapper img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    display: block;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: #0d9488;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.hero-floating-card {
    position: absolute;
    bottom: 2rem;
    left: -2.5rem;
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    max-width: 260px;
}

.hero-floating-icon {
    width: 48px;
    height: 48px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    flex-shrink: 0;
}

.hero-floating-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.hero-floating-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.hero-floating-sub {
    font-size: 0.75rem;
    color: #64748b;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #94a3b8;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Services --- */
.services {
    position: relative;
    padding: 7rem 0;
    background: #fff;
    overflow: hidden;
}

.services-bg-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    pointer-events: none;
}

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

.service-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0d9488;
    transform: scaleX(0);
    transition: transform 0.35s;
    transform-origin: left;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    margin-bottom: 1.25rem;
    transition: all 0.35s;
}

.service-card:hover .service-icon {
    background: #0d9488;
    color: #fff;
    transform: scale(1.05);
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0d9488;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 0.625rem;
}

/* --- About --- */
.about {
    padding: 7rem 0;
    background: #f8fafc;
    overflow: hidden;
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.about-img-main img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    display: block;
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 55%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border: 4px solid #fff;
    z-index: 2;
}

.about-img-secondary img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.about-geometric-teal {
    position: absolute;
    top: -2rem;
    right: 2rem;
    width: 120px;
    height: 120px;
    background: #0d9488;
    border-radius: 24px;
    opacity: 0.12;
    z-index: 0;
    transform: rotate(15deg);
}

.about-geometric-slate {
    position: absolute;
    bottom: 3rem;
    left: -1.5rem;
    width: 80px;
    height: 80px;
    background: #1e293b;
    border-radius: 16px;
    opacity: 0.06;
    z-index: 0;
    transform: rotate(-10deg);
}

.about-content {
    padding: 1rem 0;
}

.about-text {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

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

.about-stat {
    flex: 1;
    text-align: center;
}

.about-stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0d9488;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

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

/* --- Patient Info --- */
.patient-info {
    position: relative;
    padding: 7rem 0;
    background: #0f172a;
    overflow: hidden;
}

.patient-info-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.12) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.patient-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.patient-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.25rem;
    transition: all 0.35s;
    backdrop-filter: blur(8px);
}

.patient-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(13, 148, 136, 0.3);
    transform: translateY(-3px);
}

.patient-card-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(13, 148, 136, 0.25);
    line-height: 1;
    margin-bottom: 1rem;
}

.patient-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

.patient-card-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.75;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 6rem 0;
    background: #0d9488;
    overflow: hidden;
}

.cta-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-shape-1 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: -200px;
    left: -100px;
}

.cta-shape-2 {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -100px;
    right: 10%;
}

.cta-shape-3 {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    top: 20%;
    right: 25%;
    transform: rotate(30deg);
}

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

.cta-content .section-header {
    margin-bottom: 2rem;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Contact --- */
.contact {
    padding: 7rem 0;
    background: #fff;
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.contact-text {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    flex-shrink: 0;
}

.contact-detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.6;
}

.contact-link {
    color: #0d9488;
    font-weight: 600;
    transition: color 0.2s;
}

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

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-map a {
    position: relative;
    display: block;
}

.contact-map img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.contact-map:hover img {
    transform: scale(1.03);
}

.contact-map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-map:hover .contact-map-overlay {
    opacity: 1;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.contact-form-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d9488, #5eead4, #0d9488);
    border-radius: 24px 24px 0 0;
}

.contact-form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.contact-form {
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-required {
    color: #ef4444;
}

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

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

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

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

.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='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
}

.form-success.show {
    display: block;
}

.form-success-icon {
    width: 72px;
    height: 72px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    margin: 0 auto 1.25rem;
}

.form-success-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.form-success-text {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
}

/* --- Footer --- */
.footer {
    background: #0f172a;
    color: #94a3b8;
}

.footer-top {
    padding: 5rem 0 3rem;
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

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

.footer-logo-bold {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #f1f5f9;
}

.footer-logo-regular {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: #64748b;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #64748b;
}

.footer-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f1f5f9;
    margin-bottom: 1.25rem;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.2s;
}

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

.footer-address,
.footer-hours {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-phone {
    margin-bottom: 0.75rem;
}

.footer-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #5eead4;
    transition: color 0.2s;
}

.footer-phone-link:hover {
    color: #2dd4bf;
}

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

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #475569;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #334155;
    max-width: 600px;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0f766e;
    transform: translateY(-2px);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

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

    .hero-right {
        max-width: 500px;
    }

    .hero-image-wrapper img {
        height: 500px;
    }

    .hero-floating-card {
        left: 0;
        bottom: 1rem;
    }

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

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

    .about-img-secondary {
        right: 1rem;
        bottom: -1.5rem;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

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

    .nav-menu-btn {
        display: block;
    }

    .hero {
        padding: 7rem 0 3rem;
        min-height: auto;
    }

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

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

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

    .hero-trust {
        gap: 1rem;
    }

    .hero-floating-card {
        display: none;
    }

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

    .services {
        padding: 5rem 0;
    }

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

    .about {
        padding: 5rem 0;
    }

    .about-img-main img {
        height: 400px;
    }

    .about-img-secondary {
        width: 50%;
    }

    .about-img-secondary img {
        height: 200px;
    }

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

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

    .patient-info {
        padding: 5rem 0;
    }

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

    .cta-banner {
        padding: 4rem 0;
    }

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

    .contact {
        padding: 5rem 0;
    }

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

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

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

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 2rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .service-card {
        padding: 1.5rem;
    }

    .patient-card {
        padding: 1.5rem;
    }

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