/* ==========================================================================
   Svidea - praonica rublja
   Paleta: tamna "noćna" plava iz originalnog brenda + tirkizna boja perilica
   ========================================================================== */

:root {
  --color-ink: #08171e;          /* tamna pozadina (header, kartice) */
  --color-ink-2: #0f2530;
  --color-ink-3: #16333f;
  --color-teal: #1d9a94;         /* boja perilica s fotografije */
  --color-teal-bright: #4fd1c5;
  --color-foam: #eef6f5;         /* svijetla pozadina sekcija */
  --color-foam-2: #dcebea;
  --color-steel: #dedede;        /* originalni svijetli tekst */
  --color-text: #1b2a30;
  --color-muted: #5b6d73;
  --color-line: rgba(8, 23, 30, 0.12);
  --color-line-light: rgba(222, 222, 222, 0.14);

  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Sen", "Trebuchet MS", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
  --container: 1140px;
  --shadow: 0 18px 40px -18px rgba(8, 23, 30, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-foam);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-teal-bright);
  color: var(--color-ink);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--color-teal-bright);
  outline-offset: 3px;
}

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

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-teal);
  color: #fff;
}
.btn-primary:hover { background: var(--color-teal-bright); color: var(--color-ink); }
.btn-ghost {
  border-color: rgba(222, 222, 222, .45);
  color: var(--color-steel);
}
.btn-ghost:hover { border-color: var(--color-steel); background: rgba(222, 222, 222, .08); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-teal-bright);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-shadow: inset 0 -7px 0 -2px currentColor;
  opacity: .9;
}
.eyebrow-dark { color: var(--color-teal); }

/* Okrugla ikona - motiv vrata perilice */
.ring-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--color-teal);
  background: #fff;
  border: 2px solid var(--color-foam-2);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px var(--color-foam-2);
}
.ring-icon .icon { width: 22px; height: 22px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--color-ink);
  border-bottom: 1px solid var(--color-line-light);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img { width: 128px; }

.nav-toggle {
  position: relative;
  z-index: 60;
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--color-steel);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  padding: 12px 16px 24px;
  background: var(--color-ink);
  border-bottom: 1px solid var(--color-line-light);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.site-nav.is-open { opacity: 1; transform: none; visibility: visible; }

.site-nav ul { display: grid; }
.site-nav ul a {
  display: block;
  padding: 14px 4px;
  color: var(--color-steel);
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--color-line-light);
  transition: color .2s;
}
.site-nav ul a:hover,
.site-nav ul a.is-active { color: var(--color-teal-bright); }
.nav-cta { margin-top: 20px; width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-steel);
  background:
    linear-gradient(180deg, rgba(8, 23, 30, .72) 0%, rgba(8, 23, 30, .82) 60%, var(--color-ink) 100%),
    url("../images/hero-praonica-960.jpg") center / cover no-repeat;
  background-color: var(--color-ink);
}

.hero-text { max-width: 680px; }

.hero-inner {
  display: grid;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 7.2vw, 3.6rem);
  line-height: 1.12;
  color: #fff;
  letter-spacing: .005em;
}

.hero-lead {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 1.05rem;
  color: rgba(222, 222, 222, .88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: .9rem;
  color: var(--color-teal-bright);
}

/* ==========================================================================
   Sekcije - zajedničko
   ========================================================================== */
.section { padding: 72px 0; }

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 5.5vw, 2.8rem);
}

.section-head { margin-bottom: 36px; }

/* ---------- O nama ---------- */
.about { background: var(--color-foam); }
.about-grid { display: grid; gap: 40px; }
.about-text h2 { color: var(--color-ink); margin-bottom: 20px; }
.about-text p + p { margin-top: 14px; }
.about-text p { color: var(--color-muted); }

.about-points { display: grid; gap: 14px; }
.about-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}
.about-points h3 {
  font-size: 1.05rem;
  color: var(--color-ink);
  margin-bottom: 4px;
}
.about-points p { font-size: .95rem; color: var(--color-muted); }

