/*
Theme Name: Viis Events
Theme URI: https://viisevents.ee/
Author: Viis Events
Description: Viis Eventsi ühe lehega ettevõtteürituste veeb.
Version: 1.0.0
Text Domain: viis-events
*/

:root {
  --navy: #07182c;
  --gold: #d9aa52;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(330px, 1fr) auto;
  padding: 0 clamp(24px, 6vw, 96px) clamp(28px, 5vw, 64px);
}

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

.photo-layer {
  background-position: center 50%;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.01);
}

.shade-layer {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 17, 31, 0.94) 0%, rgba(4, 17, 31, 0.72) 43%, rgba(4, 17, 31, 0.2) 78%),
    linear-gradient(0deg, rgba(4, 17, 31, 0.9) 0%, rgba(4, 17, 31, 0) 55%);
}

.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(217, 170, 82, 0.85);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.top-contact {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-contact::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  transition: transform 180ms ease;
}

.top-contact:hover::after,
.top-contact:focus-visible::after {
  transform: scaleX(0.45);
}

.hero {
  align-self: center;
  width: min(740px, 76vw);
  padding: clamp(54px, 9vw, 122px) 0 clamp(44px, 7vw, 90px);
}

.eyebrow,
.section-label {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8.4vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-wrap: balance;
}

h1 span {
  color: var(--gold);
  font-style: italic;
}

.lead {
  max-width: 560px;
  margin: 32px 0 0;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.6;
}

.info-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.8fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 22, 39, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.about-block,
.contact-block {
  padding: clamp(28px, 4vw, 52px);
}

.contact-block {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.section-label {
  margin-bottom: 14px;
}

.about-text {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.35;
}

.contact-lines {
  display: grid;
  gap: 6px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-lines a {
  width: fit-content;
  text-decoration-color: rgba(217, 170, 82, 0.55);
  text-underline-offset: 4px;
}

.contact-lines a:hover,
.contact-lines a:focus-visible {
  color: var(--white);
}

.photo-credit {
  position: absolute;
  right: clamp(24px, 6vw, 96px);
  bottom: 9px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  text-decoration: none;
}

.photo-credit:hover,
.photo-credit:focus-visible {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 760px) {
  .site-shell {
    grid-template-rows: auto auto auto;
    min-height: 100svh;
    overflow: visible;
    padding: 0 18px 32px;
  }

  .photo-layer {
    position: fixed;
    background-position: 58% center;
  }

  .shade-layer {
    position: fixed;
    background:
      linear-gradient(90deg, rgba(4, 17, 31, 0.88), rgba(4, 17, 31, 0.42)),
      linear-gradient(0deg, rgba(4, 17, 31, 0.96) 0%, rgba(4, 17, 31, 0.14) 70%);
  }

  .topbar {
    min-height: 76px;
  }

  .hero {
    width: 100%;
    padding: 70px 2px 64px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

  .lead {
    max-width: 94%;
  }

  .info-panel {
    grid-template-columns: 1fr;
  }

  .contact-block {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .photo-credit {
    position: static;
    justify-self: end;
    margin-top: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
