/* ===== Reset / Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* الخلفية السوداء لباقي الصفحات */
body:not(.home-page) {
  background: #000;
}

.home-page .hero-home {
  min-height: calc(100vh - var(--nav-h) - var(--footer-h));
  background: url('../images/home.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ===== Navbar ===== */
.navbar, .site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(30,30,30,0.95);
  border-bottom: 1px solid #222;
  backdrop-filter: blur(4px);
}
.navbar .container, .site-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand, .site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand img, .site-nav .logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.navbar-nav, .site-nav .nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-nav .nav-link, .site-nav .nav-links a {
  color: #f0f0f0 !important;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none !important;
  transition: 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  color: #f0a500 !important;
  text-decoration: none !important;
}
.navbar .navbar-collapse {
  justify-content: flex-end !important;
}

:root {
  --nav-h: 70px;
  --footer-h: 60px;
}

/* ===== Hero Section (Home page) ===== */
.home-page main { padding: 0; margin: 0; }

.home-page .hero-home {
  min-height: calc(100svh - var(--nav-h) - var(--footer-h));
  display:flex;
  justify-content:center;
  align-items:center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin:0;
}

.home-page .hero-content {
  background: rgba(0,0,0,0.75);
  padding: 28px 36px;
  border-radius: 12px;
  max-width: 760px;
  width: 92%;
  text-align: center;
  border: 2px solid #111;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}

.home-page .hero-home h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.home-page .hero-home p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 20px;
}

.btn, .btn-primary {
  display: inline-block;
  border-radius: 30px;
  padding: 12px 26px;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.4);
  color: #eee;
  border: 1px solid #444;
  text-decoration: none;
  transition: .2s;
}
.btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: #666;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  padding: 6px 10px;
  text-align: center;
  background: rgba(0,0,0,0.9);
  color: #bbb;
  font-size: 13px;
  border-top: 1px solid #222;
  backdrop-filter: blur(4px);
}

/* ===== General Page Fixes ===== */
body.about-page,
body.gallery-page,
body.booking-page,
body.contact-page {
  padding-top: 70px;
}

/* ===== Responsive Navbar Fixes ===== */
@media (max-width: 768px) {
  .navbar .container,
  .site-nav .container {
    padding: 12px 14px;
  }
  .navbar-nav, .site-nav .nav-links {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== About Page ===== */
.about-title {
  font-size: 42px;
  font-weight: 800;
  color: #f0a500;
}
.about-section {
  max-width: 1100px;
  margin: 100px auto 40px;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  color: #eee;
}
.about-image img {
  width: 360px;
  border-radius: 8px;
  border: 2px solid #555;
}
.about-text h1 {
  color: #f0a500;
  margin-bottom: 32px;
}
@media (max-width: 992px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }
  .about-image img {
    width: 260px;
  }
}

/* ===== Gallery ===== */
.gallery-section { padding: 40px 20px; text-align: center; }
.gallery-title { font-size: 36px; color: #f0a500; font-weight: 700; margin-bottom: 30px; }
.gallery-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.gallery-grid img, .gallery-grid video {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #333;
  background: #000;
  transition: transform 0.25s ease;
}
.gallery-grid img:hover, .gallery-grid video:hover {
  transform: scale(1.05);
}

/* ===== Booking Page ===== */
body.booking-page {
  background: #000;
  color: #eee;
}
.booking-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid #333;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.booking-form .form-control,
.booking-form select,
.booking-form textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid #444;
  color: #eee;
}
.booking-form .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: #777;
  color: #fff;
  box-shadow: none;
}

/* ===== Contact Page ===== */
body.contact-page {
  background: #000;
  color: #eee;
}
.contact-title {
  color: #f0a500;
  font-size: 36px;
  text-align: center;
  margin-bottom: 24px;
}
.contact-form .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid #444;
  color: #eee;
}
.contact-form .form-control:focus {
  background: rgba(255,255,255,0.15);
  border-color: #777;
  color: #fff;
  outline: none;
}
.contact-form .btn {
  background: rgba(0,0,0,0.3);
  border: 1px solid #666;
  color: #eee;
}
.contact-form .btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: #888;
}

.navbar-nav,
.navbar-collapse {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* === About Page Adjustments === */
body.about-page .about-image { flex: 0 0 420px; }
body.about-page .about-image img {
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 12px;
}
@media (max-width: 992px){
  body.about-page .about-image { flex-basis: 320px; }
}
body.about-page h1,
body.about-page h2,
body.about-page h3 {
  color: #f0a500;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}

/* ===== Booking Slots ===== */
.slot-pill {
  display: inline-block;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  background: #444;
  color: #fff;
  transition: 0.3s;
}
.slot-pill.available { background: #2ecc71; }
.slot-pill.busy { background: #e74c3c; cursor: not-allowed; }
.slot-pill.active { outline: 3px solid #f1c40f;}
/* --- Home: ادعم الاسمين home-page و page--home --- */
body.home-page,
body.page--home { padding-top: 0 !important; }

body.home-page main,
body.page--home main { margin: 0; padding: 0; }

body.home-page .hero-home,
body.page--home .hero-home {
  min-height: calc(100svh - var(--nav-h) - var(--footer-h));
  background: url('../images/home.jpg') center/cover no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

body.home-page main {
  margin: 0;
  padding: 0;
}

body.home-page .hero-home {
  min-height: calc(100vh - var(--nav-h) - var(--footer-h));
}
/* HOME: ابدأ المحتوى بعد النافبار، والهيرو يغطي بقية الشاشة */
body.home-page main{ margin:0; padding-top: var(--nav-h); }

body.home-page .hero-home{
  min-height: calc(100vh - var(--nav-h));  /* ناقص النافبار فقط */
  background: url('../images/home.jpg') center/cover no-repeat;
  background-attachment: scroll !important; /* لا تجعلها fixed */
  display:flex; align-items:center; justify-content:center;
  margin:0;
}

body.home-page .hero-content{
  background: rgba(0,0,0,0.75);
  padding: 28px 36px; border-radius: 12px;
  max-width: 760px; width: 92%; text-align: center;
  border: 2px solid #111; box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
