/* =========================================================
   Mobil Centar Zadar , shared stylesheet
   Palette sampled from logo.png:
   slate #263235 / #2e3f43, brand blue #1562a4, amber CTA
   ========================================================= */

:root {
  --slate-900: #1b2426;
  --slate-800: #263235;
  --slate-700: #2e3f43;
  --slate-600: #3a4d52;
  --blue:      #1562a4;
  --blue-700:  #114f85;
  --blue-300:  #4d96d6;
  --amber:     #e89b1c;
  --amber-600: #cf8512;
  --paper:     #f4f6f7;
  --card:      #ffffff;
  --ink:       #1c2628;
  --muted:     #5d6f74;
  --line:      #dde4e6;
  --ok:        #2f8f5b;

  --wrap: 1280px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 35, 40, .10);
  --shadow-sm: 0 2px 8px rgba(20, 35, 40, .08);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--slate-800);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

/* ---------- Top utility bar ---------- */
.topbar { background: var(--slate-900); color: #cfd9db; font-size: 13.5px; }
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  align-items: center; justify-content: center;
  padding-block: 8px; text-align: center;
}
.topbar span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar a { color: #fff; }
.topbar svg { width: 15px; height: 15px; fill: var(--amber); flex: none; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--slate-700), var(--slate-800) 55%, var(--slate-900));
  border-bottom: 3px solid var(--blue);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 18px;
}
.brand { display: inline-block; }
.brand img { width: clamp(260px, 46vw, 440px); }
.brand h2 {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.header-cta { display: inline-flex; align-items: center; gap: 9px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--b); color: #fff; border: 0; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--amber { --b: var(--amber); color: #2a1d04; }
.btn--amber:hover { background: var(--amber-600); color: #2a1d04; }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Navigation ---------- */
.nav { background: var(--slate-800); position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.nav .wrap { display: flex; align-items: center; justify-content: flex-start; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav a {
  display: flex; align-items: center; gap: 7px;
  color: #d6dee0; font-family: var(--font-display); font-weight: 600;
  font-size: 16px; letter-spacing: 0;
  padding: 15px 13px; border-bottom: 3px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); text-decoration: none; }
.nav li.current a { color: #fff; border-bottom-color: var(--amber); }
.nav li:first-child a { padding-left: 0; }
.nav svg { width: 18px; height: 18px; fill: currentColor; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 14px 16px; color: #fff; }
.nav-toggle svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(165deg, var(--slate-800), var(--slate-900));
  color: #eef3f4; text-align: center; padding: 56px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero h1 { color: #fff; font-size: clamp(28px, 5vw, 46px); font-weight: 800; }
.hero .lead { color: var(--blue-300); font-family: var(--font-display); font-weight: 600;
  font-size: clamp(16px, 2.6vw, 22px); margin: 0 0 26px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px;
  color: var(--amber); margin-bottom: 14px;
}

/* ---------- Page header (interior) ---------- */
.page-head { background: linear-gradient(165deg, var(--slate-700), var(--slate-900)); color: #fff; padding: 38px 0; }
.page-head h1 { color: #fff; font-size: clamp(24px, 4vw, 36px); }
.breadcrumb { font-size: 13.5px; color: #aebbbe; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: #cfe0ea; }
.breadcrumb svg { width: 13px; height: 13px; fill: var(--amber); }

/* ---------- Generic sections ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section .wrap > h2 { font-size: clamp(22px, 3.4vw, 32px); }

.intro-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: center; }
.intro-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.lead-tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  color: var(--blue); background: #e7f0f8; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; margin-bottom: 14px;
}

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); }
.card .ico { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  margin-bottom: 14px; background: linear-gradient(160deg, var(--blue), var(--blue-700)); }
.card .ico svg { width: 24px; height: 24px; fill: #fff; }
.card h3 { font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Guarantee band ---------- */
.band { background: var(--slate-800); color: #eef3f4; border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow); border-left: 5px solid var(--amber); }
.band h3 { color: #fff; font-size: 21px; }
.band p { color: #c6d2d4; margin: .4em 0; }
.band .row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Pricing table ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th { background: var(--slate-800); color: #fff; text-align: left;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .03em;
  padding: 14px 18px; text-transform: uppercase; }
.price-table td { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 15.5px; }
.price-table tr:nth-child(even) td { background: #fafcfc; }
.price-table tr:hover td { background: #eef5fb; }
.price-table .device { font-weight: 600; color: var(--slate-800); }
.price-table .price { color: var(--blue); font-weight: 600; white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #000; }
.gallery img { aspect-ratio: 4/3; width: 100%; object-fit: cover;
  transition: transform .35s ease, opacity .2s ease; }
.gallery a:hover img { transform: scale(1.06); opacity: .92; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: stretch; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.info-card h3 { font-size: 17px; margin-bottom: 12px; }
.info-line { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; }
.info-line svg { width: 20px; height: 20px; fill: var(--blue); flex: none; margin-top: 2px; }
.info-line a { font-weight: 600; }

.enquiry {
  background: var(--slate-800); color: #eef3f4; border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow); border-top: 4px solid var(--amber);
  display: flex; flex-direction: column; justify-content: center;
}
.enquiry h3 { color: #fff; font-size: 22px; }
.enquiry p { color: #c6d2d4; margin: 0 0 22px; }
.enquiry .btn { align-self: flex-start; }
.enquiry .or { color: #93a3a7; font-size: 14px; margin-top: 20px; }
.enquiry .or a { color: #fff; }

/* ---------- Map ---------- */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); line-height: 0; }
.map-frame iframe { width: 100%; height: 460px; border: 0; }
blockquote.quote { border-left: 4px solid var(--amber); background: #fff; margin: 0 0 26px;
  padding: 16px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--muted); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: #aab7ba; margin-top: 10px; border-top: 3px solid var(--blue); }
.site-footer .wrap { padding-block: 30px; text-align: center; }
.site-footer .fcontact { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  align-items: center; font-size: 14px; color: #c5d1d3; margin-bottom: 14px; }
.site-footer .fcontact span { display: inline-flex; align-items: center; gap: 7px; }
.site-footer .fcontact svg { width: 15px; height: 15px; fill: var(--amber); }
.site-footer a { color: #fff; }
.site-footer .copy { font-size: 13px; color: #8a999c; }

/* ---------- Responsive ---------- */
/* Tablet (landscape) */
@media (max-width: 1024px) {
  .wrap { padding-inline: 24px; }
  .section { padding: 48px 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { gap: 28px; }
}
/* Small tablet / large phone */
@media (max-width: 860px) {
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .map-frame iframe { height: 380px; }
}
/* Phone */
/* Nav collapses to hamburger early enough that the larger labels never wrap */
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav .wrap { flex-wrap: wrap; }
  .nav ul { flex-direction: column; width: 100%; max-height: 0; overflow: hidden;
    transition: max-height .35s ease; justify-content: flex-start; }
  .nav.open ul { max-height: 640px; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.07); border-left: 3px solid transparent; }
  .nav li.current a { border-bottom-color: rgba(255,255,255,.07); border-left-color: var(--amber); }
}
@media (max-width: 768px) {
  .header-cta { display: none; }
  .site-header .wrap { justify-content: center; }
  .topbar { font-size: 12.5px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 40px 0; }
  .band { padding: 26px 22px; }
  .band .row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .band .row .btn { width: 100%; justify-content: center; }

  /* Price table -> stacked cards */
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table thead { display: none; }
  .price-table tr { border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 12px; background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; }
  .price-table tr:hover td, .price-table tr:nth-child(even) td { background: transparent; }
  .price-table td { border: 0; border-top: 1px solid var(--line); padding: 12px 16px;
    display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: right; }
  .price-table td::before { content: attr(data-label); font-family: var(--font-display);
    font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: 11.5px;
    letter-spacing: .04em; text-align: left; flex: none; }
  .price-table td:first-child { border-top: 0; background: #f6f9fa; }
}
/* Small phone */
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 46px; }
  .page-head { padding: 30px 0; }
  .brand img { width: clamp(210px, 64vw, 320px); }
  .topbar .wrap { gap: 4px 16px; }
}

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgba(15, 22, 24, .93); padding: 24px; overflow: auto;
}
.lb.is-open { display: flex; }
.lb__stage { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lb__img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  margin: 0 auto; border-radius: 8px; box-shadow: 0 12px 44px rgba(0, 0, 0, .55);
}
.lb__cap { color: #cdd8da; font-family: var(--font-body); font-size: 14px; margin-top: 12px; }
.lb__btn {
  position: fixed; background: rgba(255, 255, 255, .12); border: 0; color: #fff;
  cursor: pointer; width: 52px; height: 52px; border-radius: 50%;
  font-size: 24px; line-height: 1; display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.lb__btn:hover { background: var(--amber); color: #2a1d04; }
.lb__close { top: 18px; right: 18px; }
.lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb { padding: 12px; }
  .lb__btn { width: 44px; height: 44px; font-size: 20px; }
  .lb__prev { left: 8px; } .lb__next { right: 8px; }
  .lb__close { top: 10px; right: 10px; }
}

/* ---------- Inline content figures (images within article text) ---------- */
.figure { margin: 28px 0; }
.figure img {
  width: 100%; max-height: 460px; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.figcap { color: var(--muted); font-size: 13.5px; font-style: italic; margin: 9px 2px 0; }
.figrow { display: grid; gap: 16px; margin: 28px 0; }
.figrow.cols-2 { grid-template-columns: repeat(2, 1fr); }
.figrow.cols-3 { grid-template-columns: repeat(3, 1fr); }
.figrow figure { margin: 0; }
.figrow img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) { .figrow.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .figrow.cols-2, .figrow.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Romobili intro: two lead photos top-right, text wraps left ---------- */
.romobili-intro::after { content: ""; display: block; clear: both; }
.intro-media {
  float: right; width: 52%; max-width: 560px; margin: 4px 0 18px 30px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.intro-media img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.romobili-intro p { margin: 0 0 14px; }
@media (max-width: 760px) {
  .intro-media { float: none; width: 100%; max-width: none; margin: 0 0 22px; }
}
@media (max-width: 460px) {
  .intro-media { grid-template-columns: 1fr; }
  .intro-media img { aspect-ratio: 4 / 3; }
}

/* ---------- FAQ accordion (AIO/GEO) ---------- */
.section--faq .wrap { max-width: 920px; }
.section--faq h2 { margin-bottom: 22px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--slate-800);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue);
  font-weight: 400; flex: none; transition: transform .2s ease; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--blue); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { margin: 0; color: var(--muted); }
