/* ==========================================================================
   Sekcije stranica
   ========================================================================== */

/* ---------- Hero (početna) ---------- */

.hero {
  --hero-bg: var(--navy-900);
  /* Fotografija se proteže iza početka teksta; gradijent je potpuno neproziran prije njene ivice */
  --hero-overlap: clamp(64px, 7vw, 140px);
  --hero-fade: clamp(250px, 26vw, 400px);
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--on-dark);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(720px, calc(100svh - var(--header-h) - 96px));
}

.hero__media {
  position: relative;
  z-index: 0;
  min-height: 420px;
  margin: 0;
}

/* Sloj 1: fotografija (šira od kolone za --hero-overlap) */
.hero__media picture {
  position: absolute;
  inset: 0 calc(-1 * var(--hero-overlap)) 0 0;
  width: auto;
  max-width: none;
  height: auto;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sloj 2: gradijent iste boje kao pozadina hero sekcije */
.hero__fade {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  right: calc(-1 * var(--hero-overlap) - 4px);
  width: var(--hero-fade);
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgb(18 27 45 / 0) 0%,
    rgb(18 27 45 / 0.18) 22%,
    rgb(18 27 45 / 0.55) 46%,
    rgb(18 27 45 / 0.88) 66%,
    var(--hero-bg) 80%,
    var(--hero-bg) 100%
  );
}

.hero__media .photo-note {
  z-index: 2;
}

/* Sloj 3: tekst i dugmad iznad fotografije i gradijenta */
.hero__panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 6vw, 88px);
  padding-inline: clamp(28px, 4.5vw, 72px) max(var(--gutter), calc((100vw - var(--container)) / 2));
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 0.45em;
}

.hero__title .hl {
  display: inline;
}

.hero__lead {
  font-size: clamp(1.08rem, 0.4vw + 1rem, 1.25rem);
  color: var(--on-dark-muted);
  max-width: 54ch;
  margin-bottom: 32px;
}

.hero__meta {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.98rem;
  color: var(--on-dark-muted);
}

.hero__meta li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hero__meta .icon {
  color: var(--yellow);
  margin-top: 2px;
}

.hero__meta strong {
  color: var(--white);
}

/* Traka prednosti */
.benefits {
  background: var(--navy-950);
  border-top: 1px solid var(--line-dark);
}

.benefits__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefits__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 20px;
  border-left: 1px solid var(--line-dark);
}

.benefits__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.benefits__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--navy-800);
  color: var(--yellow);
}

.benefits__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.benefits__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.benefits__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.3rem);
  color: var(--white);
  line-height: 1.25;
}

@media (max-width: 1099px) {
  .benefits__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits__item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .benefits__item:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 899px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero {
    --hero-overlap: 56px;
    --hero-fade: clamp(110px, 28vw, 200px);
  }

  .hero__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  /* Mobilno: fotografija iznad teksta, gradijent odozgo nadolje */
  .hero__media picture {
    inset: 0 0 calc(-1 * var(--hero-overlap)) 0;
  }

  .hero__fade {
    top: auto;
    left: 0;
    right: 0;
    bottom: calc(-1 * var(--hero-overlap) - 4px);
    width: auto;
    height: var(--hero-fade);
    background: linear-gradient(
      to bottom,
      rgb(18 27 45 / 0) 0%,
      rgb(18 27 45 / 0.2) 24%,
      rgb(18 27 45 / 0.6) 50%,
      rgb(18 27 45 / 0.9) 70%,
      var(--hero-bg) 84%,
      var(--hero-bg) 100%
    );
  }

  .hero__panel {
    padding: 40px var(--gutter) 44px;
  }
}

@media (max-width: 520px) {
  .hero__media {
    aspect-ratio: 5 / 4;
  }

  .benefits__list {
    grid-template-columns: 1fr;
  }

  .benefits__item,
  .benefits__item:nth-child(3) {
    border-left: 0;
    padding: 16px 0;
  }

  .benefits__item + .benefits__item {
    border-top: 1px solid var(--line-dark);
  }
}

/* ---------- O Aqua Prime (početna) ---------- */

.about-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.about-home__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: var(--navy-800);
}

