/* ============================================
   Piese Auto Smart Suceava — design system
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f4;
  --bg-dark: #0a0a0a;
  --bg-panel: #141414;
  --ink: #0a0a0a;
  --ink-2: #262626;
  --muted: #737373;
  --line: #e7e5e4;
  --line-dark: #262626;
  --red: #e11d2a;
  --red-hover: #b8141f;
  --green: #25d366;
  --green-hover: #1fb955;
  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1200px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: 'Archivo', 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw + 0.5rem, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p  { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

/* ============================================
   Layout
   ============================================ */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
}

section { padding-block: clamp(56px, 8vw, 96px); }

/* ============================================
   Top nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-mark { width: 36px; height: 36px; }
.brand-text { line-height: 1; }
.brand-text .t1 { font-size: 1.02rem; display: block; }
.brand-text .t2 { font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; display: block; margin-top: 2px; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.menu-toggle svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-line { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: #fff;
  z-index: 49;
  padding: 28px 24px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Archivo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu a.active { color: var(--red); }
.mobile-menu .mm-cta { margin-top: 18px; display: grid; gap: 10px; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, color .15s, border-color .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 16px rgba(225,29,42,.28);
}
.btn-red:hover { background: var(--red-hover); }

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37,211,102,.28);
}
.btn-green:hover { background: var(--green-hover); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #1f1f1f; }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-2);
}
.btn-line:hover { background: var(--ink); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: var(--bg-soft); }

.btn-ghost-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }

.btn-lg { height: 54px; padding: 0 26px; font-size: 0.98rem; }
.btn-block { width: 100%; }

/* ============================================
   Cards / panels
   ============================================ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--ink-2); }

.panel-dark {
  background: var(--bg-dark);
  color: #fff;
}
.panel-dark .muted { color: #a3a3a3; }

/* ============================================
   Sticky mobile call/whatsapp bar
   ============================================ */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
.sticky-bar .btn { flex: 1; height: 50px; }
@media (max-width: 860px) {
  .sticky-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: #d4d4d4;
  padding: 56px 0 28px;
}
.footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer a { color: #d4d4d4; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer .legal {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid #262626;
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: #a3a3a3;
  flex-wrap: wrap; gap: 12px;
}
.footer .brand { color: #fff; }
.footer .brand-text .t2 { color: #a3a3a3; }
.footer-tag { font-size: 0.92rem; color: #a3a3a3; max-width: 32ch; margin-top: 14px; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ============================================
   Form
   ============================================ */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  font: inherit;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,.08);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-success {
  background: #f0fdf4; border: 1px solid #86efac;
  color: #166534; padding: 14px; border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 600;
}

/* ============================================
   Page header (non-home pages) — with image bg
   ============================================ */
.page-head {
  background-color: #1a1a1a;
  color: #fff;
  padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 96px);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-head::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.50) 0%, rgba(10,10,10,.72) 55%, rgba(10,10,10,.92) 100%),
    radial-gradient(700px 280px at 85% 10%, rgba(225,29,42,.32), transparent 60%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }

/* Auto-parts warehouse / shelves — for Services */
.page-head--services {
  background-image: url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?w=2000&q=80&auto=format&fit=crop');
}
/* Mechanic working on engine — for How It Works */
.page-head--how {
  background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=2000&q=80&auto=format&fit=crop');
}
/* Modern auto shop counter / interior — for Contact */
.page-head--contact {
  background-image: url('https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?w=2000&q=80&auto=format&fit=crop');
}

/* mobile tweaks */
@media (max-width: 640px) {
  .page-head { padding: 64px 0 48px; background-attachment: scroll; }
  .page-head h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .page-head .lede { font-size: 1rem; }
}
.page-head .crumb {
  font-size: 0.82rem;
  color: #a3a3a3;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.page-head .crumb a:hover { color: #fff; }
.page-head h1 { max-width: 16ch; }
.page-head .lede {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.2rem);
  color: #d4d4d4;
  max-width: 56ch;
}

/* ============================================
   Reveal animations
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-bg { transform: none !important; }
}

/* button hover lift */
.btn { transition: transform .15s ease, background .15s, color .15s, border-color .15s, box-shadow .25s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-red:hover { box-shadow: 0 10px 24px rgba(225,29,42,.36); }
.btn-green:hover { box-shadow: 0 10px 24px rgba(37,211,102,.36); }
.btn-dark:hover { box-shadow: 0 10px 24px rgba(0,0,0,.22); }

/* ============================================
   Utility
   ============================================ */
.flex { display: flex; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.center { align-items: center; justify-content: center; }
.muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: 32px;
}
