/* ==========================================================================
   MM Clean Solutions — Rijeka
   Vlastiti CSS, mobile-first, bez vanjskih biblioteka
   ========================================================================== */

:root {
  color-scheme: dark;
  /* tamna paleta — duboka noćna plava s medi i zlatnim akcentima */
  --navy: #040d13;
  --navy-2: #081a24;
  --navy-3: #9fd0dd;
  --gold: #c9a24a;
  --gold-soft: #e8d29b;
  --aqua: #5fd0c3;
  --aqua-soft: #0a2029;
  --paper: #061520;
  --white: #0b1f2a;
  --surface: linear-gradient(180deg, #0f2632 0%, #0a1c26 100%);
  --ink: #e9f1f5;
  --muted: #9ab0ba;
  --line: rgba(255, 255, 255, .1);
  --shadow-s: 0 2px 12px rgba(0, 0, 0, .38);
  --shadow-m: 0 18px 44px rgba(0, 0, 0, .52);
  --radius: 18px;
  --radius-s: 12px;
  --header-h: 68px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(95, 208, 195, .07), transparent 62%),
    radial-gradient(900px 520px at -5% 18%, rgba(201, 162, 74, .06), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
}

h2 { font-size: clamp(1.65rem, 5.2vw, 2.6rem); }
h3 { font-size: 1.14rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow--dark { color: var(--gold-soft); }

.lead { font-size: 1.06rem; color: var(--muted); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85em 1.4em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #23180a; box-shadow: 0 8px 24px rgba(201, 162, 74, .32); }
.btn--gold:hover { background: var(--gold-soft); box-shadow: 0 12px 30px rgba(201, 162, 74, .42); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--dark { background: #eef5f7; color: #07171f; box-shadow: 0 8px 24px rgba(0, 0, 0, .38); }
.btn--dark:hover { background: #ffffff; }
.btn--outline { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); color: var(--ink); }
.btn--outline:hover { border-color: var(--gold); background: rgba(255, 255, 255, .08); }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(4, 13, 19, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease;
}
.header.is-scrolled { background: rgba(4, 13, 19, .97); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.brand__mark {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--gold), #a8801f);
  color: #1b1305;
  display: grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: -.03em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-size: .96rem; }
.brand__text span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }

/* službeni logo u zaglavlju */
.brand__logo {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  object-fit: contain;
  padding: 2px;
  background: #0c0d0e;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

.nav { display: none; }
.nav a {
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  font-weight: 600;
  padding: .4em .1em;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav a:hover { color: #fff; border-color: var(--gold); }

.header__side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; overflow: hidden; }
.lang a, .lang span {
  padding: .32em .72em;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .75);
}
.lang .is-active { background: var(--gold); color: #23180a; }
.lang a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.header__call { display: none; }

.burger {
  margin-left: 4px;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: background .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .22s ease, top .22s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 12px 20px 22px;
  display: grid;
  gap: 2px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 80;
  box-shadow: var(--shadow-m);
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-nav a {
  color: #fff;
  font-weight: 600;
  padding: .85em .2em;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.mobile-nav .btn { margin-top: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 42%; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 10, 15, .94) 0%, rgba(3, 10, 15, .78) 42%, rgba(3, 10, 15, .94) 100%),
    radial-gradient(120% 80% at 85% 10%, rgba(95, 208, 195, .24), transparent 60%),
    radial-gradient(90% 70% at 5% 95%, rgba(201, 162, 74, .16), transparent 62%);
}
.hero__sheen {
  position: absolute;
  top: 0; left: -40%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .1), transparent);
  transform: skewX(-14deg);
  animation: sheen 7s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes sheen {
  0%, 62% { left: -45%; }
  100% { left: 120%; }
}
.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 20px 46px;
}
.hero h1 {
  font-size: clamp(2.1rem, 9.2vw, 4rem);
  margin-bottom: .35em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-soft);
  display: block;
}
.hero__sub {
  color: rgba(255, 255, 255, .86);
  font-size: 1.04rem;
  max-width: 54ch;
  margin-bottom: 1.6em;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__strip {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 20px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.hero__strip div b {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: .25em;
  font-weight: 700;
}
.hero__strip div span { font-size: .95rem; color: rgba(255, 255, 255, .9); }

/* ---------- sections ---------- */
.section { padding: 62px 0; }
.section--tight { padding: 46px 0; }
.section--white { background: var(--white); }
.section--navy {
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(95, 208, 195, .1), transparent 58%),
    radial-gradient(80% 100% at 0% 100%, rgba(201, 162, 74, .1), transparent 60%),
    var(--navy);
  color: #fff;
}
.section--navy .lead { color: rgba(255, 255, 255, .78); }
.section--aqua { background: linear-gradient(180deg, var(--aqua-soft), var(--paper)); }
.section__head { max-width: 62ch; margin-bottom: 34px; }

/* ---------- services ---------- */
.services { display: grid; gap: 16px; }
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-s);
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--aqua));
  opacity: 0;
  transition: opacity .22s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: rgba(201, 162, 74, .45); }
