/* The Gilded Grills: values replicated from the design mockup (Main.dc.html). */

:root {
  --accent: #D9B24C;
  --bg: #0E0D0B;
  --text: #F4EFE6;
  --line: #2E2A22;
  --nav: #D9D2C5;
  --muted: #CFC7B8;
  --subtle: #B8AF9F;
  --ghost-border: #5A5243;
  --band: #14120F;
  --card: #16140F;
  --gold-card: #1E1A12;
  --gold-line: #4A3F24;
  --notice-text: #E8DFC9;
  --dashed: #4A4336;
  --chrome: #E4E7EB;
  --chrome-line: #C9CDD2;
  --link: #E2C46F;

  --cream: #F4EFE6;
  --ink: #1A1814;
  --eyebrow-dark: #7A5A12;
  --ink-muted: #4A443A;
  --ink-list: #2E2A22;
  --form-line: #DDD4C3;
  --input-line: #B9AF9C;

  --display: Anton, Impact, sans-serif;
  --sans: Inter, system-ui, sans-serif;
  --pill: 999px;
  color-scheme: dark;
}

/* The design uses the default content-box sizing (max-width: 1180px is the content width);
   only the elements the mockup marks as border-box get it below. */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

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

/* Zero-specificity defaults so component classes always win, hover included. */
:where(a) { color: var(--link); }
:where(a:hover) { color: var(--text); }
summary { cursor: pointer; }

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

.accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--pill);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  text-decoration: none;
  text-align: center;
  border-radius: var(--pill);
  transition: filter 0.15s ease, background-color 0.15s ease;
}
.btn--solid { background: var(--accent); color: var(--bg); font-weight: 700; }
.btn--solid:hover { color: var(--bg); filter: brightness(1.08); }
.btn--outline { border: 1px solid var(--accent); color: var(--text); font-weight: 600; }
.btn--ghost { border: 1px solid var(--ghost-border); color: var(--text); font-weight: 600; }
.btn--outline:hover, .btn--ghost:hover { color: var(--text); background-color: rgba(217, 178, 76, 0.08); }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--md { padding: 14px 20px; }
.btn--sm { padding: 12px 18px; }

/* ---------- Shared type ---------- */
.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.muted { margin: 0; color: var(--muted); }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}
.band {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__link { color: var(--nav); text-decoration: none; }
.nav__link:hover { color: var(--text); }
.nav__cta {
  padding: 12px 20px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.hero__copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__lead { margin: 0; font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 0; font-size: 0.9rem; color: var(--subtle); }
.hero__media {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.hero__img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
}

/* ---------- Highlights ---------- */
.highlights {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--band);
}
.highlights__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
}
.highlight { display: flex; flex-direction: column; gap: 4px; }
.highlight strong { color: var(--accent); font-size: 1rem; }
.highlight span { color: var(--muted); font-size: 0.95rem; }

/* ---------- How it works ---------- */
.how { display: flex; flex-direction: column; gap: 40px; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step p { margin: 0; color: var(--muted); }
.step__num {
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
}
.step__title { margin: 0; font-size: 1.2rem; }

.fitting { display: flex; flex-direction: column; gap: 20px; padding-top: 16px; }
.fitting__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  text-transform: uppercase;
}
.fitting__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.option {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.option--gold { background: var(--gold-card); border-color: var(--gold-line); }
.option p { margin: 0; color: var(--muted); }
.option__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.option__title { margin: 0; font-size: 1.35rem; }
.option__tag { color: var(--accent); font-weight: 700; }
.option__cta { margin-top: auto; }

.notice {
  margin: 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--gold-card);
  border: 1px solid var(--gold-line);
  color: var(--notice-text);
  font-size: 0.95rem;
}

/* ---------- Styles ---------- */
.styles__inner { display: flex; flex-direction: column; gap: 40px; }
.styles__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.styles__intro { margin: 0; color: var(--muted); max-width: 420px; }

