/* ===================================================
   modules.css — shared component patterns
   Hotel Cēsis demo
=================================================== */

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-8);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
}

.nav--scrolled {
  background: rgba(248, 243, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--line);
}

.nav__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 0;
  line-height: 1;
}

.nav__logo-main {
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__logo-sub {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.nav--hero .nav__logo-main,
.nav--hero .nav__logo-sub {
  color: rgba(248, 243, 236, 0.95);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav--hero .nav__links a {
  color: rgba(248, 243, 236, 0.9);
}

.nav__links a:hover {
  opacity: 1;
}

.nav__cta {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 500;
  color: #F8F3EC;
  background: var(--color-accent);
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.nav__cta:hover {
  background: #5E1826;
  transform: translateY(-1px);
}

.nav--hero .nav__cta {
  background: rgba(248, 243, 236, 0.15);
  border: 1px solid rgba(248, 243, 236, 0.4);
  color: #F8F3EC;
  backdrop-filter: blur(4px);
}

.nav--hero .nav__cta:hover {
  background: rgba(248, 243, 236, 0.25);
}

/* Mobile nav toggle */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-2);
  flex-direction: column;
  gap: 5px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.nav--hero .nav__hamburger span {
  background: rgba(248, 243, 236, 0.9);
}

/* --- Trust strip --- */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--color-text);
}

.trust-strip__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s-6) var(--s-4);
  border-right: 1px solid rgba(248, 243, 236, 0.12);
  text-align: center;
}

.trust-strip__item:last-child {
  border-right: none;
}

.trust-strip__number {
  font-family: var(--font-display);
  font-size: var(--fs-36);
  font-weight: 700;
  color: #F8F3EC;
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-strip__label {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: rgba(248, 243, 236, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--s-2);
}

/* --- Section headers --- */
.section-eyebrow {
  display: block;
  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-3);
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--fs-36);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

/* --- Room cards --- */
.room-card {
  background: var(--color-card);
  border: var(--line);
  border-radius: 3px;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26, 21, 17, 0.12);
}

.room-card:hover::before {
  transform: scaleY(1);
}

.room-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.room-card__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}

.room-card__from {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

.room-card__price {
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.room-card__per {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  color: var(--color-muted);
}

.room-card__details {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  color: var(--color-muted);
  line-height: 1.6;
  border-top: var(--line);
  padding-top: var(--s-3);
}

.room-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-top: var(--s-3);
  transition: gap 0.2s ease;
}

.room-card__cta:hover {
  gap: var(--s-3);
}

.room-card__cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Amenity blocks --- */
.amenity-block {
  padding: var(--s-6) 0;
  border-bottom: var(--line);
}

.amenity-block:last-child {
  border-bottom: none;
}

.amenity-block__header {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-3);
}

.amenity-block__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border: var(--line);
  border-radius: 2px;
  color: var(--color-accent);
}

.amenity-block__title {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.amenity-block__body {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 540px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  border-radius: 2px;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #F8F3EC;
  padding: 0.85rem 2.25rem;
}

.btn--primary:hover {
  background: #5E1826;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(122, 32, 48, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  padding: 0.80rem 2rem;
  border: var(--line);
}

.btn--ghost:hover {
  background: var(--color-bg-alt);
}

.btn--ghost-light {
  background: transparent;
  color: #F8F3EC;
  padding: 0.80rem 2rem;
  border: 1px solid rgba(248, 243, 236, 0.4);
}

.btn--ghost-light:hover {
  background: rgba(248, 243, 236, 0.1);
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--color-accent);
  display: block;
  margin: var(--s-4) 0;
}
