/* ===================================================
   styles.css — Hotel Cēsis demo
   Warm ivory · Heritage burgundy · Libre Baskerville
=================================================== */

/* --- Reset & base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Design tokens --- */
:root {
  --color-bg: #F8F3EC;
  --color-bg-alt: #EFE8DE;
  --color-text: #1A1511;
  --color-muted: #7A6D60;
  --color-accent: #7A2030;
  --color-card: #E6DDCF;
  --color-border: #CEC2B0;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Fluid type scale */
  --fs-12: clamp(0.72rem, 0.66rem + 0.27vw, 0.85rem);
  --fs-14: clamp(0.84rem, 0.78rem + 0.27vw, 0.97rem);
  --fs-16: clamp(0.96rem, 0.90rem + 0.27vw, 1.10rem);
  --fs-18: clamp(1.08rem, 1.00rem + 0.36vw, 1.25rem);
  --fs-22: clamp(1.32rem, 1.20rem + 0.55vw, 1.60rem);
  --fs-28: clamp(1.68rem, 1.45rem + 0.95vw, 2.20rem);
  --fs-36: clamp(2.16rem, 1.80rem + 1.50vw, 3.00rem);
  --fs-48: clamp(2.88rem, 2.30rem + 2.40vw, 4.20rem);
  --fs-64: clamp(3.84rem, 2.80rem + 4.30vw, 6.00rem);
  --fs-96: clamp(5.76rem, 3.60rem + 9.00vw, 11.00rem);

  /* Spacing */
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: clamp(2rem, 1.5rem + 2vw, 4rem);
  --s-16: clamp(3rem, 2rem + 4vw, 6rem);
  --s-24: clamp(4rem, 3rem + 6vw, 9rem);

  /* Layout */
  --max-w: 1280px;
  --max-w-narrow: 720px;
  --line: 1px solid var(--color-border);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* --- Layout containers --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-8);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

/* ===================================================
   HERO
=================================================== */

.hero--hotel {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero__img.loaded {
  transform: scale(1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 21, 17, 0.15) 0%,
    rgba(26, 21, 17, 0.35) 40%,
    rgba(26, 21, 17, 0.6) 65%,
    #F8F3EC 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--s-16);
  padding-top: clamp(8rem, 20vh, 16rem);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 500;
  color: rgba(248, 243, 236, 0.7);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  display: block;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-96);
  font-weight: 700;
  color: #F8F3EC;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: var(--s-6);
  overflow: hidden;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__lede {
  font-family: var(--font-body);
  font-size: var(--fs-18);
  color: rgba(248, 243, 236, 0.8);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: var(--s-8);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.hero__phone {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: 500;
  color: rgba(248, 243, 236, 0.75);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.hero__phone:hover {
  color: rgba(248, 243, 236, 1);
}

.hero__trust {
  position: relative;
  z-index: 2;
  padding-bottom: var(--s-4);
}

.hero__trust-line {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: rgba(248, 243, 236, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 3rem;
  right: var(--s-8);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  color: rgba(248, 243, 236, 0.4);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(248, 243, 236, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 243, 236, 0.7);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ===================================================
   TRUST STRIP (imported via modules.css additions below)
=================================================== */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-text);
}

/* ===================================================
   ROOMS SECTION
=================================================== */

.rooms {
  padding: var(--s-24) 0;
  background: var(--color-bg);
}

.rooms__header {
  margin-bottom: var(--s-12);
}

.rooms__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

/* ===================================================
   ABOUT / HISTORY SECTION
=================================================== */

.about-history {
  padding: var(--s-24) 0;
  background: var(--color-bg-alt);
  border-top: var(--line);
  border-bottom: var(--line);
}

.about-history__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}

.about-history__label {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s-6);
  display: block;
}

.about-history__year {
  font-family: var(--font-display);
  font-size: var(--fs-96);
  font-weight: 700;
  color: var(--color-border);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: var(--s-4);
  display: block;
  user-select: none;
}

.about-history__sub {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  color: var(--color-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-history__text {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.about-history__p {
  font-family: var(--font-body);
  font-size: var(--fs-18);
  color: var(--color-muted);
  line-height: 1.75;
}

.about-history__p strong {
  color: var(--color-text);
  font-weight: 500;
}

.about-history__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--color-bg);
  border: var(--line);
  border-radius: 2px;
  margin-top: var(--s-4);
}

.about-history__rating-number {
  font-family: var(--font-display);
  font-size: var(--fs-22);
  font-weight: 700;
  color: var(--color-accent);
}

.about-history__rating-text {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  color: var(--color-muted);
  line-height: 1.3;
}

.about-history__rating-text strong {
  display: block;
  color: var(--color-text);
}

/* ===================================================
   AMENITIES SECTION
=================================================== */

.amenities {
  padding: var(--s-24) 0;
  background: var(--color-bg);
}

.amenities__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-16);
  align-items: start;
}

