/* Hostel Raza — minimalist prototype */

:root {
  --black: #090909;
  --white: #ffffff;
  --gray: #707070;
  --line: #d9d9d9;
  --page-pad: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 64px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: var(--white);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 4px;
}

.site-header a:focus-visible {
  outline-color: var(--white);
}

.site-header {
  height: 64px;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 9, 0.96);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.brand,
.header-contact,
.section-label,
.eyebrow,
footer {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-select {
  min-height: 36px;
  padding: 0 26px 0 10px;
  border: 1px solid #555;
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-select:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.header-contact {
  border-bottom: 1px solid var(--white);
  padding-bottom: 4px;
}

.hero {
  padding: clamp(32px, 5vw, 60px) var(--page-pad) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
}

.hero h1,
.about h2,
.contact h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.hero h1 {
  font-size: clamp(50px, 6.5vw, 96px);
  font-weight: 700;
}

.hero-subtitle {
  max-width: 480px;
  margin: 24px 0 30px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  color: #3d3d3d;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 190px;
  padding: 15px 18px;
  border: 1px solid;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.photo {
  margin: 0;
}

.photo-image {
  display: block;
  width: 100%;
  object-fit: cover;
}

.photo-image-hero {
  height: clamp(340px, 46vw, 540px);
  object-position: 68% center;
}

.photo-image-secondary {
  height: clamp(300px, 36vw, 400px);
  object-position: center;
}

figcaption {
  margin-top: 10px;
  color: var(--gray);
  font-size: 11px;
}

.about {
  padding: clamp(56px, 6vw, 76px) var(--page-pad);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.45fr 1.05fr 0.9fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.section-label {
  padding-top: 8px;
}

.about h2 {
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 650;
  margin-bottom: 28px;
}

.about-copy p {
  margin: 0 0 20px;
  max-width: 660px;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.65;
}

.terrace {
  padding: clamp(56px, 6vw, 76px) var(--page-pad);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.terrace h2 {
  margin: 28px 0 0;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.terrace .section-label {
  margin: 0;
}

.photo-image-terrace {
  height: clamp(340px, 42vw, 540px);
  object-position: center 72%;
}

.contact {
  padding: clamp(56px, 7vw, 88px) var(--page-pad);
  background: var(--white);
  color: var(--black);
  border-top: 1px solid var(--line);
}

.inverted {
  color: var(--gray);
}

.contact h2 {
  max-width: 780px;
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 650;
}

.phone {
  display: inline-block;
  margin: 34px 0 24px;
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  border-bottom: 2px solid var(--black);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button-light {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.button-outline {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.contact-location {
  margin: 40px 0 0;
  color: var(--gray);
  font-size: 14px;
}

footer {
  min-height: 64px;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--black);
}

.error-page {
  min-height: calc(100vh - 128px);
  padding: clamp(70px, 12vw, 160px) var(--page-pad);
  display: flex;
  align-items: center;
}

.error-content {
  max-width: 980px;
}

.error-code {
  margin: 0 0 28px;
  color: var(--gray);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.error-content h1 {
  margin: 0;
  font-size: clamp(58px, 9vw, 132px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.error-message {
  max-width: 560px;
  margin: 34px 0 40px;
  color: #3d3d3d;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .photo-image-hero {
    height: 68vw;
  }

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

  .terrace {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .photo-image-terrace {
    height: 72vw;
  }

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

  .photo-secondary {
    margin-top: 25px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(52px, 18vw, 82px);
  }

  .about {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .terrace {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  footer {
    padding-top: 24px;
    padding-bottom: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .error-page {
    min-height: calc(100vh - 64px);
  }
}

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

  .button,
  .skip-link {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
