/* ================================================================
   OFF-ROAD BUGGY TBILISI — General Stylesheet
   Rugged / premium motorsport theme: matte black + rally red + white.
   One file, organised top-to-bottom:
     1. Tokens   2. Reset/base   3. Typography   4. Buttons
     5. Layout/containers   6. Header/nav   7. Hero   8. Sections
     9. Tour cards   10. Tour detail   11. Forms/booking   12. Footer
     13. Misc components   14. Admin-light hooks   15. Responsive
   ================================================================ */

/* ----- 1. TOKENS ----- */
:root {
  /* Brand palette (from logo + business card: matte black / rally red / white) */
  --c-black:     #0a0a0a;   /* page background */
  --c-black-2:   #121214;   /* raised surfaces / cards */
  --c-black-3:   #1a1a1d;   /* hover surfaces / inputs */
  --c-black-4:   #232327;   /* borders on dark */
  --c-red:       #df2a27;   /* primary red — matched to offroadtbilisi.ge */
  --c-red-bright:#f44336;   /* hover / glow accent (from .ge palette) */
  --c-red-dark:  #b3201d;   /* pressed */
  --c-white:     #ffffff;
  --c-fog:       #c9c9cf;   /* primary muted text */
  --c-ash:       #8a8a92;   /* secondary muted text */
  --c-graphite:  #3a3c40;   /* neutral gray from .ge palette */
  --c-line:      rgba(255,255,255,.09);
  --c-line-2:    rgba(255,255,255,.16);

  /* Typography — Roboto to match offroadtbilisi.ge */
  --ff-display:  "Roboto", system-ui, -apple-system, sans-serif;
  --ff-body:     "Roboto", system-ui, -apple-system, sans-serif;
  --ff-ge:       "Noto Sans Georgian", "Roboto", system-ui, sans-serif;

  /* Spacing scale */
  --s1: .5rem;  --s2: 1rem;  --s3: 1.5rem;  --s4: 2rem;
  --s5: 3rem;   --s6: 4rem;  --s7: 6rem;    --s8: 8rem;

  /* Structure */
  --container: 1240px;
  --radius:   10px;
  --radius-lg:16px;
  --header-h: 76px;
  --shadow:   0 18px 50px rgba(0,0,0,.55);
  --shadow-red: 0 10px 36px rgba(223,42,39,.32);
  --ease: cubic-bezier(.2,.7,.25,1);

  /* Angular clip for "rugged" cut corners */
  --cut: 14px;
}

/* ----- 2. RESET / BASE ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { font-synthesis: none; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--c-black);
  color: var(--c-white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.lang-ge { font-family: var(--ff-ge); }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--c-red); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c-red); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ----- 3. TYPOGRAPHY ----- */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
}
/* Georgian: Noto Sans, Mtavruli handled in PHP — never CSS-uppercase */
body.lang-ge h1, body.lang-ge h2, body.lang-ge h3,
body.lang-ge h4, body.lang-ge h5 {
  font-family: var(--ff-ge);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.15rem; letter-spacing: .04em; }

p { color: var(--c-fog); }
strong { color: var(--c-white); font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-display);
  text-transform: uppercase; letter-spacing: .22em;
  font-size: .82rem; font-weight: 700;
  color: var(--c-red);
}
body.lang-ge .eyebrow { font-family: var(--ff-ge); letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--c-red); }

.lead { font-size: 1.15rem; color: var(--c-fog); max-width: 60ch; }
.text-muted { color: var(--c-ash); }
.text-red { color: var(--c-red); }

/* ----- 4. BUTTONS ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ff-display);
  font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .95rem 1.9rem;
  border-radius: 4px;
  transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  white-space: nowrap;
}
body.lang-ge .btn { font-family: var(--ff-ge); letter-spacing: .02em; text-transform: none; font-weight: 700; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--c-red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--c-red-bright); box-shadow: 0 14px 40px rgba(223,42,39,.45); }

.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px var(--c-line-2); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--c-red); color: #fff; background: rgba(223,42,39,.08); }

.btn-ghost { background: var(--c-black-3); color: #fff; box-shadow: inset 0 0 0 1px var(--c-line); }
.btn-ghost:hover { background: var(--c-black-4); }

.btn-sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ----- 5. LAYOUT ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container--narrow { max-width: 760px; }
.container--wide { max-width: 1440px; }

.section { padding: var(--s7) 0; position: relative; }
.section--tight { padding: var(--s5) 0; }
.section--dark { background: var(--c-black); }
.section--surface { background: var(--c-black-2); }

.section-head { max-width: 720px; margin-bottom: var(--s5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: .6rem 0 1rem; }

.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Diagonal red accent rule used between/within sections */
.rule-red { height: 3px; width: 64px; background: var(--c-red); border: none; margin: 0; }

