:root {
  --red: #9f1724;
  --red-dark: #74101a;
  --cream: #f8f1e5;
  --ink: #16100e;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  background: #120c0b;
}

a { color: inherit; }

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

.site-shell {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero-photo, .shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-photo {
  background-image: url("/assets/pozadina3.jpg?v=20261103-0031");
  background-image: image-set(
    url("/assets/pozadina3.webp?v=20261103-0031") type("image/webp") 1x,
    url("/assets/pozadina3.jpg?v=20261103-0031") type("image/jpeg") 1x
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.015);
  animation: reveal-photo 1.4s ease-out both;
}

.shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 7, 6, .89) 0%, rgba(12, 7, 6, .72) 38%, rgba(12, 7, 6, .22) 72%, rgba(12, 7, 6, .34) 100%),
    linear-gradient(0deg, rgba(9, 5, 4, .74) 0%, transparent 34%);
}

.hero {
  width: min(1140px, 100%);
  margin: auto;
  padding: clamp(34px, 7vh, 76px) clamp(24px, 6vw, 80px) 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand {
  width: min(390px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
  filter: drop-shadow(0 3px 16px rgba(0,0,0,.55));
  animation: rise .65s ease-out both;
}

.brand-kicker {
  margin-bottom: -10px;
  font: 700 .76rem/1 Arial, sans-serif;
  letter-spacing: .44em;
  color: #e7cc99;
}

.brand-name {
  font: italic 700 clamp(4.5rem, 9vw, 7rem)/.98 Georgia, serif;
  letter-spacing: -.08em;
  text-transform: none;
  color: #fff;
  text-shadow: 3px 3px 0 var(--red), 5px 5px 0 rgba(0,0,0,.28);
  padding-right: .08em;
}

.brand-rule { width: 88%; border-top: 3px solid var(--red); }

.brand-subtitle {
  margin-top: 8px;
  font: 700 .83rem/1 Arial, sans-serif;
  letter-spacing: .32em;
  color: #f4e8d4;
}

.actions {
  width: min(390px, 92vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: clamp(28px, 4.8vh, 46px) 0 clamp(34px, 6vh, 58px);
  animation: rise .65s .1s ease-out both;
}

.action-button {
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid var(--red);
  border-radius: 2px;
  padding: 12px 16px;
  color: #fff;
  background: var(--red);
  font: 800 .77rem/1 Arial, sans-serif;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.action-button--light { background: var(--red); border-color: var(--red); }
.action-button:hover, .action-button:focus-visible { transform: translateY(-2px); background: var(--red-dark); border-color: var(--red-dark); }
.action-button--light:hover, .action-button--light:focus-visible { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: clamp(24px, 5vw, 64px);
  animation: rise .65s .2s ease-out both;
}

.detail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: center;
  text-decoration: none;
}

.detail-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  color: #fff;
}

.detail-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.detail > span:last-child { width: 100%; }
.detail strong, .detail small { display: block; }
.detail strong {
  font: 800 clamp(1.04rem, 1.55vw, 1.28rem)/1.28 Arial, sans-serif;
  letter-spacing: .01em;
  text-shadow: 0 2px 5px rgba(0,0,0,.95), 0 0 16px rgba(0,0,0,.7);
}
.detail small {
  margin-top: 5px;
  font: 700 clamp(.88rem, 1.15vw, 1rem)/1.35 Arial, sans-serif;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,.95), 0 0 14px rgba(0,0,0,.75);
}
.inline-link { display: block; text-decoration: none; }
.detail[href]:hover strong, .inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }

footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
  background: rgba(7,5,4,.8);
  border-top: 1px solid rgba(255,255,255,.12);
}

.accessibility-link {
  border: 0;
  padding: 6px;
  color: rgba(255,255,255,.72);
  background: transparent;
  font: 400 .72rem Arial, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.footer-logo {
  display: block;
  width: 104px;
  height: auto;
  border-radius: 4px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55));
}

.accessibility-dialog {
  width: min(560px, calc(100% - 32px));
  border: 0;
  border-top: 6px solid var(--red);
  padding: 32px;
  color: #2a211e;
  background: var(--cream);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.accessibility-dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(3px); }
.accessibility-dialog h2 { margin: 0 40px 14px 0; font-size: 1.65rem; }
.accessibility-dialog p { font: 400 .98rem/1.65 Arial, sans-serif; }
.accessibility-dialog a { color: var(--red-dark); }
.dialog-close { position: absolute; top: 14px; right: 18px; border: 0; background: none; font-size: 2rem; cursor: pointer; }
.dialog-button { border: 0; padding: 11px 22px; color: #fff; background: var(--red); font: 700 .8rem Arial, sans-serif; text-transform: uppercase; cursor: pointer; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes reveal-photo { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1.015); } }

@media (max-width: 820px) {
  .hero { justify-content: center; }
  .details { grid-template-columns: 1fr; gap: 22px; width: min(440px, 100%); }
  .shade { background: linear-gradient(90deg, rgba(10,6,5,.88), rgba(10,6,5,.6)), linear-gradient(0deg, rgba(8,4,3,.7), transparent 50%); }
  .hero-photo { background-position: 57% center; }
}

@media (max-width: 540px) {
  .site-shell { min-height: 100svh; overflow: auto; }
  .hero { padding: 38px 22px 32px; align-items: center; }
  .brand { width: 100%; }
  .brand-name { font-size: clamp(4rem, 22vw, 5.4rem); }
  .brand-kicker { font-size: .65rem; }
  .brand-subtitle { font-size: .7rem; }
  .actions { width: 100%; margin: 28px 0 34px; }
  .action-button { min-height: 50px; padding-inline: 8px; font-size: .7rem; }
  .details { gap: 19px; }
  .detail-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .detail-icon svg { width: 32px; height: 32px; }
  .detail strong { font-size: 1.02rem; }
  .detail small { font-size: .88rem; }
  .hero-photo { background-position: 55% center; }
  .shade { background: rgba(8,5,4,.7); }
  footer { flex-direction: column; gap: 2px; padding-block: 10px; }
  .footer-logo { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
