/* Bourne Orthodontics — indigo / gold / cream with a rainbow "elastic bands" accent */
:root {
  --indigo: #232c78;
  --indigo-deep: #151b52;
  --indigo-soft: #e9ebfb;
  --gold: #d9a52b;
  --gold-deep: #9a6f0d;
  --gold-soft: #ffeebb;
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #1b1f4a;
  --muted: #4b5080;
  --line: rgba(35, 44, 120, .14);
  --rb1: #ef476f; --rb2: #ff9f1c; --rb3: #ffd23f; --rb4: #2ec4a6; --rb5: #3a86ff; --rb6: #8e5bd6;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; color: var(--indigo); }
a { color: var(--indigo); }
a:hover { color: var(--gold-deep); }
img, svg { max-width: 100%; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 1.25rem; }
.eyebrow { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 2rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--rb1), var(--rb2), var(--rb3)); }
.lead-copy { font-size: 1.2rem; color: var(--muted); }
.rainbow-bar { height: 8px; background: linear-gradient(90deg, var(--rb1) 0 16.66%, var(--rb2) 0 33.33%, var(--rb3) 0 50%, var(--rb4) 0 66.66%, var(--rb5) 0 83.33%, var(--rb6) 0); }

/* Buttons */
.btn { font-weight: 700; border-radius: 999px; padding: .8rem 1.6rem; letter-spacing: .01em; }
.btn-indigo { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn-indigo:hover, .btn-indigo:focus { background: var(--indigo-deep); border-color: var(--indigo-deep); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--indigo-deep); }
.btn-gold:hover, .btn-gold:focus { background: #ecb93f; border-color: #ecb93f; color: var(--indigo-deep); }
.btn-outline-indigo { border: 2px solid var(--indigo); color: var(--indigo); background: transparent; }
.btn-outline-indigo:hover { background: var(--indigo); color: #fff; }
.btn-outline-light-x { border: 2px solid rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-outline-light-x:hover { background: #fff; color: var(--indigo); }

/* Announcement bar */
.announce { background: var(--indigo-deep); color: #fff; text-align: center; font-size: .92rem; padding: .55rem 1rem; }
.announce strong { color: var(--gold-soft); }
.announce a { color: var(--gold-soft); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Navbar */
.site-nav { background: rgba(255, 253, 248, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .55rem 0; }
.site-nav .navbar-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--indigo); letter-spacing: -.02em; margin-right: 1rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--indigo-deep); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.site-nav .nav-link { font-weight: 600; font-size: .95rem; color: var(--ink); padding: .5rem .8rem; border-radius: 8px; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus, .site-nav .nav-link.show { color: var(--indigo); background: var(--indigo-soft); }
.site-nav .dropdown-menu { border: 1px solid var(--line); border-radius: 14px; padding: .5rem; box-shadow: 0 14px 40px rgba(21, 27, 82, .15); }
.site-nav .dropdown-item { border-radius: 8px; font-weight: 500; padding: .5rem .85rem; }
.site-nav .dropdown-item:hover { background: var(--indigo-soft); color: var(--indigo); }
.site-nav .btn { padding: .55rem 1.2rem; font-size: .95rem; }
.navbar-toggler { border: 2px solid var(--indigo); border-radius: 10px; padding: .25rem .5rem; color: var(--indigo); font-size: 1.6rem; line-height: 1; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(217, 165, 43, .45); }
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: .75rem 0 1rem; }
  .site-nav .btn { width: 100%; margin-top: .5rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-nav .navbar-brand { font-size: 1.15rem; }
  .site-nav .nav-link { padding: .5rem .55rem; font-size: .9rem; }
}

/* Hero — typography-forward, cream ground, indigo art panel */
.hero { background: var(--cream); position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero::before { content: ""; position: absolute; right: -12%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft) 0, rgba(255, 238, 187, 0) 68%); pointer-events: none; }
.hero .container { position: relative; }
.hero-eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1.25rem; }
.hero-title { font-size: clamp(3.4rem, 9.5vw, 7.4rem); line-height: .92; letter-spacing: -.04em; margin-bottom: 1.5rem; color: var(--indigo); }
.hero-title .swash { position: relative; display: inline-block; isolation: isolate; }
.hero-title .swash::after { content: ""; position: absolute; left: 2%; right: 0; bottom: -.04em; height: .16em; border-radius: 999px; background: linear-gradient(90deg, var(--rb1) 0 16.66%, var(--rb2) 0 33.33%, var(--rb3) 0 50%, var(--rb4) 0 66.66%, var(--rb5) 0 83.33%, var(--rb6) 0); z-index: -1; opacity: .95; }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink); max-width: 34ch; margin-bottom: 2rem; font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.hero-tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .95rem; font-size: .9rem; font-weight: 600; color: var(--indigo); display: inline-flex; align-items: center; gap: .4rem; }
.hero-tags i { color: var(--gold-deep); }
.hero-art { background: var(--indigo); border-radius: 36px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 30px 60px -20px rgba(21, 27, 82, .45); position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .13) 1.5px, transparent 0) 0 0 / 22px 22px; pointer-events: none; }
.logo-chip { position: relative; background: #fff; border-radius: 24px; padding: clamp(.9rem, 2.2vw, 1.5rem); text-align: center; }
.logo-chip img { display: block; width: 100%; height: auto; }
.hero-smile { display: block; width: 100%; height: auto; margin-top: 1.25rem; position: relative; }

/* About */
.about { background: var(--paper); }
.mission { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.1; letter-spacing: -.025em; color: var(--indigo); }
.mission mark { background: linear-gradient(transparent 62%, var(--gold-soft) 62%); color: inherit; padding: 0 .1em; }
.about p { color: var(--muted); }
.about .thanks { border-left: 4px solid var(--gold); padding-left: 1.1rem; color: var(--ink); font-weight: 600; }

/* Treatment */
.treatment { background: var(--cream); }
.callout { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.75rem; height: 100%; }
.callout h3 { font-size: 1.4rem; }
.swatches { display: flex; gap: .4rem; margin: 1rem 0; }
.swatches span { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatches span:nth-child(1) { background: var(--rb1); } .swatches span:nth-child(2) { background: var(--rb2); } .swatches span:nth-child(3) { background: var(--rb3); }
.swatches span:nth-child(4) { background: var(--rb4); } .swatches span:nth-child(5) { background: var(--rb5); } .swatches span:nth-child(6) { background: var(--rb6); }
.tx-card { background: #fff; border-radius: 24px; padding: 2rem 1.75rem; height: 100%; border: 1px solid var(--line); position: relative; transition: transform .2s, box-shadow .2s; }
.tx-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(21, 27, 82, .3); }
.tx-icon { width: 3.2rem; height: 3.2rem; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.1rem; color: var(--indigo-deep); }
.tx-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.tx-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.ic-1 { background: #ffd9e1; } .ic-2 { background: #ffe3bd; } .ic-3 { background: #fff2b0; } .ic-4 { background: #c9f1e8; } .ic-5 { background: #d3e4ff; } .ic-6 { background: #e5d8fa; }

/* First visit */
.first-visit { background: var(--paper); }
.step { border-top: 4px solid var(--gold); padding-top: 1.1rem; height: 100%; }
.step:nth-child(1) { border-color: var(--rb1); } .step:nth-child(2) { border-color: var(--rb3); } .step:nth-child(3) { border-color: var(--rb4); } .step:nth-child(4) { border-color: var(--rb5); }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--indigo); opacity: .9; }
.step h3 { font-size: 1.25rem; margin: .5rem 0 .4rem; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }
.fact { background: var(--indigo); color: #fff; border-radius: 22px; padding: 1.5rem 1.6rem; height: 100%; display: flex; gap: 1rem; align-items: flex-start; }
.fact i { font-size: 1.7rem; color: var(--gold); flex: none; line-height: 1.2; }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.2; margin-bottom: .2rem; }
.fact span { color: #d7dbff; font-size: .98rem; line-height: 1.5; display: block; }
.forms-box { background: var(--indigo-soft); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.doc-link { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .95rem 1.1rem; text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.3; transition: border-color .2s, transform .2s; }
.row.g-3 > [class*="col"] > .doc-link { height: 100%; }
.doc-link:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--indigo); }
.doc-link .bi-file-earmark-pdf { font-size: 1.7rem; color: var(--rb1); flex: none; }
.doc-link small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.doc-link .bi-download { margin-left: auto; color: var(--indigo); flex: none; }

/* Kids club */
.kids { background: var(--paper); position: relative; overflow: hidden; }
.age-panel { background: var(--cream); border-radius: 36px; padding: clamp(2rem, 5vw, 3.5rem); display: flex; justify-content: center; align-items: center; min-height: 100%; position: relative; overflow: hidden; }
.age-panel::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft) 0, rgba(255, 238, 187, 0) 70%); right: -15%; top: -20%; }
.age-badge { position: relative; font-family: var(--font-display); font-weight: 800; color: var(--indigo); line-height: .8; font-size: clamp(9rem, 22vw, 15rem); letter-spacing: -.06em; }
.age-badge small { display: block; font-family: var(--font-body); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-deep); margin-top: 1rem; line-height: 1.4; }
.age-badge .dot { position: absolute; border-radius: 50%; }
.benefit { background: var(--cream); border-radius: 20px; padding: 1.4rem 1.3rem; height: 100%; }
.benefit i { font-size: 1.6rem; color: var(--gold-deep); }
.benefit h3 { font-size: 1.1rem; margin: .5rem 0 0; }