.amenities__sticky {
  position: sticky;
  top: calc(80px + var(--s-8));
}

.amenities__blocks {
  display: flex;
  flex-direction: column;
}

/* ===================================================
   BOOKING / CONTACT SECTION
=================================================== */

.booking {
  padding: var(--s-24) 0;
  background: var(--color-text);
  text-align: center;
}

.booking__eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 500;
  color: rgba(122, 32, 48, 0.9);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  display: block;
}

.booking__heading {
  font-family: var(--font-display);
  font-size: var(--fs-48);
  font-weight: 700;
  color: #F8F3EC;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-6);
}

.booking__body {
  font-family: var(--font-body);
  font-size: var(--fs-18);
  color: rgba(248, 243, 236, 0.6);
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.65;
  margin-bottom: var(--s-10);
}

.booking__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-10);
}

.booking__contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  flex-wrap: wrap;
  padding-top: var(--s-8);
  border-top: 1px solid rgba(248, 243, 236, 0.1);
}

.booking__contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.booking__contact-item:hover {
  opacity: 0.8;
}

.booking__contact-label {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: rgba(248, 243, 236, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.booking__contact-value {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: 500;
  color: rgba(248, 243, 236, 0.85);
}

/* ===================================================
   FOOTER
=================================================== */

.footer {
  background: #110E0B;
  padding: var(--s-8) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.footer__left {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: rgba(248, 243, 236, 0.35);
  line-height: 1.6;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--fs-14);
  font-weight: 700;
  color: rgba(248, 243, 236, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer__links {
  display: flex;
  gap: var(--s-6);
}

.footer__links a {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: rgba(248, 243, 236, 0.3);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: rgba(248, 243, 236, 0.65);
}

.footer__kolonna {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: rgba(248, 243, 236, 0.2);
  letter-spacing: 0.05em;
}

/* ===================================================
   ANIMATION STATES (pre-GSAP)
=================================================== */

.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.anim-fade-in {
  opacity: 0;
}

/* ===================================================
   RESPONSIVE
=================================================== */

@media (max-width: 1024px) {
  .rooms__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-history__inner {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }

  .about-history__visual {
    display: none;
  }

  .amenities__inner {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }

  .amenities__sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 64px;
    background: var(--color-bg);
    padding: var(--s-8);
    border-top: var(--line);
    z-index: 99;
    align-items: flex-start;
    gap: var(--s-6);
  }

  .nav__links.open a {
    font-size: var(--fs-22);
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__cta {
    display: none;
  }

  .hero__title {
    font-size: clamp(3.5rem, 15vw, 6rem);
  }

  .rooms__grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-strip__item {
    padding: var(--s-4) var(--s-2);
  }

  .booking__contacts {
    flex-direction: column;
    gap: var(--s-6);
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__scroll {
    display: none;
  }

  .container {
    padding-inline: var(--s-6);
  }
}

@media (max-width: 480px) {
  .hero__lede {
    font-size: var(--fs-16);
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================================================
   UTILITY
=================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Smooth load */
body {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.ready {
  opacity: 1;
}