/* ---------- Usluge ---------- */
.services {
  background: var(--color-ink);
  color: var(--color-steel);
}
.services h2 { color: #fff; }

.service-grid { display: grid; gap: 18px; }

.service-card {
  position: relative;
  padding: 32px 24px 30px;
  background: linear-gradient(180deg, var(--color-ink-2), var(--color-ink));
  border: 1px solid var(--color-line-light);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 209, 197, .45);
}
.service-num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(222, 222, 222, .12);
}
.ring-icon-lg {
  width: 72px; height: 72px;
  color: var(--color-teal-bright);
  background: var(--color-ink-3);
  border-color: rgba(222, 222, 222, .3);
  box-shadow: inset 0 0 0 6px var(--color-ink-3), inset 0 0 0 7px rgba(222, 222, 222, .18);
}
.ring-icon-lg .icon { width: 30px; height: 30px; }
.service-card h3 {
  margin: 22px 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  color: #fff;
}
.service-card p { color: rgba(222, 222, 222, .78); }

/* ---------- Cjenik ---------- */
.pricing { background: var(--color-foam); }
.pricing h2 { color: var(--color-ink); }

.section-head-row { display: grid; gap: 20px; }

.price-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 50px;
  background: #fff;
  border: 1.5px solid var(--color-foam-2);
  border-radius: 999px;
  color: var(--color-muted);
  transition: border-color .2s;
}
.price-search:focus-within { border-color: var(--color-teal); }
.price-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--color-text);
  padding: 12px 0;
}

.price-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--color-muted);
}
.price-empty a { color: var(--color-teal); font-weight: 700; }

/* Mobilno: svaki redak je kartica, trenutna i dodatna cijena stoje jedna uz drugu */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.price-table thead { display: none; }
.price-table tbody,
.price-table tr { display: block; }
.price-table tr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}
.price-table td {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}
.price-table td.item {
  grid-column: 1;
  font-weight: 700;
  letter-spacing: .02em;
}
.price-table td.unit {
  grid-column: 2;
  justify-self: end;
  align-self: start;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-teal);
  background: var(--color-foam);
  border-radius: 999px;
}
.price-table td[data-label] {
  padding-top: 10px;
  border-top: 1px solid var(--color-line);
}
.price-table td[data-label]::before {
  content: attr(data-label);
  display: block;
  font-size: .72rem;
  line-height: 1.3;
  color: var(--color-muted);
}
.price-table td.na { color: var(--color-muted); }
.price-table tr[hidden] { display: none !important; }