/* Adults */
.adults { background: var(--gold-soft); position: relative; overflow: hidden; }
.worth { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: .95; letter-spacing: -.04em; color: var(--indigo-deep); }
.opt { background: #fff; border-radius: 20px; padding: 1.4rem; text-align: center; height: 100%; font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; color: var(--indigo); }
.opt i { display: block; font-size: 1.8rem; color: var(--gold-deep); margin-bottom: .4rem; }

/* Dr. G */
.meet { background: var(--indigo); color: #e6e8ff; position: relative; overflow: hidden; }
.meet h2, .meet h3 { color: #fff; }
.meet .eyebrow { color: var(--gold); }
.meet-quote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.meet-quote::before { content: "\201C"; display: block; font-size: 5rem; line-height: .6; color: var(--gold); margin-bottom: .5rem; }
.meet-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 26px; padding: clamp(1.5rem, 3vw, 2.25rem); height: 100%; }
.meet-card h3 { font-size: 1.5rem; display: flex; align-items: center; gap: .6rem; }
.meet-card h3 i { color: var(--gold); }
.meet-card p { margin: 0; color: #d7dbff; }
.dr-portrait { position: relative; border-radius: 28px; box-shadow: 14px 14px 0 var(--gold); }
.dr-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 28px; }
.dr-portrait figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; background: rgba(255, 255, 255, .95); border-radius: 16px; padding: .6rem .9rem; color: var(--indigo); line-height: 1.25; }
.dr-portrait figcaption strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.dr-portrait figcaption span { font-size: .85rem; color: var(--muted); }
.dr-strip figure { position: relative; border-radius: 22px; overflow: hidden; background: var(--indigo-deep); }
.dr-strip img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }
.dr-strip figcaption { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; background: rgba(21, 27, 82, .88); color: #fff; border-radius: 12px; padding: .5rem .75rem; font-size: .85rem; line-height: 1.3; }
@media (max-width: 575.98px) { .dr-strip img { aspect-ratio: 1 / 1; } .dr-portrait { box-shadow: 10px 10px 0 var(--gold); } }
.cred-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cred-list li { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: .3rem .9rem; font-size: .88rem; font-weight: 600; color: #fff; }

/* Patient portal */
.portal { background: var(--cream); }
.video-card { background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); height: 100%; }
.video-card .ratio { background: var(--indigo-deep); }
.video-card .body { padding: 1.25rem 1.5rem 1.5rem; }
.video-card h3 { font-size: 1.35rem; margin: 0 0 .25rem; }
.video-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.doc-group h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.doc-group p { color: var(--muted); font-size: .98rem; }

/* Graduates + testimonials */
.reviews { background: var(--paper); }
.review { --accent: var(--gold); background: var(--cream); border-radius: 24px; padding: 2.2rem 1.75rem 1.6rem; height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.review::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent); }
.review.c1 { --accent: var(--rb1); } .review.c2 { --accent: var(--rb2); } .review.c3 { --accent: var(--rb3); }
.review.c4 { --accent: var(--rb4); } .review.c5 { --accent: var(--rb5); } .review.c6 { --accent: var(--rb6); }
.review blockquote { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.65; color: var(--ink); flex: 1; }
.review .who { font-family: var(--font-display); font-weight: 700; color: var(--indigo); font-size: 1.05rem; margin: 0; }
.review .stars { color: var(--gold); letter-spacing: .1em; font-size: .95rem; margin-bottom: .75rem; }
.grad-banner { background: var(--indigo); color: #fff; border-radius: 28px; padding: clamp(1.75rem, 4vw, 2.75rem); }
.grad-banner h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.grad-banner p { color: #d7dbff; margin: 0; }

/* Emergency */
.emergency { background: var(--cream); }
.em-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem 1.5rem; height: 100%; }
.em-card h3 { font-size: 1.15rem; margin-bottom: .5rem; display: flex; gap: .6rem; align-items: center; }
.em-card h3 i { color: var(--gold-deep); font-size: 1.3rem; }
.em-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.em-alert { background: var(--indigo-deep); color: #fff; border-radius: 26px; padding: clamp(1.5rem, 4vw, 2.5rem); border-left: 8px solid var(--rb1); }
.em-alert h3 { color: #fff; font-size: 1.5rem; }
.em-alert p { color: #d7dbff; }

/* Contact */
.contact { background: var(--paper); }
.contact-card { background: var(--cream); border-radius: 22px; padding: 1.35rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; height: 100%; }
.contact-card i { font-size: 1.5rem; color: var(--gold-deep); flex: none; line-height: 1.3; }
.contact-card h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .15rem; font-weight: 700; }
.contact-card a, .contact-card span.val { font-weight: 700; font-size: 1.15rem; color: var(--indigo); text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { text-decoration: underline; }
.gps-note { background: var(--gold-soft); border-radius: 18px; padding: 1.1rem 1.3rem; font-size: .98rem; }
.map-wrap { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; height: 100%; background: var(--indigo-soft); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.social a { width: 2.7rem; height: 2.7rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--indigo); color: #fff; font-size: 1.15rem; text-decoration: none; margin-right: .5rem; }
.social a:hover { background: var(--gold); color: var(--indigo-deep); }

/* Footer */
.site-footer { background: var(--indigo-deep); color: #c9cdf5; padding: 4rem 0 2rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer a { color: #c9cdf5; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: #fff; letter-spacing: -.02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .social a { background: rgba(255, 255, 255, .12); }
.site-footer .social a:hover { background: var(--gold); color: var(--indigo-deep); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .9rem; }
.powered { display: inline-flex; align-items: center; gap: .55rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .4rem 1rem .4rem .5rem; color: #fff !important; font-weight: 600; font-size: .88rem; }
.powered b { background: #22d3ee; color: #0f172a; border-radius: 999px; padding: .1rem .6rem; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.powered:hover { border-color: #22d3ee; color: #fff !important; }

/* Responsive polish */
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .hero-ctas .btn { width: 100%; }
  .hero-art { border-radius: 26px; }
  .tx-card, .review, .callout { padding: 1.5rem 1.35rem; }
  .map-wrap, .map-wrap iframe { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tx-card, .doc-link { transition: none; }
}
