/* ============================================
   Vancamp Kipp DO — Style System
   Terracotta + Sand · Playfair Display + Inter
   ============================================ */

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

:root {
    /* Terracotta palette */
    --terra-50: #fdf0eb;
    --terra-100: #f9dace;
    --terra-200: #f2b49e;
    --terra-300: #e8896e;
    --terra-400: #dd6547;
    --terra-500: #c74a2e;
    --terra-600: #a83d26;
    --terra-700: #87311f;
    --terra-800: #6e291a;
    --terra-900: #5c2316;
    --terra-950: #310f08;

    /* Sand palette */
    --sand-50: #fefcf8;
    --sand-100: #faf5ec;
    --sand-200: #f2e8d0;
    --sand-300: #e6d4aa;
    --sand-400: #d4bc7e;
    --sand-500: #c4a65a;
    --sand-600: #a88942;
    --sand-700: #866c33;
    --sand-800: #6c572a;
    --sand-900: #5a4824;

    /* Neutrals */
    --ink-950: #1a1410;
    --ink-900: #2a2019;
    --ink-800: #3d3027;
    --ink-700: #4f4035;
    --ink-600: #635246;
    --ink-500: #7a6859;
    --ink-400: #968476;
    --ink-300: #b5a496;
    --ink-200: #d4c8bc;
    --ink-100: #ebe3da;
    --ink-50: #f7f2ec;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-800);
    background-color: var(--sand-50);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--terra-600);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

a:hover {
    color: var(--terra-700);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink-950);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--terra-600);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
}

.skip-link:focus {
    top: var(--space-md);
}

/* ── Eyebrow ──────────────────────────────── */
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terra-600);
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
}

.section-sub {
    font-size: 1.1rem;
    color: var(--ink-600);
    max-width: 600px;
    line-height: 1.7;
}

/* ── Buttons ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.8125rem 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--terra-600);
    color: #fff;
    border-color: var(--terra-600);
}

.btn--primary:hover {
    background: var(--terra-700);
    border-color: var(--terra-700);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(167, 76, 42, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--ink-800);
    border-color: var(--ink-200);
}

.btn--ghost:hover {
    border-color: var(--terra-400);
    color: var(--terra-600);
}

.btn--dark {
    background: var(--ink-900);
    color: var(--sand-100);
    border-color: var(--ink-900);
}

.btn--dark:hover {
    background: var(--ink-800);
    border-color: var(--ink-800);
    color: var(--sand-100);
    transform: translateY(-1px);
}

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

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ── Navigation ───────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(250, 245, 236, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ink-100);
    transition: box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(26, 20, 16, 0.08);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav__brand-main {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink-950);
}

.nav__brand-tag {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--terra-600);
}

.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-700);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease-out);
}

.nav__links a:hover {
    color: var(--terra-600);
    background: var(--terra-50);
}

.nav__cta {
    background: var(--terra-600) !important;
    color: #fff !important;
    margin-left: var(--space-sm);
}

.nav__cta:hover {
    background: var(--terra-700) !important;
    color: #fff !important;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-800);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.nav__toggle:hover {
    background: var(--sand-200);
}

/* ── Hero ─────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(221, 101, 71, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(196, 166, 90, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(167, 76, 42, 0.12) 0%, transparent 70%),
        linear-gradient(160deg, var(--terra-50) 0%, #f5e6d8 30%, var(--sand-200) 60%, var(--terra-100) 100%);
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: var(--space-3xl) var(--space-xl);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--terra-700);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--terra-200);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 100px;
    margin-bottom: var(--space-2xl);
    backdrop-filter: blur(8px);
}

.hero__headline {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--ink-950);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.hero__headline em {
    font-style: italic;
    color: var(--terra-600);
}

.hero__sub {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: var(--ink-600);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto var(--space-2xl);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-400);
    z-index: 1;
}

/* ── Intro ────────────────────────────────── */
.intro {
    padding: var(--space-5xl) 0;
    background: var(--sand-50);
}

.intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.intro__text .eyebrow {
    margin-bottom: var(--space-md);
}

.intro__headline {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: var(--space-xl);
    color: var(--ink-950);
    line-height: 1.2;
}

.intro__text p {
    color: var(--ink-600);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: var(--space-lg);
}

.intro__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 6/7;
}

.intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Services ─────────────────────────────── */
.services {
    padding: var(--space-5xl) 0;
    background: var(--terra-50);
}

.services .section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

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

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--sand-50);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all 0.3s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 20, 16, 0.08);
    border-color: var(--terra-200);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terra-100);
    border-radius: var(--radius-md);
    color: var(--terra-700);
    margin-bottom: var(--space-xl);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--ink-900);
}

