/* ============================================
   QUAIL VALLEY MEDICAL CENTER — STYLESHEET
   Palette: Deep Navy (#0A1F3F) + Warm Gold (#C8A961)
   Fonts: Cormorant Garamond (headings) + Inter (body)
   ============================================ */

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

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

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

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

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

ul {
    list-style: none;
}

address {
    font-style: normal;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
    color: #0A1F3F;
}

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

.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C8A961;
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 1px;
    background-color: #C8A961;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    margin-bottom: 20px;
    color: #0A1F3F;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #4a4a5a;
    max-width: 600px;
    line-height: 1.8;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #C8A961;
    color: #0A1F3F;
    border-color: #C8A961;
}

.btn-primary:hover {
    background-color: #b8953d;
    border-color: #b8953d;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(200, 169, 97, 0.3);
}

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

.btn-outline:hover {
    background-color: #0A1F3F;
    color: #FAFAF8;
    transform: translateY(-1px);
}

.btn-outline-light {
    background-color: transparent;
    color: #FAFAF8;
    border-color: rgba(250, 250, 248, 0.5);
}

.btn-outline-light:hover {
    background-color: rgba(250, 250, 248, 0.1);
    border-color: #FAFAF8;
    transform: translateY(-1px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 0.938rem;
}

/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 31, 63, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(10, 31, 63, 0.08);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0A1F3F;
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    color: #C8A961;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a2e;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-menu a:hover {
    color: #C8A961;
}

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

.nav-cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0A1F3F !important;
    border: 1.5px solid #0A1F3F;
    padding: 10px 22px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: #0A1F3F;
    color: #FAFAF8 !important;
}

/* Nav toggle (mobile) */
.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: 22px;
    height: 1.5px;
    background-color: #0A1F3F;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(10, 31, 63, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background-color: #FAFAF8;
    padding-top: 72px;
    overflow: hidden;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C8A961;
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 500;
    line-height: 1.1;
    color: #0A1F3F;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

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

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #4a4a5a;
    margin-bottom: 40px;
    max-width: 460px;
}

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

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

.hero-badge {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0A1F3F;
    background-color: rgba(10, 31, 63, 0.06);
    border: 1px solid rgba(10, 31, 63, 0.12);
    padding: 8px 16px;
    border-radius: 2px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 24px 64px rgba(10, 31, 63, 0.12);
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid #C8A961;
    border-radius: 4px;
    z-index: -1;
}

/* ---------- SECTION DIVIDER ---------- */
.section-divider {
    background-color: #0A1F3F;
    overflow: hidden;
}

/* ---------- SERVICES ---------- */
.services {
    padding: 120px 0;
    background-color: #FAFAF8;
}

.services .section-label,
.services .section-title,
.services .section-subtitle {
    margin-bottom: 60px;
}

.services .section-subtitle {
    margin-bottom: 60px;
}

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

.service-card {
    padding: 40px 32px;
    background-color: #fff;
    border: 1px solid rgba(10, 31, 63, 0.07);
    border-radius: 4px;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: rgba(200, 169, 97, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(10, 31, 63, 0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 169, 97, 0.4);
    border-radius: 4px;
    margin-bottom: 24px;
    color: #C8A961;
}

.service-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0A1F3F;
}

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

/* ---------- ABOUT ---------- */
.about {
    padding: 120px 0;
    background-color: #0A1F3F;
}

.about .section-label {
    color: #C8A961;
}

.about .section-title {
    color: #FAFAF8;
}

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

.about-image-col {
    position: relative;
}

.about-image-col img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 4px;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(10, 31, 63, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.about-content {
    padding: 20px 0;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(250, 250, 248, 0.75);
    margin-bottom: 20px;
}

.about-content p:first-of-type {
    font-size: 1.0625rem;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(250, 250, 248, 0.12);
}

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

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

.stat-label {
    font-size: 0.8125rem;
    color: rgba(250, 250, 248, 0.55);
    line-height: 1.5;
}

/* ---------- HOURS & LOCATION ---------- */
.hours {
    padding: 120px 0;
    background-color: #FAFAF8;
}

.hours .section-label,
.hours .section-title,
.hours .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hours .section-subtitle {
    margin-bottom: 60px;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.hours-card,
.location-card {
    padding: 48px 40px;
    background-color: #fff;
    border: 1px solid rgba(10, 31, 63, 0.07);
    border-radius: 4px;
}

.hours-card-icon,
.location-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 169, 97, 0.4);
    border-radius: 4px;
    margin-bottom: 24px;
    color: #C8A961;
}

.hours-card h3,
.location-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 28px;
    color: #0A1F3F;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(10, 31, 63, 0.06);
    font-size: 0.9375rem;
}

.hours-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hours-list .day {
    font-weight: 500;
    color: #0A1F3F;
}

.hours-list .time {
    color: #4a4a5a;
}

.hours-closed .day,
.hours-closed .time {
    color: #999;
}

.hours-note {
    font-size: 0.8125rem;
    color: #6a6a7a;
    line-height: 1.7;
    padding: 16px;
    background-color: rgba(10, 31, 63, 0.03);
    border-radius: 4px;
    border-left: 2px solid #C8A961;
}

.location-address {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.location-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 500;
    color: #C8A961;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.location-phone:hover {
    color: #b8953d;
}

.location-map {
    margin-top: 24px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0A1F3F;
    border-bottom: 1px solid rgba(10, 31, 63, 0.3);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.map-link:hover {
    color: #C8A961;
    border-color: #C8A961;
}

/* ---------- CTA ---------- */
.cta {
    padding: 120px 0;
    background-color: #0A1F3F;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(200, 169, 97, 0.08);
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(200, 169, 97, 0.06);
    pointer-events: none;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    z-index: 1;
}

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

.cta-content .section-label {
    color: #C8A961;
}

.cta-content .section-title {
    color: #FAFAF8;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(250, 250, 248, 0.7);
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
    background-color: #071526;
    padding: 72px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 56px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #FAFAF8;
    margin-bottom: 16px;
}

.footer-logo svg {
    color: #C8A961;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(250, 250, 248, 0.5);
    max-width: 320px;
}

.footer-info h4,
.footer-links h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8A961;
    margin-bottom: 20px;
}

.footer-info address {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(250, 250, 248, 0.6);
    margin-bottom: 12px;
}

.footer-phone {
    font-size: 1rem;
    font-weight: 500;
    color: #C8A961;
    transition: color 0.3s ease;
}

.footer-phone:hover {
    color: #FAFAF8;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(250, 250, 248, 0.5);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(250, 250, 248, 0.08);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(250, 250, 248, 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 40px;
    }

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

    .about-split {
        gap: 48px;
    }

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background-color: #FAFAF8;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(10, 31, 63, 0.12);
        z-index: 1000;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-overlay {
        display: block;
    }

    .hero {
        min-height: auto;
        padding-top: 72px;
    }

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

    .hero-content {
        max-width: 100%;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-image img {
        height: 360px;
    }

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

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

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

    .hero-badges {
        justify-content: flex-start;
    }

    .services {
        padding: 80px 0;
    }

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

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

    .about {
        padding: 80px 0;
    }

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

    .about-image-col img {
        height: 360px;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hours {
        padding: 80px 0;
    }

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

    .hours-card,
    .location-card {
        padding: 36px 28px;
    }

    .cta {
        padding: 80px 0;
    }

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

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

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

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-inner {
        padding: 0 20px;
    }

    .hero-inner {
        padding: 32px 20px;
    }

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

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