/* ----- 6. HEADER / NAV ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.site-header--transparent {
  position: fixed; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,0));
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
}
.site-header.scrolled {
  background: rgba(10,10,10,.94); backdrop-filter: blur(14px);
  border-bottom-color: var(--c-line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 56px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; margin-left: 1rem; }
.nav-links > li > a {
  font-family: var(--ff-display);
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; font-size: .98rem;
  color: var(--c-fog);
  padding: .4rem 0; position: relative;
}
body.lang-ge .nav-links > li > a { font-family: var(--ff-ge); text-transform: none; letter-spacing: 0; font-weight: 600; }
.nav-links > li > a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--c-red); transition: width .25s var(--ease);
}
.nav-links > li > a:hover, .nav-links > li > a.is-active { color: #fff; }
.nav-links > li > a:hover::after, .nav-links > li > a.is-active::after { width: 100%; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.lang-toggle a {
  font-family: var(--ff-display); font-weight: 700; font-size: .85rem;
  letter-spacing: .1em; color: var(--c-fog);
  border: 1px solid var(--c-line-2); border-radius: 4px; padding: .35rem .6rem;
}
.lang-toggle a:hover { color: #fff; border-color: var(--c-red); }

.nav-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; color: var(--c-fog);
}
.nav-phone svg { color: var(--c-red); }
.nav-phone:hover { color: #fff; }
.nav-mobile-cta { display: none; }

.menu-toggle { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- 7. HERO ----- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--c-black);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.6) 45%, rgba(10,10,10,.25) 100%),
    linear-gradient(to top, rgba(10,10,10,.95), rgba(10,10,10,.1) 60%);
}
/* Motorsport diagonal red streaks (decor) */
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 45%; z-index: 1;
  background:
    linear-gradient(115deg, transparent 60%, rgba(223,42,39,.16) 61%, transparent 63%),
    linear-gradient(115deg, transparent 72%, rgba(223,42,39,.28) 73%, transparent 74%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding: 7rem 0; max-width: 720px; }
.hero h1 { margin: 1rem 0 1.2rem; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero h1 .accent { color: var(--c-red); }
.hero__sub { font-size: 1.2rem; color: var(--c-fog); margin-bottom: 2rem; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero__stat { }
.hero__stat b { display: block; font-family: var(--ff-display); font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
body.lang-ge .hero__stat b { font-family: var(--ff-ge); }
.hero__stat span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-ash); }
body.lang-ge .hero__stat span { text-transform: none; letter-spacing: 0; }

/* ----- 8. SECTIONS: feature / why-us ----- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  background: var(--c-black-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
  position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--c-red); transition: height .3s var(--ease); }
.feature:hover { transform: translateY(-4px); border-color: var(--c-line-2); }
.feature:hover::before { height: 100%; }
.feature__icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  background: rgba(223,42,39,.12); border-radius: 10px; color: var(--c-red); margin-bottom: 1.2rem;
}
.feature h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.feature p { font-size: .98rem; }

/* Split content band (image + text) */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.split__media { position: relative; }
.split__media::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 70%; height: 60%;
  border: 2px solid var(--c-red); border-radius: var(--radius-lg); z-index: -1;
}
.checklist { display: grid; gap: .85rem; margin-top: 1.5rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--c-fog); }
.checklist svg { color: var(--c-red); flex-shrink: 0; margin-top: 3px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(26,3,2,.82), rgba(10,10,10,.92) 55%),
    url("../images/brand-bg.png") center / cover no-repeat,
    #0a0a0a;
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 55%, rgba(223,42,39,.18) 56%, transparent 58%);
}
.cta-band__inner { position: relative; text-align: center; padding: var(--s7) 0; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 50ch; margin: 0 auto 2rem; }

