/* ============================================
   Dr. Prince Moses DDS — Complete Stylesheet
   ============================================ */

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

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

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

a {
    color: #0d9488;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0f766e;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #0d9488;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 200;
    font-weight: 500;
}

.skip-link:focus {
    top: 16px;
}

/* ---------- SECTION HEADERS ---------- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 12px;
}

.section-eyebrow-light {
    color: #99f6e4;
}

.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 16px;
}

.section-title-light {
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: #64748b;
    max-width: 640px;
    line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: #0d9488;
    color: #ffffff;
    border-color: #0d9488;
}

.btn-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

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

.btn-outline-light:hover {
    background: #ffffff;
    color: #0d9488;
    border-color: #ffffff;
    transform: translateY(-2px);
}

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

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

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.logo:hover {
    color: #0d9488;
}

.logo-icon {
    color: #0d9488;
}

.logo-text {
    line-height: 1.2;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a:not(.btn) {
    color: #475569;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main-nav a:not(.btn):hover {
    color: #0d9488;
    background: rgba(13, 148, 136, 0.06);
}

.btn-nav {
    margin-left: 8px;
    font-size: 0.875rem;
    padding: 10px 22px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #1e293b;
    transition: background 0.2s ease;
}

.mobile-toggle:hover {
    background: rgba(13, 148, 136, 0.06);
}

.mobile-toggle .menu-icon-close {
    display: none;
}

.mobile-toggle[aria-expanded="true"] .menu-icon-open {
    display: none;
}

.mobile-toggle[aria-expanded="true"] .menu-icon-close {
    display: block;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #0f172a;
    overflow: hidden;
    padding-top: 76px;
}

.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(15, 23, 42, 0.92) 0%,
        rgba(15, 41, 58, 0.85) 50%,
        rgba(13, 148, 136, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.2);
    border: 1px solid rgba(13, 148, 136, 0.4);
    color: #5eead4;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: #cbd5e1;
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 580px;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
}

.hero-badge svg {
    color: #5eead4;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

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

/* ---------- TRUST BAR ---------- */
.trust-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 32px 24px;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #334155;
}

.trust-icon {
    color: #0d9488;
    flex-shrink: 0;
}

/* ---------- SERVICES ---------- */
.services {
    padding: 100px 24px;
    background: #ffffff;
}

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

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

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

.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(13, 148, 136, 0.12);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: #0d9488;
    color: #ffffff;
}

.service-card-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 100px 24px;
    background: #f8fafc;
}

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

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

.about-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 55%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.15);
    border: 4px solid #ffffff;
}

.about-image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: #0d9488;
    color: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.35);
}

.experience-number {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.experience-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.85;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-text {
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0 32px;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #334155;
}

.about-value-icon {
    width: 24px;
    height: 24px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    flex-shrink: 0;
}

/* ---------- NEW PATIENTS ---------- */
.new-patients {
    padding: 100px 24px;
    background: #0f172a;
}

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

.new-patients-content .section-title {
    margin-bottom: 16px;
}

.new-patients-text {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.75;
    margin-bottom: 36px;
}

.new-patients-visual {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    height: 100%;
    min-height: 400px;
}

.new-patients-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.steps-list {
    counter-reset: steps;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.steps-item {
    display: flex;
    gap: 20px;
    counter-increment: steps;
}

.steps-number {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0d9488;
    line-height: 1;
    min-width: 40px;
    padding-top: 2px;
}

.steps-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.steps-desc {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.65;
}

.steps-desc a {
    color: #5eead4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.steps-desc a:hover {
    color: #ffffff;
}

/* ---------- CTA ---------- */
.cta {
    padding: 100px 24px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cta .container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.cta .section-title {
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    margin-bottom: 40px;
}

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

/* ---------- CONTACT ---------- */
.contact {
    padding: 100px 24px;
    background: #ffffff;
}

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

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 36px;
}

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

.contact-detail {
    display: flex;
    gap: 16px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1e293b;
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
}

.contact-detail a {
    color: #0d9488;
}

.contact-detail a:hover {
    color: #0f766e;
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: #f8fafc;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #e2e8f0;
}

.form-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 28px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    color: #065f46;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 16px;
}

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

/* ---------- MAP ---------- */
.map-section {
    padding: 0 24px 80px;
    background: #ffffff;
}

.map-wrapper {
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
    border-radius: 16px;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 64px 24px 0;
}

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

.logo-light {
    color: #f1f5f9;
    margin-bottom: 16px;
}

.logo-light:hover {
    color: #5eead4;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #64748b;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 16px;
}

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

.footer-links a {
    color: #64748b;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-contact a {
    color: #5eead4;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: #475569;
    text-align: center;
}

.footer-bottom a {
    color: #64748b;
}

.footer-bottom a:hover {
    color: #5eead4;
}

/* ---------- 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);
    }

    .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) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .new-patients-inner,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-accent {
        right: 16px;
        bottom: -16px;
    }

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

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        padding: 16px 24px 24px;
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-nav a:not(.btn) {
        display: block;
        padding: 12px 16px;
        border-radius: 10px;
    }

    .main-nav a:not(.btn):hover {
        background: rgba(13, 148, 136, 0.06);
    }

    .btn-nav {
        margin-left: 0;
        margin-top: 12px;
        justify-content: center;
        width: 100%;
    }

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

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

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

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

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

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

    .contact-form-wrapper {
        padding: 28px 20px;
    }

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

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .trust-items {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 60px 16px;
    }

    .services,
    .about,
    .new-patients,
    .cta,
    .contact {
        padding: 72px 16px;
    }
}
