/* ===== Design tokens ==================================================== */
:root {
  --bg: #0b1b2b;            /* temno modra za hero overlay */
  --bg-weak: #0f2236;
  --text: #1b2430;
  --muted: #6b7a8c;
  --brand: #0ea5e9;         /* svetlo modra (accent) */
  --brand-strong: #0284c7;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;   /* svetla podlaga sekcij */
  --ring: rgba(14,165,233,.35);
  --shadow: 0 10px 30px rgba(2, 132, 199, 0.12);
}

/* ===== Reset & base ===================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.narrow { width: min(720px, 92%); }
.lead { font-size: clamp(1.05rem, 1.2vw + .8rem, 1.25rem); color: var(--muted); }

.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head h2 { font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.2rem); margin: 0 0 .5rem; }
.section-head p { color: var(--muted); margin: 0; }

/* Make anchor jumps leave space for fixed navbar */
:target { scroll-margin-top: 96px; }

/* ===== Navbar =========================================================== */
.site-header { position: sticky; top: 0; z-index: 1000; }
.navbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .75rem clamp(1rem, 3vw, 2rem);
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.logo { height: 56px; object-fit: contain; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 1rem; margin: 0; }
.nav-links a { color: var(--muted); font-weight: 600; padding: .5rem .75rem; border-radius: .6rem; }
.nav-links a:hover { color: var(--text); background: var(--surface-alt); }

/* CTA in navbar */
.btn-sm { padding: .5rem .9rem; border: 1px solid var(--brand); color: #0b4660; background: rgba(14,165,233,.12); border-radius: .7rem; }
.btn-sm:hover { background: rgba(14,165,233,.2); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: #1e293b; margin: 5px 0; transition: .2s; }

/* ===== Hero ============================================================= */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid; place-items: center;
  background: url('messina.jpg') center/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,27,43,.6), rgba(11,27,43,.55)); }
.hero-content { position: relative; text-align: center; color: #fff; }
.hero-content h1 { font-size: clamp(2rem, 2.8vw + 1.2rem, 3.2rem); margin: 0 0 1rem; letter-spacing: .4px; }
.hero-content p { font-size: clamp(1rem, .6vw + .9rem, 1.25rem); opacity: .95; margin: 0 0 1.5rem; }
.cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; border-radius: .9rem; padding: .9rem 1.2rem; font-weight: 600; transition: transform .1s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* ===== Cards ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.4vw, 1.5rem); }
.card { grid-column: span 12; background: var(--surface); border: 1px solid rgba(2, 8, 23, .06); border-radius: 1rem; overflow: hidden; box-shadow: 0 8px 20px rgba(2, 8, 23, .06); transition: transform .18s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(2, 8, 23, .08); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1rem 1.1rem 1.25rem; }
.card h3 { margin: .2rem 0 .4rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }

/* 3-up on desktop */
@media (min-width: 768px) { .card { grid-column: span 6; } }
@media (min-width: 1024px) { .card { grid-column: span 4; } }

/* ===== Contact card ===================================================== */
.contact-card { background: var(--surface); border: 1px solid rgba(2, 8, 23, .06); border-radius: 1rem; padding: 1.25rem; box-shadow: 0 8px 20px rgba(2, 8, 23, .06); text-align: center; }
.contact-card h3 { margin: 0 0 .25rem; }
.contact-card p { margin: 0 0 .4rem; color: var(--muted); }
.link { color: var(--brand-strong); text-decoration: underline; }

/* ===== Footer =========================================================== */
.footer { background: #0a1320; color: #e6edf6; padding: 3rem 0; }
.footer-container { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.footer-col { grid-column: span 12; }
.footer-col h3 { font-size: 1rem; color: #8ecdf0; margin: 0 0 .75rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .35rem 0; color: #c7d5e0; }
.footer-col a { color: #c7d5e0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 1.25rem; padding-top: 1.25rem; display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.social-links a { color: #8ecdf0; text-decoration: none; }
.social-links a:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .footer-col { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .footer-col { grid-column: span 3; }
}

/* ===== Responsive nav =================================================== */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-links { position: absolute; right: clamp(1rem, 3vw, 2rem); top: 100%; margin-top: .75rem; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: .8rem; padding: .5rem; box-shadow: 0 10px 30px rgba(2, 8, 23, .12); display: none; flex-direction: column; align-items: stretch; min-width: 220px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .8rem; border-radius: .6rem; }
  body.nav-open { overflow: hidden; }
}
