/* ========================================
   MY NIGHT HOTEL
   MAIN STYLE
======================================== */


/* ========================================
   VARIABLES
======================================== */

:root {
  --primary: #b89152;
  --primary-dark: #8f6d39;

  --dark: #111315;
  --dark-2: #191c1f;

  --cream: #f7f3eb;
  --white: #ffffff;

  --text: #303238;
  --muted: #777777;

  --border: #e7dfd1;

  --shadow:
    0 18px 50px rgba(0, 0, 0, 0.12);

  --radius: 22px;
}


/* ========================================
   RESET
======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
}

body.modal-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}


/* ========================================
   HEADER
======================================== */

.site-header {
  position: absolute;

  top: 22px;
  right: 22px;
  left: 22px;

  z-index: 50;

  display: flex;
  align-items: center;

  gap: 25px;

  padding: 12px 18px;

  background: rgba(17, 19, 21, 0.82);

  backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 18px;

  color: #fff;
}


/* ========================================
   BRAND
======================================== */

.brand,
.footer-brand {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: max-content;
}

.brand strong,
.footer-brand strong {
  display: block;

  font-family: "Playfair Display", serif;

  font-size: 22px;

  line-height: 1;
}

.brand span,
.footer-brand span {
  display: block;

  font-size: 11px;

  color: #d6c8af;
}


/* ========================================
   LOGO
======================================== */

.logo-mark {
  width: 45px;
  height: 45px;

  display: grid;
  place-items: center;

  border: 1px solid var(--primary);

  border-radius: 12px;

  color: var(--primary);

  font-weight: 800;
}


/* ========================================
   NAVIGATION
======================================== */

.main-nav {
  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 5px;

  flex: 1;
}

.main-nav > a {
  padding: 8px 10px;

  font-size: 13px;

  color: #f2f2f2;

  transition: 0.25s;
}

.main-nav > a:hover {
  color: var(--primary);
}


/* ========================================
   LANGUAGE BUTTONS
======================================== */

.language-switcher {
  display: flex;

  gap: 4px;

  margin-right: 8px;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);

  background: transparent;

  color: #fff;

  border-radius: 9px;

  padding: 5px 8px;

  font-size: 11px;

  transition: 0.25s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary);

  border-color: var(--primary);

  color: #fff;
}


/* ========================================
   MOBILE MENU BUTTON
======================================== */

.menu-btn {
  display: none;

  border: none;

  background: var(--primary);

  color: #fff;

  width: 45px;
  height: 45px;

  border-radius: 12px;

  font-size: 22px;
}


/* ========================================
   HERO
======================================== */

.hero {
  height: 100vh;

  min-height: 650px;

  position: relative;

  overflow: hidden;

  background: #111;
}


/* ========================================
   HERO SLIDER
======================================== */

.hero-slider,
.hero-slide {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;
}

.hero-slide {
  object-fit: cover;

  opacity: 0;

  transform: scale(1.04);

  transition:
    opacity 1s ease,
    transform 6s ease;
}

.hero-slide.active {
  opacity: 1;

  transform: scale(1);
}


/* ========================================
   HERO OVERLAY
======================================== */

.hero::after {
  content: "";

  position: absolute;

  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.68),
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.52)
    );

  z-index: 1;
}


/* ========================================
   HERO CONTENT
======================================== */

.hero-overlay {
  position: absolute;

  z-index: 2;

  top: 50%;

  left: 9%;

  transform: translateY(-50%);

  color: #fff;

  max-width: 560px;
}

.hero-overlay p:first-child {
  color: #e7d1a8;

  letter-spacing: 4px;

  font-size: 13px;
}

.hero-overlay h1 {
  font-family: "Playfair Display", serif;

  font-size: clamp(60px, 9vw, 120px);

  line-height: 1;

  margin: 12px 0;
}

.hero-overlay p {
  font-size: 18px;

  margin-bottom: 22px;
}


/* ========================================
   HERO DOTS
======================================== */

.hero-dots {
  position: absolute;

  z-index: 3;

  bottom: 35px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  gap: 8px;
}

.hero-dots button {
  width: 28px;
  height: 4px;

  border: none;

  border-radius: 5px;

  background: rgba(255, 255, 255, 0.5);

  transition: 0.3s;
}

.hero-dots button.active {
  background: var(--primary);

  width: 50px;
}


/* ========================================
   GENERAL SECTION
======================================== */

.section {
  padding: 100px 7%;

  max-width: 1500px;

  margin: auto;

  text-align: center;
}


/* ========================================
   SECTION TITLE
======================================== */

.section-heading {
  max-width: 720px;

  margin: 0 auto 45px;
}

