/* =========================================================
   Avto Inn d.o.o. · Bosch Car Service · Nova Gorica
   New website concept #18 — Aces Ads Agency
   ========================================================= */

:root {
  --dark: #0e1116;
  --dark-700: #171b22;
  --red: #c9242b;
  --red-600: #ad1d24;
  --red-hi: #ff5659;
  --red-soft: #fde7ea;
  --light: #f4f6f5;
  --white: #ffffff;
  --ink: #0e1116;
  --text: #4a5160;
  --muted: #7d8494;
  --line: #e6e8ec;
  --line-dark: rgba(255, 255, 255, 0.12);

  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 14px;
  --radius-btn: 8px;
  --shadow: 0 14px 40px rgba(14, 17, 22, 0.10);
  --shadow-sm: 0 4px 14px rgba(14, 17, 22, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); color: var(--ink); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Typography ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.eyebrow-red { color: var(--red); }
h2 { font-size: clamp(2rem, 3.7vw, 3.1rem); }
h2 em, h1 em, h3 em { font-style: normal; color: var(--red); }
.hero h1 em, .story h2 em { color: var(--red-hi); }

.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-head.split h2 { max-width: 640px; }
.section-intro { max-width: 380px; font-size: 15px; color: var(--text); padding-bottom: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: var(--radius-btn); font-size: 14px; font-weight: 600; line-height: 1; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn .ico { font-size: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-600); box-shadow: 0 8px 20px rgba(201, 36, 43, .35); }
.btn-outline-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--red); }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark { width: 40px; height: 40px; border-radius: 9px; background: var(--red); color: #fff; display: inline-grid; place-items: center; font-size: 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--head); font-size: 20px; font-weight: 800; letter-spacing: 0.02em; }
.brand-sub { font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-top: 3px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 18px 0; transition: background .3s, padding .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(14, 17, 22, 0.94); backdrop-filter: blur(10px); padding: 10px 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a:not(.btn) { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .92); position: relative; padding: 4px 0; }
.main-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.main-nav > a:not(.btn):hover::after { width: 100%; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .6); letter-spacing: .04em; }
.lang button { background: none; border: 0; padding: 2px; color: rgba(255, 255, 255, .6); font: inherit; font-weight: 700; }
.lang button.active, .lang button:hover { color: #fff; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; padding: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 150px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: url("https://images.unsplash.com/photo-1625047509248-ec889cbff17f?auto=format&fit=crop&w=2000&q=80") center 45% / cover no-repeat; background-color: var(--dark); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 17, 22, .6) 0%, rgba(14, 17, 22, 0) 30%), linear-gradient(90deg, rgba(14, 17, 22, .92) 0%, rgba(14, 17, 22, .7) 45%, rgba(14, 17, 22, .3) 100%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 440px); gap: 60px; align-items: end; }
.hero-copy { max-width: 660px; }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 26px; }
.hero-lead { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .9); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 500; }
.hero-chips .ico { font-size: 13px; opacity: .85; }

.book-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 26px 24px; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); justify-self: end; width: 100%; }
.book-card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 4px; letter-spacing: -0.01em; }
.book-card h3 .ico { font-size: 18px; }
.book-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.book-rows { margin-bottom: 18px; }
.book-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.book-row > span { color: var(--text); flex: none; }
.book-row select, .book-row input { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: right; border: 0; background: transparent; padding: 2px 0; width: 100%; min-width: 0; outline: 0; }
.book-row input::placeholder { color: var(--ink); font-weight: 600; opacity: .9; }
.book-row select { appearance: none; -webkit-appearance: none; direction: rtl; padding-right: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230e1116' stroke-width='1.5'/%3E%3C/svg%3E") right center / 9px no-repeat; }
.book-row select option { direction: ltr; }
.book-row input[type="date"] { direction: rtl; }
.book-row input.invalid { color: var(--red); }
.book-row input.invalid::placeholder { color: var(--red); }

/* ---------- Stats ---------- */
.stats { background: var(--dark); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 34px 28px; border-left: 1px solid var(--line-dark); }
.stats-grid > div:first-child { border-left: 0; padding-left: 0; }
.stats-grid strong { display: block; font-family: var(--head); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--red-hi); line-height: 1; margin-bottom: 8px; }
.stats-grid span { font-size: 13px; color: rgba(255, 255, 255, .62); }

/* ---------- Services ---------- */
.services { background: #fff; padding: 110px 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 22px; }
.service-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .service-media img { transform: scale(1.04); }
.tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.service-body { padding: 24px 22px 26px; }
.service-body h3 { font-size: 21px; margin-bottom: 8px; }
.service-body p { font-size: 14px; margin-bottom: 16px; }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 26px; transition: transform .25s, box-shadow .25s; }
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 18px; margin-bottom: 18px; }
.mini-card h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.mini-card p { font-size: 13.5px; }

/* ---------- Story ---------- */
.story { background: var(--dark); color: #fff; padding: 110px 0 120px; }
.story h2 { color: #fff; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 56px; }
.timeline::before { content: ""; position: absolute; left: 34px; right: 34px; top: 34px; height: 1px; background: var(--line-dark); }
.timeline li { position: relative; }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--head); font-weight: 800; font-size: 18px; box-shadow: 0 0 0 10px var(--dark); margin-bottom: 22px; }
.timeline h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.timeline p { font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .62); max-width: 240px; }

