/* 
  Landing page: Osnivač | Spomenik Vinkovačkim jesenima
  Audio datoteka treba biti: audio/vinkovacke-jeseni.mp3
*/

:root {
  --bg: #140b07;
  --bg-2: #21100a;
  --text: #fff6ec;
  --muted: rgba(255, 246, 236, 0.76);
  --soft: rgba(255, 246, 236, 0.12);
  --soft-2: rgba(255, 246, 236, 0.08);
  --gold: #e7b765;
  --gold-2: #f4d591;
  --brown: #7a4527;
  --green: #4a5d32;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(231, 183, 101, 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(74, 93, 50, 0.18), transparent 30rem),
    var(--bg);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/hero-osnivac.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  z-index: -3;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 11, 7, 0.95) 0%, rgba(20, 11, 7, 0.72) 43%, rgba(20, 11, 7, 0.25) 100%),
    linear-gradient(0deg, rgba(20, 11, 7, 0.98) 0%, transparent 45%);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -22% -20%;
  height: 45%;
  background: radial-gradient(ellipse at center, rgba(231, 183, 101, 0.22), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.topbar {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: start;
  position: relative;
  z-index: 4;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 213, 145, 0.65);
  border-radius: 50%;
  color: var(--gold-2);
  background: rgba(20, 11, 7, 0.45);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-family: Fraunces, Georgia, serif;
}

.nav-link {
  border: 1px solid rgba(255, 246, 236, 0.2);
  border-radius: 999px;
  padding: 10px 16px;
  color: rgba(255, 246, 236, 0.86);
  backdrop-filter: blur(12px);
  background: rgba(20, 11, 7, 0.25);
}

.hero-content {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  align-self: center;
  padding: 80px 0 110px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  line-height: 0.98;
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(5rem, 16vw, 11rem);
  letter-spacing: -0.08em;
  text-shadow: 0 25px 60px rgba(0,0,0,0.48);
}

h2 {
  font-size: clamp(2.2rem, 6vw, 4.75rem);
  letter-spacing: -0.055em;
}

.lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.audio-btn,
.ghost-btn {
  min-height: 54px;
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.audio-btn {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  border: 0;
  color: #241209;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 18px 44px rgba(231, 183, 101, 0.3);
}

.audio-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.audio-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(36, 18, 9, 0.12);
  font-size: 0.75rem;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 246, 236, 0.25);
  color: var(--text);
  background: rgba(255, 246, 236, 0.08);
  backdrop-filter: blur(16px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  border: 1px solid rgba(244, 213, 145, 0.35);
  background: rgba(20, 11, 7, 0.35);
  backdrop-filter: blur(12px);
}

main {
  position: relative;
}

.intro-panel {
  width: min(100% - 40px, var(--max));
  margin: -68px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 30px;
  padding: clamp(26px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(255, 246, 236, 0.13), rgba(255, 246, 236, 0.06)),
    rgba(33, 16, 10, 0.86);
  border: 1px solid rgba(255, 246, 236, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.intro-panel p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.content-section,
.gallery-section,
.quote-section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: clamp(74px, 11vw, 130px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.centered {
  text-align: center;
  margin-inline: auto;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.story-card {
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 246, 236, 0.07);
  border: 1px solid rgba(255, 246, 236, 0.11);
  border-radius: 24px;
}

.story-card.wide {
  grid-column: 1 / -1;
}

.story-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.story-card p + p {
  margin-top: 16px;
}

.year {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(231, 183, 101, 0.1);
  border: 1px solid rgba(231, 183, 101, 0.22);
  font-weight: 800;
}

.image-break {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 246, 236, 0.13);
}

.image-break img {
  width: 100%;
  height: clamp(360px, 65vw, 760px);
  object-fit: cover;
  object-position: center;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 7vw, 80px);
  align-items: start;
}

.copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.copy p:first-child {
  margin-top: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.gallery figure {
  margin: 0;
  min-height: 340px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--soft-2);
  border: 1px solid rgba(255, 246, 236, 0.1);
}

.gallery figure:first-child {
  grid-row: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-section {
  padding-top: 26px;
}

blockquote {
  margin: 0;
  position: relative;
  padding: clamp(34px, 7vw, 74px);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(231, 183, 101, 0.17), rgba(74, 93, 50, 0.13)),
    rgba(255, 246, 236, 0.07);
  border: 1px solid rgba(244, 213, 145, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quote-mark {
  position: absolute;
  right: 36px;
  top: -18px;
  font-family: Fraunces, Georgia, serif;
  font-size: 10rem;
  line-height: 1;
  color: rgba(244, 213, 145, 0.12);
}

blockquote p {
  position: relative;
  margin: 0;
  max-width: 850px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.1rem, 7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

cite {
  display: block;
  margin-top: 28px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.footer {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 44px 0 54px;
  border-top: 1px solid rgba(255, 246, 236, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}

.city-logo {
  width: 50px;
  height: auto;
}

.floating-audio {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: #241209;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
  display: none;
  place-items: center;
  cursor: pointer;
}

.floating-audio.visible {
  display: grid;
}

@media (max-width: 860px) {
  .hero {
    min-height: 96svh;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(20, 11, 7, 0.99) 0%, rgba(20, 11, 7, 0.72) 52%, rgba(20, 11, 7, 0.28) 100%),
      linear-gradient(90deg, rgba(20, 11, 7, 0.76), rgba(20, 11, 7, 0.12));
  }

  .topbar {
    width: min(100% - 28px, var(--max));
  }

  .nav-link {
    display: none;
  }

  .hero-content {
    width: min(100% - 28px, var(--max));
    align-self: end;
    padding: 150px 0 96px;
  }

  h1 {
    font-size: clamp(4.3rem, 22vw, 7rem);
  }

  .audio-btn,
  .ghost-btn {
    width: 100%;
    justify-content: center;
  }

  .intro-panel,
  .two-col,
  .story-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .intro-panel,
  .content-section,
  .gallery-section,
  .quote-section,
  .footer,
  .image-break {
    width: min(100% - 28px, var(--max));
  }

  .intro-panel {
    margin-top: -42px;
  }

  .gallery figure,
  .gallery figure:first-child {
    grid-row: auto;
    min-height: 260px;
  }

  .image-break img {
    height: 430px;
  }

  blockquote p {
    letter-spacing: -0.045em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