.service-card__title + p {
    color: var(--ink-600);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ── Photo Break ──────────────────────────── */
.photo-break {
    position: relative;
}

.photo-break__img {
    width: 100%;
    aspect-ratio: 14/5;
    overflow: hidden;
}

.photo-break__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-break__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 20, 16, 0.45);
}

.photo-break__quote {
    text-align: center;
    max-width: 700px;
    padding: var(--space-3xl);
}

.photo-break__quote svg {
    color: var(--terra-200);
    margin: 0 auto var(--space-lg);
    opacity: 0.8;
}

.photo-break__quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    color: var(--sand-100);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.photo-break__quote footer {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    color: var(--terra-200);
    letter-spacing: 0.04em;
}

/* ── Visit / New Patients ─────────────────── */
.visit {
    padding: var(--space-5xl) 0;
    background: var(--sand-50);
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.visit__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 6/7.5;
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
}

.visit__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visit__content .section-title {
    margin-bottom: var(--space-lg);
}

.visit__content > p {
    color: var(--ink-600);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
}

.visit__steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.visit__steps li {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.step-num {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--terra-300);
    line-height: 1;
    min-width: 40px;
}

.step-num + div strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: var(--space-xs);
}

.step-num + div span {
    color: var(--ink-600);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.visit__info-box {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    background: var(--terra-50);
    border: 1px solid var(--terra-100);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    font-size: 0.875rem;
    color: var(--ink-700);
    line-height: 1.65;
}

.visit__info-box svg {
    color: var(--terra-500);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Contact ──────────────────────────────── */
.contact {
    padding: var(--space-5xl) 0;
    background: var(--ink-950);
    color: var(--sand-200);
}

.contact .section-title {
    color: var(--sand-100);
}

.contact .section-sub,
.contact__desc {
    color: var(--ink-300);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    margin: var(--space-2xl) 0;
}

.contact-detail {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.contact-detail__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--terra-300);
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sand-300);
    margin-bottom: var(--space-xs);
}

.contact-detail p {
    color: var(--ink-200);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.contact-detail a {
    color: var(--terra-300);
}

.contact-detail a:hover {
    color: var(--terra-200);
}

.contact__form-wrap {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.contact-form__title {
    font-size: 1.5rem;
    color: var(--sand-100);
    margin-bottom: var(--space-sm);
}

.contact-form__sub {
    font-size: 0.875rem;
    color: var(--ink-400);
    margin-bottom: var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-300);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--sand-100);
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--terra-500);
    background: rgba(255, 255, 255, 0.08);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    color: #81c784;
    font-size: 0.9375rem;
    margin-top: var(--space-lg);
}

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

/* ── Map ──────────────────────────────────── */
.map-section {
    background: var(--ink-900);
}

.map-section__inner {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Footer ───────────────────────────────── */
.footer {
    background: var(--ink-950);
    color: var(--ink-300);
    padding: var(--space-4xl) 0 var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer__name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sand-100);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--ink-400);
    margin-bottom: var(--space-md);
}

.footer__copy {
    font-size: 0.8125rem;
    color: var(--ink-500);
}

.footer__quick,
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer__quick strong,
.footer__contact strong {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-300);
}

.footer__quick ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__quick a {
    font-size: 0.9375rem;
    color: var(--ink-400);
}

.footer__quick a:hover {
    color: var(--terra-300);
}

.footer__contact p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ink-400);
}

.footer__contact a {
    color: var(--terra-300);
}

.footer__contact a:hover {
    color: var(--terra-200);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: var(--space-xl);
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--ink-500);
    line-height: 1.65;
    max-width: 640px;
}

/* ── Scroll Reveal (progressive enhancement) ─ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

    .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; }
}

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

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }

    .nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav__menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(250, 245, 236, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--ink-100);
        padding: var(--space-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s var(--ease-out);
    }

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

    .nav__links {
        flex-direction: column;
        gap: var(--space-xs);
        width: 100%;
    }

    .nav__links a {
        display: block;
        padding: var(--space-md);
        width: 100%;
    }

    .nav__cta {
        margin-left: 0 !important;
        text-align: center;
    }

    .hero__headline {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }

    .intro__grid,
    .visit__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .visit__image {
        position: static;
        aspect-ratio: 4/3;
    }

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

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .photo-break__overlay {
        background: rgba(26, 20, 16, 0.55);
    }

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

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

@media (max-width: 480px) {
    .hero__badge {
        font-size: 0.75rem;
    }

    .service-card {
        padding: var(--space-xl);
    }

    .contact__form-wrap {
        padding: var(--space-xl);
    }
}
