/* ============================================
   Paul Rees, MD — Classic & Elegant Medical Site
   Palette: Charcoal (#2C2C2C) + Coral (#E87461)
   Typography: Playfair Display + Inter
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2C2C2C;
    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;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.25;
    color: #2C2C2C;
}

/* Section Eyebrow */
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #E87461;
    margin-bottom: 16px;
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 24px;
    color: #2C2C2C;
}

/* Section Lead */
.section-lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
    max-width: 640px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    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;
    text-decoration: none;
}

.btn-primary {
    background-color: #E87461;
    color: #fff;
    border-color: #E87461;
}

.btn-primary:hover {
    background-color: #D4614F;
    border-color: #D4614F;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 116, 97, 0.35);
}

.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

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

/* ============================================
   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(44, 44, 44, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(44, 44, 44, 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-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C2C2C;
}

.nav-brand-mark {
    display: flex;
    align-items: center;
}

.nav-brand:hover {
    color: #2C2C2C;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #2C2C2C;
}

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

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

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: #E87461;
    border: 1.5px solid #E87461;
    padding: 8px 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.nav-cta:hover {
    background-color: #E87461;
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #2C2C2C;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(12px);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 24px;
    height: calc(100vh - 72px);
}

.mobile-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2C2C2C;
    padding: 12px 0;
    transition: color 0.2s;
}

.mobile-link:hover {
    color: #E87461;
}

.mobile-cta {
    margin-top: 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #E87461;
    border: 1.5px solid #E87461;
    padding: 14px 32px;
    border-radius: 4px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.pexels.com/photos/5207322/pexels-photo-5207322.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 44, 44, 0.92) 0%,
        rgba(44, 44, 44, 0.82) 50%,
        rgba(44, 44, 44, 0.72) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 120px 24px 80px;
}

.hero-accent-line {
    width: 60px;
    height: 2px;
    background-color: #E87461;
    margin: 0 auto 32px;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #E87461;
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 500;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.2;
}

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

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 120px 0;
    background-color: #FAFAF8;
}

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

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

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

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

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

.about-content .lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.about-content p {
    color: #555;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

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

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #E87461;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #777;
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background-color: rgba(44, 44, 44, 0.15);
}

/* ============================================
   Services
   ============================================ */
.services {
    padding: 120px 0;
    background-color: #F3F1EE;
}

.services-header {
    text-align: center;
    margin-bottom: 64px;
}

.services-header .section-lead {
    margin: 0 auto;
}

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

.service-card {
    background-color: #fff;
    border-radius: 4px;
    padding: 40px 32px;
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 44, 44, 0.06);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: rgba(232, 116, 97, 0.08);
    color: #E87461;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2C2C2C;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* ============================================
   Patient Info
   ============================================ */
.patient-info {
    padding: 120px 0;
    background-color: #FAFAF8;
}

.patient-info-header {
    text-align: center;
    margin-bottom: 64px;
}

.info-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.info-step {
    display: flex;
    gap: 24px;
    padding: 32px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid rgba(44, 44, 44, 0.06);
    transition: all 0.3s ease;
}

.info-step:hover {
    box-shadow: 0 8px 32px rgba(44, 44, 44, 0.06);
    border-color: transparent;
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: rgba(232, 116, 97, 0.25);
    line-height: 1;
    min-width: 48px;
}

.info-step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2C2C2C;
}

.info-step p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 120px 0;
    background-color: #2C2C2C;
}

.contact .section-title {
    color: #fff;
}

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

.contact-intro {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
}

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

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

.contact-detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: rgba(232, 116, 97, 0.15);
    color: #E87461;
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E87461;
    margin-bottom: 4px;
}

.contact-detail-value {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-detail-value a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
}

.contact-detail-value a:hover {
    color: #E87461;
}

/* Contact Form */
.contact-form-wrap {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 40px;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 32px;
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #E87461;
    background-color: rgba(232, 116, 97, 0.06);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 4px;
    color: #81C784;
    font-size: 14px;
}

.form-success svg {
    flex-shrink: 0;
}

/* ============================================
   Map
   ============================================ */
.map-section {
    border-top: 1px solid rgba(44, 44, 44, 0.08);
}

.map-container {
    height: 380px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(30%);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: #242424;
    padding: 64px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E87461;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #E87461;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    max-width: 400px;
    text-align: right;
    line-height: 1.5;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-content {
        padding: 100px 24px 80px;
    }

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

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

    .about-image-wrap img {
        height: 450px;
    }

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

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

    .info-steps {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrap {
        padding: 28px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