/* ----- 9. TOUR CARDS ----- */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.tour-card {
  background: var(--c-black-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease);
}
.tour-card:hover { transform: translateY(-6px); border-color: var(--c-red); box-shadow: var(--shadow); }
.tour-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--c-black-3); }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tour-card:hover .tour-card__media img { transform: scale(1.06); }
.tour-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--c-red); color: #fff;
  font-family: var(--ff-display); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem .7rem; border-radius: 3px;
}
body.lang-ge .tour-card__badge { font-family: var(--ff-ge); text-transform: none; letter-spacing: 0; }
.tour-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tour-card__meta { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--c-ash); margin-bottom: .8rem; flex-wrap: wrap; }
.tour-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.tour-card__meta svg { color: var(--c-red); }
.tour-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.tour-card__desc { font-size: .96rem; color: var(--c-fog); flex: 1; margin-bottom: 1.2rem; }
.tour-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--c-line); }
.tour-card__price { font-family: var(--ff-display); font-weight: 800; }
.tour-card__price b { font-size: 1.7rem; color: #fff; }
.tour-card__price span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-ash); font-family: var(--ff-body); font-weight: 600; }
body.lang-ge .tour-card__price { font-family: var(--ff-ge); }
body.lang-ge .tour-card__price span { font-family: var(--ff-ge); text-transform: none; letter-spacing: 0; }

/* ----- 10. TOUR DETAIL ----- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 3.6rem) 0 3.2rem;
  /* Theme-aware surface: light in light mode, dark in dark mode (no photo). */
  background:
    linear-gradient(135deg, var(--c-black-2) 0%, var(--c-black) 100%);
  border-bottom: 1px solid var(--c-line);
}
/* Motorsport red diagonal accents (both themes) */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 59%, rgba(223,42,39,.10) 60%, transparent 63%),
    linear-gradient(115deg, transparent 72%, rgba(223,42,39,.20) 73%, transparent 76%);
}
/* Faint twin-peak mountain motif (from the logo), right side */
.page-hero::after {
  content: ""; position: absolute; right: -24px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 300px; max-width: 46%; z-index: 0; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 130'%3E%3Cg fill='none' stroke='%23df2a27' stroke-width='6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M14 122 L70 22 L126 122'/%3E%3Cpath d='M96 122 L141 40 L186 122'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.page-hero > .container { position: relative; z-index: 2; }
/* Photo variant (tour detail): real bright photo keeps the accents off */
.page-hero--media { min-height: 52vh; display: flex; align-items: flex-end; padding-bottom: 3rem; background: var(--c-black-2); }
.page-hero--media::before, .page-hero--media::after { display: none; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.96), rgba(10,10,10,.45)); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { margin-top: .6rem; }
.breadcrumb { display: flex; gap: .5rem; font-size: .85rem; color: var(--c-ash); margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .08em; }
body.lang-ge .breadcrumb { text-transform: none; letter-spacing: 0; }
.breadcrumb a:hover { color: var(--c-red); }

.tour-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.tour-detail__main h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.tour-detail__main p { margin-bottom: 1rem; }
.tour-detail__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.5rem 0; }
.tour-detail__gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.booking-box {
  position: sticky; top: calc(var(--header-h) + 1rem);
  background: var(--c-black-2); border: 1px solid var(--c-line-2);
  border-radius: var(--radius-lg); padding: 1.8rem;
}
.booking-box__price { font-family: var(--ff-display); margin-bottom: 1.2rem; }
.booking-box__price b { font-size: 2.6rem; font-weight: 800; color: #fff; }
.booking-box__price span { color: var(--c-ash); font-size: .9rem; }
body.lang-ge .booking-box__price { font-family: var(--ff-ge); }
.spec-list { display: grid; gap: .9rem; margin: 1.4rem 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--c-line); font-size: .95rem; }
.spec-list li span:first-child { color: var(--c-ash); }
.spec-list li span:last-child { color: #fff; font-weight: 600; text-align: right; }

/* ----- 11. FORMS / BOOKING ----- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ash); font-weight: 600; }
body.lang-ge .field label { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  background: var(--c-black-3); border: 1px solid var(--c-line);
  border-radius: 6px; padding: .85rem 1rem; color: #fff; width: 100%;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-ash); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-red); background: var(--c-black-4); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e10600' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field .hint { font-size: .8rem; color: var(--c-ash); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--c-red); }
.field--error .hint { color: var(--c-red-bright); }

.alert { padding: 1rem 1.2rem; border-radius: 8px; font-size: .95rem; }
.alert-success { background: rgba(40,170,90,.14); border: 1px solid rgba(40,170,90,.4); color: #c7f3d6; }
.alert-error { background: rgba(223,42,39,.14); border: 1px solid rgba(223,42,39,.45); color: #ffd2cf; }

/* ----- 12. FOOTER ----- */
.footer { background: #070707; border-top: 1px solid var(--c-line); padding-top: var(--s6); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2.5rem; padding-bottom: var(--s5); }
.footer-logo img { height: 96px; width: auto; margin-bottom: 1rem; }
.footer-tagline { color: var(--c-ash); font-size: .95rem; max-width: 30ch; }
.footer-col h4 { color: #fff; letter-spacing: .12em; margin-bottom: 1.1rem; font-size: 1rem; }
body.lang-ge .footer-col h4 { letter-spacing: 0; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: var(--c-fog); font-size: .95rem; }
.footer-col a:hover { color: var(--c-red); }
.footer-contact li { display: grid; gap: .1rem; margin-bottom: .5rem; }
.footer-contact li > span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-ash); }
body.lang-ge .footer-contact li > span { text-transform: none; letter-spacing: 0; }
.footer-social { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .6rem; color: var(--c-fog); }
.footer-social a:hover { color: var(--c-red); }
.footer-cta { margin-top: .4rem; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 0; border-top: 1px solid var(--c-line); color: var(--c-ash); font-size: .85rem; }
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a:hover { color: var(--c-red); }

/* Floating WhatsApp */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .2s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); }

