/* =========================================================================
   PBX1 Fadez & Cuts - shared marketing stylesheet
   Dark ink background + amber accents. Mobile-first, no external deps.
   ========================================================================= */

:root {
  --ink-950: #0a0a0b;
  --ink-900: #111114;
  --ink-850: #16161b;
  --ink-800: #1c1c22;
  --ink-700: #2a2a33;
  --ink-600: #3a3a45;
  --ink-300: #a6a6b0;
  --ink-200: #cbcbd2;
  --ink-100: #e8e8ee;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --green-400: #34d399;
  --rose-300: #fda4af;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink-950);
  color: var(--ink-100);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { overflow-x: hidden; }

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

a { color: var(--amber-300); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber-300);
  color: var(--ink-950);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ----------------------------------------------------------------- nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(10, 10, 11, 0.82);
  border-bottom: 1px solid var(--ink-800);
}
.nav-wrap {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--ink-100);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}
.nav-brand span { color: var(--amber-300); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}
.nav-links a { color: var(--ink-200); }
.nav-links a:hover { color: var(--amber-300); text-decoration: none; }
.nav-cta {
  background: var(--amber-300);
  color: var(--ink-950) !important;
  padding: 9px 18px;
  border-radius: 9px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--amber-400); text-decoration: none; }

/* hamburger toggle (hidden on desktop, shown <=760px) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  margin-left: 4px;
  background: transparent;
  border: 1px solid var(--ink-700);
  border-radius: 10px;
  color: var(--ink-100);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--amber-300); color: var(--amber-300); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  /* Collapse the primary links into a dropdown panel; keep the CTA visible. */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ink-800);
    box-shadow: var(--shadow);
  }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links a {
    padding: 13px 8px;
    border-bottom: 1px solid var(--ink-800);
    font-size: 16px;
  }
  .nav-links .nav-cta {
    margin-top: 14px;
    border-bottom: none;
    text-align: center;
  }
  /* When the menu is open, reveal the primary links. */
  .site-nav.nav-open .nav-links a:not(.nav-cta) { display: block; }
  /* When closed on mobile, hide the whole panel but keep the CTA reachable. */
  .site-nav:not(.nav-open) .nav-links {
    position: static;
    flex-direction: row;
    padding: 0;
    background: none;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-nav:not(.nav-open) .nav-links .nav-cta { margin-top: 0; }
}

/* --------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--amber-300); color: var(--ink-950); }
.btn-primary:hover { background: var(--amber-400); }
.btn-secondary {
  background: transparent;
  color: var(--ink-100);
  border-color: var(--ink-700);
}
.btn-secondary:hover { border-color: var(--amber-300); color: var(--amber-300); }
.btn-wa { background: var(--green-400); color: var(--ink-950); }
.btn-wa:hover { filter: brightness(1.08); }
.btn-block { width: 100%; }

/* --------------------------------------------------------- store badges --- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid #3a3a45;
  border-radius: 12px;
  padding: 10px 18px;
  color: #fff;
  min-width: 178px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--ink-600); text-decoration: none; }
.store-badge svg { flex: 0 0 auto; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.18; text-align: left; }
.store-badge .badge-top { font-size: 10.5px; letter-spacing: 0.02em; color: #d4d4dc; text-transform: none; }
.store-badge .badge-bottom { font-size: 18px; font-weight: 600; letter-spacing: 0.01em; }

/* ----------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-800);
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245, 158, 11, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--ink-700);
  border-radius: 999px;
  color: var(--amber-300);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-300); }

h1.hero-title {
  font-size: clamp(33px, 7vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 800;
  overflow-wrap: break-word;
}
h1.hero-title span { color: var(--amber-300); }
.lede {
  font-size: 18px;
  color: var(--ink-200);
  margin: 0 0 28px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-300);
}

/* phone mockups */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 480px;
}
.phone {
  border-radius: 38px;
  border: 2px solid var(--ink-700);
  background: var(--ink-900);
  padding: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone img { border-radius: 30px; }
.phone-main {
  width: 254px;
  position: relative;
  z-index: 3;
}
.phone-back {
  position: absolute;
  width: 214px;
  bottom: 36px;
  z-index: 2;
  opacity: 0.96;
}
.phone-back.left { left: 0; transform: rotate(-7deg); transform-origin: bottom right; }
.phone-back.right { right: 0; transform: rotate(7deg); transform-origin: bottom left; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .hero-copy { max-width: 100%; }
  .hero-art { min-height: 420px; order: 2; }
  .phone-main { width: 224px; }
  .phone-back { width: 188px; }
}
@media (max-width: 460px) {
  .phone-back { display: none; }
  .phone-main { width: 240px; }
  .hero-art { min-height: 0; }
  .store-badge { min-width: 0; flex: 1 1 160px; }
}

/* ------------------------------------------------------------- sections --- */
.section { padding: 76px 0; }
.section.alt {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  border-top: 1px solid var(--ink-800);
  border-bottom: 1px solid var(--ink-800);
}
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker {
  color: var(--amber-300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}
.section-head p { color: var(--ink-200); font-size: 17px; margin: 0; }

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--ink-900);
  border: 1px solid var(--ink-800);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature:hover { border-color: var(--ink-700); transform: translateY(-3px); }
.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(252, 211, 77, 0.12);
  color: var(--amber-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--ink-200); font-size: 15px; }

