/* ==========================================================================
   style.css — sections of the Luxury Hotel page
   Every measurement below comes from the Figma frame "Test 1 / 1203"
   (1200 x 4187, 60px padding, 1080px content column).

   Layout methods: normal flow, float layout, positioned layout.
   No display:flex, no display:grid, no gap.
   ========================================================================== */

/* ==========================================================================
   1. Header — sticky navigation (68px tall, 12px vertical padding)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  transition: box-shadow 0.25s ease;
}

/* Only appears once the page has scrolled; the design itself has no border. */
.site-header.is-scrolled {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 12px rgba(16, 24, 40, 0.05);
}

/* overflow:hidden gives the bar its own block formatting context so the
   floated brand and menu are contained by the 68px header. */
.nav {
  height: 68px;
  padding: 12px 0;
  overflow: hidden;
}

/* --- Brand ------------------------------------------------------------- */

.brand {
  float: left;
  height: 44px;
}

.brand__logo {
  float: left;
  width: 41px;
  height: 41px;
  margin-top: 1px;
}

.brand__name {
  float: left;
  height: 44px;
  margin-left: 8px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  line-height: 44px;
  white-space: nowrap;
}

/* --- Menu -------------------------------------------------------------- */

.nav__right {
  float: right;
  height: 44px;
}

.nav__links {
  float: left;
  height: 44px;
}

.nav__links li {
  float: left;
}

/* 12px padding + 20px line-height = the 44px row height from Figma, with the
   label sitting on the same baseline as the 10px/1.4 spec. */
.nav__links a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: background-color 0.2s ease;
}

.nav__links a:hover {
  background-color: #f9fafb;
}

.nav__divider {
  float: left;
  width: 1px;
  height: 44px;
  margin: 0 24px;
  background-color: #e5e7eb;
}

.nav__actions {
  float: left;
  height: 44px;
}

/* Both buttons keep their exact Figma height and are centred in the 44px row
   with a top margin rather than being stretched to fit. */
.nav__actions .btn--outline {
  float: left;
  margin-top: 1px;
}

.nav__actions .btn--dark {
  float: left;
  margin-top: 2px;
  margin-left: 16px;
}

/* ==========================================================================
   2. Hero — 688px, background photo with a 40% black scrim
   ========================================================================== */

