/* ============================================
   WAVERLY MEDICAL CENTER — Custom Styles
   Classic & Elegant | Burgundy + Blush
   ============================================ */

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

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2D1F24;
    background-color: #FDF8F8;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #7B2D3B;
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    font-size: 0.875rem;
    font-weight: 500;
}
.skip-link:focus {
    top: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: #2D1F24;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #7B2D3B;
    color: #fff;
    border-color: #7B2D3B;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #5E222C;
    border-color: #5E222C;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123, 45, 59, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #7B2D3B;
    border-color: #7B2D3B;
}
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #7B2D3B;
    color: #fff;
    transform: translateY(-1px);
}

.btn-nav {
    background-color: #7B2D3B;
    color: #fff;
    border-color: #7B2D3B;
    padding: 10px 20px;
    font-size: 0.8rem;
}
.btn-nav:hover {
    background-color: #5E222C;
    border-color: #5E222C;
}

.btn-light {
    background-color: #fff;
    color: #7B2D3B;
    border-color: #fff;
}
.btn-light:hover,
.btn-light:focus {
    background-color: #FDF8F8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 0.95rem;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #7B2D3B;
    background-color: #F5E6E8;
    padding: 6px 14px;
    border-radius: 20px;
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7B2D3B;
    margin-bottom: 12px;
}
.section-eyebrow-light {
    color: #E8C4C8;
}

/* ---------- Section Title ---------- */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    color: #2D1F24;
}
.section-title-light {
    color: #fff;
}

/* ---------- Section Subtitle ---------- */
.section-subtitle {
    font-size: 1.05rem;
    color: #5A4046;
    max-width: 600px;
    line-height: 1.7;
}

/* ---------- Section Header ---------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header .section-subtitle {
    margin: 0 auto;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 248, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 2px 24px rgba(45, 31, 36, 0.08);
}

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

/* ---------- Logo ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lora', serif;
}
.logo-mark {
    flex-shrink: 0;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #7B2D3B;
    letter-spacing: 0.01em;
}
.logo-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5A4046;
}

.logo-footer .logo-name {
    color: #fff;
}
.logo-footer .logo-sub {
    color: rgba(255,255,255,0.7);
}

/* ---------- Nav ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #7B2D3B;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.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: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-menu li a:not(.btn) {
    font-size: 0.85rem;
    font-weight: 500;
    color: #5A4046;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
    position: relative;
}
.nav-menu li a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #7B2D3B;
    transition: width 0.3s ease;
}
.nav-menu li a:not(.btn):hover {
    color: #7B2D3B;
}
.nav-menu li a:not(.btn):hover::after {
    width: 100%;
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #FDF8F8;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 20px;
        transition: right 0.35s ease;
        box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    }
    .nav-menu.open {
        right: 0;
    }
    .nav-menu li a:not(.btn) {
        font-size: 1rem;
    }
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(45, 31, 36, 0.4);
        z-index: 999;
    }
    .nav-overlay.active {
        display: block;
    }
}

/* ---------- Hero Section ---------- */
.hero {
    padding-top: 72px;
    background-color: #FDF8F8;
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 213, 216, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0 64px;
    position: relative;
}

.hero-content {
    max-width: 520px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7B2D3B;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1.5px;
    background-color: #7B2D3B;
}

.hero-headline {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.18;
    color: #2D1F24;
    margin-bottom: 24px;
}
.hero-headline em {
    font-style: italic;
    color: #7B2D3B;
}

.hero-subheadline {
    font-size: 1.05rem;
    color: #5A4046;
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 460px;
}

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

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Hero Image */
.hero-image {
    position: relative;
}
.hero-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(45, 31, 36, 0.12);
}
.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 3px solid #E8D5D8;
    border-radius: 8px;
    z-index: -1;
}

.hero-stat {
    position: absolute;
    bottom: -32px;
    right: -16px;
    background-color: #7B2D3B;
    color: #fff;
    padding: 20px 28px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}
.stat-number {
    display: block;
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Hero Divider */
.hero-divider {
    padding: 0 24px;
}
.hero-divider-line {
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(to right, transparent, #E8D5D8, transparent);
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 60px 0 48px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-image {
        max-width: 480px;
    }
    .hero-stat {
        right: 0;
        bottom: -24px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    .hero-badges {
        flex-direction: column;
    }
    .hero-badges .badge {
        text-align: center;
    }
}

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

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

.service-card {
    background-color: #FDF8F8;
    border: 1px solid rgba(232, 213, 216, 0.6);
    border-radius: 8px;
    padding: 36px 28px;
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(123, 45, 59, 0.08);
    border-color: #E8D5D8;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5E6E8;
    border-radius: 12px;
    color: #7B2D3B;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}
.service-card:hover .service-icon {
    background-color: #7B2D3B;
    color: #fff;
}

.service-title {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2D1F24;
}

.service-desc {
    font-size: 0.9rem;
    color: #5A4046;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services {
        padding: 72px 0;
    }
}

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

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

.about-image-col {
    position: relative;
}
.about-image-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(45, 31, 36, 0.1);
}
.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-image-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    width: 55%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(45, 31, 36, 0.15);
    border: 4px solid #FDF8F8;
}
.about-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.about-text {
    font-size: 0.95rem;
    color: #5A4046;
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-number {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #E8D5D8;
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
}

.value-title {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2D1F24;
}

.value-desc {
    font-size: 0.875rem;
    color: #5A4046;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-image-col {
        max-width: 480px;
    }
    .about-image-secondary {
        right: -12px;
        bottom: -24px;
    }
}

/* ---------- Insurance CTA Section ---------- */
.insurance-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #7B2D3B 0%, #5E222C 50%, #3D1720 100%);
    position: relative;
    overflow: hidden;
}
.insurance-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}
.insurance-cta::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

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

.insurance-cta-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 520px;
}

.insurance-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.insurance-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.insurance-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}
.insurance-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

@media (max-width: 768px) {
    .insurance-cta-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .insurance-cta-actions {
        align-items: flex-start;
    }
}

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

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

.contact-intro {
    font-size: 0.95rem;
    color: #5A4046;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

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

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5E6E8;
    border-radius: 10px;
    color: #7B2D3B;
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7B2D3B;
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 0.95rem;
    color: #2D1F24;
    line-height: 1.6;
}
.contact-detail-value a {
    color: #2D1F24;
    transition: color 0.2s ease;
}
.contact-detail-value a:hover {
    color: #7B2D3B;
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: #FDF8F8;
    border: 1px solid #F5E6E8;
    border-radius: 12px;
    padding: 40px;
}

.form-title {
    font-family: 'Lora', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 28px;
    color: #2D1F24;
}

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

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #5A4046;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #2D1F24;
    background-color: #fff;
    border: 1.5px solid #E8D5D8;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #7B2D3B;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #B8A0A4;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success-title {
    font-family: 'Lora', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #2D1F24;
    margin: 16px 0 8px;
}
.form-success-text {
    font-size: 0.9rem;
    color: #5A4046;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}
@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 28px 20px;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: #2D1F24;
    color: rgba(255,255,255,0.75);
    padding: 64px 0 0;
}

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

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 260px;
    color: rgba(255,255,255,0.55);
}

.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links ul li a,
.footer-links ul li span {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s ease;
}
.footer-links ul li a:hover {
    color: #E8C4C8;
}

.footer-contact address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}
.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    max-width: 600px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        text-align: center;
    }
}
