/* ─────────────────────────────────────────────
   NRAM EXPORTS — style.css
   Refined professional theme
───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --red:        #c0392b;
  --red-dark:   #a53025;
  --red-light:  #e74c3c;
  --dark:       #111214;
  --dark2:      #1e2025;
  --charcoal:   #2d3138;
  --gray:       #6b7280;
  --gray-light: #9ca3af;
  --cream:      #faf9f7;
  --border:     #e5e7eb;
  --white:      #ffffff;
  --text:       #1f2937;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 20px 48px rgba(0,0,0,.14), 0 8px 20px rgba(0,0,0,.06);
  --radius:     10px;
  --radius-lg:  16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }


.ais-SearchBox-submitIcon {
  display: none !important;
}

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 70px;
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-logo img { height: 48px; object-fit: contain; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--charcoal);
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  font-size: .875rem; letter-spacing: .3px;
  transition: color .2s;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: all .3s;
}

.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0; right: 0; z-index: 999;
  background: var(--white); border-bottom: 1px solid var(--border);
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 15px 32px; text-decoration: none; color: var(--charcoal);
  font-weight: 500; font-size: .9rem;
  border-bottom: 1px solid var(--border);
  transition: all .2s;
}
.mobile-menu a:hover { color: var(--red); background: var(--cream); padding-left: 40px; }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  min-height: 62vh;
  background: linear-gradient(160deg, rgba(17,18,20,.85) 0%, rgba(192,57,43,.55) 100%),
              url('/images/Untitled-2-4-1024x853.png') center/cover no-repeat;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 110px 24px 48px;
}

.hero-inner { max-width: 860px; width: 100%; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 6px 16px; margin-bottom: 20px;
  font-size: .75rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.9);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; background: var(--red-light);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.8); }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; color: var(--white);
  line-height: 1.2; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1rem; font-weight: 400;
  margin-bottom: 40px; line-height: 1.6;
}

/* ── SEARCH BOX ── */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 22px;
  text-align: left;
  position: sticky;
  top: 80px;
  z-index: 500;
  margin-bottom: 0;
  border: 1px solid rgba(0,0,0,.06);
}

.search-box-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--gray); margin-bottom: 16px;
}
.search-box-label::before {
  content: ''; display: block;
  width: 18px; height: 2px; background: var(--red); border-radius: 1px;
}

.omni-search-wrapper {
  position: relative;
}

/* Override Algolia's search box to match brand */
.ais-SearchBox-form {
  position: relative; display: flex; align-items: center;
}
.ais-SearchBox-input {
  width: 100%;
  padding: 14px 50px 14px 42px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: .95rem !important;
  color: var(--text) !important;
  background: var(--cream) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .2s, background .2s !important;
}
.ais-SearchBox-input:focus {
  border-color: var(--red) !important;
  background: var(--white) !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,.08) !important;
}
.ais-SearchBox-input::placeholder { color: var(--gray-light) !important; }

/* Algolia submit button — single clean icon, no duplication */
.ais-SearchBox-submit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--red); display: flex; align-items: center;
  padding: 0; opacity: .65; transition: opacity .2s;
}
.ais-SearchBox-submit:hover { opacity: 1; }
/* Use the Algolia SVG as-is, just resize and recolour it */
.ais-SearchBox-submitIcon {
  display: block;
  width: 17px; height: 17px;
  fill: var(--red);
}

.ais-SearchBox-reset {
  position: absolute; right: 44px; top: 50%; transform: translateY(-50%);
  background: var(--border); border: none; border-radius: 50%;
  width: 18px; height: 18px; cursor: pointer;
  color: var(--gray); display: flex; align-items: center; justify-content: center;
  font-size: .7rem; opacity: .7; transition: opacity .2s;
}
.ais-SearchBox-reset:hover { opacity: 1; }
.ais-SearchBox-resetIcon { width: 10px; height: 10px; }

#stats-container {
  font-size: .78rem; color: var(--gray-light);
  margin-top: 8px; padding: 0 4px;
}

.search-footer {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}

.ais-ClearRefinements-button {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem; font-weight: 600;
  color: var(--gray); background: none;
  border: 1px solid var(--border); border-radius: 20px;
  padding: 5px 14px; cursor: pointer;
  transition: all .2s;
}
.ais-ClearRefinements-button:hover {
  color: var(--red); border-color: var(--red);
  background: rgba(192,57,43,.04);
}
.ais-ClearRefinements-button[disabled] { display: none; }

/* ══════════════════════════════════
   RESULTS / HITS
══════════════════════════════════ */
#hits {
  background: var(--cream);
  padding: 48px 24px;
  display: none;
}
#hits.visible { display: block; }

.hits-header {
  max-width: 1100px; margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.hits-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 600; color: var(--dark);
}

.ais-Hits-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 22px;
  list-style: none; padding: 0;
  max-width: 1100px; margin: 0 auto;
}

.ais-Hits-item { padding: 0 !important; border: none !important; box-shadow: none !important; }

/* ── CAR CARD ── */
.car-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: block; text-decoration: none; color: inherit;
}
.car-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.car-image {
  position: relative;
  height: 196px;
  overflow: hidden;
  background: #f0f0f0;
}
.car-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.car-card:hover .car-image img { transform: scale(1.04); }

