/* ============================================
   James D Robinson DDS — Editorial Dentistry
   Navy (#0F2B4C) + Warm Gold (#C8A45A)
   ============================================ */

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

:root {
    --navy:       #0F2B4C;
    --navy-deep:  #091E36;
    --navy-light: #1A3D66;
    --gold:       #C8A45A;
    --gold-light: #D4B76E;
    --gold-dark:  #A8873E;
    --white:      #FFFFFF;
    --off-white:  #F7F4EE;
    --cream:      #FDF9F0;
    --gray-100:   #F5F3EF;
    --gray-200:   #E8E4DC;
    --gray-400:   #9E9A90;
    --gray-600:   #5C5850;
    --gray-800:   #2C2824;
    --serif:      'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    font-family: var(--sans);
    color: var(--gray-800);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
address { font-style: normal; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--navy);
    color: var(--white);
    padding: .75rem 1.25rem;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-weight: 500;
}
.skip-link:focus { top: 0; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; color: var(--navy); }
.text-gold { color: var(--gold-dark); }

.section-label {
    display: inline-block;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 1.25rem;
}
.section-title--lg {
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.05;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 560px;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--sans);
    font-size: .9375rem;
    font-weight: 600;
    padding: .875rem 1.75rem;
    border-radius: 6px;
    transition: all .3s var(--ease);
    white-space: nowrap;
}
.btn-icon { flex-shrink: 0; }

.btn--gold {
    background: var(--gold);
    color: var(--navy-deep);
}
.btn--gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 164, 90, .35);
}

.btn--white {
    background: var(--white);
    color: var(--navy);
}
.btn--white:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,.5);
}
.btn--outline-white:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--white);
}

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

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
    background: rgba(15, 43, 76, .97);
    box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.logo-mark {
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--navy-deep);
    font-family: var(--serif);
    font-weight: 900;
    font-size: .875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    letter-spacing: -.02em;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    line-height: 1.2;
}
.logo-sub {
    font-size: .6875rem;
    color: var(--gold);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.main-nav a {
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    transition: color .2s;
}
.main-nav a:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
}
.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 2px;
    background: var(--white);
    box-shadow: 0 -6px 0 var(--white), 0 6px 0 var(--white);
    transition: all .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .hamburger {
    box-shadow: 0 -6px 0 transparent, 0 0 0 transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-light) 100%);
    overflow: hidden;
    padding: 8rem 0 4rem;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(200,164,90,.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(26,61,102,.6) 0%, transparent 60%);
    pointer-events: none;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200,164,90,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,164,90,.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 820px;
    z-index: 1;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 2rem;
}
.eyebrow-line {
    width: 40px;
    height: 1.5px;
    background: var(--gold);
    flex-shrink: 0;
}
.hero-eyebrow p {
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero-title {
    font-size: clamp(3rem, 9vw, 6.5rem);
    color: var(--white);
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 1.75rem;
    letter-spacing: -.02em;
}
.hero-title em {
    font-style: italic;
    color: var(--gold);
    font-weight: 700;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,.7);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-credentials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 2rem;
}
.credential {
    flex: 1;
    text-align: center;
    padding: 0 1.5rem;
}
.credential-num {
    display: block;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
    margin-bottom: .375rem;
}
.credential-label {
    font-size: .8125rem;
    color: rgba(255,255,255,.55);
    line-height: 1.5;
}
.credential-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.15);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.4);
    font-size: .6875rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: .4; transform: scaleY(.6); }
}

/* ---------- Intro ---------- */
.intro {
    padding: 7rem 0;
    background: var(--cream);
}
.intro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.intro-text .section-title { margin-bottom: 1.5rem; }
.intro-text p {
    color: var(--gray-600);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--navy);
    transition: gap .3s var(--ease), color .2s;
}
.link-arrow:hover { gap: .875rem; color: var(--gold-dark); }
.link-arrow svg { flex-shrink: 0; }

.intro-image { position: relative; }
.image-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15,43,76,.15);
}
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold);
    border-radius: 12px;
    z-index: -1;
}
.image-accent--bottom {
    top: auto;
    bottom: -16px;
    right: auto;
    left: -16px;
}

