/**
 * Semafor root hub — premium landing
 * Fonts loaded via <link> in index.php (no @import — better FCP)
 */

:root {
  --sh-ink: #1c1917;
  --sh-muted: #5c534c;
  --sh-line: rgba(28, 25, 23, 0.12);
  --sh-accent: #c62828;
  --sh-accent-2: #8f1f28;
  --sh-green: #17b52e;
  --sh-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sh-max: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.sh-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sh-ink);
  background: #e9e4dd;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sh-brand__title {
  margin: 0;
}

.sh-hub {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* Soft warm canvas + subtle semafor glow — not a black hole */
.sh-hub__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 8% 12%, rgba(229, 57, 53, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 50% at 92% 88%, rgba(46, 204, 113, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 55% 40%, rgba(244, 196, 48, 0.1), transparent 60%),
    linear-gradient(160deg, #f3efe8 0%, #e7e1d8 48%, #ddd5ca 100%);
}

.sh-hub__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 25, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 23, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 15%, transparent 78%);
  opacity: 0.7;
  pointer-events: none;
}

.sh-hub__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--sh-max));
  margin: 0 auto;
  padding: clamp(1.2rem, 3.5vh, 2.25rem) 0 clamp(1rem, 2.5vh, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sh-hub__inner--hero {
  flex: 1 0 auto;
  justify-content: center;
  min-height: min(100dvh, 920px);
  padding-bottom: 1.5rem;
}

.sh-portal {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a1714 0%, #2c2622 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(40, 30, 20, 0.16);
  transition: transform 0.25s var(--sh-ease), box-shadow 0.25s var(--sh-ease);
  animation: sh-rise 0.75s var(--sh-ease) both;
}

.sh-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(40, 30, 20, 0.22);
}

.sh-portal__badge {
  flex: 0 0 auto;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #17b52e 0%, #09553b 100%);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sh-portal__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.sh-portal__go {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  line-height: 1;
}

.sh-stage {
  position: relative;
  padding: clamp(1.1rem, 2.6vw, 1.65rem);
  border-radius: 26px;
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 28px 70px rgba(40, 30, 20, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  animation: sh-rise 0.85s var(--sh-ease) both;
}

.sh-stage__accent {
  position: absolute;
  left: 0;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #e53935 0%, #f4c430 50%, #2ecc71 100%);
}

.sh-stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
  padding-left: 0.55rem;
}

.sh-stage__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
}

.sh-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.sh-brand__logo {
  width: min(280px, 78%);
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 6px 14px rgba(40, 30, 20, 0.1));
}

.sh-brand__lead {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 500;
  color: var(--sh-muted);
  line-height: 1.55;
}

.sh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: transform 0.25s var(--sh-ease), background 0.25s var(--sh-ease), box-shadow 0.25s var(--sh-ease);
}

.sh-btn--primary {
  background: linear-gradient(135deg, #d32f2f 0%, #8f1f28 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(198, 40, 40, 0.28);
}

.sh-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(198, 40, 40, 0.36);
}

.sh-btn--ghost {
  background: #fff;
  border: 1.5px solid rgba(28, 25, 23, 0.14);
  color: var(--sh-ink);
}

.sh-btn--ghost:hover {
  border-color: rgba(28, 25, 23, 0.28);
  transform: translateY(-2px);
}

.sh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sh-meta li {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.05);
  border: 1px solid rgba(28, 25, 23, 0.08);
  font-size: 0.82rem;
  color: #4a433c;
}

.sh-meta a:hover { color: var(--sh-accent); text-decoration: underline; }

/* Their photo — designed frame, not full-bleed wash */
.sh-stage__photo {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 240px;
  box-shadow: 0 18px 40px rgba(40, 30, 20, 0.18);
  border: 1px solid rgba(28, 25, 23, 0.08);
}

.sh-stage__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  min-height: 260px;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s var(--sh-ease);
}

.sh-stage:hover .sh-stage__photo img {
  transform: scale(1.06);
}

.sh-stage__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(16, 12, 10, 0.55) 100%),
    linear-gradient(90deg, rgba(229, 57, 53, 0.12) 0%, transparent 40%, rgba(46, 204, 113, 0.1) 100%);
  pointer-events: none;
}

.sh-stage__photo-caption {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 1;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.01em;
}

.sh-choose {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  font-style: italic;
  color: #6a6259;
  animation: sh-rise 1s var(--sh-ease) 0.12s both;
}

.sh-destinations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  animation: sh-rise 1.05s var(--sh-ease) 0.18s both;
}