/* ----- 13. MISC ----- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; grid-auto-rows: 220px; }
.gallery-grid a { overflow: hidden; border-radius: 8px; position: relative; background: var(--c-black-3); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .tall { grid-row: span 2; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-strip .stat b { font-family: var(--ff-display); font-size: 3rem; font-weight: 800; color: var(--c-red); display: block; line-height: 1; }
body.lang-ge .stat-strip .stat b { font-family: var(--ff-ge); }
.stat-strip .stat span { color: var(--c-ash); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
body.lang-ge .stat-strip .stat span { text-transform: none; letter-spacing: 0; }

.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary { cursor: pointer; padding: 1.2rem 0; font-family: var(--ff-display); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; display: flex; justify-content: space-between; gap: 1rem; list-style: none; }
body.lang-ge .faq-item summary { font-family: var(--ff-ge); text-transform: none; letter-spacing: 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--c-red); font-size: 1.5rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1.2rem; }

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.prose p, .prose li { color: var(--c-fog); margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose a { color: var(--c-red); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ----- 14. RESPONSIVE ----- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .features, .tour-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tour-detail { grid-template-columns: 1fr; }
  .booking-box { position: static; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse { direction: ltr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: var(--s6) 0; }
  .nav-phone span, .nav-book-btn { display: none; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--c-black); border-bottom: 1px solid var(--c-line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.5rem 1.5rem; margin: 0;
    transform: translateY(-130%); transition: transform .32s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > li { border-bottom: 1px solid var(--c-line); }
  .nav-links > li > a { display: block; padding: 1rem 0; font-size: 1.1rem; }
  .nav-links > li > a::after { display: none; }
  .nav-mobile-cta { display: block; border: none !important; margin-top: 1rem; }
  .nav-mobile-cta .btn { width: 100%; }
  .menu-toggle { display: flex; }

  .grid-3, .grid-4, .features, .tour-grid, .grid-2 { grid-template-columns: 1fr; }
  .form-row--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-grid .wide, .gallery-grid .tall { grid-column: auto; grid-row: auto; }
  .hero__stats { gap: 1.5rem; }
  .hero__stat b { font-size: 1.9rem; }
  .hero::before { width: 100%; opacity: .5; }
}

/* ================================================================
   16. MEDIA COMPONENTS — real photo/video integration
   (added when wiring the brand's own photos + action clips in)
   ================================================================ */

/* Video used as a full-bleed background layer (hero / cover bands).
   Sits behind .hero__media::after gradient, same as the <img>. */
.hero__media video,
.media-bg__video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Full-bleed media band: a section whose background is a photo or video
   with a dark overlay so text stays readable. Drop content in .media-band__inner. */
.media-band {
  position: relative; overflow: hidden;
  background: var(--c-black-2);
}
.media-band__media { position: absolute; inset: 0; z-index: 0; }
.media-band__media img,
.media-band__media video { width: 100%; height: 100%; object-fit: cover; }
.media-band__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.92), rgba(10,10,10,.55) 55%, rgba(10,10,10,.35));
}
.media-band--center .media-band__media::after {
  background: linear-gradient(rgba(10,10,10,.72), rgba(10,10,10,.82));
}
.media-band__inner { position: relative; z-index: 2; padding: var(--s7) 0; }