.section-heading span,
.eyebrow,
.page-hero span {
  color: var(--primary);

  font-weight: 700;

  font-size: 12px;

  letter-spacing: 2px;
}

.section-heading h2,
.about-content h2 {
  font-size: clamp(30px, 4vw, 48px);

  margin: 5px 0 10px;

  color: var(--dark);
}

.section-heading p {
  color: var(--muted);
}


/* ========================================
   BUTTONS
======================================== */

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  border-radius: 12px;

  padding: 11px 22px;

  border: 1px solid transparent;

  font-weight: 700;

  transition: 0.25s;
}

.btn.primary {
  background: var(--primary);

  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);

  transform: translateY(-2px);
}

.btn.outline {
  border-color: var(--primary);

  color: var(--primary);

  background: transparent;
}

.btn.outline:hover {
  background: var(--primary);

  color: #fff;
}

.btn.small {
  padding: 7px 14px;

  font-size: 12px;
}


/* ========================================
   WHY US
======================================== */

.feature-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;

  margin-bottom: 30px;
}

.feature-grid.large {
  grid-template-columns:
    repeat(4, 1fr);
}

.feature-card {
  text-align: right;

  background: #fff;

  padding: 28px;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card b {
  color: var(--primary);

  font-size: 13px;
}

.feature-card h3 {
  margin: 5px 0;

  color: var(--dark);
}

.feature-card p {
  color: var(--muted);

  font-size: 14px;
}


/* ========================================
   ABOUT
======================================== */

.about-section {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 55px;

  align-items: center;

  text-align: right;

  background: #fff;

  max-width: none;

  padding-left: 10%;
  padding-right: 10%;
}

.about-image img {
  width: 100%;

  height: 520px;

  object-fit: cover;

  border-radius: var(--radius);
}

.about-content p {
  color: var(--muted);

  margin: 15px 0 25px;
}


/* ========================================
   SERVICES
======================================== */

.horizontal-services {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 18px;
}

.service-card {
  position: relative;

  min-height: 340px;
  border: none;

  border-radius: var(--radius);

  overflow: hidden;

  text-align: right;

  background: #222;

  padding: 0;

  color: #fff;
}

.service-card img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.5s;
}

.service-card::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.8),
      transparent 65%
    );
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-content {
  position: absolute;

  z-index: 1;

  bottom: 20px;

  right: 20px;
  left: 20px;

  display: flex;

  flex-direction: column;
}

.service-content b {
  font-size: 20px;
}

.service-content small {
  color: #ddd;
}


/* ========================================
   ROOMS
======================================== */

.rooms-preview {
  background: #f1eadf;

  max-width: none;
}

.room-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;

  margin-bottom: 35px;
}

.room-card {
  background: #fff;

  border-radius: var(--radius);

  overflow: hidden;

  text-align: right;

  box-shadow: var(--shadow);

  transition: 0.3s;
}

.room-card:hover {
  transform: translateY(-5px);
}

.room-card img {
  width: 100%;

  height: 240px;

  object-fit: cover;
}

.room-card > div {
  padding: 20px;
}

.room-card h3 {
  color: var(--dark);
}

.room-card p {
  color: var(--muted);

  font-size: 13px;

  margin: 5px 0 12px;
}


/* ========================================
   GALLERY
======================================== */

.gallery-grid {
  display: grid;

  grid-template-columns:
    1.4fr 1fr;

  gap: 15px;
}

.gallery-grid img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  border-radius: 16px;

  display: block;
}

.gallery-main {
  min-height: 600px;
}

.gallery-small {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 15px;
}

.gallery-small img {
  min-height: 290px;
}


/* ========================================
   LOCATION
======================================== */

.location-section {
  max-width: none;

  background: #fff;
}

.location-grid {
  display: grid;

  grid-template-columns:
    1.4fr 1fr;

  gap: 25px;

  align-items: stretch;
}

.map-wrap {
  min-height: 450px;

  border-radius: var(--radius);

  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;

  height: 100%;

  min-height: 450px;

  border: none;
}

.location-info {
  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: flex-start;

  text-align: right;

  padding: 30px;
}

.location-info h3 {
  font-size: 32px;

  color: var(--dark);
}

.location-info p {
  color: var(--muted);

  margin: 10px 0 25px;
}


/* ========================================
   CONTACT
======================================== */

.contact-section {
  background: #151719;

  color: #fff;

  max-width: none;
}

.contact-section .section-heading h2 {
  color: #fff;
}

.contact-section .section-heading span {
  color: #d9bd8c;
}

.contact-grid {
  display: grid;

  grid-template-columns:
    1.1fr 0.9fr;

  gap: 25px;

  text-align: right;
}