.sh-dest {
  --dest-1: #8f1f28;
  --dest-2: #a52e36;
  --dest-glow: rgba(143, 31, 40, 0.28);
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(112px, 15vh, 148px);
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, var(--dest-1) 0%, var(--dest-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(40, 30, 20, 0.1);
  isolation: isolate;
  transition: transform 0.35s var(--sh-ease), box-shadow 0.35s var(--sh-ease);
}

.sh-dest::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    radial-gradient(circle at 92% 50%, rgba(255, 255, 255, 0.08), transparent 42%);
  pointer-events: none;
}

.sh-dest:hover,
.sh-dest:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(40, 30, 20, 0.14), 0 0 0 1px var(--dest-glow);
  outline: none;
}

.sh-dest__glow {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.08),
    0 0 12px rgba(255, 255, 255, 0.28);
  transition: transform 0.35s var(--sh-ease), box-shadow 0.35s var(--sh-ease);
}

.sh-dest:hover .sh-dest__glow {
  transform: translateY(-50%) scale(1.08);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.1),
    0 0 16px rgba(255, 255, 255, 0.35);
}

.sh-dest__label {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-right: 2rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.sh-dest__hint {
  display: block;
  margin-top: 0.2rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.sh-dest--sinj {
  --dest-1: #8a242c;
  --dest-2: #a5343c;
  --dest-glow: rgba(143, 31, 40, 0.3);
}

.sh-dest--centar {
  --dest-1: #9a7a2e;
  --dest-2: #b8943f;
  --dest-glow: rgba(168, 130, 50, 0.3);
}

.sh-dest--trilj {
  --dest-1: #0d6b3c;
  --dest-2: #159045;
  --dest-glow: rgba(18, 130, 60, 0.3);
}

/* Map before footer */
.sh-map {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--sh-max));
  margin: 0.5rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: stretch;
  padding: 0 0 1.5rem;
}

.sh-map__intro {
  padding: 1.5rem 1.4rem;
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(28, 25, 23, 0.08);
  box-shadow: 0 16px 40px rgba(40, 30, 20, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
}

.sh-map__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sh-accent);
}

.sh-map__title {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sh-ink);
  line-height: 1.2;
}

.sh-map__lead {
  margin: 0;
  color: var(--sh-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.sh-map__link {
  margin-top: 0.45rem;
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sh-accent);
}

.sh-map__link:hover { text-decoration: underline; }

.sh-map__frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(28, 25, 23, 0.08);
  box-shadow: 0 16px 40px rgba(40, 30, 20, 0.1);
  min-height: 280px;
  background: #ddd6ce;
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

.sh-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.sh-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: #1a1714;
  color: rgba(255, 255, 255, 0.78);
}

.sh-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #e53935 0%, #f4c430 50%, #2ecc71 100%);
}

.sh-footer__top {
  width: min(100% - 2rem, var(--sh-max));
  margin: 0 auto;
  padding: 2.25rem 0 1.75rem;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.sh-footer__brand p {
  margin: 0.75rem 0 0;
  max-width: 28ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.sh-footer__logo {
  width: min(200px, 70%);
  height: auto;
  filter: brightness(1.05);
}

.sh-footer__col h3 {
  margin: 0 0 0.85rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.sh-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sh-footer__col li,
.sh-footer__col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.sh-footer__col a:hover {
  color: #fff;
}

.sh-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sh-footer__bottom .sh-copyright {
  width: min(100% - 2rem, var(--sh-max));
  margin: 0 auto;
  padding: 1rem 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

.sh-social {
  display: flex;
  flex-direction: row !important;
  gap: 0.5rem;
}

.sh-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background 0.25s var(--sh-ease), transform 0.25s var(--sh-ease), border-color 0.25s var(--sh-ease);
}

.sh-social a:hover {
  background: var(--sh-accent);
  border-color: transparent;
  transform: translateY(-2px);
}

@keyframes sh-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .sh-map {
    grid-template-columns: 1fr;
  }

  .sh-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .sh-hub__inner--hero {
    min-height: 0;
  }

  .sh-stage__grid {
    grid-template-columns: 1fr;
  }

  .sh-stage__photo {
    min-height: 180px;
    order: -1;
  }

  .sh-stage__photo img {
    min-height: 180px;
    max-height: 220px;
  }

  .sh-destinations {
    grid-template-columns: 1fr;
  }

  .sh-dest {
    min-height: 108px;
  }

  .sh-brand__logo {
    width: min(240px, 72%);
  }
}

@media (max-width: 560px) {
  .sh-footer__top {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-stage,
  .sh-destinations,
  .sh-choose,
  .sh-dest,
  .sh-dest__glow,
  .sh-stage__photo img {
    animation: none !important;
    transition: none !important;
  }
}
