/* ============================================
   MEYERS SCOTT MD — Custom Styles
   Classic & Elegant · Charcoal + Coral
   ============================================ */

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* --- Selection --- */
::selection { background: rgba(232, 116, 97, 0.2); color: #2C2C2C; }

/* --- Typography --- */
.section-label { display: block; }

/* --- Header --- */
#site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
}
#site-header.scrolled {
    background: rgba(253, 251, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0,0,0,0.06);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.header-text { color: #2C2C2C; }
.header-text-muted { color: #888; }
#site-header.scrolled .header-text { color: #2C2C2C; }
#site-header.scrolled .header-text-muted { color: #888; }

/* --- Nav links --- */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #E87461;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* --- Hero animations --- */
.hero-subtitle { animation: slideUp 0.8s ease forwards; animation-delay: 0.1s; opacity: 0; transform: translateY(20px); }
.hero-headline { animation: slideUp 0.8s ease forwards; animation-delay: 0.25s; opacity: 0; transform: translateY(20px); }
.hero-desc { animation: slideUp 0.8s ease forwards; animation-delay: 0.4s; opacity: 0; transform: translateY(20px); }
.hero-cta-primary { animation: slideUp 0.8s ease forwards; animation-delay: 0.55s; opacity: 0; transform: translateY(20px); }
.hero-cta-secondary { animation: slideUp 0.8s ease forwards; animation-delay: 0.65s; opacity: 0; transform: translateY(20px); }

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Staggered delays for service cards */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* --- Mobile menu --- */
#mobile-menu {
    background: rgba(253, 251, 248, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.mobile-nav-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* --- Service cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

/* --- Approach items --- */
.approach-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}
.approach-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* --- Form --- */
input, textarea {
    font-family: 'Inter', system-ui, sans-serif;
}
input:focus, textarea:focus {
    outline: none;
}

/* --- Divider line --- */
.divider-accent {
    width: 60px;
    height: 2px;
    background: #E87461;
    margin: 1.5rem 0;
}

/* --- Mobile menu icon --- */
.menu-line-1 { transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center; }
.menu-line-2 { transition: opacity 0.2s ease; }
.menu-line-3 { transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center; }
body.menu-open .menu-line-1 { transform: translateY(5px) rotate(45deg); }
body.menu-open .menu-line-2 { opacity: 0; }
body.menu-open .menu-line-3 { transform: translateY(-5px) rotate(-45deg); }

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-headline { font-size: 2.75rem; }
    .hero-headline .italic { display: inline; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline { font-size: 4rem; }
}

/* --- Subtle image hover --- */
.aspect-\[3\/4\] img,
.aspect-\[4\/5\] img,
.aspect-\[4\/3\] img {
    transition: transform 0.6s ease;
}
.aspect-\[3\/4\]:hover img,
.aspect-\[4\/5\]:hover img,
.aspect-\[4\/3\]:hover img {
    transform: scale(1.03);
}
