/* ============================================================
   MAM — Mohammed Ali Mahmood Co. | mohammedalico.com
   Main stylesheet. Design faithful to the original Wix site:
   dark background, gold accent, Georgia serif headings.
   Media queries live in css/responsive.css
   ============================================================ */
:root {
  --bg: #0e0e0e;
  --panel: #171717;
  --text: #f2f0ec;
  --muted: #b9b4ab;
  --accent: #c9a24b;   /* gold */
  --line: #2a2a2a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }

/* ---------- Header / navigation ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,14,14,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 56px; height: 52px; object-fit: contain; border-radius: 6px; }
.brand span { font-size: 1.05rem; letter-spacing: .04em; }
nav { margin-left: auto; display: flex; gap: 28px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
nav a.active, nav a:hover { color: var(--accent); }
.call-btn {
  border: 1px solid var(--accent); color: var(--accent) !important;
  padding: 8px 16px; border-radius: 999px;
}
.call-btn:hover { background: var(--accent); color: #111 !important; }

/* Mobile hamburger (hidden on desktop) */
.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); font-size: 1.3rem; line-height: 1;
  padding: 8px 12px; cursor: pointer;
}
.menu-toggle:focus-visible { outline: 2px solid var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh; display: grid; place-items: center;
  text-align: center; padding: 80px 24px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url('../images/site/hero.jpg') center/cover no-repeat;
  filter: brightness(.38);
}
.hero > div { position: relative; max-width: 820px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: .02em; margin-bottom: 18px; }
.hero p { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; }
.btn {
  display: inline-block; background: var(--accent); color: #111;
  padding: 14px 34px; text-decoration: none; letter-spacing: .12em;
  text-transform: uppercase; font-family: Arial, sans-serif; font-size: .85rem;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

/* ---------- Sections ---------- */
section { padding: 90px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.eyebrow { color: var(--accent); font-family: Arial, sans-serif; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 18px; }
p.lead { color: var(--muted); margin-bottom: 26px; }
.panel { background: var(--panel); border: 1px solid var(--line); }
.rounded { border-radius: 10px; overflow: hidden; }

/* ---------- Inventory grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card a { text-decoration: none; color: inherit; display: block; }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.card h3 { padding: 16px 18px 6px; font-size: 1.05rem; font-weight: normal; letter-spacing: .03em; }
.card .card-meta {
  padding: 0 18px 16px; color: var(--muted);
  font-family: Arial, sans-serif; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}

/* Inventory search box */
.search-row { margin: 32px 0 8px; max-width: 420px; }
.search-row input {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); padding: 13px 16px; font-family: inherit;
  font-size: 1rem; border-radius: 999px;
}
.search-row input:focus { outline: 1px solid var(--accent); }
.no-results { color: var(--muted); margin-top: 24px; display: none; }

/* ---------- Vehicle detail page ---------- */
.car-hero { padding: 60px 24px 30px; }
.car-hero .crumbs {
  font-family: Arial, sans-serif; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 18px;
}
.car-hero .crumbs a { color: var(--muted); text-decoration: none; }
.car-hero .crumbs a:hover { color: var(--accent); }
.car-hero .crumbs span { color: var(--accent); }
.car-cover { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); margin-top: 26px; }
.car-cover img { width: 100%; max-height: 620px; object-fit: cover; }
.car-cta {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 30px;
}

/* Vehicle gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.gallery-grid button {
  padding: 0; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; cursor: zoom-in; background: var(--panel);
}
.gallery-grid button:focus-visible { outline: 2px solid var(--accent); }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.gallery-grid button:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(0,0,0,.92); place-items: center; padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.lightbox .lb-btn {
  position: absolute; background: none; border: 1px solid var(--line);
  color: var(--text); font-size: 1.4rem; line-height: 1; border-radius: 999px;
  width: 48px; height: 48px; cursor: pointer;
}
.lightbox .lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-family: Arial, sans-serif; font-size: .85rem; letter-spacing: .1em;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.info-row { margin-bottom: 22px; }
.info-row .label { color: var(--accent); font-family: Arial, sans-serif; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.info-row a { color: var(--text); text-decoration: none; }
.info-row a:hover { color: var(--accent); }
form input, form textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); padding: 13px 14px; margin-bottom: 14px;
  font-family: inherit; font-size: 1rem; border-radius: 6px;
}
form textarea { min-height: 140px; resize: vertical; }
form input:focus, form textarea:focus { outline: 1px solid var(--accent); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 24px; text-align: center; color: var(--muted); }
footer .hours { margin-bottom: 18px; }
footer .hours strong { color: var(--text); }
footer .foot-nav { margin: 14px 0 20px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
footer .foot-nav a {
  color: var(--muted); text-decoration: none; font-family: Arial, sans-serif;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
footer .foot-nav a:hover { color: var(--accent); }
footer small { font-family: Arial, sans-serif; letter-spacing: .06em; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .gallery-grid img { transition: none; }
}
