/* CEDES d.o.o. — site stylesheet. Clean, modern, no framework bloat. */

:root {
  /* Neretva Night — deep river-green gradient, mint/teal accent */
  --navy: #0e4d45;
  --navy-dark: #071a18;
  --red: #2fa58a;
  --red-dark: #1f7d68;
  --red-tint: #8fe0c9;
  --ink: #16231f;
  --muted: #5b6e68;
  --line: #dceae6;
  --bg: #ffffff;
  --bg-alt: #f0f7f5;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(7, 26, 24, 0.08);
  --shadow-lg: 0 12px 32px rgba(7, 26, 24, 0.16);
  --maxw: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand, .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; }
.footer-brand { margin-bottom: 16px; }
.brand-mark { width: 40px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; color: #fff; }
.dot { color: var(--red); }
.tagline-row { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.tagline-rule { width: 16px; height: 2px; background: var(--red); flex: none; }
.tagline { font-size: 0.62rem; letter-spacing: 0.12em; color: #9fc7ba; white-space: nowrap; }
@media (max-width: 500px) { .tagline-row { display: none; } }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.primary-nav a {
  color: #bfe3d8;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}
nav.primary-nav a:hover,
nav.primary-nav a.active {
  color: #fff;
  background: rgba(127,209,185,0.15);
  text-decoration: none;
}

.lang-toggle { position: relative; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  line-height: 1;
}
.lang-current:hover, .lang-current:focus-visible { background: rgba(127,209,185,0.15); }
.lang-current .flag { font-size: 1.9rem; }
.lang-current .caret { font-size: 0.9rem; color: #bfe3d8; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 6px;
  display: none;
  flex-direction: column;
  min-width: 150px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.lang-toggle.open .lang-menu { display: flex; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}
.lang-option:hover { background: rgba(127,209,185,0.15); text-decoration: none; }
.lang-option.active { color: var(--red-tint); font-weight: 700; }
.lang-option .flag { font-size: 1.3rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { padding: 14px 24px; border-radius: 0; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 72px 0 88px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin: 0 0 16px;
  line-height: 1.2;
}
.hero p.lead {
  color: #bfe3d8;
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 0 28px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; }
.btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.08); text-decoration: none; }

.page-hero {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 48px 0;
}
.page-hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-hero .breadcrumb { color: #8fc2b3; font-size: 0.9rem; }
.page-hero .breadcrumb a { color: #bfe3d8; }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 8px;
}
section .section-intro {
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 40px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0 0 14px; font-size: 0.95rem; }
.card .more { font-weight: 600; font-size: 0.9rem; }

.card img.card-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
  background: var(--bg-alt);
}

/* ---------- Article / content page ---------- */

.content-wrap {
  max-width: 780px;
}
.content-wrap h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--red-dark);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.content-wrap h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 3px;
  background: var(--red);
}
.content-wrap ul { padding-left: 20px; }
.content-wrap li { margin-bottom: 6px; }
.stat-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--red);
  padding: 18px 22px;
  border-radius: 6px;
  margin: 24px 0;
}

/* ---------- News list ---------- */

.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: flex-start;
}
.news-item .thumb {
  flex: 0 0 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-alt);
}
.news-item .date {
  color: var(--red);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.news-item h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.news-item p { color: var(--muted); margin: 0; font-size: 0.92rem; }
@media (max-width: 600px) {
  .news-item { flex-direction: column; }
  .news-item .thumb { flex: none; width: 100%; height: 160px; }
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.gallery-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
.gallery-grid img:hover { opacity: 0.85; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 24, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 60px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
@media (max-width: 600px) {
  .lightbox { padding: 20px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- Partner logos ---------- */

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.partner-logo {
  width: 135px;
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dt { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 18px; }
.contact-info dd { margin: 4px 0 0; font-size: 1.05rem; }
.contact-info dd a { color: var(--ink); text-decoration: none; }
.contact-info dd a:hover { color: var(--red); text-decoration: underline; }

.map-embed { margin-top: 40px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy-dark);
  color: #9fc7ba;
  padding: 56px 0 28px;
  margin-top: 40px;
}
footer.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; }
footer.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) { footer.site-footer .cols { grid-template-columns: 1fr; } }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
footer.site-footer a { color: #9fc7ba; font-size: 0.92rem; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #6f9c90;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility ---------- */

.eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  display: block;
}
