/* ==========================================================================
   Beeline Orthodontics — beelineortho.com
   Design system: charcoal + honey gold, bee/honeycomb motifs
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #2b2b2e;
  --ink-soft: #54545c;
  --ink-faint: #86868f;
  --honey: #f2a900;
  --honey-deep: #d99400;
  --honey-bright: #ffc233;
  --honey-tint: #fff3d3;
  --cream: #fdf8ec;
  --paper: #ffffff;
  --line: #ece3cd;
  --footer-ink: #232326;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(43, 43, 46, 0.06), 0 2px 8px rgba(43, 43, 46, 0.06);
  --shadow-md: 0 2px 6px rgba(43, 43, 46, 0.07), 0 12px 32px rgba(43, 43, 46, 0.1);
  --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1140px;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p {
  margin: 0 0 1.1em;
}

a {
  color: inherit;
}

p a,
li a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

p a:hover,
li a:hover {
  color: var(--honey-deep);
}

ul {
  padding-left: 1.2em;
}

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--honey-bright);
  color: var(--ink);
}

.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: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Utilities ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap--narrow {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-deep);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--honey);
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.center {
  text-align: center;
}

.center .eyebrow::after {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--honey);
}

.center .lede {
  margin-inline: auto;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--solid {
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(242, 169, 0, 0.35);
}

.btn--solid:hover {
  background: var(--honey-bright);
}

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

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--light {
  background: var(--ink);
  color: #fff;
}

.btn--light:hover {
  background: #3a3a3f;
}

.btn--sm {
  padding: 11px 20px;
  font-size: 0.88rem;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

/* ---------- Icons / bee ---------- */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

/* Logo */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-decoration: none;
  color: var(--ink);
}

.logo__row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo__bee {
  width: 34px;
  height: 34px;
  transform: rotate(8deg);
}

.logo__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* balances letter-spacing on last char */
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-footer .logo,
.site-footer .logo__sub {
  color: #fff;
}

.site-footer .logo__sub {
  color: #a9a9b2;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:not(.btn):hover {
  background: var(--honey-tint);
}

.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--honey-deep);
}

.site-nav .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.nav-toggle .icon-close { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 14px 20px 22px;
    display: none;
  }

  .site-nav a:not(.btn) {
    padding: 13px 16px;
    font-size: 1.05rem;
  }

  .site-nav .btn {
    margin: 10px 4px 0;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  body.nav-open .nav-toggle .icon-burger { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-block: 72px 84px;
}

.hero__copy .lede {
  margin-bottom: 28px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero__art {
  position: relative;
}

.hero__art svg {
  width: 100%;
  height: auto;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.trust-chips .icon {
  width: 16px;
  height: 16px;
  color: var(--honey-deep);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 48px 60px;
  }

  .hero__art {
    max-width: 420px;
    margin-inline: auto;
  }
}

/* Honeycomb texture (Hero Patterns "hexagons", MIT) */
.hex-texture {
  position: relative;
}

.hex-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f2a900' fill-opacity='0.09' fill-rule='evenodd'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(120% 120% at 85% 20%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(120% 120% at 85% 20%, #000 0%, transparent 62%);
  pointer-events: none;
}

.hex-texture > * {
  position: relative;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--cream);
  padding-block: 64px 56px;
  overflow: hidden;
}

.page-hero .lede {
  margin-bottom: 0;
}

.page-hero__inner {
  max-width: 780px;
}

/* ---------- Sections ---------- */
.section {
  padding-block: 84px;
}

.section--cream {
  background: var(--cream);
}

.section--tint {
  background: var(--honey-tint);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

.section-head--center .eyebrow::after {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--honey);
}

@media (max-width: 700px) {
  .section {
    padding-block: 60px;
  }
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--honey-bright);
}

.card h3 {
  margin-bottom: 4px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 10px;
}

.card__link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--honey-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.card:hover .card__link::after {
  transform: translateX(4px);
}

/* Stretch the card's primary link over the whole card */
.card__link--cover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

/* Hexagon icon chip */
.hex-icon {
  width: 62px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--honey-tint);
  color: var(--honey-deep);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.hex-icon .icon {
  width: 28px;
  height: 28px;
}

.hex-icon--gold {
  background: var(--honey);
  color: var(--ink);
}

.hex-icon--ink {
  background: var(--ink);
  color: var(--honey);
}

/* ---------- Feature trio (icon + blurb, no card chrome) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
}

.feature h3 {
  margin-bottom: 6px;
}

.feature p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Split layout (text + art) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split--art-left .split__art {
  order: -1;
}

.split__art img,
.split__art svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split--art-left .split__art {
    order: 0;
  }

  .split__art {
    max-width: 440px;
  }
}

/* Framed illustration panel */
.art-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checklist .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--honey-deep);
}

/* ---------- Steps (flight plan) ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 66px 26px 26px;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -26px;
  left: 26px;
  width: 52px;
  height: 57px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.97rem;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Dashed beeline connector */
.flight-line {
  border: 0;
  border-top: 3px dashed var(--honey);
  margin: 0 auto 56px;
  width: min(420px, 70%);
  position: relative;
  overflow: visible;
}

/* ---------- FAQ accordion ---------- */
.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--honey-tint);
  color: var(--honey-deep);
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}

.faq details > div {
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--honey);
  overflow: hidden;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 56px;
}

.cta-band h2 {
  margin: 0;
}

.cta-band p {
  margin: 6px 0 0;
  color: rgba(43, 43, 46, 0.75);
  font-weight: 600;
}

/* ---------- Info rows (contact page etc.) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.info-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.info-tile h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.info-tile h3 .icon {
  color: var(--honey-deep);
}

.info-tile p {
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.info-tile p:last-child {
  margin-bottom: 0;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--honey);
}

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

.form-note {
  display: none;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--honey-tint);
  border: 1px solid var(--honey-bright);
  font-weight: 600;
}

.form-note.is-visible {
  display: block;
}

/* ---------- Map ---------- */
.map-frame {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-ink);
  color: #cfcfd6;
  padding-block: 64px 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: #e8e8ee;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--honey-bright);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-grid h3 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-brand p {
  color: #a9a9b2;
  max-width: 34ch;
  margin: 14px 0 0;
}

.footer-bottom {
  border-top: 1px solid #3a3a3f;
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: #a9a9b2;
}

.footer-bottom a {
  color: #a9a9b2;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card {
    transition: none;
  }
}

/* ---------- Floating decorative hexes ---------- */
.deco-hex {
  position: absolute;
  color: var(--honey);
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .nav-toggle {
    display: none;
  }
}
