/* ============================================================
   ProAuto Repair — Stylesheet
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --ink: #16202c;
  --ink-soft: #4a5666;
  --muted: #6b7888;
  --primary: #e63027;       /* automotive red */
  --primary-dark: #c41f17;
  --accent: #ffb800;        /* warning-amber accent */
  --dark: #0f1822;
  --dark-2: #18242f;
  --line: #e3e8ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 32, 44, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 32, 44, 0.16);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text { font-family: "Montserrat", sans-serif; line-height: 1.15; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(230,48,39,.28); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 26px rgba(230,48,39,.36); }
.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-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-size: 1.25rem; font-weight: 700; }
.brand-icon { font-size: 1.4rem; }
.brand-text strong { color: var(--primary); }
.brand-light { color: #fff; }
.brand-light .brand-text strong { color: var(--accent); }

.main-nav { display: flex; gap: 1.6rem; }
.main-nav a {
  font-weight: 500; color: var(--ink-soft); font-size: .98rem;
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--primary); transition: width .2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .8rem; }

.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  border: 0; background: #fff; color: var(--muted);
  padding: 8px 14px; font-weight: 700; font-size: .85rem; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-toggle button.active { background: var(--ink); color: #fff; }

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,24,34,.90), rgba(15,24,34,.66)),
    var(--hero-image, none) center / cover no-repeat,
    radial-gradient(1200px 500px at 80% -10%, rgba(230,48,39,.45), transparent 60%),
    linear-gradient(160deg, #1b2a38, #0f1822);
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 92px 24px 88px; max-width: 820px; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: .18em; font-weight: 700;
  font-size: .82rem; color: var(--accent); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.5px; }
.hero-sub { margin: 1.3rem 0 2rem; font-size: 1.12rem; color: #d4dce5; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.6rem;
}
.hero-badges li { display: flex; align-items: center; gap: .5rem; font-weight: 500; color: #e7edf3; }
.hero-badges span:first-child {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700;
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--dark-2); color: #fff; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 28px 24px; text-align: center;
}
.trust-grid strong { display: block; font-family: "Montserrat"; font-size: 1.9rem; color: var(--accent); }
.trust-grid span { font-size: .9rem; color: #c4cdd6; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .15em; font-weight: 700;
  font-size: .8rem; color: var(--primary); margin-bottom: .7rem;
}
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.4px; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; margin-top: .9rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d7dee6; }
.card-icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(135deg, #fff0ef, #ffe3e1); border-radius: 14px; margin-bottom: 1rem;
}
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Why grid ---------- */
.why-grid, .about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.2rem; align-items: center; }
.why-text h2, .about-text h2 { margin-top: .4rem; }
.check-list { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: 1rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-soft); }
.check-list span:first-child {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .82rem; margin-top: 2px;
}
.check-list strong { color: var(--ink); }

.media-card {
  border-radius: var(--radius); padding: 64px 32px; text-align: center; color: #fff;
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  box-shadow: var(--shadow-lg);
}
.media-card.alt { background: linear-gradient(140deg, var(--dark-2), var(--dark)); }
.media-emoji { font-size: 4.5rem; margin-bottom: .6rem; }
.media-img {
  width: 100%; max-width: 220px; height: auto; margin: 0 auto .9rem;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.22));
}
.media-card p { font-weight: 600; font-size: 1.15rem; letter-spacing: .3px; }

/* ---------- Reviews ---------- */
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.review .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .8rem; }
.review p { color: var(--ink-soft); font-style: italic; }
.review footer { margin-top: 1rem; font-weight: 700; color: var(--ink); font-style: normal; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: start; }
.contact-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.3rem;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px;
}
.contact-list strong { font-family: "Montserrat"; }
.contact-list a:hover { color: var(--primary); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fcfdfe; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,48,39,.12);
}
.contact-form .btn-block { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; text-align: center; font-size: .9rem; color: var(--muted); }
.form-note.success { color: #138a36; font-weight: 600; }
.form-note.error { color: var(--primary); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #c4cdd6; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 36px; }
.footer-tag { margin-top: .8rem; max-width: 280px; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.02rem; }
.footer-grid a { display: block; color: #c4cdd6; padding: 3px 0; transition: color .15s; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 24px; font-size: .9rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .about-media { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; transform: translateY(-150%); transition: transform .28s ease;
    box-shadow: var(--shadow); z-index: 40;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .cards { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 20px; }
}

/* Fit the compact header in embedded tablet previews. */
@media (min-width: 761px) and (max-width: 1100px) { .main-nav { gap: .8rem; } .nav-actions .btn-sm { display: none; } }
