/* SELP - radionica. Svijetla podloga kao bijela garaža, crvena iz logotipa, jedan font (Archivo). */
:root {
  --ink: #131313;
  --muted: #5c5a56;
  --paper: #ebe8e0;
  --soft: #e0dcd2;
  --line: #c8c4b8;
  --card: #f5f3ed;
  --red: #c3111a;
  --red-dark: #9a0d14;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); overflow-wrap: break-word; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
h1 { font-size: clamp(2.7rem, 7.4vw, 5.4rem); font-style: italic; line-height: .94; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
/* uski zasloni: jednorijecni naslovi (npr. Autoelektronika) moraju stati u stupac; od 390 px isto kao odobreni izgled */
@media (max-width: 440px) { h1 { font-size: clamp(2rem, 11vw, 2.7rem); } }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 30; }
.skip:focus { top: .5rem; }

/* gornja traka i zaglavlje */
.topbar { background: var(--ink); color: #ddd; font-size: .8125rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1.5rem; padding: .5rem 0; }
.topbar p { margin: 0; }
.lang ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.lang a { color: #bbb; text-decoration: none; }
.lang a:hover { color: #fff; }
.lang span { color: #fff; border-bottom: 2px solid var(--red); }
.mainbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem; padding: 1rem 0; }
.brand { text-decoration: none; line-height: 1; display: flex; align-items: baseline; gap: .55rem; margin-right: auto; }
.brand:hover { color: inherit; }
.brand-name { font-size: 2.2rem; font-weight: 800; font-style: italic; color: var(--red); letter-spacing: -.03em; }
.brand-sub { font-size: 1rem; font-weight: 700; font-style: italic; }
.brand-sub b { color: var(--red); font-weight: 800; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.nav a { display: inline-block; padding: .4rem 0; font-weight: 600; font-size: .98rem; text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.header-tel { font-weight: 800; text-decoration: none; background: var(--red); color: #fff; padding: .7rem 1.1rem; white-space: nowrap; }
.header-tel:hover { background: var(--red-dark); color: #fff; }
.site-header { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .mainbar .wrap { gap: .5rem 1rem; }
  .brand-name { font-size: 1.8rem; }
  .brand-sub { display: none; }
  .nav { order: 3; width: 100%; }
  .header-tel { padding: .55rem .8rem; font-size: .92rem; }
}

/* gumbi */
.btn { display: inline-block; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; padding: 1rem 1.7rem; border: 2px solid var(--red); }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); }
.btn-white { background: #fff; color: var(--red); border-color: #fff; }
.btn-white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* sekcije */
main > section { padding: 4.5rem 0; }
main > section.soft { background: var(--soft); }
.kicker { font-weight: 700; color: var(--red); margin: 0 0 .8rem; }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 38ch; }
.split { display: grid; gap: 2rem 4rem; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split.even { grid-template-columns: 1fr 1fr; } .split.text-wide { grid-template-columns: 7fr 5fr; } }

/* naslovnica: početak */
.hero { padding: 3rem 0 4rem; }
.hero .wrap { display: grid; gap: 2.2rem; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: 1.8rem 0 0; }
.hero .actions a:not(.btn) { font-weight: 700; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
main > section.hero { padding: 3rem 0 4rem; }

/* slike */
figure { margin: 0; }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.photo img { width: 100%; }
.photos { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 700px) { .photos { grid-template-columns: repeat(3, 1fr); } }
.figure-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin: 1.6rem 0; }
.figure-grid img { width: 100%; }

/* način dostave */
.ways { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.ways li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.ways strong { display: block; font-size: 1.2rem; }

/* tablica kvarova */
.fault-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 0; border-top: 2px solid var(--ink); }
.fault-table th { text-align: left; font-size: .875rem; color: var(--muted); font-weight: 600; padding: .8rem 1rem .6rem 0; border-bottom: 1px solid var(--ink); }
.fault-table td { padding: .9rem 1rem .9rem 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.fault-table td:first-child { font-weight: 700; }
@media (max-width: 700px) {
  .fault-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fault-table tr, .fault-table td { display: block; }
  .fault-table tr { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .fault-table td { border: 0; padding: .1rem 0; }
  .fault-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: .875rem; }
}

/* napomena */
.note { background: var(--card); border-left: 5px solid var(--red); padding: 1.3rem 1.5rem; margin: 2rem 0 0; }
.note h3 { margin-bottom: .6rem; }
.note ul { margin: 0 0 1em; padding-left: 1.2rem; }
.note p:last-child { margin-bottom: 0; }

/* pitanja i odgovori */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.4rem; color: var(--red); font-weight: 800; }
.faq details[open] summary::before { content: "-"; }

/* crveni pojas s kontaktom */
.contact-band { background: var(--red); color: #fff; }
.contact-band a:hover { color: #fff; }
.contact-band .wrap { display: grid; gap: 2rem 4rem; }
.contact-band .tel { display: block; font-size: clamp(2rem, 6.6vw, 4rem); font-weight: 800; font-style: italic; letter-spacing: -.03em; line-height: 1; text-decoration: none; }
.contact-band p { margin: 0 0 .5rem; }
@media (min-width: 900px) { .contact-band .wrap { grid-template-columns: auto 1fr; align-items: center; } }
.video { max-width: 22rem; margin-top: 2rem; }

/* podnožje */
.site-footer { background: var(--ink); color: #bdbbb6; font-size: .875rem; padding: 2.5rem 0 5.5rem; }
.site-footer .wrap { display: grid; gap: .2rem; }
.site-footer p { margin: 0; }
.site-footer .company { color: #fff; font-weight: 700; }
.site-footer a { color: #fff; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* traka za poziv na mobitelu */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--red); }
  .callbar a { color: #fff; text-align: center; text-decoration: none; padding: 1rem .5rem; font-weight: 700; }
  .callbar a + a { border-left: 1px solid rgba(255, 255, 255, .45); background: var(--ink); }
}
@media print { .callbar, .topbar, .nav { display: none; } }
.after { margin-top: 2.6rem; }
.figure-grid.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), max-content)); align-items: end; align-content: start; }
.figure-grid.small.stack { grid-template-columns: max-content; justify-content: start; }
.figure-grid.small img { width: auto; max-width: 100%; }
.note .figure-grid.small { margin-top: 0; }
.topic { padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.topic h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.figure-grid:not(.small) img { aspect-ratio: 3 / 2; object-fit: cover; }
.faq details > p:last-child { margin-bottom: 0; }
.faq p { margin-top: .8rem; }
.photo.wide { max-width: 100%; }

/* forma: dijagnostički karton */
.karton-form { background: var(--card); border-top: 5px solid var(--red); padding: 1.8rem; }
.karton-form h2 { font-size: 1.6rem; }
.field { margin-bottom: 1.15rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; padding: 0; }
.karton-form input[type="text"], .karton-form input[type="email"], .karton-form input[type="tel"], .karton-form textarea {
  width: 100%; font: inherit; padding: .8rem .9rem; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; }
.karton-form fieldset { border: 0; padding: 0; margin: 0 0 1.15rem; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.opt { display: inline-flex; align-items: center; gap: .45rem; }
.opt label, .consent label { display: inline; font-weight: 400; margin: 0; }
.consent { display: flex; gap: .6rem; align-items: flex-start; }
.consent input { margin-top: .35rem; }
.karton-form input[type="radio"], .karton-form input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--red); }
.karton-form button.btn { font: inherit; font-weight: 700; cursor: pointer; margin-top: .4rem; }
.karton-form button.btn:disabled { opacity: .6; cursor: default; }
.form-note { font-size: .875rem; color: var(--muted); margin: .9rem 0 0; }
.contact-data { margin: 0 0 1.6rem; }

/* galerija */
.album-links { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-weight: 700; }
.album { margin-top: 2.6rem; }
.album ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.album img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.album a { display: block; }
.album a:hover img { opacity: .85; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { display: block; max-width: 94vw; max-height: 80vh; margin: 0 auto; background: #000; }
.lb-bar { display: flex; justify-content: center; gap: 1rem; margin-top: .8rem; }
.lb-bar button { font: inherit; font-size: 1.6rem; line-height: 1; min-width: 3.2rem; padding: .5rem 1rem; background: #fff; color: var(--ink); border: 0; cursor: pointer; }
.lb-bar button:hover { background: var(--red); color: #fff; }