/* ---------- Services ---------- */
.services {
    padding: 7rem 0;
    background: var(--navy);
}
.services .section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.services .section-title { color: var(--white); }
.services .section-desc { color: rgba(255,255,255,.6); margin: 0 auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 2.25rem;
    transition: all .35s var(--ease);
}
.service-card:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(200,164,90,.3);
    transform: translateY(-4px);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(200,164,90,.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.service-title {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: .75rem;
}
.service-card p {
    font-size: .9375rem;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
}

/* ---------- Split Banner ---------- */
.split-banner {
    padding: 6rem 0;
    background: var(--off-white);
}
.split-banner-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.split-text .section-title { margin-bottom: 1.5rem; }
.split-stats { display: flex; flex-direction: column; gap: 2rem; }
.stat {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.stat:first-child { border-top: 1px solid var(--gray-200); }
.stat-number {
    display: block;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .375rem;
}
.stat-label {
    font-size: .9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ---------- About ---------- */
.about {
    padding: 7rem 0;
    background: var(--cream);
}
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-content .section-title { margin-bottom: 1.5rem; }
.about-content p {
    color: var(--gray-600);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1.5rem;
    margin-top: 2rem;
}
.feature {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--gray-800);
}
.feature svg {
    color: var(--gold-dark);
    flex-shrink: 0;
}

/* ---------- Location ---------- */
.location {
    padding: 7rem 0;
    background: var(--white);
}
.location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.location-info .section-title { margin-bottom: 1.5rem; }
.location-address {
    font-size: 1.125rem;
    color: var(--gray-800);
    line-height: 1.8;
    margin-bottom: 2rem;
}
.location-address p { margin-bottom: .25rem; }
.location-address a { color: var(--navy); }
.location-address a:hover { color: var(--gold-dark); }

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.detail-icon {
    width: 44px;
    height: 44px;
    background: var(--off-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    flex-shrink: 0;
}
.detail strong {
    display: block;
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    margin-bottom: .25rem;
}
.detail a { color: var(--navy); font-weight: 600; font-size: 1.0625rem; }
.detail a:hover { color: var(--gold-dark); }
.detail span { font-size: .9375rem; color: var(--gray-600); line-height: 1.6; }

.location-map { }
.map-placeholder {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15,43,76,.12);
}
.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.map-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--white);
    padding: .75rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--navy);
}
.map-pin { color: var(--gold-dark); }

/* ---------- CTA ---------- */
.cta {
    padding: 7rem 0;
    background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.cta-text .section-title { color: var(--white); margin-bottom: 1.5rem; }
.cta-text p {
    color: rgba(255,255,255,.65);
    font-size: 1.0625rem;
    line-height: 1.75;
}
.cta-text a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cta-text a:hover { color: var(--gold-light); }

.cta-form-wrap {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 2.5rem;
}
.cta-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group label {
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.6);
}
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: .875rem 1rem;
    color: var(--white);
    font-family: var(--sans);
    font-size: .9375rem;
    transition: border-color .2s, background .2s;
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,.3);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,.12);
}
.form-group select { cursor: pointer; appearance: none; }
.form-group select option { background: var(--navy); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
    font-size: .8125rem;
    color: rgba(255,255,255,.4);
    text-align: center;
    margin-top: .5rem;
}
.form-success {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: rgba(200,164,90,.15);
    border: 1px solid rgba(200,164,90,.3);
    border-radius: 8px;
    color: var(--gold-light);
    font-size: .9375rem;
    margin-top: .5rem;
}
.form-success svg { color: var(--gold); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    padding: 4rem 0 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.footer-brand .logo-mark {
    width: 48px;
    height: 48px;
    font-size: .9375rem;
}
.footer-brand strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.125rem;
    color: var(--white);
}
.footer-brand p {
    font-size: .8125rem;
    color: var(--gold);
    letter-spacing: .05em;
}
.footer-contact p {
    margin-bottom: .5rem;
}
.footer-contact a {
    font-size: .9375rem;
    color: rgba(255,255,255,.7);
    transition: color .2s;
}
.footer-contact a:hover { color: var(--gold); }
.footer-hours strong {
    display: block;
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold);
    margin-bottom: .5rem;
}
.footer-hours p {
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    margin-bottom: .25rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: .8125rem;
    color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); transition: color .2s; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
}

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

@media (max-width: 768px) {
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--navy-deep);
        padding: 5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        box-shadow: -8px 0 32px rgba(0,0,0,.3);
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
    .main-nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1.0625rem;
        color: rgba(255,255,255,.85);
    }
    .main-nav .btn--gold {
        text-align: center;
        margin-top: 1rem;
        justify-content: center;
    }

    .hero { padding: 7rem 0 3rem; }
    .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
    .hero-credentials { flex-direction: column; gap: 1.25rem; }
    .credential-divider { width: 40px; height: 1px; }
    .hero-scroll { display: none; }

    .intro-layout,
    .about-layout,
    .location-layout,
    .cta-inner,
    .split-banner-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .intro-image { order: -1; }
    .image-accent { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-form-wrap { padding: 1.5rem; }
}