.about-home__media picture,
.about-home__media img {
  width: 100%;
  height: 100%;
}

.about-home__media img {
  object-fit: cover;
  object-position: 50% 30%;
}

.about-home__media .photo-note {
  top: 12px;
  bottom: auto;
}

.person-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

a.person-card {
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}

a.person-card:hover {
  transform: translateY(-2px);
}

.person-card > span:last-child {
  display: flex;
  flex-direction: column;
}

.signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--yellow);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.signature strong {
  display: block;
  font-family: var(--font-head);
  color: var(--navy-900);
}

.signature > span:last-child {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.signature__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--yellow);
}

.person-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--yellow);
}

.person-card__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.person-card__role {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-home__content > p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stats-bar li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 24px;
  border-left: 1px solid var(--line-dark);
  text-align: center;
}

.stats-bar li:first-child {
  border-left: 0;
}

.stats-bar strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2.3rem);
  line-height: 1.1;
  color: var(--yellow);
}

.stats-bar span {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

@media (max-width: 899px) {
  .about-home__grid {
    grid-template-columns: 1fr;
  }

  .about-home__media {
    aspect-ratio: 4 / 3.6;
  }

  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-bar li:nth-child(3) {
    border-left: 0;
  }

  .stats-bar li:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 420px) {
  .stats-bar li {
    padding: 20px 12px;
  }
}

/* ---------- Procjena cijene ---------- */

.pricing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.pricing__content > p {
  font-size: 1.08rem;
}

.pricing__content .btn-row {
  margin-top: 28px;
}

.pricing__small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.95rem;
}

.pricing__small .icon {
  color: var(--yellow);
}

.price-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
}

.price-card p {
  color: var(--text-muted);
}

.price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.price-card__head h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--navy-900);
}

.price-card__factors li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.price-card__factors p {
  margin: 0;
  font-size: 0.98rem;
}

.price-card__factors .price-card__factor {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.04rem;
  margin-bottom: 2px;
}

.price-card__idx {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy-900);
  background: var(--yellow-soft);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.price-card__facts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.price-card__facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.98rem;
}

.price-card__facts dt {
  color: var(--text-muted);
}

.price-card__facts dd {
  font-weight: 700;
  color: var(--navy-900);
  text-align: right;
}

@media (max-width: 899px) {
  .pricing__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .price-card__facts div {
    flex-direction: column;
    gap: 0;
  }

  .price-card__facts dd {
    text-align: left;
  }
}

/* ---------- Koraci saradnje ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}

.step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}

.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 0 0 8px var(--white);
}

.step__title {
  font-size: 1.12rem;
  color: var(--navy-900);
}

.step p {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 28ch;
  margin-inline: auto;
}

.process__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 4vw, 56px);
}

@media (max-width: 899px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 18px;
    text-align: left;
    padding: 0 0 26px;
  }

  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 56px;
    bottom: 4px;
    width: 2px;
    background: var(--line);
  }

  .step__num {
    grid-row: span 2;
    width: 52px;
    height: 52px;
    margin: 0;
    box-shadow: none;
  }

  .step__title {
    margin-top: 12px;
  }

  .step p {
    margin: 0;
    max-width: none;
  }
}

/* ---------- Područje rada ---------- */

.area {
  position: relative;
  overflow: hidden;
}

.area__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.area__content > p {
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.area__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.area-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  transition: border-color var(--dur) var(--ease);
}

.area-card:hover {
  border-color: rgba(255, 190, 24, 0.45);
}

.area-card:first-child {
  background: var(--yellow);
  color: var(--navy-900);
  border-color: transparent;
}

.area-card:first-child p {
  color: #3a3000;
}

.area-card:first-child .area-card__icon {
  background: var(--navy-900);
  color: var(--yellow);
}

.area-card h3 {
  font-size: 1.12rem;
  margin: 16px 0 6px;
}

.area-card p {
  font-size: 0.98rem;
}

.area-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--yellow);
}

