/* =========================================================
   TEMPIO ART – style.css
   ========================================================= */

/* ---------- Varijable ---------- */
:root {
  --navy: #0B3154;
  --blue: #4169E1;
  --off-white: #F6F5F1;
  --white: #FFFFFF;
  --charcoal: #1A1A1A;
  --grey: #5E5E5E;
  --line: #DDDAD3;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
}

/* ---------- Osnova ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--off-white);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
address { font-style: normal; }

h1, h2, h3 {
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.15rem; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -50px;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  z-index: 300;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-white { background: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-text { margin-top: 16px; color: var(--grey); font-size: 1.05rem; }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }

/* ---------- Fotografije ---------- */
.photo {
  position: relative;
  overflow: hidden;
  background: #E7E4DD;
  aspect-ratio: 4 / 5;
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo.is-missing img { visibility: hidden; }

.photo figcaption {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 12px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo figcaption.is-after { background: var(--blue); color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.logo img { height: 52px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; }

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--charcoal);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active { color: var(--navy); border-bottom-color: var(--blue); }

.header-cta { min-height: 42px; padding: 0 18px; font-size: 0.78rem; }

.menu-btn {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 104px); background: var(--white); }

.hero-text { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 22px;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--grey);
  max-width: 560px;
  margin-bottom: 30px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  margin-top: 26px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey);
}

.hero-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.5vw, 20px);
}

/* ---------- Usluge ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service {
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--off-white);
}

.service .num {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 28px;
}

.service h3 { margin-bottom: 10px; }
.service p { color: var(--grey); }

.service-cta { background: var(--navy); display: flex; flex-direction: column; align-items: flex-start; }
.service-cta h3 { color: var(--white); }
.service-cta p { color: rgba(255, 255, 255, 0.8); margin-bottom: 22px; }
.service-cta .btn { margin-top: auto; }

/* ---------- Transformacija ---------- */
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: #9DB2F2; }
.section-dark .section-text { color: rgba(255, 255, 255, 0.78); }
.section-dark :focus-visible { outline-color: #9DB2F2; }

.pairs { display: grid; gap: clamp(20px, 3vw, 32px); }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.2vw, 16px);
}

.pair .photo { aspect-ratio: 4 / 3; background: #123D63; }

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
  margin-top: clamp(20px, 3vw, 32px);
}

.strip .photo { background: #123D63; }

.note { margin-top: 18px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Galerija ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.5vw, 18px);
}

.gallery .photo { aspect-ratio: 4 / 3; }

/* ---------- Proces ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.steps li { border-top: 3px solid var(--navy); padding-top: 22px; }

.steps .num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 16px;
}

.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--grey); }

/* ---------- O nama ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}

.about h2 { font-size: clamp(2.6rem, 6vw, 4.5rem); text-transform: uppercase; }

.about-quote {
  margin-top: 20px;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: var(--charcoal);
  max-width: 420px;
}

.about-text { font-size: 1.08rem; color: var(--grey); margin-bottom: 32px; }

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--grey); }
.facts dd { font-weight: 800; color: var(--navy); text-align: right; }

/* ---------- CTA ---------- */
.cta { background: var(--blue); color: var(--white); padding: clamp(64px, 8vw, 100px) 0; }
.cta-inner { text-align: center; }
.cta h2 { color: var(--white); max-width: 820px; margin: 0 auto 16px; }
.cta p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.92; }
.cta .btn-light:hover { color: var(--white); border-color: var(--white); }
.cta :focus-visible { outline-color: var(--white); }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.contact-list { margin-top: 32px; }

.contact-list p {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
}

.contact-list span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 2px;
}

.contact-list a { color: var(--blue); overflow-wrap: anywhere; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--off-white);
  border: 1px solid var(--line);
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.form .full { grid-column: 1 / -1; }

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.form textarea { resize: vertical; }

.form input:focus,
.form select:focus,
.form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

.form .invalid { border-color: #B3261E; }

.form-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-msg { font-weight: 600; color: var(--navy); }
.form-msg.error { color: #B3261E; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 32px;
  font-size: 0.95rem;
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer :focus-visible { outline-color: #9DB2F2; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-name { font-size: 1.6rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.footer li + li, .footer-grid p + p { margin-top: 6px; }
.footer-grid a { overflow-wrap: anywhere; }

.copyright { margin-top: 24px; font-size: 0.85rem; }

.disclaimer {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  color: var(--white);
}

/* ---------- Povećani prikaz fotografija ---------- */
.photo.zoomable { cursor: zoom-in; }
.photo.zoomable img { transition: transform 0.4s ease; }
.photo.zoomable:hover img { transform: scale(1.03); }
.photo.is-missing { cursor: default; }

body.lb-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 76px;
  background: rgba(5, 20, 35, 0.95);
}

.lightbox[hidden] { display: none; }

.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lb-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lb-btn[hidden] { display: none; }
.lb-btn:hover { background: var(--blue); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 767px) {
  .lightbox { padding: 64px 10px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .menu-btn { display: flex; }
  .header-cta { display: none; }

  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 20px var(--pad);
    background: var(--white);
    display: none;
    overflow-y: auto;
  }

  .menu-open .nav { display: block; }

  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 18px 0; font-size: 1.25rem; font-weight: 700; border: 0; }

  .services { grid-template-columns: 1fr 1fr; }
  .about, .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .hero-photos { grid-template-columns: 1fr 1fr; }
  .hero-photos .photo:last-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

  .services { grid-template-columns: 1fr; }
  .pair .photo { aspect-ratio: 3 / 4; }

  .gallery { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }

}

@media (max-width: 420px) {
  .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}