/* ============================================
   McLeod Kevin MD — Classic & Elegant Medical Site
   Palette: Charcoal (#2D3748) + Coral (#F97066)
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
    --charcoal: #2D3748;
    --charcoal-deep: #1A202C;
    --charcoal-light: #4A5568;
    --coral: #F97066;
    --coral-dark: #E85A50;
    --coral-light: #FDF2F0;
    --cream: #FAFAF8;
    --warm-white: #F5F3F0;
    --off-white: #EDEBE8;
    --text-dark: #1A202C;
    --text-body: #4A5568;
    --text-muted: #718096;
    --border-light: #E8E4DF;
    --shadow-sm: 0 1px 3px rgba(45, 55, 72, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 55, 72, 0.1);
    --shadow-lg: 0 10px 40px rgba(45, 55, 72, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-dark);
    line-height: 1.25;
    font-weight: 500;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.938rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-coral {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral);
}

.btn-coral:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(249, 112, 102, 0.35);
}

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

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

.btn-outline-coral {
    background: transparent;
    color: var(--coral);
    border-color: var(--coral);
}

.btn-outline-coral:hover {
    background: var(--coral);
    color: #fff;
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

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

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

/* ── Section Eyebrow ── */
.section-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.063rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--charcoal);
    color: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.063rem;
    color: var(--text-dark);
    font-weight: 600;
}

.logo-tagline {
    font-size: 0.688rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

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

.nav-links a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-body);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--coral);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--coral);
    transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 20px !important;
    font-size: 0.875rem !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--charcoal-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 32, 44, 0.92) 0%,
        rgba(45, 55, 72, 0.85) 50%,
        rgba(26, 32, 44, 0.88) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-ornament {
    color: var(--coral);
    margin-bottom: 24px;
    opacity: 0.7;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 24px;
    padding: 8px 16px;
    border: 1px solid rgba(249, 112, 102, 0.3);
    border-radius: 100px;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-headline em {
    color: var(--coral);
    font-style: italic;
}

.hero-subheadline {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

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

.hero-trust {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.trust-label {
    font-size: 0.688rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.trust-value {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #fff;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

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

.hero-scroll:hover {
    color: var(--coral);
}

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

/* ── Services ── */
.services {
    padding: 100px 0;
    background: var(--cream);
}

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

.service-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--coral-light);
    color: var(--coral);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--coral);
    color: #fff;
}

.service-card h3 {
    font-size: 1.188rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.938rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── About ── */
.about {
    padding: 100px 0;
    background: var(--warm-white);
}

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

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

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--coral);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.2;
}

.about-content {
    max-width: 480px;
}

.about-body {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-values {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.value-item svg {
    color: var(--coral);
    flex-shrink: 0;
}

/* ── Approach ── */
.approach {
    padding: 100px 0;
    background: var(--charcoal-deep);
    color: #fff;
}

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

.approach .section-eyebrow {
    color: var(--coral);
}

.approach-title {
    color: #fff;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    max-width: 720px;
    margin: 0 auto 20px;
    line-height: 1.35;
}

.approach-title em {
    color: var(--coral);
    font-style: italic;
}

.approach-subtitle {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.approach-stat {
    text-align: center;
    padding: 24px 16px;
}

.stat-ornament {
    color: rgba(249, 112, 102, 0.4);
    margin-bottom: 20px;
}

.stat-label {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.188rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ── Contact ── */
.contact {
    padding: 100px 0;
    background: var(--cream);
}

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

.contact-intro {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--coral-light);
    color: var(--coral);
    flex-shrink: 0;
}

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

.contact-label {
    font-size: 0.688rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-value {
    font-size: 0.938rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--coral);
}

/* ── Contact Form ── */
.contact-form-wrapper {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 8px;
}

.contact-form-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-intro {
    font-size: 0.938rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.938rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 112, 102, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: var(--coral);
    margin-bottom: 16px;
}

.form-success h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.938rem;
    color: var(--text-muted);
}

/* ── Map Section ── */
.map-section {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 32, 44, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.map-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.map-card p {
    font-size: 0.938rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ── Footer ── */
.footer {
    background: var(--charcoal-deep);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--charcoal-light);
    color: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.063rem;
    color: #fff;
    font-weight: 600;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 280px;
}

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

.footer-nav a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--coral);
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.938rem;
    color: var(--coral);
    font-weight: 500;
    margin-bottom: 8px;
    transition: color var(--transition);
}

.footer-phone:hover {
    color: var(--coral-dark);
}

.footer-address {
    font-size: 0.813rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-disclaimer {
    max-width: 400px;
    text-align: right;
    line-height: 1.5;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-light);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .trust-divider {
        display: none;
    }

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

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

    .about-image {
        height: 350px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .contact-form-card {
        padding: 24px;
    }

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

    .map-card {
        padding: 24px 32px;
    }

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

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

    .footer-disclaimer {
        text-align: center;
        max-width: 100%;
    }
}

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

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

    .services, .about, .approach, .contact {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }
}