.hero {
  position: relative;
  height: 688px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero__container {
  position: relative;
  height: 100%;
}

/* Absolutely centred inside the 688px band; 60px matches the frame padding
   because an absolute child is placed against the container's padding box. */
.hero__content {
  position: absolute;
  top: 50%;
  left: 60px;
  width: 592px;
  transform: translateY(-50%);
}

.hero__overline {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero__title {
  margin-top: 8px;
  color: #ffffff;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.hero__text {
  width: 488px;
  margin-top: 18px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.4;
}

.hero__cta {
  margin-top: 32px;
}

/* ==========================================================================
   3. Client logos — "Endorsed by over 250+ top-tier clients"
   ========================================================================== */

.clients {
  padding: 60px 0;
  background-color: #ffffff;
}

.clients__title {
  color: #111827;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.48px;
  text-align: center;
}

.clients__row {
  margin-top: 32px;
}

/* Four floated cards separated by the 4px gap from the design. */
.client {
  float: left;
  width: calc((100% - 12px) / 4);
  margin-left: 4px;
  padding: 18px 0;
  background-color: #f9fafb;
  line-height: 0;   /* drops the inline descender so the block is exactly 68px */
  text-align: center;
}

.client:first-child {
  margin-left: 0;
}

.client img {
  display: inline-block;
  height: 32px;
}

.client__logo-1 { width: 110px; }
.client__logo-2 { width: 172px; }
.client__logo-3 { width: 192px; }
.client__logo-4 { width: 188.8px; }

/* ==========================================================================
   4. Services — "Experience Unforgettable Stays"
   ========================================================================== */

.services {
  padding: 60px 0;
  background-color: #ffffff;
}

.services__row {
  position: relative;
  height: 500px;
}

/* Copy column is centred against the 500px image with positioned layout. */
.services__text {
  position: absolute;
  top: 50%;
  left: 0;
  width: 50%;
  transform: translateY(-50%);
}

.services__media {
  height: 500px;
}

.services__media-inner {
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.services__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services__title {
  margin-top: 24px;
}

.services__list {
  margin-top: 24px;
}

.services__list li {
  margin-top: 16px;
}

.services__list li:first-child {
  margin-top: 0;
}

/* Floated 24px check, copy beside it in its own block formatting context. */
.check {
  position: relative;
  float: left;
  width: 24px;
  height: 24px;
}

.check img {
  position: absolute;
  top: 5.25px;
  left: 2.85px;
  width: 18.3px;
  height: 13.5px;
}

.services__list p {
  overflow: hidden;
  padding-left: 12px;
  color: #374151;
  font-size: 16px;
  line-height: 1.4;
}

.services__divider {
  margin-top: 24px;
}

.services__note {
  margin-top: 24px;
  color: #374151;
  font-size: 16px;
  line-height: 1.4;
}

.services__cta {
  margin-top: 24px;
}

/* ==========================================================================
   5. Reasons — "Reasons to Choose Our Luxury Hotel"
   ========================================================================== */

.reasons {
  padding: 60px 0;
  background-color: #f9fafb;
}

.reasons__row {
  margin-top: 48px;
}

/* Figma stretches the three cards to a common height. Floated boxes do not
   stretch, so the tallest card's content height is pinned as a minimum and
   all three end up flush. */
.reason {
  min-height: 223.2px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.06);
}

.reason__icon {
  width: 48px;
  height: 48px;
  background-color: #fff2df;
  border-radius: 200px;
}

.reason__icon img {
  width: 18.25px;
  height: 14.5px;
}

.reason__title {
  margin-top: 20px;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.4px;
}

.reason__text {
  margin-top: 20px;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.4;
}

/* ==========================================================================
   6. Rooms — "Explore our premium hotel rooms"
   ========================================================================== */

.rooms {
  padding: 60px 0;
  background-color: #ffffff;
}

.rooms__row {
  margin-top: 32px;
}

.room__media {
  height: 216px;
  border-radius: 6px;
  overflow: hidden;
}

.room__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fixed text height so the three Book Now buttons line up, as in the design. */
.room__text {
  min-height: 120px;
  margin-top: 24px;
}

.room__title {
  color: #111827;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.48px;
}

.room__desc {
  margin-top: 8px;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.4;
}

.room__cta {
  margin-top: 24px;
}

/* ==========================================================================
   7. FAQ
   ========================================================================== */

.faq {
  padding: 60px 0;
  background-color: #f9fafb;
}

.faq__card {
  width: 710px;
  margin: 0 auto;
  padding: 32px 16px 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.faq__title {
  padding: 0 16px;
  color: #111827;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-align: center;
}

.faq__list {
  margin-top: 24px;
}

.faq__item {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.faq__item + .faq__item {
  margin-top: 8px;
}

.faq__item.is-open,
.faq__item:last-child {
  border-bottom: 0;
}

/* The chevron is pinned to the right edge with positioned layout. */
.faq__q {
  position: relative;
  display: block;
  width: 100%;
  padding-right: 32px;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.faq__icon {
  position: absolute;
  top: 50%;
  right: 0;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  transition: transform 0.25s ease;
}

.faq__icon img {
  width: 11.5px;
  height: 6.5px;
}

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
}

.faq__a {
  display: none;
  margin-top: 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
}

.faq__item.is-open .faq__a {
  display: block;
}

/* ==========================================================================
   8. CTA — "Discover Unmatched Luxury and Comfort"
   ========================================================================== */

.cta {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.cta__container {
  position: relative;
}

.cta__row {
  position: relative;
  min-height: 290px;
}

/* Amenities panel floats right; the copy is centred against it. */
.cta__panel {
  float: right;
  width: 334px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 6px;
}

.cta__content {
  position: absolute;
  top: 50%;
  left: 0;
  width: 714px;
  transform: translateY(-50%);
}

.cta__title {
  color: #ffffff;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.cta__text {
  margin-top: 16px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.4;
}

.cta__cta {
  margin-top: 32px;
}

.cta__panel-title {
  color: #dba558;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

.cta__panel-divider {
  margin-top: 20px;
}

.cta__amenities {
  margin-top: 20px;
}

.cta__amenities li {
  margin-top: 16px;
}

.cta__amenities li:first-child {
  margin-top: 0;
}

.cta__amenities .check-sm {
  position: relative;
  float: left;
  width: 20px;
  height: 20px;
  margin-top: 2.6px;
}

.cta__amenities .check-sm img {
  position: absolute;
  top: 5px;
  left: 3px;
  width: 14px;
  height: 10px;
}

.cta__amenities span {
  display: block;
  overflow: hidden;
  padding-left: 10px;
  color: #111827;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.site-footer {
  padding: 64px 0;
  background-color: #ffffff;
}

.footer__brand {
  float: left;
  width: 339px;
}

.footer__logo {
  height: 41px;
}

.footer__logo img {
  float: left;
  width: 41px;
  height: 41px;
}

.footer__logo span {
  float: left;
  height: 41px;
  margin-left: 8px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  line-height: 41px;
  white-space: nowrap;
}

.footer__copy {
  margin-top: 16px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
}

.footer__lang {
  margin-top: 16px;
  padding: 8px 12px;
}

.footer__lang img {
  float: left;
  width: 16px;
  height: 16px;
}

.footer__lang span {
  float: left;
  margin: 0 6px;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.footer__lang .footer__lang-caret {
  position: relative;
  float: left;
  width: 16px;
  height: 16px;
  margin: 0;
}

.footer__lang .footer__lang-caret img {
  position: absolute;
  top: 50%;
  left: 50%;
  float: none;
  width: 9.2px;
  height: 5.2px;
  margin: -2.6px 0 0 -4.6px;
}

/* Link columns: 3 x 215px with the 32px gap from Figma. */
.footer__links {
  float: right;
  width: 709px;
}

.footer__col {
  float: left;
  width: 215px;
  margin-left: 32px;
}

.footer__col:first-child {
  margin-left: 0;
}

.footer__heading {
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.footer__list {
  margin-top: 15px;
}

/* The type is set on the list item, not just the anchor, so the line box is
   19.6px like Figma instead of inheriting the 16px/1.4 body strut. */
.footer__list li {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.footer__list li:first-child {
  margin-top: 0;
}

.footer__list a {
  display: block;
  color: #6b7280;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__list a:hover {
  color: #111827;
}

.footer__social {
  margin-top: 15px;
}

.footer__social li {
  float: left;
  margin-left: 16px;
}

.footer__social li:first-child {
  margin-left: 0;
}

.footer__social img {
  width: 20px;
  height: 20px;
  transition: opacity 0.2s ease;
}

.footer__social a:hover img {
  opacity: 0.7;
}
