/*
Theme Name: Aglomeracije Jelsa – Vrboska i Stari Grad
Theme URI: https://aglomeracije.dotien.hr
Author: Lexi / Dotien
Author URI: https://lexi.hr
Description: Statična one-page tema za EU projekt izgradnje vodnokomunalne infrastrukture aglomeracija Jelsa – Vrboska i Stari Grad. Rekonstrukcija originalnog Joomla sajta bez dinamičkog sadržaja — minimalna površina napada.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: aglomeracije
*/

/* ---------- Fonts (self-hosted, GDPR-friendly) ---------- */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/roboto-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/roboto-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/roboto-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/roboto-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/roboto-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/roboto-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('assets/fonts/roboto-latin-900-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('assets/fonts/roboto-latin-ext-900-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Design tokens ---------- */
:root {
  --cyan: #36C3F2;
  --grad-a: #00c6fb;
  --grad-b: #005bea;
  --navy: #161A42;
  --navy-2: #0A0D2F;
  --bg: #F9FBFE;
  --white: #ffffff;
  --text: #363636;
  --muted: #767676;
  --line: #E1E1E1;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(10, 13, 47, .10);
  --wrap: 1140px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Roboto', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grad-b); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 96px; }
.section { padding: 90px 0; }
.section--white { background: var(--white); }

.label {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--grad-b);
  background: rgba(54, 195, 242, .12);
  border: 1px solid rgba(54, 195, 242, .35);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 18px;
}
.h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.lead { font-size: 18px; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header.scrolled { background: var(--navy); box-shadow: 0 6px 24px rgba(10,13,47,.35); padding: 10px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: #fff; font-weight: 500; font-size: 15px; letter-spacing: .02em;
  opacity: .92; text-decoration: none;
}
.site-nav a:hover { opacity: 1; color: var(--cyan); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  background:
    linear-gradient(45deg, rgba(0, 198, 251, .88), rgba(0, 91, 234, .88)),
    url('assets/img/naslovna-background.jpg') center / cover no-repeat;
  color: #fff;
  padding: 140px 0 160px;
}
.hero__logo { height: 110px; width: auto; margin: 0 auto 34px; }
.hero__inner { text-align: center; max-width: 860px; margin: 0 auto; }
.hero h1 {
  color: #fff; font-size: clamp(32px, 5.2vw, 56px); font-weight: 900;
  text-wrap: balance; margin-bottom: 14px;
}
.hero__sub { font-size: clamp(18px, 2.4vw, 24px); font-weight: 500; opacity: .95; margin-bottom: 38px; }
.btn {
  display: inline-block;
  background: var(--white); color: var(--grad-b);
  font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  padding: 16px 36px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(10, 13, 47, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 14px 34px rgba(10,13,47,.3); }

/* ---------- Info cards (ispod heroa) ---------- */
.infocards { margin-top: -90px; position: relative; z-index: 5; }
.infocards .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.icard {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px 30px; border-top: 4px solid var(--cyan);
}
.icard img { height: 54px; width: 54px; margin-bottom: 18px; }
.icard h3 { font-size: 20px; font-weight: 700; }
.icard p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icard strong { color: var(--navy); }

/* ---------- O projektu ---------- */
.about { padding: 100px 0 90px; }
.about .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about__img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Koristi projekta (1–5) ---------- */
.benefits { padding: 90px 0; background: var(--white); }
.benefits__head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.benefits__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.bcard {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bcard__num {
  font-size: 44px; font-weight: 900; line-height: 1;
  background: linear-gradient(45deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.bcard h3 { font-size: 17.5px; font-weight: 700; }
.bcard p { margin: 0; font-size: 14.5px; color: var(--muted); }
.bcard a { word-break: break-word; }

/* ---------- Korist za lokalno stanovništvo ---------- */
.local { padding: 90px 0; }
.local__head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.local__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lcard {
  background: var(--white); border-radius: var(--radius); box-shadow: 0 8px 26px rgba(10,13,47,.07);
  padding: 32px 28px; display: flex; align-items: flex-start; gap: 18px;
}
.lcard img { width: 52px; height: 52px; flex: 0 0 52px; }
.lcard p { margin: 4px 0 0; font-weight: 500; color: var(--navy); }

/* ---------- Održivi razvoj ---------- */
.sustain { padding: 100px 0; background: var(--white); }
.sustain__head { text-align: center; max-width: 780px; margin: 0 auto 54px; }
.sustain__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.scard {
  position: relative; border-radius: var(--radius); overflow: hidden;
  color: #fff; padding: 46px 40px; min-height: 360px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.scard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,47,.15) 0%, rgba(10,13,47,.85) 78%); }
.scard--odvodnja { background: url('assets/img/odvodnja.jpg') center / cover no-repeat; }
.scard--vodoopskrba { background: url('assets/img/vodoopskrba.jpg') center / cover no-repeat; }
.scard > * { position: relative; }
.scard h3 { color: #fff; font-size: 26px; font-weight: 900; }
.scard p { margin: 0; opacity: .94; font-size: 15.5px; }

/* ---------- Korisnik ---------- */
.client { padding: 90px 0; background: var(--bg); }
.client__box {
  max-width: 860px; margin: 0 auto; text-align: center;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 60px 54px;
}
.client__box p:last-child { margin-bottom: 0; }

/* ---------- EU strip ---------- */
.eu { padding: 60px 0; background: var(--white); border-top: 1px solid var(--line); }
.eu__note { max-width: 900px; margin: 0 auto 36px; text-align: center; font-size: 14.5px; color: var(--muted); }
.eu__logos { display: flex; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 80px); flex-wrap: wrap; }
.eu__logos img { height: 58px; width: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 90px 0 0; }
.site-footer a { color: var(--cyan); }
.footer__top {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.12); flex-wrap: wrap;
}
.footer__top img { height: 74px; width: auto; }
.footer__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer__cta h3 { color: #fff; margin: 0; font-size: 24px; font-weight: 700; }
.btn--cyan {
  background: linear-gradient(45deg, var(--grad-a), var(--grad-b)); color: #fff;
  display: inline-block; font-weight: 700; letter-spacing: .06em;
  padding: 15px 32px; border-radius: 999px;
}
.btn--cyan:hover { text-decoration: none; filter: brightness(1.08); }
.footer__cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px;
  padding: 50px 0 60px; font-size: 14px; line-height: 1.8;
}
.footer__cols strong { color: #fff; letter-spacing: .04em; }
.footer__cols p { color: rgba(255,255,255,.75); margin: 0; }
.footer__bottom { background: var(--navy-2); padding: 18px 0; font-size: 13.5px; color: rgba(255,255,255,.6); }
.footer__bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .benefits__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 96px 28px 36px;
    background: var(--navy); flex-direction: column; align-items: flex-start; gap: 20px;
    transform: translateY(-102%); transition: transform .25s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
  }
  body.nav-open .site-nav { transform: translateY(0); }
  .nav-toggle { display: block; position: relative; z-index: 110; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-header { background: var(--navy); padding: 12px 0; }
  .hero { padding: 150px 0 170px; min-height: 0; }
  .infocards .wrap { grid-template-columns: 1fr; }
  .about .wrap { grid-template-columns: 1fr; gap: 36px; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .local__grid { grid-template-columns: repeat(2, 1fr); }
  .sustain__grid { grid-template-columns: 1fr; }
  .client__box { padding: 44px 28px; }
}
@media (max-width: 560px) {
  .benefits__grid, .local__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .hero__logo { height: 84px; }
  .section, .about, .benefits, .local, .sustain, .client { padding: 64px 0; }
}