@media (max-width: 899px) {
  .area__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .area__cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ sekcija ---------- */

.faq-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.faq-section__intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

@media (max-width: 899px) {
  .faq-section__grid {
    grid-template-columns: 1fr;
  }

  .faq-section__intro {
    position: static;
  }
}

/* ---------- Galerija radova ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.project-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body {
  padding: 20px 22px 24px;
}

.project-card__meta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.project-card p {
  color: var(--text-muted);
}

@media (max-width: 899px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Usluge: redovi ---------- */

.svc-rows {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
}

.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.svc-row--reverse .svc-row__media {
  order: 2;
}

.svc-row__media {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-800);
}

.svc-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.svc-row__media:hover img {
  transform: scale(1.03);
}

.svc-row__num {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 800;
}

.svc-row__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--yellow);
}

.svc-row__title {
  font-size: var(--fs-h2-sm);
}

.svc-row__title a {
  text-decoration: none;
}

.svc-row__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
}

.svc-row__body > p {
  color: var(--text-muted);
}

.svc-row__label {
  margin-top: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-900) !important;
}

@media (max-width: 899px) {
  .svc-row {
    grid-template-columns: 1fr;
  }

  .svc-row--reverse .svc-row__media {
    order: 0;
  }
}

/* Za koga radimo */
.clients {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 899px) {
  .clients {
    grid-template-columns: 1fr;
  }
}

/* Slika + tekst */
.split-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.split-media__img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.2;
  background: var(--navy-800);
}

.split-media__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media__body > p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

@media (max-width: 899px) {
  .split-media {
    grid-template-columns: 1fr;
  }

  .split-media__img {
    aspect-ratio: 16 / 11;
  }
}

/* ---------- Pojedinačna usluga ---------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.detail__block + .detail__block {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.detail__h {
  font-size: 1.4rem;
  color: var(--navy-900);
}

.detail__block p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 68ch;
}

.detail__note {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--yellow-soft);
  color: #4d3600;
  font-weight: 600;
}

.detail__note .icon {
  margin-top: 2px;
}

.detail__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.aside-card__title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.aside-card > p {
  color: var(--on-dark-muted);
  margin-bottom: 20px;
}

.aside-card__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.aside-card__list {
  display: grid;
  gap: 10px;
  margin: 22px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.aside-card__list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}

.aside-card__list .icon {
  color: var(--yellow);
}

.aside-card__note {
  font-size: 0.9rem;
  color: var(--on-dark-muted);
  margin: 0;
}

.detail-faq > * {
  max-width: 860px;
}

@media (max-width: 999px) {
  .detail {
    grid-template-columns: 1fr;
  }

  .detail__aside {
    position: static;
  }
}

/* ---------- O nama ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.story__text > p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 64ch;
}

.facts-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border-top: 5px solid var(--yellow);
}

.facts-card__title {
  font-size: 1.2rem;
  color: var(--navy-900);
}

.facts-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts-card dt {
  color: var(--text-muted);
}

.facts-card dd {
  font-weight: 700;
  color: var(--navy-900);
  text-align: right;
}

.facts-card__warranty {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--navy-900);
}

.facts-card__warranty .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.value-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.value-card h3 {
  margin-top: 18px;
  color: var(--navy-900);
}

.value-card p {
  color: var(--text-muted);
}

.value-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--yellow-soft);
  color: var(--navy-900);
}

.value-card--accent {
  background: var(--navy-900);
  color: var(--white);
}

.value-card--accent h3 {
  margin-top: 0;
  color: var(--white);
}

.value-card--accent p {
  color: var(--on-dark-muted);
  margin-bottom: 18px;
}

.value-card--accent .link-arrow {
  color: var(--white);
}

@media (max-width: 999px) {
  .story {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 599px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Kontakt ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.channel-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.channel:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.channel__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--yellow);
}

.channel--primary {
  background: var(--yellow);
}

.channel--primary .channel__label,
.channel--primary .channel__hint {
  color: #3a3000;
}

.channel__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.channel__body strong {
  font-family: var(--font-head);
  font-size: 1.12rem;
  color: var(--navy-900);
  overflow-wrap: anywhere;
}

.channel__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.channel__hint {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hours-card {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--white);
}

.hours-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 8px;
}

.hours-card p {
  color: var(--on-dark-muted);
}

.hours-card strong {
  color: var(--white);
}

.hours-card__note {
  margin-top: 10px;
  font-size: 0.92rem;
}

@media (max-width: 999px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.location {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.location address {
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.location__info > p {
  color: var(--text-muted);
}

.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(18, 27, 45, 0.03) 25%, transparent 25%) 0 0 / 24px 24px,
    var(--bg-light);
  border: 1px solid var(--line);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-embed__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.map-embed__placeholder > p {
  margin: 0;
  font-weight: 700;
  color: var(--navy-900);
}

.map-embed__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.map-embed__note {
  max-width: 44ch;
  font-size: 0.88rem;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
}

/* Bez JS-a dugme za učitavanje mape ne radi - prikazujemo samo link */
.no-js [data-map-load] {
  display: none;
}

