/* ============================================================
   BB Fortis Taxi Vodice — styles
   Palette: taxi black + yellow. Mobile-first, responsive.
   ============================================================ */
:root {
  --black: #0d0d0f;
  --ink: #14141a;
  --panel: #1b1b22;
  --yellow: #ffcc00;
  --yellow-2: #ffd633;
  --text: #f4f4f6;
  --muted: #a9a9b4;
  --line: rgba(255, 255, 255, .1);
  --radius: 16px;
  --maxw: 1160px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--yellow); color: #111;
  font-weight: 800; padding: .85rem 1.5rem; border-radius: 999px;
  border: 2px solid var(--yellow); cursor: pointer;
  transition: transform .12s ease, background .2s ease;
  letter-spacing: .01em;
}
.btn:hover { background: var(--yellow-2); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(13,13,15,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 900; }
.brand img { height: 46px; width: auto; display: block; }
.foot-logo { height: 52px; width: auto; }
.brand-mark {
  background: var(--yellow); color: #111; font-weight: 900;
  padding: .25rem .5rem; border-radius: 8px; letter-spacing: -.03em;
  box-shadow: 0 0 0 3px rgba(255,204,0,.2);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; letter-spacing: .04em; }
.brand-text small { font-size: .6rem; color: var(--muted); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; font-weight: 600; }
.nav-links a:not(.btn):hover { color: var(--yellow); }
.lang { display: flex; gap: .25rem; }
.lang button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; padding: .3rem .55rem; font-weight: 700; font-size: .8rem; cursor: pointer;
}
.lang button.active { background: var(--yellow); color: #111; border-color: var(--yellow); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, #0d0d0f 8%, rgba(13,13,15,.55) 55%, rgba(13,13,15,.3)); }
.hero-slides { position: absolute; inset: 0; }
.hero-slides .slide {
  position: absolute; inset: 0; opacity: 0; animation: fade 18s infinite;
  background-size: cover; background-position: center;
}
.hero-slides .slide { background-size: cover; background-position: center; }
.hero-slides .slide::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, #0d0d0f 8%, rgba(13,13,15,.55) 55%, rgba(13,13,15,.25)); }
.hero-slides .slide:nth-child(1){ animation-delay: 0s;  background-image: url("/static/img/air_split.jpg"); }
.hero-slides .slide:nth-child(2){ animation-delay: 6s;  background-image: url("/static/img/dubrovnik.jpg"); }
.hero-slides .slide:nth-child(3){ animation-delay: 12s; background-image: url("/static/img/krka.jpg"); }
@keyframes fade { 0%,27%{opacity:1} 33%,100%{opacity:0} }
.hero::after { /* checker accent strip */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(90deg,#111 0 22px,var(--yellow) 22px 44px);
  opacity: .9;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 2rem clamp(1rem,4vw,2.5rem); }
.eyebrow { color: var(--yellow); font-weight: 800; letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); max-width: 14ch; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Perks ---------- */
.perks {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 1px;
  background: var(--line); border-bottom: 1px solid var(--line);
}
.perk { background: var(--ink); padding: 1.5rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.perk svg { width: 30px; height: 30px; color: var(--yellow); }
.perk p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.35; }
/* 6 perks in a row only when wide enough; wrap cleanly into even rows otherwise */
@media (max-width: 1080px) { .perks { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem,7vw,5.5rem) clamp(1rem,4vw,2.5rem); }
.section-dark { background: var(--ink); max-width: none; }
.section-dark > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); position: relative; padding-bottom: .5rem; }
.section-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--yellow); border-radius: 2px; margin-top: .6rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.2rem; margin-top: 2rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .15s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,204,0,.4); }
.card-ico { margin-bottom: .8rem; display: inline-flex; padding: .7rem; border-radius: 12px;
  background: rgba(255,204,0,.12); }
.card-ico svg { width: 30px; height: 30px; color: var(--yellow); display: block; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Gallery / destinations ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1rem; margin-top: 2rem; }
.g-item {
  position: relative; margin: 0; height: 240px; border-radius: var(--radius); overflow: hidden;
  background: #15151b center/cover no-repeat; border: 1px solid var(--line);
  display: flex; align-items: flex-end; transition: transform .2s ease;
}
.g-item:hover { transform: translateY(-4px); }
.g-item[data-place="Krka"]      { background-image: url("/static/img/krka.jpg"); }
.g-item[data-place="Plitvice"]  { background-image: url("/static/img/plitvice.jpg"); }
.g-item[data-place="Dubrovnik"] { background-image: url("/static/img/dubrovnik.jpg"); }
.g-item[data-place="Split"]     { background-image: url("/static/img/split.jpg"); }
.g-item figcaption { position: relative; padding: 1rem; font-weight: 800; font-size: 1.1rem; width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* ---------- Driver ---------- */
.driver { display: grid; grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: center; }
.driver-photo, .car-photo {
  height: 340px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg,#23232b,#14141a);
  position: relative;
}
.driver-photo::after { content: "👤"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; opacity: .25; }
.driver-langs { list-style: none; display: flex; gap: .6rem; padding: 0; margin: 1.2rem 0 0; flex-wrap: wrap; }
.driver-langs li { background: var(--panel); border: 1px solid var(--line); padding: .35rem .9rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.driver-body p { color: var(--muted); }

/* ---------- Fleet ---------- */
.fleet { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: center; margin-top: 2rem; }
.car-photo { background: #14141a url("/static/img/car_ig.jpg") center/cover no-repeat; }
.fleet-body p { color: var(--muted); }

/* ---------- Booking ---------- */
.book { max-width: 820px; }
.book-sub { color: var(--muted); max-width: 60ch; }
.booking-form { margin-top: 2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem,3vw,2.2rem); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.booking-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .9rem; }
.booking-form label.full { grid-column: 1 / -1; }
.booking-form input, .booking-form select, .booking-form textarea {
  background: var(--ink); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: .7rem .8rem; font: inherit; font-weight: 500;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
  outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,204,0,.15);
}
.booking-form textarea { resize: vertical; }
.booking-form .btn { margin-top: 1.4rem; width: 100%; }
.form-msg { margin: 1rem 0 0; font-weight: 700; min-height: 1.2em; }
.form-msg.ok { color: #52d17c; }
.form-msg.err { color: #ff6b6b; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line); background: var(--ink);
  padding: 2.5rem clamp(1rem,4vw,2.5rem); display: grid; gap: 1.2rem;
  max-width: none;
}
.foot-brand { display: flex; align-items: center; gap: .7rem; font-weight: 900; letter-spacing: .04em; }
.foot-brand small { display: block; font-size: .65rem; color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot-contact a { color: var(--muted); font-weight: 600; }
.foot-contact a:hover { color: var(--yellow); }
.foot-copy { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .perks { grid-template-columns: repeat(2,1fr); }
  .driver, .fleet { grid-template-columns: 1fr; }
  .fleet .car-photo { order: -1; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
}

/* Mobile hero: stack a full 16:9 video banner (whole shot visible, no crop)
   above the headline. Desktop keeps the full-bleed crop format. */
@media (max-width: 680px) {
  .hero { min-height: auto; display: block; }
  .hero-media { position: relative; inset: auto; height: auto; width: 100%; aspect-ratio: 16 / 9; }
  .hero-overlay { display: none; }
  .hero-inner { position: static; z-index: auto; padding-top: 1.6rem; }
  .hero h1 { max-width: none; }
  .hero .lead { max-width: none; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }
}