/* ---------- Why ---------- */
.why { background: var(--light); padding: 110px 0; }
.why-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.why-media { position: relative; }
.why-media img { width: 100%; aspect-ratio: 455 / 420; object-fit: cover; border-radius: var(--radius); }
.why-badge { position: absolute; right: -22px; bottom: 28px; background: var(--red); color: #fff; padding: 16px 22px 14px; border-radius: 12px; box-shadow: 0 16px 36px rgba(201, 36, 43, .35); display: flex; flex-direction: column; }
.why-badge strong { font-family: var(--head); font-size: 24px; font-weight: 800; line-height: 1.1; }
.why-badge span { font-size: 12px; color: rgba(255, 255, 255, .82); margin-top: 4px; }
.why-copy { max-width: 500px; }
.why-copy > p { font-size: 15.5px; margin: 18px 0 26px; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.check { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; }
.check.big { width: 56px; height: 56px; font-size: 26px; margin: 0 auto 18px; }

/* ---------- CTA ---------- */
.cta-wrap { background: var(--light); padding: 0 0 0; }
.cta-band { position: relative; overflow: hidden; border-radius: 20px; padding: 64px 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #fff; background: url("https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat; background-color: var(--dark); box-shadow: var(--shadow); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 17, 22, .9) 0%, rgba(14, 17, 22, .72) 50%, rgba(201, 36, 43, .78) 100%); }
.cta-copy, .cta-actions { position: relative; }
.cta-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.75rem); max-width: 520px; margin-bottom: 12px; }
.cta-copy p { font-size: 15px; color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact { background: var(--light); padding: 90px 0 100px; }
.contact-inner { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 36px; align-items: start; }
.contact-copy h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 26px; }
.contact-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-ico { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--red); color: #fff; font-size: 17px; }
.contact-text { display: flex; flex-direction: column; }
.contact-text small { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.contact-text strong { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.contact-map { width: 100%; min-height: 540px; height: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e8e4dd; box-shadow: var(--shadow-sm); }
.contact-map .leaflet-tile-pane { filter: saturate(.82) contrast(.97); }
.map-pin { background: transparent; border: 0; }
.map-pin svg { width: 36px; height: 44px; filter: drop-shadow(0 6px 10px rgba(14, 17, 22, .35)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 14px; line-height: 1.65; margin: 18px 0 22px; max-width: 320px; }
.social { display: flex; gap: 10px; }
.social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; font-size: 14px; color: #fff; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--red); border-color: var(--red); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col h4 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-hi); margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14, 17, 22, .72); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; z-index: 1; width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; margin: 20px auto; padding: 36px; background: #fff; border-radius: 18px; box-shadow: 0 40px 100px rgba(0, 0, 0, .4); animation: pop .25s ease-out; top: 50%; transform: translateY(-50%); }
@keyframes pop { from { opacity: 0; transform: translateY(-50%) scale(.97); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.modal-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--light); color: var(--ink); font-size: 22px; line-height: 1; }
.modal-close:hover { background: var(--red-soft); }
.reserve-form h3 { font-size: 30px; margin-bottom: 8px; }
.form-intro { font-size: 14px; margin-bottom: 22px; }
.form-intro a { color: var(--red); font-weight: 600; }
.reserve-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.reserve-form input, .reserve-form select, .reserve-form textarea { font: inherit; font-size: 14px; font-weight: 400; color: var(--ink); padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.reserve-form input:focus, .reserve-form select:focus, .reserve-form textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.reserve-form input.invalid, .reserve-form select.invalid { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.reserve-success { text-align: center; padding: 16px 0 6px; }
.reserve-success h3 { font-size: 28px; margin-bottom: 8px; }
.reserve-success p { font-size: 14.5px; margin-bottom: 22px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .timeline::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: 18px; }
}
@media (max-width: 960px) {
  .main-nav { position: fixed; inset: 0 0 auto 0; padding: 96px 24px 28px; flex-direction: column; align-items: flex-start; gap: 18px; background: var(--dark); transform: translateY(-110%); transition: transform .3s ease; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); z-index: -1; }
  .main-nav.open { transform: none; }
  .main-nav > a:not(.btn) { font-size: 18px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: flex; }
  .site-header.menu-open { background: var(--dark); }
  .hero { padding: 130px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .book-card { justify-self: stretch; max-width: 460px; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 12px; }
  .service-grid, .mini-grid { grid-template-columns: 1fr 1fr; }
  .why-inner { grid-template-columns: 1fr; gap: 56px; }
  .why-badge { right: 16px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 48px 36px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-map { min-height: 400px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-lead { font-size: 15.5px; }
  .services, .story, .why { padding: 80px 0; }
  .service-grid, .mini-grid, .footer-grid, .timeline, .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div { border-left: 0; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
  .stats-grid > div:last-child { border-bottom: 0; }
  .cta-band { padding: 40px 24px; }
  .cta-actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .modal-dialog { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; }
}

/* Keep Leaflet z-indexes inside the map so the sticky header and modal always paint above it */
.leaflet-container { isolation: isolate; z-index: 0; }