/* Gradient overlay on image */
.car-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 55%);
  pointer-events: none;
}

.car-year-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--dark); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .8px;
  padding: 4px 10px; border-radius: 4px;
}

.car-price-badge {
  position: absolute; bottom: 12px; right: 12px; z-index: 1;
  background: var(--red); color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  padding: 5px 12px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(192,57,43,.4);
}

.car-details {
  padding: 18px 20px 20px;
}

.car-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--dark); margin: 0 0 8px;
  line-height: 1.35;
}

.car-meta-row {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--gray-light);
  margin-bottom: 14px;
}
.car-meta-row .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

.car-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.car-tag {
  font-size: .72rem; font-weight: 500; color: var(--gray);
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 9px;
}

/* Highlight */
.ais-Highlight-highlighted {
  background: rgba(192,57,43,.12);
  color: var(--red);
  font-style: normal;
  border-radius: 2px;
  padding: 0 2px;
}

/* Empty state */
.ais-Hits--empty, .hits-empty {
  text-align: center; padding: 64px 24px;
  max-width: 1100px; margin: 0 auto;
}
.hits-empty-icon {
  font-size: 3rem; margin-bottom: 16px;
}
.hits-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--dark); margin-bottom: 8px;
}
.hits-empty p { color: var(--gray); font-size: .9rem; }
.hits-empty a { color: var(--red); text-decoration: none; font-weight: 600; }

/* ══════════════════════════════════
   SECTIONS
══════════════════════════════════ */
section { padding: 88px 24px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700; color: var(--dark);
  margin-bottom: 20px; line-height: 1.2;
}
.section-title .accent { color: var(--red); }
.section-lead {
  color: var(--gray); font-size: .97rem;
  line-height: 1.8; max-width: 600px;
  margin-bottom: 48px;
}

/* ── ABOUT ── */
.about { background: var(--cream); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.about-text p {
  line-height: 1.8; color: var(--gray);
  font-size: .95rem; margin-bottom: 20px;
}
.about-img {
  position: relative;
}
.about-img img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-img::before {
  content: '';
  position: absolute; inset: -14px -14px 14px 14px;
  border: 2px solid var(--red); border-radius: var(--radius-lg);
  opacity: .25; pointer-events: none;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  text-decoration: none; padding: 13px 30px;
  border-radius: 7px; font-weight: 600;
  font-size: .9rem; letter-spacing: .3px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(192,57,43,.3);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192,57,43,.4);
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px; margin-top: 8px;
}
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 48px; height: 48px;
  background: rgba(192,57,43,.08); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 22px; height: 22px; color: var(--red); }

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600; font-size: .98rem;
  margin-bottom: 10px; color: var(--dark);
}
.service-card p { font-size: .85rem; line-height: 1.7; color: var(--gray); }

/* ── GALLERY ── */
.gallery { background: var(--dark2); padding: 88px 24px; }
.gallery .section-eyebrow { color: rgba(255,255,255,.5); }
.gallery .section-title { color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px; margin-top: 36px;
}
.gallery-item {
  aspect-ratio: 4/3; overflow: hidden; border-radius: 8px;
  position: relative; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(192,57,43,.0);
  transition: background .3s;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-overlay {
  background: rgba(192,57,43,.35);
}

/* ── FAQ ── */
.faq { background: var(--cream); }
.faq-list { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-q {
  padding: 18px 22px; font-weight: 600;
  font-size: .92rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; user-select: none; transition: color .2s;
  color: var(--charcoal);
}
.faq-q:hover { color: var(--red); }
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--gray-light); transition: transform .3s, color .2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--red); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  padding: 0 22px; font-size: .9rem;
  line-height: 1.75; color: var(--gray);
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 18px; }

/* ── CONTACT STRIP ── */
.contact-strip {
  background: var(--dark);
  padding: 64px 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.contact-strip::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red-light), var(--red-dark));
}
.contact-strip h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.contact-strip p {
  font-size: .92rem; color: rgba(255,255,255,.55);
  margin-bottom: 28px;
}
.contact-details {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 12px;
}
.contact-details a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.85); text-decoration: none;
  font-weight: 500; font-size: .9rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px; padding: 10px 20px;
  transition: all .2s;
}
.contact-details a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}
.contact-details a svg { width: 15px; height: 15px; opacity: .7; }

/* ── FOOTER ── */
footer {
  background: var(--dark2); color: rgba(255,255,255,.4);
  padding: 28px 24px; text-align: center;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-links {
  display: flex; justify-content: center;
  gap: 28px; flex-wrap: wrap; margin-bottom: 14px;
}
.footer-links a {
  color: rgba(255,255,255,.4); text-decoration: none;
  font-size: .82rem; transition: color .2s;
}
.footer-links a:hover { color: var(--red); }
.footer-copy { font-size: .78rem; }

/* ── WHATSAPP FLOAT ── */
.wa-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  background: #25d366; color: var(--white);
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}
.wa-btn svg { width: 28px; height: 28px; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img { order: -1; }
  .about-img::before { display: none; }
}

@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 60px 16px; }
  .search-box { padding: 20px 18px; }
}