/* ===================================================================
   HPD Sokol Zagreb — public site styles
   Design tokens per handoff. Fonts: Source Serif 4 + Source Sans 3.
   =================================================================== */
:root {
  --navy: #123c63;
  --blue: #1e6cb0;
  --footer-navy: #0d2c4a;
  --red: #d63a2f;
  --red-h: #b52d24;
  --bg: #f7f5f1;
  --card: #ffffff;
  --text: #1d222a;
  --text-2: #454b55;
  --muted: #8a8f98;
  --border: #e4e0d8;
  --divider: #eee9e0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: 'Source Serif 4', Georgia, serif; }

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; width: 100%; }
.checker {
  width: 36px; height: 18px; flex: none;
  background-image: repeating-conic-gradient(var(--red) 0% 25%, #fff 0% 50%);
  background-size: 18px 18px;
}
.eyebrow-row { display: flex; align-items: center; gap: 10px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff; border-bottom: 3px solid var(--blue);
  position: sticky; top: 0; z-index: 50;
}
.site-header .inner {
  display: flex; align-items: center; gap: 20px; height: 84px;
  max-width: 1160px; margin: 0 auto; padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; }
.brand .wm1 {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 20px;
  letter-spacing: 0.04em; color: var(--navy); display: block;
}
.brand .wm2 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); display: block;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--text-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { text-decoration: none; color: var(--navy); }
.nav a.active { color: var(--navy); border-bottom-color: var(--red); }
.btn-cta {
  background: var(--red); color: #fff !important; padding: 10px 18px; border-radius: 4px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
}
.btn-cta:hover { background: var(--red-h); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  border: 0; border-radius: 4px; font-family: inherit; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-red { background: var(--red); color: #fff; padding: 14px 26px; font-weight: 700; font-size: 16px; }
.btn-red:hover { background: var(--red-h); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.55);
  color: #fff; padding: 14px 26px; font-weight: 600; font-size: 16px; }
.btn-ghost:hover { background: rgba(255,255,255,0.26); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; padding: 8px 16px; font-weight: 700; font-size: 13.5px; }
.btn-blue:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: flex-end;
  background-image: linear-gradient(180deg, rgba(10,26,42,0.25) 0%, rgba(10,26,42,0.72) 100%), var(--hero-img);
  background-size: cover; background-position: center 30%;
}
.hero .container { padding-top: 60px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.hero .eyebrow { color: #dbe7f2; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.hero h1 { margin: 0; font-size: 56px; line-height: 1.08; color: #fff; max-width: 700px; font-weight: 700; }
.hero p { margin: 0; color: #cfdae6; font-size: 19px; max-width: 560px; line-height: 1.5; }
.hero-btns { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- Section headers ---------- */
.section { padding: 48px 0 24px; }
.section.first { padding-top: 64px; }
.section.last { padding-bottom: 64px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 32px; color: var(--navy); font-weight: 700; }
.section-head a { font-weight: 600; font-size: 15px; }

/* ---------- Grids & cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s;
  color: inherit;
}
a.card:hover, .card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(18,60,99,0.10); text-decoration: none; }

.trip-card-top { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--divider); }
.date-block {
  background: var(--navy); color: #fff; border-radius: 5px; width: 54px; height: 54px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.date-block .d { font-size: 21px; font-weight: 700; line-height: 1; }
.date-block .m { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.trip-title { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 18px; color: var(--text); line-height: 1.2; }
.trip-region { font-size: 13px; color: var(--muted); }
.trip-card-bottom { padding: 14px 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.trip-meta { font-size: 13px; color: var(--text-2); }

/* Blog cards */
.post-img { height: 160px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.post-ph { font-family: monospace; font-size: 12px; padding: 3px 8px; border-radius: 3px; }
.post-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.post-kind { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.post-title { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--text); }
.post-excerpt { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* Galleries */
.gallery-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; height: 260px; }
.gallery-tile { border-radius: 6px; display: flex; align-items: flex-end; padding: 18px; color: #fff; text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.gallery-tile:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(18,60,99,0.18); transform: translateY(-2px); }
.gallery-tile.photo { background-image: linear-gradient(180deg, rgba(10,26,42,0) 45%, rgba(10,26,42,0.65) 100%), var(--hero-img); background-size: cover; background-position: center; }
.gallery-tile .cap { color: #fff; font-weight: 700; font-size: 17px; }
.gallery-tile.ph { align-items: center; justify-content: center; }
.gallery-tile .phlabel { font-family: monospace; font-size: 12px; color: #6b7684; background: rgba(255,255,255,0.85); padding: 4px 10px; border-radius: 3px; }

/* ---------- Kalendar ---------- */
.narrow { max-width: 900px; }
.article-wrap { max-width: 760px; }
.lead-eyebrow { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.page-h1 { margin: 8px 0; font-size: 42px; color: var(--navy); font-weight: 700; }
.page-intro { margin: 0 0 26px; font-size: 17px; color: var(--text-2); max-width: 620px; line-height: 1.55; }
.trip-list { display: flex; flex-direction: column; gap: 16px; }
.trip-row {
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px 22px;
  display: flex; gap: 20px; align-items: flex-start; transition: border-color .15s, box-shadow .15s;
}
.trip-row:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(18,60,99,0.10); }
.date-block.lg { width: 64px; height: 64px; }
.date-block.lg .d { font-size: 25px; }
.trip-row .body { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.trip-row .title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trip-row .title { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 21px; color: var(--text); }
.trip-row .rmeta { font-size: 14px; color: var(--muted); }
.trip-row .desc { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.trip-row .foot { display: flex; gap: 14px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.trip-row .price { font-size: 14px; font-weight: 700; color: var(--navy); }
.trip-row .guide { font-size: 14px; color: var(--muted); }
.trip-row .spacer { flex: 1; }

/* ---------- Article ---------- */
.back-link { color: var(--blue); font-weight: 600; font-size: 14px; margin-bottom: 22px; display: inline-block; }
.art-eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.art-h1 { margin: 0 0 14px; font-size: 40px; line-height: 1.12; color: var(--navy); font-weight: 700; }
.art-author { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.art-author .avatar { width: 34px; height: 34px; border-radius: 50%; background: #dde6f0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--navy); flex: none; }
.art-author span { font-size: 14px; color: var(--text-2); }
.art-photo { height: 320px; border-radius: 6px; background: repeating-linear-gradient(45deg, #e8eef5 0 14px, #dde6f0 14px 28px); display: flex; align-items: center; justify-content: center; margin-bottom: 30px; }
.art-photo .phlabel { font-family: monospace; font-size: 12px; color: #6b7684; background: rgba(255,255,255,0.85); padding: 4px 10px; border-radius: 3px; }
.art-body { font-size: 17.5px; line-height: 1.65; color: #2a2f38; display: flex; flex-direction: column; gap: 18px; }

/* Facebook post photo gallery */
.fb-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.fb-gallery a { display: block; overflow: hidden; border-radius: 6px; border: 1px solid #e4e0d8; }
.fb-gallery img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .25s ease; }
.fb-gallery a:hover img { transform: scale(1.04); }
@media (max-width: 720px) { .fb-gallery { grid-template-columns: repeat(2, 1fr); } .fb-gallery img { height: 140px; } }

/* ---------- Mailing band ---------- */
.mailing { background: var(--navy); }
.mailing .inner { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; padding: 46px 28px; max-width: 1160px; margin: 0 auto; }
.mailing .text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 300px; }
.mailing .text .t { font-family: 'Source Serif 4', serif; font-size: 26px; font-weight: 700; color: #fff; }
.mailing .text .s { font-size: 15px; color: #b9cbdd; }
.mailing form { display: flex; gap: 10px; flex-wrap: wrap; }
.mailing input {
  padding: 13px 16px; border-radius: 4px; border: 1px solid #3a628c; background: var(--footer-navy);
  color: #fff; font-size: 15px; width: 260px; max-width: 100%; font-family: inherit; outline: none;
}
.mailing input::placeholder { color: #7d97b0; }
.mailing button { background: var(--red); color: #fff; padding: 13px 22px; border-radius: 4px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; }
.mailing button:hover { background: var(--red-h); }
.mailing .chip { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; padding: 14px 22px; color: #fff; font-weight: 600; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-navy); color: #b9cbdd; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 44px 28px 36px; max-width: 1160px; margin: 0 auto; font-size: 14.5px; line-height: 1.7; }
.footer-grid .col { display: flex; flex-direction: column; gap: 6px; }
.footer-grid .brandcol { gap: 12px; }
.footer-grid .brandrow { display: flex; align-items: center; gap: 12px; }
.footer-grid .brandrow img { width: 44px; height: 44px; border-radius: 50%; }
.footer-grid .brandrow span { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 17px; color: #fff; }
.footer-grid h4 { color: #fff; font-weight: 700; margin: 0 0 4px; font-size: 14.5px; font-family: inherit; }
.footer-grid a, .footer-grid .col span { color: #b9cbdd; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom .inner { padding: 16px 28px; font-size: 13px; color: #7d97b0; display: flex; gap: 12px; align-items: center; max-width: 1160px; margin: 0 auto; }
.footer-bottom .checker { width: 27px; height: 13.5px; background-size: 13.5px 13.5px; }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.flash.success { background: #e3f0e6; color: #2a7d4f; border: 1px solid #b9dcc4; }
.flash.error { background: #fbe3e1; color: #b52d24; border: 1px solid #f0c0bc; }
.flash.info { background: #e8eef5; color: #1e6cb0; border: 1px solid #c4d6e8; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery-tile { min-height: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero h1 { font-size: 44px; }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 18px;
    border-bottom: 3px solid var(--blue); box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--divider); }
  .nav a.active { border-bottom-color: var(--divider); }
  .nav .btn-cta { text-align: center; margin-top: 10px; padding: 12px; border-bottom: 0; }
  .nav-toggle { display: block; }
  .site-header .inner { position: relative; }

  .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .section-head h2 { font-size: 26px; }
  .page-h1 { font-size: 32px; }
  .art-h1 { font-size: 30px; }
  .mailing input { width: 100%; }
  .mailing form { width: 100%; }
  .mailing button { flex: 1; }
  .trip-row { flex-direction: column; gap: 14px; }
  .art-body { font-size: 16px; }
}
