/* ============================================================
   Prestige Dent Solutions — global stylesheet
   Brand: yellow-led on black, red "D", Saira Condensed (display)
   + Orbitron (eyebrows/labels) + Inter (body). See design-system/MASTER.md
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --black: #0A0A0A;
  --panel: #161616;
  --panel-2: #1d1d1d;
  --yellow: #F9C518;
  --yellow-deep: #E0B00C;
  --red: #E11A0E;
  --graphite: #3A3D40;
  --bone: #F4F2EC;
  --steel: #8A8F94;
  --ink: #141414;
  --white: #ffffff;
  --border: #2a2a2a;

  --maxw: 1180px;
  --radius-sm: 7px;
  --radius-md: 9px;
  --radius-lg: 16px;

  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-label: 'Orbitron', 'Eurostile', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--bone);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  color: var(--bone);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { color: #c7c5be; }
.lead { font-size: clamp(1rem, 1.4vw, 1.18rem); color: #ceccc4; }

.eyebrow {
  font-family: var(--font-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--yellow);
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--panel { background: var(--panel); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { margin-top: 12px; }

/* ---- Speed-slash device ---- */
.slash { display: inline-flex; gap: 3px; vertical-align: middle; }
.slash span { width: 5px; transform: skewX(-12deg); display: block; }
.slash .s-red { background: var(--red); }
.slash .s-yellow { background: var(--yellow); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.95rem;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.02rem;
}
.btn-primary:hover { background: var(--yellow-deep); }
.btn-secondary { background: transparent; color: var(--bone); border-color: #4a4a4a; }
.btn-secondary:hover { border-color: var(--bone); }
.btn-ghost-link { color: var(--yellow); font-weight: 500; }
.btn-ghost-link:hover { text-decoration: underline; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 13px; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo .wordmark {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 1.18rem; letter-spacing: 0.02em; color: var(--bone);
}
.logo .wordmark .d { color: var(--red); }
.logo .slash span { height: 19px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { font-size: 0.92rem; color: #d3d1ca; transition: color .15s; }
.main-nav a:hover { color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.mobile-menu { display: none; }

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,10,10,0.94) 0%, rgba(10,10,10,0.82) 45%, rgba(10,10,10,0.45) 100%);
}
.hero-inner { padding-block: clamp(60px, 11vw, 120px); max-width: 660px; }
.hero h1 { margin-top: 16px; }
.hero .lead { margin-top: 20px; max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 0.86rem; color: var(--steel); }
.hero .slash span { height: 46px; width: 6px; }
.hero-h1-row { display: flex; gap: 14px; align-items: flex-start; }

/* ---- Trust strip ---- */
.trust-strip { background: var(--panel); border-block: 1px solid var(--border); }
.trust-strip ul {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap;
  gap: 10px 28px; justify-content: center; padding-block: 16px;
}
.trust-strip li {
  font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #d8d6cf; display: inline-flex; align-items: center; gap: 8px;
}
.trust-strip li::before { content: ""; width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; }

/* ---- Cards grid (paths / benefits / services) ---- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px;
  transition: border-color .15s ease, transform .15s ease;
}
a.card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.card h3 { font-style: italic; margin-bottom: 10px; }
.card p { font-size: 0.96rem; }
.card .more { margin-top: 16px; display: inline-block; }

/* ---- Steps ---- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  font-family: var(--font-label); font-weight: 700; font-size: 1.1rem;
  color: var(--black); background: var(--yellow); flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
}
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }

/* ---- Benefits ---- */
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 30px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: #d3d1ca; }
.benefits .tick { color: var(--yellow); flex: 0 0 auto; font-weight: 700; }
.benefits strong { color: var(--bone); font-weight: 600; }

/* ---- Work / gallery teaser ---- */
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.work-grid figure { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.work-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.work-grid figure:hover img { transform: scale(1.04); }
.work-grid figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 10px 12px;
  font-family: var(--font-label); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone); background: linear-gradient(transparent, rgba(10,10,10,0.85));
}

/* ---- Split (Meet Oliver) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* ---- Reviews ---- */
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.review { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.review .stars { color: var(--yellow); letter-spacing: 2px; margin-bottom: 12px; }
.review blockquote { font-size: 0.98rem; color: #d8d6cf; font-style: italic; }
.review cite { display: block; margin-top: 14px; font-style: normal; font-size: 0.85rem; color: var(--steel); }
.review-tag { font-family: var(--font-label); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }

/* ---- CTA band ---- */
.cta-band { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .hero-cta { justify-content: center; }

/* ---- Livery stripe ---- */
.livery { display: flex; height: 5px; }
.livery span { flex: 1; }
.livery .s-red { background: var(--red); }
.livery .s-yellow { background: var(--yellow); }

/* ---- Footer ---- */
.site-footer { background: #070707; border-top: 1px solid var(--border); padding-block: 48px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer .wordmark { font-family: var(--font-display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.3rem; }
.site-footer .wordmark .d { color: var(--red); }
.site-footer h4 { font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; }
.site-footer a { color: #c7c5be; font-size: 0.92rem; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--yellow); }
.footer-contact a { color: var(--bone); }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--steel); }

/* ---- Mobile sticky CTA ---- */
.sticky-cta { display: none; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid-3, .work-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .main-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { list-style: none; cursor: pointer; color: var(--bone); font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 4px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; flex-direction: column; position: absolute; right: 0; top: 110%; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px; min-width: 200px; gap: 2px; }
  .menu-panel a { padding: 10px 14px; color: #d3d1ca; }
  .grid-3, .work-grid, .reviews-grid, .benefits, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }      /* primary action moves to sticky bar */
  body { padding-bottom: 68px; }                /* room for sticky CTA */
  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    gap: 10px; padding: 10px 14px; background: rgba(10,10,10,0.96);
    border-top: 1px solid var(--border); backdrop-filter: blur(8px);
  }
  .sticky-cta .btn { flex: 1; justify-content: center; }
  .hero-h1-row .slash { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Inner pages (services, pricing, about, etc.)
   ============================================================ */
.page-hero { padding-block: clamp(46px, 8vw, 88px); background: var(--panel); border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero .lead { margin-top: 18px; max-width: 48ch; }
.page-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }

.prose { max-width: 70ch; }
.prose p { margin-bottom: 16px; }
.prose h3 { margin: 30px 0 10px; font-style: italic; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ticklist, .crosslist { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticklist li, .crosslist li { display: flex; gap: 11px; font-size: 0.98rem; color: #d3d1ca; }
.ticklist li::before { content: "✓"; color: var(--yellow); font-weight: 700; flex: 0 0 auto; }
.crosslist li::before { content: "✕"; color: var(--red); font-weight: 700; flex: 0 0 auto; }

.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; min-width: 460px; }
table.compare th, table.compare td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
table.compare thead th { font-family: var(--font-label); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
table.compare td:first-child { color: var(--bone); font-weight: 500; }
table.compare .good { color: var(--yellow); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.06em; color: #d8d6cf; }

.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.cred-list li { display: flex; gap: 12px; font-size: 0.99rem; color: #d3d1ca; }
.cred-list li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 8px; background: var(--yellow); transform: skewX(-12deg); }

.faq { max-width: 840px; display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; color: var(--bone); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--yellow); font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 20px 18px; }
.faq-a p { font-size: 0.97rem; }

@media (max-width: 680px) {
  .cols-2 { grid-template-columns: 1fr; }
}

/* ---- Forms ---- */
.form { max-width: 620px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; color: #d8d6cf; font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--black); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--bone); padding: 12px 14px; font: inherit; font-size: 0.95rem; min-height: 46px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--yellow); outline: none; }

/* ---- Quote methods ---- */
.quote-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.method { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; }
.method h3 { font-size: 1.1rem; font-style: italic; margin: 0 0 8px; }
.method p { font-size: 0.9rem; }
.method .btn { margin-top: 14px; }
.method.featured { border-color: var(--yellow); }

/* ---- Map ---- */
.map-embed { width: 100%; height: 340px; border: 1px solid var(--border); border-radius: var(--radius-lg); }

@media (max-width: 680px) { .quote-methods { grid-template-columns: 1fr; } }

/* ============================================================
   Review fixes — Web Interface Guidelines
   ============================================================ */
html { color-scheme: dark; }
a, button, summary, .btn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; }
table.compare { font-variant-numeric: tabular-nums; }
.split img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.site-footer a { padding: 6px 0; }

@media (max-width: 680px) {
  .mobile-menu summary { min-height: 44px; display: inline-flex; align-items: center; }
  .menu-panel a { padding: 12px 14px; }
  .sticky-cta { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