/* Split media that uses a REAL photo (replaces the SVG framing).
   Reuses .split / .split__media; this just guarantees a nice ratio + frame. */
.split__media.photo img,
.media-frame img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  border-radius: var(--radius-lg);
}
.media-frame { position: relative; }
.media-frame::after {
  content: ""; position: absolute; right: -14px; bottom: -14px;
  width: 70%; height: 60%; border: 2px solid var(--c-red);
  border-radius: var(--radius-lg); z-index: -1;
}

/* Trust / ratings strip (Tripadvisor / Trustpilot style, like offroadtbilisi.ge) */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2.4rem;
}
.trust-strip--center { justify-content: center; }
.trust-item { display: inline-flex; align-items: center; gap: .6rem; color: var(--c-fog); font-size: .95rem; }
.trust-item .stars { color: #ffc107; letter-spacing: 2px; font-size: 1rem; }
.trust-item b { color: #fff; }

/* Portrait video / photo cards for the gallery (real vertical clips) */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.media-tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--c-black-3); aspect-ratio: 3 / 4;
  border: 1px solid var(--c-line);
}
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; }
.media-tile video { transition: transform .5s var(--ease); }
.media-tile:hover video, .media-tile:hover img { transform: scale(1.05); }
.media-tile__play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.media-tile__play span {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(223,42,39,.92);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.media-tile__play span::after {
  content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent;
  border-bottom: 10px solid transparent; margin-left: 4px;
}

/* "Briefing" info band — Requirements / Gear / Weather / Protocol (like .ge Mission Briefing) */
.briefing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.briefing-card {
  background: rgba(18,18,20,.7); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
  backdrop-filter: blur(4px);
}
.briefing-card .briefing-ico {
  width: 46px; height: 46px; display: grid; place-items: center; color: var(--c-red);
  background: rgba(223,42,39,.12); border-radius: 10px; margin-bottom: 1rem;
}
.briefing-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.briefing-card p { font-size: .92rem; }

@media (max-width: 980px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .briefing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .media-grid { grid-template-columns: 1fr 1fr; }
  .briefing-grid { grid-template-columns: 1fr; }
  .media-band__media::after { background: linear-gradient(rgba(10,10,10,.78), rgba(10,10,10,.9)); }
}

/* ================================================================
   17. LIGHT THEME — toggled via <html data-theme="light">
   Matches offroadtbilisi.ge: white bg, dark text, red buttons.
   Dark remains the base (data-theme="dark" or unset on old prefs).
   ================================================================ */
html[data-theme="light"] {
  --c-black:     #ffffff;   /* page background */
  --c-black-2:   #f5f3ef;   /* raised surfaces / sections */
  --c-black-3:   #ffffff;   /* inputs */
  --c-black-4:   #e4e1da;   /* borders on surfaces */
  --c-white:     #17191d;   /* now = primary text/ink */
  --c-fog:       #41444b;   /* body text */
  --c-ash:       #6c6f77;   /* muted text */
  --c-line:      rgba(0,0,0,.10);
  --c-line-2:    rgba(0,0,0,.18);
  --shadow:      0 16px 40px rgba(20,20,25,.14);
  background: #ffffff;
}

/* Logo swap: dark-ink logo on the light header/footer */
.nav-logo__img--dark, .footer-logo__img--dark { display: none; }
html[data-theme="light"] .nav-logo__img--light,
html[data-theme="light"] .footer-logo__img--light { display: none; }
html[data-theme="light"] .nav-logo__img--dark,
html[data-theme="light"] .footer-logo__img--dark { display: block; }

/* Header / nav in light */
html[data-theme="light"] .site-header { background: rgba(255,255,255,.90); border-bottom-color: var(--c-line); }
html[data-theme="light"] .site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 4px 24px rgba(0,0,0,.06); }
html[data-theme="light"] .menu-toggle span { background: #17191d; }

/* Buttons in light: outline/ghost get dark ink (primary red stays the same) */
html[data-theme="light"] .btn-outline { color: #17191d; box-shadow: inset 0 0 0 2px var(--c-line-2); }
html[data-theme="light"] .btn-outline:hover { color: #17191d; box-shadow: inset 0 0 0 2px var(--c-red); background: rgba(223,42,39,.06); }
html[data-theme="light"] .btn-ghost { color: #17191d; background: #f0eee9; box-shadow: inset 0 0 0 1px var(--c-line); }
html[data-theme="light"] .btn-ghost:hover { background: #e8e5df; }

/* Trust strip / misc hardcoded #fff text → ink */
html[data-theme="light"] .trust-item b { color: #17191d; }

/* Cards / features get a soft shadow + true-white surface in light */
html[data-theme="light"] .feature,
html[data-theme="light"] .tour-card,
html[data-theme="light"] .briefing-card { background: #ffffff; box-shadow: 0 8px 26px rgba(20,20,25,.06); }
html[data-theme="light"] .tour-card__price b,
html[data-theme="light"] .tour-card h3,
html[data-theme="light"] .feature h3 { color: #17191d; }

/* Inputs in light */
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea { background: #fff; border-color: var(--c-line-2); color: #17191d; }
html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field select:focus,
html[data-theme="light"] .field textarea:focus { border-color: var(--c-red); background: #fff; }

/* Footer in light: light surface, ink text, dark logo */
html[data-theme="light"] .footer { background: #f1efea; border-top-color: var(--c-line); }
html[data-theme="light"] .footer-col h4 { color: #17191d; }
html[data-theme="light"] .footer-meta { border-top-color: var(--c-line); }

/* Sections that sit OVER video/photos keep light text for legibility:
   re-localize the text vars inside dark media bands so the global light
   flip doesn't turn their copy dark-on-dark. */
html[data-theme="light"] .hero,
html[data-theme="light"] .page-hero--media,
html[data-theme="light"] .cta-band,
html[data-theme="light"] .media-band {
  --c-white: #ffffff;
  --c-fog:   #eaeaef;
  --c-ash:   #c8c8d0;
  color: #fff;
}

/* Theme toggle button */
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 8px; color: var(--c-fog); border: 1px solid var(--c-line-2);
  background: transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.theme-toggle:hover { color: var(--c-red); border-color: var(--c-red); }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
html[data-theme="light"] .theme-toggle .ico-sun { display: block; }
html[data-theme="light"] .theme-toggle .ico-moon { display: none; }

/* Light theme — keep controls legible OVER dark video/photo bands */
html[data-theme="light"] .hero .btn-outline,
html[data-theme="light"] .media-band .btn-outline,
html[data-theme="light"] .cta-band .btn-outline,
html[data-theme="light"] .page-hero--media .btn-outline {
  color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
html[data-theme="light"] .hero .btn-outline:hover,
html[data-theme="light"] .media-band .btn-outline:hover,
html[data-theme="light"] .cta-band .btn-outline:hover,
html[data-theme="light"] .page-hero--media .btn-outline:hover {
  box-shadow: inset 0 0 0 2px var(--c-red); background: rgba(223,42,39,.12);
}
html[data-theme="light"] .hero .trust-item b,
html[data-theme="light"] .media-band .trust-item b,
html[data-theme="light"] .page-hero--media .trust-item b { color: #fff; }

/* ---- Light theme contrast fixes (2026-06-26) ---- */
/* Booking box (tour detail): light card + ink price/spec values (were #fff = invisible) */
html[data-theme="light"] .booking-box { background: #ffffff; box-shadow: 0 8px 26px rgba(20,20,25,.07); }
html[data-theme="light"] .booking-box__price b,
html[data-theme="light"] .spec-list li span:last-child { color: #17191d; }

/* Nav hover / active states on the light header (were #fff = invisible on white) */
html[data-theme="light"] .nav-links > li > a:hover,
html[data-theme="light"] .nav-links > li > a.is-active,
html[data-theme="light"] .lang-toggle a:hover,
html[data-theme="light"] .nav-phone:hover { color: #17191d; }

/* Alerts: readable dark text on light tints (were near-white on light bg) */
html[data-theme="light"] .alert-success { background: rgba(40,170,90,.12); border-color: rgba(40,170,90,.5); color: #14703c; }
html[data-theme="light"] .alert-error   { background: rgba(223,42,39,.10); border-color: rgba(223,42,39,.5); color: #a31a16; }

/* Faint helper text a touch darker in light for legibility */
html[data-theme="light"] .tour-card__meta,
html[data-theme="light"] .breadcrumb { color: #6c6f77; }