/* ========================================
   CONTACT FORM
======================================== */

.contact-form {
  background: #fff;

  color: var(--text);

  padding: 30px;

  border-radius: var(--radius);

  display: grid;

  gap: 15px;
}

.contact-form label {
  font-size: 13px;

  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  display: block;

  width: 100%;

  margin-top: 5px;

  padding: 12px;

  border: 1px solid var(--border);

  border-radius: 10px;

  outline: none;

  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}


/* ========================================
   CONTACT ACTIONS
======================================== */

.contact-actions {
  display: grid;

  gap: 15px;
}

.action-box {
  display: flex;

  align-items: center;

  gap: 16px;

  background: #202326;

  padding: 25px;

  border-radius: 18px;
  border: 1px solid #2e3236;

  transition: 0.3s;
}

.action-box:hover {
  transform: translateY(-3px);

  border-color: var(--primary);
}

.action-box > span {
  font-size: 30px;

  color: var(--primary);
}

.action-box b,
.action-box small {
  display: block;
}

.action-box small {
  color: #aaa;
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
  background: #0d0f10;

  color: #fff;

  padding: 45px 7%;

  display: grid;

  grid-template-columns:
    1fr auto auto;

  gap: 30px;

  align-items: center;
}

.footer-links {
  display: flex;

  gap: 20px;

  color: #bbb;

  font-size: 13px;
}

.footer-links a:hover {
  color: var(--primary);
}

.socials {
  display: flex;

  gap: 8px;
}

.socials a {
  width: 38px;
  height: 38px;

  border: 1px solid #333;

  border-radius: 50%;

  display: grid;

  place-items: center;

  color: #ddd;

  transition: 0.3s;
}

.socials a:hover {
  background: var(--primary);

  border-color: var(--primary);

  color: #fff;
}

.copyright {
  grid-column: 1 / -1;

  color: #777;

  font-size: 12px;

  text-align: center;
}


/* ========================================
   MODAL
======================================== */

.modal {
  position: fixed;

  z-index: 100;

  inset: 0;

  background: rgba(0, 0, 0, 0.75);

  display: none;

  place-items: center;

  padding: 20px;
}

.modal.show {
  display: grid;
}

.modal-box {
  background: #fff;

  max-width: 720px;

  width: 100%;

  border-radius: 24px;

  overflow: hidden;

  position: relative;

  max-height: 90vh;

  overflow-y: auto;
}

.modal-box > img {
  width: 100%;

  height: 330px;

  object-fit: cover;
}

.modal-close {
  position: absolute;

  z-index: 2;

  top: 12px;

  left: 12px;

  width: 40px;
  height: 40px;

  border: none;

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.6);

  color: #fff;

  font-size: 25px;
}

.modal-body {
  padding: 25px;

  text-align: right;
}

.modal-body h3 {
  font-size: 28px;

  color: var(--dark);
}

.modal-body p {
  color: var(--muted);

  margin-top: 8px;
}


/* ========================================
   ROOM PRICE
======================================== */

.price {
  display: inline-block;

  color: var(--primary-dark);

  font-weight: 800;

  background: #f3eadb;

  padding: 4px 12px;

  border-radius: 9px;

  margin: 8px 0;
}


/* ========================================
   INNER PAGES
======================================== */

.inner-page {
  padding-top: 110px;

  min-height: 80vh;
}


/* ========================================
   PAGE HERO
======================================== */

.page-hero {
  background:
    linear-gradient(
      120deg,
      #151719,
      #34302a
    );

  color: #fff;

  padding: 90px 7%;

  text-align: center;
}

.page-hero h1 {
  font-size: clamp(35px, 5vw, 65px);

  font-family: "Playfair Display", serif;
}


/* ========================================
   ABOUT INNER PAGE
======================================== */

.about-long {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 50px;

  align-items: center;

  text-align: right;
}

.about-long img {
  width: 100%;

  height: 500px;

  object-fit: cover;

  border-radius: var(--radius);
}

.about-long p {
  color: var(--muted);

  margin: 12px 0;
}


/* ========================================
   ROOMS INNER PAGE
======================================== */

.room-list {
  display: grid;

  gap: 25px;
}

.room-full-card {
  display: grid;

  grid-template-columns:
    420px 1fr;

  background: #fff;

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow);

  text-align: right;
}

.room-full-card > img {
  width: 100%;

  height: 300px;

  object-fit: cover;
}

.room-full-card > div {
  padding: 35px;
}

.room-full-card h2 {
  font-size: 30px;

  color: var(--dark);
}

