/* Zajednički izgled svih taksi webova: "Svijetli Jadran".
   Bijela, tamnoplava i tirkizna; boje klijenta dolaze iz /assets/theme.css
   (--accent za ukrase, --accent-dark za gumbe i poveznice). Bez vanjskih
   fontova i bez animacija. */

:root {
  --navy: #0b2a4a;
  --navy-soft: #24476b;
  --ink: #142536;
  --muted: #4b5f72;
  --paper: #ffffff;
  --foam: #eef8fa;
  --sand: #f8f5ef;
  --line: #dbe6ec;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 42, 74, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
img, svg { max-width: 100%; }
img { height: auto; }
html, body { overflow-x: clip; }
.hero-grid > *, .about > *, .profile > *, .grid > *, .info-grid > * { min-width: 0; }
h1, h2, h3, p, summary { overflow-wrap: break-word; }
html { scroll-padding-top: 84px; scroll-padding-bottom: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.55em; letter-spacing: -0.015em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.foot :focus-visible { outline-color: #fff; }
.callbar :focus-visible { outline-color: var(--navy); }
#content:focus { outline: none; }
.nowrap { white-space: nowrap; }
.icon { flex: none; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: 0.75rem; }

/* Zaglavlje */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { color: var(--navy); font-weight: 800; font-size: 1.2rem; white-space: nowrap; text-decoration: none; margin-right: auto; display: inline-flex; align-items: center; gap: 0.55rem; }
.brand-logo::before { content: none !important; }
.brand-logo img { display: block; height: 42px; width: auto; }
.foot-brand img { display: block; height: 44px; width: auto; margin-bottom: 0.5rem; }
.brand::before { content: ""; width: 12px; height: 28px; border-radius: 4px; background: linear-gradient(180deg, var(--accent) 0 50%, var(--navy) 50% 100%); }
.nav { display: none; gap: 1.2rem; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent-dark); }
.langs { display: flex; gap: 0.15rem; font-size: 0.85rem; font-weight: 700; }
.langs a, .langs span { padding: 0.3rem 0.5rem; border-radius: 999px; color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--navy); background: var(--foam); }
.langs span { color: #fff; background: var(--navy); }

.nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 700; }

/* Izbornik na mobitelu (bez JavaScripta) */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--navy); }
.menu summary::-webkit-details-marker { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu nav { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 20; display: grid; min-width: min(240px, calc(100vw - 2rem)); max-width: calc(100vw - 2rem); padding: 0.5rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.menu nav a { padding: 0.75rem 0.9rem; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 600; }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--foam); }

