/* ===========================================================================
   Master Technician – Toyotas Only
   Brand design system + custom components.
   Tailwind (Play CDN) handles layout utilities; this file holds brand tokens,
   reusable components, and effects Tailwind utilities don't cover.
   To compile a production Tailwind build later, see README.md.
   =========================================================================== */

:root {
  /* Brand palette */
  --slate-950: #131a20;
  --slate-900: #1f2933;
  --slate-800: #2a3744;
  --slate-700: #3a4856;
  --slate-500: #66758a;
  --slate-300: #c3ccd6;
  --slate-100: #eef1f5;
  --paper:     #f7f8fa;
  --white:     #ffffff;

  --red:       #d32027;   /* primary accent / CTAs */
  --red-dark:  #a8161c;
  --red-soft:  #fbe9ea;

  --steel:     #1565a3;   /* secondary cool accent */

  --ring: 0 0 0 3px rgba(211, 32, 39, 0.35);
  --shadow-sm: 0 1px 2px rgba(19, 26, 32, .06), 0 1px 3px rgba(19, 26, 32, .08);
  --shadow-md: 0 6px 18px -6px rgba(19, 26, 32, .18);
  --shadow-lg: 0 24px 48px -16px rgba(19, 26, 32, .28);

  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--slate-900);
  background: var(--paper);
}
h1, h2, h3, h4, .font-head { font-family: var(--font-head); }
::selection { background: var(--red); color: #fff; }

a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container-x { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--slate-700); line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(211,32,39,.6); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark { background: var(--slate-900); color: #fff; }
.btn-dark:hover { background: var(--slate-800); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--slate-100);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  border: 2px solid var(--red); box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.brand-name b { color: var(--red); }
.brand-sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-500); }
.nav-link {
  position: relative; font-weight: 600; font-size: .95rem; color: var(--slate-700);
  text-decoration: none; padding: .4rem .2rem; transition: color .2s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--slate-900); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
  background: var(--red); border-radius: 3px;
}

/* mobile drawer */
.nav-desktop { display: flex; }
.nav-toggle { display: none; }
.nav-mobile { display: none; }
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-mobile {
    display: grid; gap: .25rem; padding: .5rem 1.25rem 1.25rem;
    border-top: 1px solid var(--slate-100); background: #fff;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-mobile.open { max-height: 420px; }
  .nav-mobile a { padding: .8rem .4rem; border-bottom: 1px solid var(--slate-100); font-weight: 600; text-decoration: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(19,26,32,.92) 0%, rgba(31,41,51,.86) 45%, rgba(31,41,51,.55) 100%),
    radial-gradient(1200px 600px at 85% -10%, rgba(211,32,39,.35), transparent 60%),
    var(--slate-900);
}
.hero::after { /* subtle diagonal "shop floor" texture */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 22px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem;
  border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -.02em; font-weight: 800; }
.hero h1 .accent { color: #ff5258; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--slate-100); border-radius: 18px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.icon-chip {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px;
  background: var(--red-soft); color: var(--red);
}
.icon-chip svg { width: 26px; height: 26px; }

/* trust strip */
.trust-strip { background: var(--slate-900); color: #fff; }
.trust-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: #fff; line-height: 1; }
.trust-num span { color: #ff5258; }
.trust-label { color: var(--slate-300); font-size: .9rem; margin-top: .35rem; }

/* feature list checks */
.check-list { display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--slate-700); }
.check-list svg { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 1px; }

/* ---------- Reviews ---------- */
.review-card { background: #fff; border: 1px solid var(--slate-100); border-radius: 18px; box-shadow: var(--shadow-sm); }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 1.05rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: #fff; flex: none;
}

/* ---------- Forms ---------- */
.field-label { font-weight: 600; font-size: .88rem; color: var(--slate-800); margin-bottom: .35rem; display: block; }
.field {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--slate-300); border-radius: 12px;
  background: #fff; font: inherit; color: var(--slate-900); transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: var(--slate-500); }
.field:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(211,32,39,.15); outline: none; }
textarea.field { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--slate-500); }
.form-status { display: none; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; }
.form-status.show { display: block; }
.form-status.ok { background: #e8f6ec; color: #1c7a3d; }
.form-status.err { background: var(--red-soft); color: var(--red-dark); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-950); color: var(--slate-300); }
.site-footer a { text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer-head { font-family: var(--font-head); font-weight: 700; color: #fff; letter-spacing: .02em; }

/* map */
.map-frame { border: 0; width: 100%; height: 100%; min-height: 320px; display: block; }

/* placeholder image blocks (swap with real photos – see README) */
.ph {
  position: relative; display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(135deg, rgba(31,41,51,.06), rgba(31,41,51,.02)),
    repeating-linear-gradient(45deg, var(--slate-100) 0 14px, #fff 14px 28px);
  color: var(--slate-500); border-radius: 18px; overflow: hidden;
}
.ph[data-label]::after {
  content: "📷 " attr(data-label); font-family: var(--font-head); font-weight: 600;
  font-size: .85rem; letter-spacing: .02em; padding: .4rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm);
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- How it works (numbered steps) ---------- */
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--slate-900); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  border: 2px solid var(--red);
}

/* ---------- FAQ accordion ---------- */
.faq details { background: #fff; border: 1px solid var(--slate-100); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq details + details { margin-top: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--slate-900); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--red); font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 20px 18px; color: var(--slate-700); line-height: 1.65; }

/* ---------- Sticky mobile call/book bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    border-top: 1px solid var(--slate-100); box-shadow: 0 -6px 18px rgba(19,26,32,.12);
  }
  .mobile-cta .btn { width: 100%; padding: .85rem 1rem; }
  body:has(.mobile-cta) { padding-bottom: 78px; }
}
