/* Nostalgiakeskus "Kadrina" — retro brändi stiilid */

:root {
  --cream: #F6E6BB;
  --cream-deep: #EED9A0;
  --orange: #F5A623;
  --red: #E54524;
  --red-dark: #B9321A;
  --teal: #44A09F;
  --teal-dark: #2E7473;
  --ink: #2A1A12;
  --ink-soft: #5A4536;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-stretch: 125%;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Päis ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 44px; }
.brand-name {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.nav-toggle {
  display: none;
  background: var(--red);
  color: var(--cream);
  border: 0;
  border-radius: var(--radius);
  padding: 10px 14px;
  font: 700 0.85rem/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--cream-deep); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--red); color: var(--cream); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 3px solid var(--ink);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .site-nav a { border-radius: var(--radius); }
}

/* ---------- Dekoratsioonid ---------- */

.checker {
  height: 48px;
  background-color: var(--cream);
  background-image:
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%);
  background-size: 48px 48px;
  background-position: 0 0, 24px 24px;
}
.checker--small { height: 24px; background-size: 24px 24px; background-position: 0 0, 12px 12px; }

.stripes {
  position: absolute;
  pointer-events: none;
  color: var(--teal);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: var(--cream);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.hero .eyebrow { color: var(--orange); }
.hero h1 { color: var(--cream); }
.hero h1 span { color: var(--orange); display: block; }
.hero p.lead { font-size: 1.2rem; max-width: 34em; }

.hero-photo {
  position: relative;
  border: 6px solid var(--cream);
  border-radius: var(--radius);
  box-shadow: 12px 12px 0 var(--teal);
  transform: rotate(1.5deg);
}
.hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.hero .stripes--left { left: -70px; top: 40px; width: 220px; }
.hero .stripes--right { right: -60px; bottom: -40px; width: 200px; color: var(--orange); }

@media (max-width: 1360px) {
  .hero .stripes--left { display: none; }
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--ghost { background: var(--cream); }

/* ---------- Sektsioonid ---------- */

.section { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.section--teal { background: var(--teal); color: var(--cream); }
.section--teal h2 { color: var(--cream); }
.section--orange { background: var(--orange); }

.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--red); }
.section--teal .section-head .eyebrow { color: var(--ink); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.quote {
  margin: 0;
  padding: 28px 30px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--red);
  font-size: 1.1rem;
}
.quote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--red);
  margin-bottom: 8px;
}

/* faktid */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 420px;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 18px 16px;
  border: 3px solid var(--ink);
}
.facts strong {
  display: block;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--red);
}
.facts span { font-size: 0.9rem; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* galerii */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 3px solid var(--ink); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* lahtiolekuaeg */
.hours {
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 8px 8px 0 var(--orange);
}
.hours h3 { margin-bottom: 16px; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours .price {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed var(--ink-soft);
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.2rem;
}
.hours .note { font-size: 0.92rem; color: var(--ink-soft); margin: 14px 0 0; }

/* facebooki uudisvoog */
.feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 28px;
}

.feed-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 28px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
}

.post {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.post:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.post-img { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--ink); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-body p { margin: 0 0 14px; font-size: 0.97rem; white-space: pre-line; }
.post-more { margin-top: auto; font-weight: 700; font-size: 0.9rem; color: var(--red); }

/* ---------- Lehe päis (alamlehed) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--teal);
  color: var(--cream);
  padding: clamp(48px, 8vw, 88px) 0;
}
.page-hero h1 { color: var(--cream); margin: 0; }
.page-hero .eyebrow { color: var(--orange); }
.page-hero p { max-width: 36em; margin: 16px 0 0; font-size: 1.15rem; }
.page-hero .stripes { right: -50px; top: 50%; transform: translateY(-50%); width: 240px; color: var(--orange); }
@media (max-width: 600px) { .page-hero .stripes { display: none; } }

/* ---------- Üritused ---------- */

.events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

.event {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.event:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.event-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--ink); }
.event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-img:empty { background: var(--orange) url(../img/logo.png) center / auto 60% no-repeat; }
.event-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.event-date {
  align-self: flex-start;
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.event h3 { margin-bottom: 8px; }
.event h3 a { color: var(--ink); text-decoration: none; }
.event h3 a:hover { color: var(--red); }
.event p { margin: 0 0 14px; font-size: 0.97rem; color: var(--ink-soft); }
.event-link { margin-top: auto; font-weight: 700; font-size: 0.9rem; }
.event-date--upcoming { background: var(--red); color: var(--cream); }
.event p.event-place { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.event-desc { white-space: pre-line; }
/* Kirjeldus ainult esiletõstetud üritusel */
.event:not(.event--featured) .event-desc { display: none; }

.event--featured { grid-column: 1 / -1; flex-direction: row; }
.event--featured .event-img { flex: 1.2; aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 3px solid var(--ink); }
.event--featured .event-body { flex: 1; padding: 32px; justify-content: center; }
.event--featured h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
@media (max-width: 760px) {
  .event--featured { flex-direction: column; }
  .event--featured .event-img { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 3px solid var(--ink); }
  .event--featured .event-body { padding: 20px; }
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 8px 8px 0 var(--teal);
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  display: grid;
  place-items: center;
}
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-list a { color: var(--ink); font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--red); }

.map {
  margin-top: 28px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Jalus ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 48px 0 28px;
  font-size: 0.95rem;
}
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--orange); }
.site-footer p { margin: 0 0 6px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 56px; }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(246, 230, 187, 0.2);
  padding-top: 20px;
  font-size: 0.85rem;
  opacity: 0.75;
}
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