/* showcase (screenshot gallery) */
.showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: end;
}
.showcase figure {
  margin: 0;
  border-radius: 26px;
  border: 1px solid var(--ink-700);
  background: var(--ink-900);
  padding: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.showcase figure img { border-radius: 20px; }
.showcase figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-300);
  padding: 10px 4px 4px;
}
@media (max-width: 920px) {
  .showcase { grid-template-columns: repeat(3, 1fr); }
  .showcase figure:nth-child(4),
  .showcase figure:nth-child(5) { display: none; }
}
@media (max-width: 540px) {
  .showcase { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .showcase figure:nth-child(3) { display: none; }
}

/* step / how-it-works row */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step { position: relative; padding-left: 4px; }
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber-300);
  color: var(--ink-950);
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-200); font-size: 15px; }

/* locations */
.loc-grid {
  display: grid;
  /* min(300px, 100%) lets the cards shrink below 300px on very small phones
     (e.g. 320px iPhone SE) instead of forcing a few px of horizontal overflow. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 22px;
}
.loc-card {
  background: var(--ink-900);
  border: 1px solid var(--ink-800);
  border-radius: var(--radius);
  padding: 28px;
}
.loc-card h3 {
  margin: 0 0 4px;
  font-size: 21px;
  color: var(--amber-300);
}
.loc-card .addr { margin: 0 0 6px; color: var(--ink-100); font-size: 16px; }
.loc-card .hours { margin: 0 0 18px; color: var(--ink-300); font-size: 14.5px; }
.loc-card .loc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.loc-card .loc-actions .btn { padding: 11px 18px; font-size: 14.5px; }

/* call-to-action band */
.cta-band {
  background:
    radial-gradient(900px 300px at 50% -40%, rgba(245, 158, 11, 0.14), transparent 70%),
    var(--ink-900);
  border: 1px solid var(--ink-800);
  border-radius: 22px;
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; letter-spacing: -0.02em; }
.cta-band p { color: var(--ink-200); font-size: 17px; margin: 0 auto 26px; max-width: 520px; }
.cta-band .cta-row { justify-content: center; }

/* ------------------------------------------------------- content pages --- */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}
.page-head { border-bottom: 1px solid var(--ink-800); padding-bottom: 24px; margin-bottom: 32px; }
.page-head .kicker {
  color: var(--amber-300);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
}
.page-head h1 { font-size: clamp(30px, 5vw, 40px); margin: 8px 0 6px; letter-spacing: -0.02em; }
.page-head .meta { color: var(--ink-300); font-size: 14px; margin: 0; }

.prose h2 { font-size: 23px; margin-top: 44px; margin-bottom: 12px; color: var(--amber-300); letter-spacing: -0.01em; }
.prose h3 { font-size: 17.5px; margin-top: 26px; margin-bottom: 8px; color: var(--ink-100); }
.prose p, .prose li { color: var(--ink-200); }
.prose a { border-bottom: 1px solid rgba(252, 211, 77, 0.35); }
.prose a:hover { border-bottom-color: var(--amber-300); text-decoration: none; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink-100); }
.prose code { background: var(--ink-800); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* Tables: wrapped in .table-scroll so wide tables scroll horizontally inside
   their own container instead of forcing the whole page to overflow. The faint
   right-edge fade hints there is more to scroll on narrow screens. */
.table-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0 6px;
}
.table-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--ink-950));
  opacity: 0;
  transition: opacity 0.15s ease;
}
.table-scroll.is-scrollable::after { opacity: 1; }
.prose table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14.5px; }
.prose th, .prose td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--ink-700);
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}
.prose th { color: var(--amber-300); font-weight: 600; }

.callout {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-left: 3px solid var(--amber-300);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* contact cards + buttons on support page */
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.info-card {
  background: var(--ink-900);
  border: 1px solid var(--ink-800);
  border-radius: 12px;
  padding: 20px 22px;
}
.info-card h3 { margin: 0 0 4px; color: var(--amber-300); font-size: 18px; }
.info-card p { margin: 0 0 14px; color: var(--ink-200); font-size: 15px; }
.info-card .loc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.info-card .btn { padding: 10px 16px; font-size: 14px; }

details {
  background: var(--ink-900);
  border: 1px solid var(--ink-800);
  border-radius: 10px;
  padding: 4px 20px;
  margin: 10px 0;
}
details[open] { border-color: var(--ink-700); }
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-100);
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--amber-300);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.15s ease;
}
details[open] summary::after { content: "\2212"; }
details > *:not(summary) { padding-bottom: 10px; }
details p:first-of-type { margin-top: 0; }

/* --------------------------------------------------------------- footer --- */
.site-footer {
  border-top: 1px solid var(--ink-800);
  background: var(--ink-950);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer-brand .nav-brand { margin-bottom: 14px; }
.footer-brand p { color: var(--ink-300); font-size: 14px; margin: 0 0 8px; max-width: 320px; }
.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-300);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 9px; }
.footer-col a, .footer-brand a { color: var(--ink-200); font-size: 14.5px; }
.footer-col a:hover, .footer-brand a:hover { color: var(--amber-300); text-decoration: none; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px 48px;
  border-top: 1px solid var(--ink-800);
  color: var(--ink-300);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom .footer-phones { display: flex; gap: 18px; }

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

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