/* ==========================================================================
   Tbilisi car rental — dark premium theme
   Display + body: Noto Serif Georgian / Noto Sans Georgian
   One superfamily across Latin and Georgian so both scripts read as one brand.
   ========================================================================== */

:root {
  --ink:            #0B0B0C;
  --surface:        #141416;
  --surface-raised: #1A1A1D;
  --line:           #26262A;
  --line-strong:    #3A3A40;

  --gold:           #C8A250;
  --gold-bright:    #E0BC6E;
  --gold-deep:      #7A5F22;
  --gold-ink:       #1F1705;

  --text:           #EFEBE3;
  --text-dim:       #A9A399;
  --text-muted:     #6F6A62;

  --font-display: "Noto Serif Georgian", Georgia, serif;
  --font-body:    "Noto Sans Georgian", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --wrap: 1180px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--gold-ink);
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; margin: 0; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--text-dim); margin: 10px 0 0; max-width: 56ch; }
.section-head .eyebrow,
.page-head .eyebrow { color: var(--gold); margin: 0 0 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 34px; width: auto; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: 0.06em;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; color: var(--text-dim); transition: color .18s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.header-tools { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lang-switch button {
  background: none; border: 0; padding: 2px 4px;
  color: var(--text-muted); letter-spacing: 0.06em;
}
.lang-switch button[aria-pressed="true"] { color: var(--gold); }
.lang-switch span { color: var(--line-strong); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--text);
  width: 40px; height: 38px; line-height: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px; font-weight: 500;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 12%, rgba(11,11,12,.72) 55%, rgba(11,11,12,.35) 100%);
}
.hero-inner { position: relative; padding: 108px 0 96px; max-width: 640px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); letter-spacing: -0.01em; }
.hero .sub { color: var(--text-dim); font-size: 17px; margin: 18px 0 30px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-rule {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px; color: var(--gold); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero-rule::after { content: ""; height: 1px; width: 90px; background: var(--gold-deep); }

/* ---------- Trust strip ---------- */

.strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.strip .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding-top: 20px; padding-bottom: 20px;
}
.strip-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-dim); }
.strip-item svg { color: var(--gold); flex: none; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ---------- Car grid ---------- */

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.car-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.car-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.car-photo { position: relative; aspect-ratio: 16 / 10; background: #101012; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; }
.car-photo .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--text-muted); font-size: 13px;
}
.car-tag {
  position: absolute; left: 12px; top: 12px;
  background: rgba(11,11,12,.82);
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  z-index: 2;
}

.car-photo-track {
  position: absolute; inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.car-photo-track::-webkit-scrollbar { display: none; }
.car-photo-slide { flex: 0 0 100%; scroll-snap-align: start; height: 100%; }
.car-photo-slide img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }

.car-photo-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(11,11,12,.72); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 18px; line-height: 1;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}
.car-photo:hover .car-photo-nav { opacity: 1; }
.car-photo-nav.prev { left: 8px; }
.car-photo-nav.next { right: 8px; }
.car-photo-nav:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
@media (hover: none) { .car-photo-nav { display: none; } }

.car-photo-dots {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
  display: flex; justify-content: center; gap: 6px;
}
.car-photo-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(239,235,227,.4); border: none; padding: 0;
}
.car-photo-dot[aria-current="true"] { background: var(--gold); }

.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(6,6,7,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(92vw, 1100px); max-height: 86vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-strong);
  color: var(--text);
  display: grid; place-items: center;
  border-radius: 50%;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.lightbox-close { top: 18px; right: 22px; width: 40px; height: 40px; font-size: 24px; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 26px; line-height: 1; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: var(--text-dim); font-size: 13px; letter-spacing: .06em;
}

.car-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.car-name { font-family: var(--font-display); font-size: 20px; margin: 0 0 4px; }
.car-sub { color: var(--text-dim); font-size: 13px; margin: 0 0 16px; }

.car-specs {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 0; margin-bottom: 16px;
  border-block: 1px solid var(--line);
}
.spec { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); }
.spec + .spec::before { content: ""; width: 1px; height: 12px; background: var(--line-strong); margin-right: 2px; }
.spec svg { color: var(--gold); flex: none; }

.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.car-price { font-family: var(--font-display); font-size: 21px; color: var(--gold); }
.car-price small { font-family: var(--font-body); font-size: 12px; color: var(--text-muted); font-weight: 400; }

.empty-state {
  border: 1px dashed var(--line-strong); border-radius: 14px;
  padding: 56px 24px; text-align: center; color: var(--text-muted);
}

/* ---------- Filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-chip {
  background: none; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 8px 18px;
  color: var(--text-dim); font-size: 13px;
  transition: all .18s ease;
}
.filter-chip:hover { color: var(--text); }
.filter-chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

/* ---------- Services ---------- */

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.service {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; background: var(--ink);
}
.service svg { color: var(--gold); margin-bottom: 14px; }
.service h3 { font-size: 18px; margin-bottom: 8px; }
.service p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ---------- Page head (fleet) ---------- */

.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); }
.page-head p { color: var(--text-dim); margin: 12px 0 0; max-width: 58ch; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.contact-list svg { color: var(--gold); flex: none; }
.contact-list .label { color: var(--text-muted); font-size: 13px; display: block; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; max-width: 320px; }
.map-frame {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--surface-raised);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.85); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 96px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-row p { margin: 0; font-size: 13px; color: var(--text-muted); }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; color: var(--text-dim);
  transition: color .18s ease, border-color .18s ease;
}
.socials a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Mobile contact bar ---------- */

.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.contact-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--text);
}
.contact-bar a.primary { background: var(--gold); color: var(--gold-ink); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: 1fr; gap: 12px; }
  .hero-inner { padding: 76px 0 68px; }
  .section { padding: 64px 0; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-toggle { display: block; }
  .contact-bar { display: flex; }
  .site-footer { padding-bottom: 96px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(11,11,12,.7) 0%, rgba(11,11,12,.94) 70%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
