/* Marselos Auto Parts — mobile-first */

:root {
  --black: #0b0b0c;
  --ink: #141416;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f5f6f7;
  --lime: #a3e635;
  --lime-dark: #7cb518;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* room for the mobile call bar */
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 800; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 17px; }
p { margin: 0; }
svg { flex-shrink: 0; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head p { color: var(--muted); margin-top: 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime-dark); }
.eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--lime); border-radius: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 0; font-weight: 800; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: #b5f04a; }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: #000; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 0; }

/* Header */
.header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 20; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.header .logo img { height: 40px; width: auto; }
.header nav { display: none; gap: 28px; font-weight: 700; font-size: 15px; }
.header nav a { color: #d1d5db; }
.header nav a:hover, .header nav a.active { color: #fff; }
.header .phone { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 0; background: var(--lime); color: var(--black); font-weight: 800; font-size: 14px; }
.header .phone span { display: none; }

/* Hero — full screen, photo behind, text on top */
.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background-color: #0d0f0d;
}
/* Gradient lives on its own compositor layer so text repaints (font swap, hover) never re-rasterise it. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(163, 230, 53, 0.16) 0%, rgba(163, 230, 53, 0) 70%),
    radial-gradient(ellipse 70% 80% at 10% 100%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 60%);
}
.hero-inner { position: relative; z-index: 1; display: flex; justify-content: center; padding-top: 40px; padding-bottom: 88px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 820px; }
.hero-copy .eyebrow { color: var(--lime); }
.hero-copy h1 { text-wrap: pretty; max-width: 820px; font-size: 36px; }
.hero-copy h1 mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.hero-copy p { font-size: 17px; color: #d1d5db; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 6px; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: #fff; color: var(--black); }
.hero-scroll { position: absolute; z-index: 1; left: 50%; bottom: 20px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 0; border: 1px solid rgba(255, 255, 255, 0.35); display: flex; align-items: center; justify-content: center; color: #fff; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }

/* About */
.about { background: var(--soft); }
.about-copy { display: flex; flex-direction: column; gap: 16px; }
.about-copy p { color: #374151; font-size: 16px; max-width: 560px; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 0; background: #fff; overflow: hidden; }
.card .img { position: relative; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; color: #b0b7c3; }
.card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; background: #fff; }
.card .body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; }
.card .brand { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card .name { font-size: 15px; font-weight: 700; line-height: 1.3; min-height: calc(15px * 1.3 * 2); }
.card .foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 10px; }
.card .price { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }

/* Contact */
.contact { background: var(--soft); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-row { display: flex; gap: 12px; align-items: flex-start; }
.contact-row svg { color: var(--lime-dark); margin-top: 3px; }
.contact-row strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-row span { font-size: 16px; font-weight: 600; }
.map-embed { border-radius: 0; overflow: hidden; border: 1px solid var(--line); background: #e5e9ef; min-height: 320px; }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Footer */
.footer { background: var(--black); color: #9ca3af; font-size: 14px; padding: 28px 0; }
.footer .container { display: flex; flex-direction: column; gap: 12px; }
.footer img { height: 32px; width: auto; }
.footer strong { color: #fff; }

/* Mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 11, 12, 0.96); backdrop-filter: blur(8px); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: 0; background: var(--lime); color: var(--black); font-weight: 800; font-size: 16px; }

/* Products page */
.page-head { padding: 28px 0 16px; display: flex; flex-direction: column; gap: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); padding-bottom: 14px; }
.cta-band { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 0; background: var(--black); color: #fff; margin-top: 32px; }
.cta-band h2 { font-size: 22px; }
.cta-band p { color: #9ca3af; margin-top: 4px; }

/* Legal pages */
.legal { max-width: 720px; display: flex; flex-direction: column; gap: 14px; padding: 28px 0 56px; }
.legal h1 { font-size: 28px; margin-top: 8px; }
.legal h2 { font-size: 19px; margin-top: 18px; }
.legal p { color: #374151; }
.legal a { text-decoration: underline; }
.legal-date { font-size: 14px; color: var(--muted); }
.footer .legal-link { color: #d1d5db; text-decoration: underline; }
.footer .legal-link:hover { color: #fff; }

/* Tablet and up */
@media (min-width: 720px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  .section { padding: 72px 0; }
  .header .container { height: 76px; }
  .header .logo img { height: 46px; }
  .header nav { display: flex; }
  .header .phone span { display: inline; }
  .hero { min-height: calc(100svh - 76px); }
  .hero-inner { padding-top: 24px; padding-bottom: 72px; }
  .hero-copy h1 { font-size: 60px; }
  .hero-copy p { font-size: 19px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .card .body { padding: 14px 16px 16px; }
  .card .foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; }
  .footer .container { flex-direction: row; align-items: center; justify-content: space-between; }
  .callbar { display: none; }
  body { padding-bottom: 0; }
  .page-head { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 40px 0 20px; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
  .legal { padding: 44px 0 80px; }
  .legal h1 { font-size: 36px; }
}
@media (min-width: 720px) and (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
