/* =========================================================================
   St. Louis Dental Implant Center – base styles
   Tokens measured from the Figma export (1920px desktop frame).
   ========================================================================= */

:root {
    --blue: #607cbf;
    --blue-dark: #4c68a8;
    --gold: #a18361;
    --tint: #e9edf8;
    --card: #f3f5f7;
    --card-border: #e2e6ef;
    --ink: #111111;
    --text: #292d32;
    --white: #ffffff;
    --star: #ffcc4a;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --container: 1320px;
    --gutter: 24px;
    --section-y: 100px;
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;

    --topbar-h: 64px;
    --header-h: 104px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(1080px + var(--gutter) * 2); }

.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; left: 12px; top: -60px; z-index: 1000;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-xs);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 47px; padding: 10px 18px;
    font-family: var(--font-body); font-size: 18px; font-weight: 500; line-height: 1.3;
    text-align: center; text-decoration: none; white-space: nowrap;
    border: 1px solid transparent; border-radius: var(--radius-xs);
    cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(96, 124, 191, .35); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--tint); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 16px; font-weight: 500; text-transform: uppercase; }
.btn-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.btn-row--center { justify-content: center; }

/* ---------- headings ---------- */
.gold { color: var(--gold); }
.section-title { font-size: 48px; line-height: 58px; text-align: center; }
.section-title--left { text-align: left; }
.section-sub {
    margin: 18px auto 0; text-align: center; font-weight: 500; font-size: 18px; color: var(--ink);
}
.section-sub--wide { max-width: 840px; }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
/* Two plain (non-tinted) sections in a row: use ONE section space, not bottom + top stacked. */
.section:not(.section--tint) + .section:not(.section--tint) { padding-top: 0; }
.section--tint { background: var(--tint); }