.finish-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.finish-picker__label { font-weight: 600; color: var(--nav); margin-right: 4px; }
.finish-btn {
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--pill);
  cursor: pointer;
  background: transparent;
  color: var(--text);
}
.finish-btn--chrome { border: 1px solid var(--chrome-line); }
.finish-btn--gold { border: 1px solid var(--accent); }
.finish-btn--chrome[aria-pressed="true"] { background: var(--chrome); color: var(--bg); }
.finish-btn--gold[aria-pressed="true"] { background: var(--accent); color: var(--bg); }

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}
.style-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.style-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.style-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.style-card__media .style-card__gold {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.styles.is-showing-gold .style-card__gold { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .style-card__media .style-card__gold { transition: none; }
}
.style-card__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: rgba(14, 13, 11, 0.75);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
}
.style-card__placeholder {
  aspect-ratio: 4 / 3;
  border-bottom: 1px dashed var(--dashed);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
  color: var(--subtle);
  font-size: 0.9rem;
}
.style-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.style-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.style-card__name { margin: 0; font-size: 1.2rem; }
.style-card__price { color: var(--chrome); font-weight: 700; white-space: nowrap; }
.styles[data-finish="gold"] .style-card__price { color: var(--accent); }
.style-card__finish { margin: 0; color: var(--subtle); font-size: 0.85rem; }
.style-card__desc { margin: 0; color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.style-card__cta { margin-top: 8px; }

/* Bling */
.bling {
  background: var(--bg);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.bling__icon { flex: none; color: var(--accent); }
.bling__copy {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bling__copy p { margin: 0; color: var(--muted); }
.bling__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.bling__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.bling__price { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.bling__copy .bling__fine { color: var(--subtle); font-size: 0.85rem; }
.bling__cta { flex: none; padding: 14px 24px; }

/* Custom */
.custom {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.custom__copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.custom__copy p { margin: 0; color: var(--muted); }
.custom__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.custom__copy .eyebrow { color: var(--accent); }
.custom__list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.custom__copy .custom__fine { color: var(--subtle); font-size: 0.9rem; }

/* ---------- Forms ---------- */
.form { min-width: 0; display: flex; flex-direction: column; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.input {
  font: inherit;
  font-weight: 400;
  padding: 12px 14px;
  border-radius: 10px;
  min-height: 44px;
  box-sizing: border-box;
}
textarea.input { min-height: 0; resize: vertical; }
/* iOS zooms into inputs under 16px; keep the design size on larger screens only. */
@media (max-width: 640px) { .input { font-size: 1rem; } }
.file { font: inherit; font-weight: 400; max-width: 100%; }
.submit {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: var(--pill);
  padding: 14px 24px;
  min-height: 48px;
  cursor: pointer;
}
.submit:disabled { cursor: progress; opacity: 0.7; }
/* Reserves the widget's height so the form doesn't jump when Turnstile renders. */
.turnstile { min-height: 65px; max-width: 100%; }
.form-status { margin: 0; font-size: 0.9rem; font-weight: 500; }
.form-status:empty { display: none; }

/* Honeypot: hidden from people and assistive tech, still visible to naive bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form--dark { gap: 14px; }
.form--dark .input { border: 1px solid var(--dashed); background: var(--bg); color: var(--text); }
.form--dark .file { color: var(--muted); }
.form--dark .submit { background: var(--accent); color: var(--bg); }
.form--dark .form-status.is-success { color: var(--accent); }
.form--dark .form-status.is-error { color: #F2A38F; }

.custom__form { flex: 1 1 340px; }

/* ---------- Materials ---------- */
.materials {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.materials__placeholder {
  flex: 1 1 400px;
  min-width: 0;
  aspect-ratio: 1 / 1;
  max-height: 460px;
  border: 1px dashed var(--dashed);
  background: var(--card);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
  color: var(--subtle);
  font-size: 0.95rem;
}
.materials__copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.materials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}
.material {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.material--gold { border-color: var(--gold-line); }
.material span { color: var(--muted); font-size: 0.95rem; }
.material__name { color: var(--accent); }
.material__name--chrome { color: var(--chrome); }
.materials__fine { margin: 0; color: var(--subtle); font-size: 0.95rem; }

/* ---------- Dental offices (light section) ---------- */
.dentists { background: var(--cream); color: var(--ink); color-scheme: light; }
.dentists :focus-visible { outline-color: var(--ink); }
.dentists__inner { display: flex; flex-wrap: wrap; gap: 48px; }
.dentists__copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.eyebrow--dark { font-weight: 700; color: var(--eyebrow-dark); }
.dentists__lead { margin: 0; color: var(--ink-muted); }
.dentists__list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-list);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lab-form {
  flex: 1 1 380px;
  background: #FFFFFF;
  border: 1px solid var(--form-line);
  border-radius: 20px;
  padding: 32px;
  box-sizing: border-box;
}
.lab-form__title { margin: 0; font-size: 1.3rem; }
.form--light { gap: 16px; }
.form--light .input { border: 1px solid var(--input-line); background: #FFFFFF; color: var(--ink); }
.form--light .submit { background: var(--ink); color: var(--cream); }
.form--light .form-status.is-success { color: #4F6B1F; }
.form--light .form-status.is-error { color: #A12C14; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.faq__title { text-align: center; }
.faq__item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq__item summary { font-weight: 600; font-size: 1.1rem; }
.faq__item p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  color: var(--subtle);
  font-size: 0.9rem;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 6px; }
.logo--footer { font-size: 1.4rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* ---------- 404 ---------- */
.not-found {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.not-found p { margin: 0; color: var(--muted); }
