/* Texan Automotive — site styles. Hand-rolled, no framework. */

:root {
  --bg: #0f1418;
  --bg-alt: #151c22;
  --surface: #1b242c;
  --surface-2: #222e37;
  --line: #2c3a45;
  --ink: #f4f7f9;
  --ink-soft: #c3ced6;
  --ink-mute: #8a9aa6;
  --accent: #e4572e;        /* Texan red-orange — energetic, automotive */
  --accent-deep: #c23e1a;
  --accent-soft: #ff7a52;
  --steel: #3d7fa6;         /* secondary cool tone */
  --gold: #f2b950;          /* stars / highlights */
  --success: #3fae6b;
  --on-accent: #ffffff;

  --font-display: "Sora", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);

  --maxw: 1140px;
  --gut: clamp(1.1rem, 4vw, 2.25rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); }
h3 { font-size: clamp(1.18rem, 2.4vw, 1.45rem); }

p { margin: 0 0 1rem; color: var(--ink-soft); }

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--surface); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.75rem;
}

.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.55rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent-soft); color: var(--ink); }
.btn--call { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn--call:hover { border-color: var(--accent-soft); }
.btn--lg { font-size: 1.08rem; padding: 1.1rem 1.9rem; min-height: 54px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn-row--center { justify-content: center; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 24, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}
.brand small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; color: var(--ink-mute); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a.nav-link { color: var(--ink-soft); font-weight: 600; font-size: 0.97rem; }
.nav a.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 0.7rem; }
.header-phone { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.header-phone:hover { color: var(--accent-soft); text-decoration: none; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 46px; height: 46px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15,20,24,0.78) 0%, rgba(15,20,24,0.92) 100%),
    var(--bg-alt);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 500px at 75% -10%, rgba(228,87,46,0.18), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(3.2rem, 8vw, 6rem); max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lede { color: var(--ink-soft); font-size: clamp(1.1rem, 2.2vw, 1.32rem); }
.hero .btn-row { margin-top: 1.7rem; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.trust-item { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }
.trust-item strong { color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 0.08em; font-size: 0.95rem; }

/* ---------- Make chips ---------- */
.makes { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.make-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.make-chip.is-euro { border-color: rgba(228,87,46,0.5); color: var(--ink); }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.card--link:hover { transform: translateY(-3px); border-color: rgba(228,87,46,0.5); }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin-bottom: 0; font-size: 0.96rem; }
.card-icon {
  display: inline-grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(228,87,46,0.12);
  color: var(--accent-soft);
  margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card-more { display: inline-block; margin-top: 0.9rem; font-weight: 700; color: var(--accent-soft); font-size: 0.92rem; }

/* Value props */
.value-list { display: grid; gap: 1.1rem; }
.value-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.value-item .tick {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(63,174,107,0.15); color: var(--success);
  display: grid; place-items: center; margin-top: 0.15rem;
}
.value-item .tick svg { width: 16px; height: 16px; }
.value-item h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.value-item p { margin: 0; font-size: 0.96rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem 1.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800;
  margin-bottom: 0.9rem;
}

/* Two-column split */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.split--media-first .media { order: -1; }
.split--top { align-items: start; }

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder media (until real photos provided) */
.ph {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--surface-2), var(--surface));
  color: var(--ink-mute);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  gap: 0.4rem;
}
.ph svg { width: 40px; height: 40px; opacity: 0.5; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.review-card .stars { font-size: 1.05rem; }
.review-card blockquote { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.review-meta { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.review-meta .name { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.review-meta .src { font-size: 0.8rem; color: var(--ink-mute); }

.rating-badge {
  display: inline-flex; align-items: center; gap: 0.9rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1rem 1.4rem;
}
.rating-badge .big { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1; }
.rating-badge .sub { font-size: 0.85rem; color: var(--ink-mute); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 52ch; margin-inline: auto; }
.cta-band .btn--primary { background: #fff; color: var(--accent-deep); }
.cta-band .btn--primary:hover { background: #fff; color: var(--accent-deep); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.cta-band .btn--ghost:hover { border-color: #fff; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 0.7rem; max-width: 820px; margin-inline: auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 1.15rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.faq-q .chev { transition: transform 0.2s ease; flex: none; color: var(--accent-soft); }
.faq-item[open] .faq-q .chev, .faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; min-height: 48px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); outline-offset: 0; border-color: var(--accent-soft); }
.field .hint { font-size: 0.82rem; color: var(--ink-mute); margin-top: 0.35rem; }
.form-note { font-size: 0.85rem; color: var(--ink-mute); margin-top: 0.4rem; }

/* ---------- Info list (contact / hours) ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.info-list .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(228,87,46,0.12); color: var(--accent-soft); display: grid; place-items: center; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); font-weight: 700; }
.info-list a { color: var(--ink); font-weight: 600; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hours-table th { font-weight: 600; color: var(--ink-soft); }
.hours-table td { color: var(--ink); text-align: right; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--accent-soft); font-weight: 700; }
.open-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px; }
.open-pill.is-open { background: rgba(63,174,107,0.15); color: var(--success); }
.open-pill.is-closed { background: rgba(228,87,46,0.12); color: var(--accent-soft); }
.open-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(2.4rem, 6vw, 3.6rem); }
.breadcrumb { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 0.7rem; }
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--ink-soft); }

/* ---------- Banner / euro band ---------- */
.banner {
  background: linear-gradient(135deg, #16222b, #1d2f3a);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #0b0f12; border-top: 1px solid var(--line); padding-block: 3rem 6.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-grid a { color: var(--ink-soft); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { font-size: 0.92rem; }
.footer-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; justify-content: space-between; font-size: 0.85rem; color: var(--ink-mute); }
.footer-bottom a { color: var(--ink-mute); }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none;
  gap: 0.6rem;
  padding: 0.65rem var(--gut) calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(15, 20, 24, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; min-height: 50px; }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-mute); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.todo-flag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--gold); border: 1px dashed var(--gold); border-radius: 4px; padding: 0.05rem 0.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone .full { display: none; }

  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gut) 1.2rem;
  }
  .site-header.nav-open .nav a.nav-link { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .site-header.nav-open .nav-cta { padding-top: 0.9rem; }
  .site-header.nav-open .nav-cta { flex-direction: column; align-items: stretch; }
  .site-header.nav-open .header-phone { justify-content: center; padding: 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 0.7rem; }
  .site-header.nav-open .header-phone .full { display: inline; }

  .split { grid-template-columns: 1fr; }
  .split--media-first .media { order: 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  .hero-inner { padding-bottom: 2.4rem; }
}

@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .rating-badge { width: 100%; }
}

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