.service:hover::before { opacity: 1; }
.service__num {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--gold);
}
.service h3 { margin: 8px 0 .45em; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }
.service__list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.service__list li {
  position: relative;
  padding-left: 24px;
  font-size: .9rem;
  color: var(--muted);
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .48em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--aqua);
  border-bottom: 2px solid var(--aqua);
  transform: rotate(-45deg);
}

/* ---------- split (prostori / o nama) ---------- */
.split { display: grid; gap: 30px; align-items: center; }
.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
}
.split__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.split__media--stack img:first-child { border-radius: var(--radius) var(--radius) var(--radius) 6px; }
.split__media--stack img:last-child { border-radius: var(--radius) 6px var(--radius) var(--radius); }
.badge {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(6, 18, 25, .82);
  color: var(--gold-soft);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: .5em 1em;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: var(--shadow-s);
}

/* službeni logo — istaknuta ploča */
.logo-plate {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(201, 162, 74, .14), transparent 70%),
    linear-gradient(160deg, #0f2733 0%, #08161e 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
}
.logo-plate img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .55);
}

/* ---------- process ---------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  position: relative;
  padding: 0 0 26px 54px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  margin-left: 17px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: -18px; top: -4px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  border: 1.5px solid var(--gold);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: rgba(255, 255, 255, .76); font-size: .95rem; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-s);
  overflow: hidden;
  position: relative;
  display: block;
  box-shadow: var(--shadow-s);
}
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery button:hover img { transform: scale(1.06); }
.gallery button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-wide img { aspect-ratio: 16 / 10; }
.gallery .g-logo img {
  object-fit: contain;
  background: #0c0d0e;
  padding: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 18, 24, .94);
  display: none;
  place-items: center;
  padding: 22px;
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-m);
}
.lightbox figcaption { color: rgba(255, 255, 255, .82); text-align: center; margin-top: 14px; font-size: .9rem; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- about ---------- */
.about-facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 22px;
}
.about-facts div { background: var(--white); padding: 14px 18px; }
.about-facts dt {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .25em;
}
.about-facts dd { margin: 0; font-weight: 600; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 24px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-s);
}
.contact-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: .18em; }
.contact-list b { display: block; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span { font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--navy-3); text-decoration: underline; }

.form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: .8em .9em;
  border: 1.5px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-s);
  background: #08181f;
  color: var(--ink);
  width: 100%;
}
.field select option { background: #0b1f28; color: var(--ink); }
.field ::placeholder { color: rgba(233, 241, 245, .42); }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--aqua);
  background: #0b1f28;
  box-shadow: 0 0 0 4px rgba(95, 208, 195, .18);
}
.form__note { font-size: .8rem; color: var(--muted); margin: 0; }
.map {
  border: 0;
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  background: #0a1a22;
  filter: grayscale(.4) brightness(.92) contrast(1.05);
}

/* ---------- footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .74);
  padding: 40px 0 28px;
  font-size: .9rem;
}
.footer__grid { display: grid; gap: 22px; }
.footer b { color: #fff; display: block; margin-bottom: .4em; }
.footer a:hover { color: var(--gold-soft); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 26px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  font-size: .82rem;
}
.footer__bottom span { color: rgba(255, 255, 255, .55); }

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

/* ---------- desktop ---------- */
@media (min-width: 620px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .hero__strip { grid-template-columns: repeat(3, 1fr); }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .contact-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 30px; }
  .step:nth-child(odd) { padding-right: 20px; }
  .step:nth-last-child(2) { border-left-color: transparent; padding-bottom: 0; }
}

@media (min-width: 900px) {
  body { font-size: 17px; }
  :root { --header-h: 76px; }
  .nav { display: flex; gap: 26px; margin-left: 22px; }
  .burger { display: none; }
  .header__call { display: inline-flex; }
  .mobile-nav { display: none; }
  .section { padding: 92px 0; }
  .section--tight { padding: 62px 0; }
  .hero__inner { padding: 108px 20px 76px; }
  .hero__sub { font-size: 1.12rem; }
  .services { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .services .service:nth-child(3) { grid-column: span 2; }
  .services .service:nth-child(3) .service__list { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.05fr .95fr; gap: 54px; }
  .split--flip .split__media { order: 2; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 22px; }
  .step { padding-right: 10px; }
  .step:nth-child(3) { border-left-color: transparent; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
}