@media (max-width: 899px) {
  .location {
    grid-template-columns: 1fr;
  }

  .map-embed {
    aspect-ratio: 4 / 3.4;
  }
}

/* ---------- Tekstualne stranice ---------- */

.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 2em;
  color: var(--navy-900);
}

.prose p {
  color: var(--text-muted);
}

.prose a {
  color: var(--navy-900);
  font-weight: 650;
}

.prose__updated {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-light);
  font-size: 0.9rem;
}

.prose__dl {
  display: grid;
  gap: 8px;
  margin-bottom: 1em;
}

.prose__dl div {
  display: flex;
  gap: 12px;
}

.prose__dl dt {
  font-weight: 700;
  color: var(--navy-900);
}

/* 404 / greška */
.status-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.status-page__inner {
  text-align: center;
  max-width: 720px;
}

.status-page .eyebrow {
  justify-content: center;
}

.status-page .section-lead {
  margin-inline: auto;
  margin-bottom: 28px;
}

/* Slike u okvirima sa fiksnim odnosom stranica popunjavaju okvir */
.page-hero__media picture,
.svc-row__media picture,
.split-media__img picture,
.svc-card__media picture,
.project-card__media picture {
  height: 100%;
}

/* ---------- Pravne stranice (Politika privatnosti, Uslovi korišćenja) ---------- */

.legal__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.legal__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 16px;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-bottom: 4px;
}

.toc {
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border-top: 5px solid var(--yellow);
}

.toc--desktop {
  padding: 22px 18px 18px;
}

.toc__title {
  margin: 0 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toc__list {
  display: grid;
  gap: 2px;
}

.toc__list a {
  display: flex;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}

.toc__list a:hover {
  background: var(--white);
}

.toc__num {
  flex-shrink: 0;
  min-width: 22px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #7a5200;
}

.toc--mobile {
  display: none;
  margin-bottom: 32px;
}

.toc--mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-900);
}

.toc--mobile summary::-webkit-details-marker {
  display: none;
}

.toc--mobile[open] summary .icon {
  transform: rotate(180deg);
}

.toc--mobile .toc__list {
  padding: 0 10px 14px;
}

.legal__contact {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--white);
}

.legal__contact-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--yellow);
}

.legal__contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.legal__contact a:hover span {
  text-decoration: underline;
}

.legal__contact .icon {
  color: var(--yellow);
}

.legal__body {
  max-width: 820px;
  min-width: 0;
}

.legal__section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.legal__section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.legal__section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(1.35rem, 0.8vw + 1.1rem, 1.7rem);
  color: var(--navy-900);
  margin-bottom: 16px;
}

.legal__num {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--navy-900);
  font-size: 0.9rem;
  transform: translateY(-2px);
}

.legal__section p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.legal__section p + p,
.legal__list + p {
  margin-top: 12px;
}

.legal__section a {
  color: var(--navy-900);
  font-weight: 650;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
}

.legal__list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.legal__list li {
  position: relative;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius);
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.legal__list li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-soft);
}

.legal__list strong {
  color: var(--navy-900);
}

.legal__dl {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-light);
}

.legal__dl div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.legal__dl dt {
  font-weight: 700;
  color: var(--navy-900);
}

.legal__note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--yellow-soft);
  color: #4d3600 !important;
}

@media (max-width: 999px) {
  .legal__grid {
    grid-template-columns: 1fr;
  }

  .legal__aside {
    display: none;
  }

  .toc--mobile {
    display: block;
  }
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.site-footer__legal a[aria-current='page'] {
  color: var(--white);
}