.room-full-card p {
  color: var(--muted);

  margin: 10px 0 18px;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1100px) {
    .main-nav > a {
    padding: 7px 6px;

    font-size: 12px;
  }

  .horizontal-services {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .feature-grid.large {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


/* ========================================
   MOBILE / TABLET
======================================== */

@media (max-width: 850px) {

  /* HEADER */

  .site-header {
    top: 10px;

    right: 10px;
    left: 10px;

    justify-content: space-between;
  }

  .menu-btn {
    display: block;
  }

  .main-nav {
    display: none;

    position: absolute;

    top: 65px;

    right: 0;
    left: 0;

    background: #151719;

    border-radius: 15px;

    padding: 15px;

    flex-direction: column;

    align-items: stretch;

    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a {
    text-align: center;

    padding: 10px;
  }

  .language-switcher {
    justify-content: center;

    margin: 5px 0 0;
  }


  /* HERO */

  .hero {
    min-height: 650px;
  }

  .hero-overlay {
    left: 7%;
    right: 7%;

    max-width: none;

    text-align: center;
  }

  .hero-overlay h1 {
    font-size: 70px;
  }

  .hero-overlay p {
    font-size: 16px;
  }


  /* ABOUT */

  .about-section,
  .location-grid,
  .contact-grid,
  .about-long {
    grid-template-columns: 1fr;
  }

  .about-image img,
  .about-long img {
    height: 380px;
  }


  /* ROOMS */

  .room-grid {
    grid-template-columns: 1fr;
  }


  /* GALLERY */

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    min-height: 420px;
  }

  .gallery-small {
    grid-template-columns:
      1fr 1fr;
  }

  .gallery-small img {
    min-height: 190px;
  }


  /* FOOTER */

  .site-footer {
    grid-template-columns: 1fr;

    text-align: center;

    justify-items: center;
  }

  .footer-links {
    flex-wrap: wrap;

    justify-content: center;
  }

  .footer-brand {
    justify-content: center;
  }


  /* INNER ROOM */

  .room-full-card {
    grid-template-columns: 1fr;
  }

  .room-full-card > img {
    height: 280px;
  }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 520px) {

  .hero {
    min-height: 600px;
  }


  /*
     On very small screens:
     show one hero image at a time
  */

  .hero-slider .hero-slide:not(:first-child) {
    display: none;
  }

  .hero-slide.active {
    display: block;
  }


  .hero-overlay h1 {
    font-size: 55px;
  }

  .hero-overlay p {
    font-size: 14px;
  }


  .section {
    padding: 70px 5%;
  }


  .horizontal-services {
    grid-template-columns: 1fr;
  }


  .feature-grid,
  .feature-grid.large {
    grid-template-columns: 1fr;
  }


  /* GALLERY */

  .gallery-small {
    grid-template-columns:
      1fr 1fr;
  }

  .gallery-main {
    min-height: 320px;
  }

  .gallery-small img {
    min-height: 150px;
  }


  /* MODAL */

  .modal-box > img {
    height: 230px;
  }


  /* LOCATION */

  .location-info {
    padding: 20px 5px;
  }


  /* ABOUT */

  .about-image img,
  .about-long img {
    height: 300px;
  }


  /* HEADER */

  .site-header {
    padding: 8px 12px;
  }

  .brand strong {
    font-size: 19px;
  }

}











/* ========================================
   HERO SLIDER - DESKTOP
======================================== */

.hero-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ========================================
   HERO SLIDER - MOBILE
======================================== */

@media (max-width: 768px) {

  .hero-slider {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
  }

  .hero-slide {
    display: none !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-slide.active {
    display: block !important;
  }

}










/* ========================================
   ABOUT PAGE HERO IMAGE
======================================== */

.about-hero {
  position: relative;

  min-height: 300px;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;

  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.55)
    ),
    url("images/about-hero.jpg");

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;

  overflow: hidden;
}


/* النص فوق الصورة */

.about-hero .page-hero-content {
  position: relative;

  z-index: 2;

  color: #fff;
}


/* العنوان */

.about-hero h1 {
  color: #fff;

  margin-top: 8px;
}


/* الموبايل */

@media (max-width: 768px) {

  .about-hero {
    min-height: 260px;

    padding: 80px 20px;
  }

}










/* ========================================
   ROOMS PAGE HERO IMAGE
======================================== */

.rooms-hero {
  position: relative;

  min-height: 300px;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;

  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.55)
    ),
    url("images/about-hero.jpg");

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;

  overflow: hidden;
}

.rooms-hero .page-hero-content {
  position: relative;

  z-index: 2;

  color: #fff;
}

.rooms-hero h1 {
  color: #fff;

  margin-top: 8px;
}

@media (max-width: 768px) {

  .rooms-hero {
    min-height: 260px;

    padding: 80px 20px;
  }

}