/* Tablet i desktop: klasična tablica s grupiranim zaglavljima */
@media (min-width: 760px) {
  .table-wrap {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: clip;
    box-shadow: var(--shadow);
  }
  .price-table { display: table; font-size: .95rem; }
  .price-table thead { display: table-header-group; }
  .price-table tbody { display: table-row-group; }
  .price-table tr {
    display: table-row;
    padding: 0; margin: 0;
    background: none; border: 0; border-radius: 0;
  }
  .price-table th,
  .price-table td { display: table-cell; }
  .price-table td[data-label]::before { content: none; }

  .price-table thead th {
    padding: 10px 14px;
    background: var(--color-ink);
    color: var(--color-steel);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: right;
    line-height: 1.3;
    vertical-align: bottom;
  }
  .price-table thead tr:first-child th { padding-top: 16px; }
  .price-table thead tr:last-child th { padding-bottom: 14px; }
  .price-table thead th.item { text-align: left; }
  .price-table thead th.unit { text-align: center; }
  .price-table thead th.group {
    text-align: center;
    color: #fff;
    border-bottom: 1px solid rgba(222, 222, 222, .2);
  }
  /* Razmak između dvije grupe cijena */
  .price-table thead th.group + th.group,
  .price-table thead tr:last-child th:nth-child(3),
  .price-table td:nth-child(5) { border-left: 1px solid var(--color-line); }
  .price-table thead th.group + th.group,
  .price-table thead tr:last-child th:nth-child(3) { border-left-color: rgba(222, 222, 222, .2); }

  .price-table td {
    padding: 11px 14px;
    text-align: right;
    white-space: nowrap;
    border-top: 1px solid var(--color-line);
  }
  .price-table td.item {
    text-align: left;
    white-space: normal;
    font-weight: 400;
  }
  .price-table thead tr:last-child th { width: 14%; }
  .price-table thead th.unit { width: 9%; }
  .price-table td.unit {
    text-align: center;
    background: none;
    border-radius: 0;
    font-size: inherit;
    font-weight: 400;
    color: var(--color-muted);
  }
  .price-table td[data-label] { padding-top: 11px; }
  .price-table th.item,
  .price-table td:first-child { padding-left: 20px; }
  .price-table th:last-child,
  .price-table td:last-child { padding-right: 20px; }
  .price-table tbody tr:nth-child(even) td { background: #f7fbfb; }
  .price-table tbody tr:hover td { background: #e8f4f3; }
}

.price-notes {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  font-size: .88rem;
  color: var(--color-muted);
  font-style: italic;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-style: normal;
  font-weight: 700;
  color: var(--color-teal);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Kontakt ---------- */
.contact {
  background: var(--color-ink);
  color: var(--color-steel);
}
.contact h2 { color: #fff; }
.contact-grid { display: grid; gap: 36px; }
.contact-lead { margin: 14px 0 28px; color: rgba(222, 222, 222, .75); }

.contact-list { display: grid; gap: 20px; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: center;
}
.contact-list .ring-icon {
  color: var(--color-teal-bright);
  background: var(--color-ink-3);
  border-color: rgba(222, 222, 222, .25);
  box-shadow: inset 0 0 0 4px var(--color-ink-3), inset 0 0 0 5px rgba(222, 222, 222, .15);
}
.contact-list .label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(222, 222, 222, .55);
}
.contact-list a {
  color: #fff;
  text-decoration: none;
  line-height: 1.5;
  transition: color .2s;
}
.contact-list a:hover { color: var(--color-teal-bright); }

.map-frame {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line-light);
  background: var(--color-ink-2);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(.35) contrast(1.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #050f14;
  color: rgba(222, 222, 222, .7);
  padding: 48px 0 24px;
  border-top: 1px solid var(--color-line-light);
}
.footer-inner {
  display: grid;
  justify-items: center;
  gap: 26px;
  text-align: center;
}
.footer-brand img { width: 170px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.footer-nav a {
  color: var(--color-steel);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--color-teal-bright); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(222, 222, 222, .25);
  color: var(--color-steel);
  transition: color .2s, border-color .2s, background-color .2s;
}
.footer-social a:hover {
  color: var(--color-ink);
  background: var(--color-teal-bright);
  border-color: var(--color-teal-bright);
}
.footer-bottom {
  display: grid;
  gap: 4px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line-light);
  font-size: .82rem;
  text-align: center;
}

/* ---------- Animacija ulaska ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Breakpointi (mobile-first)
   ========================================================================== */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid .service-card:last-child { grid-column: 1 / -1; }
  .price-notes { grid-template-columns: 1fr auto; align-items: end; }
  .footer-bottom { grid-auto-flow: column; justify-content: space-between; text-align: left; }
}

@media (min-width: 900px) {
  :root { --header-h: 88px; }

  .brand img { width: 158px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav ul { display: flex; gap: 6px; }
  .site-nav ul a {
    position: relative;
    padding: 8px 12px;
    font-size: 1rem;
    border: 0;
  }
  .site-nav ul a::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 2px;
    background: var(--color-teal-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .site-nav ul a:hover::after,
  .site-nav ul a.is-active::after { transform: scaleX(1); }
  .nav-cta { margin: 0; width: auto; min-height: 44px; }

  .hero {
    background:
      linear-gradient(90deg, rgba(8, 23, 30, .92) 0%, rgba(8, 23, 30, .72) 55%, rgba(8, 23, 30, .45) 100%),
      url("../images/hero-praonica.jpg") center / cover no-repeat;
  }
  .hero-inner {
    align-content: center;
    min-height: min(calc(100vh - var(--header-h)), 760px);
    padding-top: 72px;
    padding-bottom: 96px;
  }

  .section { padding: 104px 0; }
  .section-head { margin-bottom: 48px; }

  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }

  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .service-grid .service-card:last-child { grid-column: auto; }
  .service-card { padding: 40px 30px 36px; }

  .section-head-row {
    grid-template-columns: 1fr minmax(260px, 360px);
    align-items: end;
  }
  .price-table th.item,
  .price-table td:first-child { padding-left: 28px; }
  .price-table th:last-child,
  .price-table td:last-child { padding-right: 28px; }

  .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: stretch; }
  .map-frame { min-height: 440px; }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    justify-items: stretch;
    align-items: center;
    text-align: left;
  }
  .footer-nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
