/* ============================================
   Mid County Family Care — Custom Styles
   Classic & Elegant Medical Practice
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    color: #152a56;
    background-color: #fdf9ef;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

.serif-accent {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 249, 239, 0.97);
    box-shadow: 0 1px 20px rgba(13, 30, 63, 0.08);
    backdrop-filter: blur(10px);
}

#navbar.scrolled .nav-link {
    color: #152a56;
}

#navbar.scrolled .nav-link:hover {
    color: #c9952e;
}

#navbar.scrolled .logo-text-primary {
    color: #0d1e3f;
}

#navbar.scrolled .logo-text-secondary {
    color: #2d4d91;
}

#navbar.scrolled .mobile-menu-btn svg {
    stroke: #152a56;
}

/* --- Gold accent line --- */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9952e, #e5b54a);
    border-radius: 2px;
}

.section-divider.center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #c9952e;
    color: #0d1e3f;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 149, 46, 0.25);
}

.btn-primary:hover {
    background: #e5b54a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 149, 46, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #f0f3f9;
    border: 1px solid rgba(141, 162, 207, 0.4);
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(29, 58, 114, 0.6);
    border-color: rgba(141, 162, 207, 0.7);
}

/* --- Cards --- */
.service-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(217, 224, 239, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(13, 30, 63, 0.12);
    border-color: rgba(201, 149, 46, 0.3);
    transform: translateY(-4px);
}

/* --- Form inputs --- */
input, select, textarea {
    font-family: 'Lora', Georgia, serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #e5b54a;
}

/* --- Mobile menu --- */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Utility --- */
.text-gold-gradient {
    background: linear-gradient(135deg, #e5b54a, #c9952e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3rem;
    }
}