/* Gumbi */
.btn { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; column-gap: 0.5rem; min-height: 46px; padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-lg { min-height: 56px; padding: 0.85rem 1.6rem; font-size: 1.05rem; }
.btn-primary, .btn-call { background: var(--btn-bg, var(--accent-dark)); color: var(--btn-fg, #fff); border-color: var(--btn-bg, var(--accent-dark)); }
.btn-primary:hover, .btn-call:hover { background: var(--btn-hover, var(--navy)); border-color: var(--btn-hover, var(--navy)); color: var(--btn-fg, #fff); }
.btn-ghost { color: var(--navy); border-color: var(--navy); background: #fff; }
.btn-ghost:hover { background: var(--foam); }
.btn-call { display: none; }
/* WhatsApp: prepoznatljiva zelena, tamni tekst radi kontrasta */
.btn-wa { background: #25d366; color: #052e16; border-color: #25d366; }
.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; color: #052e16; }
.btn-head-wa { display: none; padding-inline: 0.7rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Naslovni dio */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f3fbfd 0%, #e2f4f8 100%); padding: clamp(2.5rem, 7vw, 5rem) 0 0; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
.hero .kicker { display: inline-block; margin-bottom: 1rem; padding: 0.3rem 0.85rem; border-radius: 999px; background: #fff; color: var(--accent-dark); font-weight: 700; font-size: 0.9rem; box-shadow: var(--shadow); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 46ch; }
.hero .lead + .lead { font-weight: 700; color: var(--navy); }
.hero-facts { list-style: none; margin: 0; padding: 1.25rem 1.4rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 0.85rem; }
.hero-facts li { display: flex; align-items: center; gap: 0.85rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.fact-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--soft, var(--foam)); color: var(--accent-dark); flex: none; }
.hero-media { position: relative; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 50px rgba(11, 42, 74, 0.18); }
.hero-strip { position: relative; z-index: 1; margin-top: 2rem; grid-template-columns: 1fr; }
.hero-wave { display: block; width: 100%; height: 70px; margin-top: 2.5rem; }
.hero-art { display: block; width: 100%; height: clamp(150px, 22vw, 300px); margin-top: clamp(-1rem, -2vw, 0rem); }

/* Zaglavlje podstranica */
.page-hero { background: linear-gradient(180deg, #f3fbfd 0%, #e2f4f8 100%); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.page-hero .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }

/* Odjeljci */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.tint { background: var(--foam); }
.eyebrow { color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 0.4rem; }
.section-lead { color: var(--muted); max-width: 60ch; }
.grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.badge-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 0.9rem; border-radius: 16px; background: var(--soft, var(--foam)); color: var(--accent-dark); }
.badge-icon .icon { width: 28px; height: 28px; }

.vehicles { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.vehicle { display: grid; gap: 1rem; align-items: center; }
.vehicle-art { background: linear-gradient(180deg, #fff 0%, var(--foam) 100%); border-radius: 14px; padding: 1rem 1.25rem 0.5rem; }
.vehicle-art.has-photo { padding: 0; overflow: hidden; background: none; }
.vehicle-art.has-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.car-art { display: block; width: 100%; max-width: 320px; height: auto; margin-inline: auto; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; color: var(--muted); }
.ticks li { display: flex; align-items: center; gap: 0.5rem; }
.ticks .icon { color: var(--accent-dark); width: 20px; height: 20px; }

.routes { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.route { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; }
.route-name { font-weight: 600; color: var(--navy); }
.route-price { flex: none; font-weight: 700; color: var(--accent-dark); font-size: 0.95rem; }

.route-cards { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.route-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.route-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.route-card-body { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1.1rem; }
.route-card-body .route-price { flex: 0 1 auto; }
.price-lines { display: grid; gap: 0.15rem; text-align: right; }
.price-line { white-space: nowrap; }
.price-line span { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.price-line strong { color: var(--accent-dark); }
.route-card-body .price-lines, .item-price .price-lines, .routes .price-lines { text-align: left; justify-items: start; }
.item-price { margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.routes-note { margin-top: 1.25rem; font-weight: 600; color: var(--navy); }
.services { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 0.75rem; }
.faq-item summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; color: var(--navy); list-style-position: inside; }
.faq-item p { margin: 0; padding: 0 1.25rem 1.1rem; color: var(--muted); }
.about { display: grid; gap: 1.5rem; align-items: center; }
.drivers { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.driver { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow); color: var(--muted); }
.driver strong { color: var(--navy); font-size: 1.1rem; }
.avatar-photo { object-fit: cover; padding: 0; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.avatar { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.4rem; flex: none; }

.book { background: linear-gradient(180deg, #fff 0%, var(--foam) 100%); text-align: center; }
.book .actions { justify-content: center; }
.book .section-lead { margin-inline: auto; }

/* Obrazac */
.booking { margin-top: 2.25rem; padding: clamp(1.25rem, 4vw, 2rem); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: left; }
.booking h3 { font-size: 1.3rem; }
.fields { display: grid; gap: 0.9rem 1rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field input, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #6b7c89; border-radius: 12px; padding: 0.65rem 0.8rem; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 1px; }
.booking .form-note { font-size: 0.9rem; color: var(--muted); margin: 1rem 0; }
.booking .btn { width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.section.compact { padding: clamp(1.25rem, 3vw, 2rem) 0; }
.section.compact h2 { font-size: 1.35rem; }
.items { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.info-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.info h2 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.info p + p { margin-top: 0.6rem; }
.item.has-photo { padding: 0; overflow: hidden; }
.item-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.item.has-photo .item-body { padding: 1.2rem 1.4rem 1.4rem; }
.item p + p { margin-top: 0.6rem; }
.profile { display: grid; gap: 1.5rem; align-items: start; }
.profile .vehicles { margin: 0; }
.profile .avatar { width: 112px; height: 112px; font-size: 2rem; }
.profile .driver { padding: 1.25rem 1.5rem; }
.contact-facts { margin-bottom: 0.5rem; text-align: left; }
.contact-facts a { color: var(--accent-dark); }
.cta { background: var(--navy); text-align: center; }
.cta h2 { color: #fff; }
.cta .actions { justify-content: center; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.cta :focus-visible { outline-color: #fff; }
.more-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; }
.more { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; text-decoration: none; }
.more .icon { width: 18px; height: 18px; }
.more:hover { text-decoration: underline; }
.tour-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tour { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tour-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tour-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.2rem 1.4rem 1.4rem; flex: 1; }
.tour-body h2 { font-size: 1.2rem; margin: 0; }
.tour-body p { margin: 0; }
.tour-meta span { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; font-weight: 700; color: var(--accent-dark); }
.tour-meta .icon { width: 18px; height: 18px; }
.tour-price { font-weight: 700; color: var(--navy); margin-top: auto !important; }
.tour-price span { font-weight: 500; color: var(--muted); font-size: 0.9rem; }
.tour .btn { align-self: flex-start; }
.tour .btn .icon { width: 18px; height: 18px; }
.tour-partner { margin-top: 1.5rem; color: var(--muted); }
.field-help { font-size: 0.85rem; color: var(--muted); }

.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.prose h2 { font-size: 1.25rem; margin-top: 1.75rem; }

/* Podnožje */
.foot { background: var(--navy); color: #c7d6e3; padding: 3rem 0 6rem; font-size: 0.95rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-brand { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 0.4rem; }
.foot-label { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; margin-bottom: 0.5rem; }
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list li { padding: 0.15rem 0; }
.foot-list span { color: #9fb4c7; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.85rem; color: #9fb4c7; }

/* Traka za poziv na mobitelu */
.callbar { position: fixed; inset: auto 0 0 0; z-index: 15; display: flex; gap: 0.5rem; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 42, 74, 0.08); }
.callbar .btn { flex: 1; }

@media (min-width: 900px) {
  .profile { grid-template-columns: 1fr 1.6fr; }
  .btn-call, .btn-head-wa { display: inline-flex; }
  .callbar { display: none; }
  .foot { padding-bottom: 3rem; }
  html { scroll-padding-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
  .hero-strip { grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem; }
  .hero-wave { margin-top: 2rem; }
  .vehicle { grid-template-columns: 1.1fr 1fr; }
  .about { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
  .fields { grid-template-columns: repeat(6, 1fr); }
  .field { grid-column: span 2; }
  .field.half { grid-column: span 3; }
  .field.wide { grid-column: 1 / -1; }
}

.menu-langs { display: none; gap: 0.35rem; padding: 0.6rem 0.9rem 0.3rem; border-top: 1px solid var(--line); margin-top: 0.3rem; font-weight: 700; }
.menu-langs a, .menu-langs span { white-space: nowrap; padding: 0.35rem 0.7rem; border-radius: 999px; text-decoration: none; color: var(--muted); }
.menu-langs span { color: #fff; background: var(--navy); }

@media (max-width: 600px) {
  .top .langs { display: none; }
  .menu-langs { display: flex; }
  .brand { white-space: normal; min-width: 0; }
}

@media (max-width: 480px) {
  .top-inner { gap: 0.6rem; }
  .brand { font-size: 1.05rem; }
  .brand-logo img { height: 34px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu summary { padding: 0.4rem 0.7rem; }
}

@media (min-width: 1150px) {
  .nav { display: flex; }
  .menu { display: none; }
}

@media print {
  .top, .callbar, .actions, .hero-art { display: none; }
}
.car-art .car-body { fill: var(--accent-dark); }
