/* =========================================================
   VERDANT — الأنماط الرئيسية
   ========================================================= */

:root {
  /* الألوان */
  --forest: #16281f;
  --forest-deep: #0e1c15;
  --moss: #3f5b48;
  --sage: #a9bca6;
  --ivory: #f3eee4;
  --sand: #ddcfb2;
  --charcoal: #26241f;
  --brass: #a6864c;
  --brass-light: #c7a565;
  --white-glass: rgba(255, 255, 255, 0.14);
  --border-glass: rgba(255, 255, 255, 0.28);

  /* الخطوط */
  --font-serif: "Tajawal", "Segoe UI", sans-serif;
  --font-sans: "Tajawal", "Segoe UI", sans-serif;

  --nav-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--forest-deep);
}

p { margin: 0; }

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

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

.disclosure {
  font-size: 0.78rem;
  color: rgba(38, 36, 31, 0.6);
  line-height: 1.6;
  margin-top: 12px;
}

/* focus visibility for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------
   LIQUID GLASS — نظام الزجاج السائل
--------------------------------------------------------- */
.glass {
  background: var(--white-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(14, 28, 21, 0.18), inset 0 1px 0 rgba(255,255,255,0.25);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.4);
}

/* ---------------------------------------------------------
   NAV
--------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px clamp(16px, 4vw, 48px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.brand-mark { color: var(--brass-light); display: flex; }

.brand-logo {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-pill {
  display: none;
}

@media (min-width: 900px) {
  .nav-pill {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.25);
  }
  .nav-pill a {
    color: var(--ivory);
    font-size: 0.9rem;
    padding: 9px 16px;
    border-radius: 999px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
  }
  .nav-pill a:hover {
    background: rgba(255,255,255,0.18);
  }
}

.nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex;
    align-items: center;
    color: var(--forest-deep);
    background: var(--ivory);
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  }
  .nav-cta:hover {
    transform: translateY(-2px);
    background: var(--brass-light);
  }
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  align-items: center;
}

@media (min-width: 900px) { .menu-btn { display: none; } }

.menu-btn span {
  width: 18px; height: 1.5px;
  background: var(--ivory);
  transition: all 0.3s var(--ease);
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--ivory);
}

/* ---------------------------------------------------------
   HERO — فيديو مربوط بالسكرول (سكشن واحد)
   .hero-pin بياخد ارتفاع أكبر من الشاشة عشان يدّي مسافة سكرول
   نحسب منها نسبة تقدّم (0 → 1)، و.hero-sticky بيفضل ثابت على الشاشة
   طول ما احنا داخل المسافة دي (position: sticky).
--------------------------------------------------------- */
.hero-pin {
  position: relative;
  height: 260vh; /* كل ما زوّدت الرقم ده، السكرول اللازم عشان العصفور يوصل يبقى أطول/أنعم */
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.scene-bg video,
.scene-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, center);
  z-index: 1; /* الفيديو فوق خلفية الـ gradient البديلة */
}

.scene-gradient {
  position: absolute;
  inset: 0;
  z-index: 0; /* خلفية بديلة تحت الفيديو — بتبان بس لو مفيش فيديو */
}

.scene-gradient-1 {
  background:
    radial-gradient(120% 90% at 20% 100%, rgba(22,40,31,0.15), transparent 60%),
    linear-gradient(160deg, #1c3327 0%, #274a37 32%, #6f8f6a 62%, #d9c9a3 100%);
  background-size: 220% 220%;
  animation: driftGradient 22s ease-in-out infinite;
}

@keyframes driftGradient {
  0%   { background-position: 0% 30%; }
  50%  { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}

.scene-noise {
  position: absolute;
  inset: 0;
  z-index: 2; /* الحبيبات (grain) فوق الفيديو والـ gradient كلهم */
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scene-content {
  position: relative;
  z-index: 3;
  padding: 0 clamp(20px, 6vw, 80px) clamp(64px, 10vh, 120px);
  max-width: 780px;
}

.eyebrow-plain {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--sage);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  color: var(--ivory);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(243, 238, 228, 0.86);
  max-width: 46ch;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.btn-glass {
  color: var(--forest-deep);
  background: var(--ivory);
}

.btn-glass:hover { transform: translateY(-3px); background: var(--brass-light); }

.btn-outline-glass {
  color: var(--ivory);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
}

.btn-outline-glass:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(243,238,228,0.5);
  border-radius: 14px;
  z-index: 3;
}

.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--ivory);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ---------------------------------------------------------
   BLUR TEXT / REVEAL ANIMATIONS
--------------------------------------------------------- */
.blur-word {
  display: inline-block;
  filter: blur(10px);
  opacity: 0;
  transform: translateY(30px);
  transition: filter 0.9s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: filter, opacity, transform;
}

.blur-word.in {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   SECTIONS — SHARED
--------------------------------------------------------- */
section:not(.scene) {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 6vw, 64px);
  max-width: 1320px;
  margin: 0 auto;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 14px;
}

.section-head p {
  color: rgba(38,36,31,0.68);
  font-size: 1.05rem;
}

/* ---------------------------------------------------------
   INTRODUCTION
--------------------------------------------------------- */
.intro {
  background: var(--ivory);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
}

.intro-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.intro-text p {
  color: rgba(38,36,31,0.72);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-bottom: 16px;
}

.intro-visual {
  position: relative;
  height: 340px;
}

.intro-card {
  position: absolute;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(22,40,31,0.18);
}

.intro-card-a {
  width: 72%;
  height: 100%;
  right: 0;
  background: linear-gradient(150deg, #3f5b48, #16281f);
}

.intro-card-b {
  width: 46%;
  height: 62%;
  left: 0;
  bottom: -24px;
  background: linear-gradient(150deg, #ddcfb2, #a9bca6);
  border: 1px solid rgba(255,255,255,0.5);
}

/* ---------------------------------------------------------
   CATEGORY BAR
--------------------------------------------------------- */
.category-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 40px;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar { display: none; }

.cat-btn {
  flex: none;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(22,40,31,0.15);
  background: rgba(255,255,255,0.6);
  color: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.cat-btn:hover { border-color: var(--moss); }

.cat-btn.active {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}

/* ---------------------------------------------------------
   PRODUCT GRID / CARDS
--------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1080px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 26px; }
}

.product-card {
  border-radius: 20px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(22,40,31,0.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(22,40,31,0.16);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(22,40,31,0.85);
  color: var(--ivory);
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-cat {
  font-size: 0.75rem;
  color: var(--moss);
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--forest-deep);
}

.product-desc {
  font-size: 0.85rem;
  color: rgba(38,36,31,0.62);
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.product-price {
  font-weight: 700;
  color: var(--forest-deep);
}

.product-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brass);
  transition: color 0.3s var(--ease);
}

.product-link:hover { color: var(--forest); }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: rgba(38,36,31,0.55);
}

/* ---------------------------------------------------------
   FEATURED
--------------------------------------------------------- */
.featured { background: var(--ivory); }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 800px) {
  .featured-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

.featured-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.featured-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.featured-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,28,21,0.75), transparent 60%);
}

.featured-info {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: var(--ivory);
}

.featured-info .product-name { color: var(--ivory); font-size: 1.2rem; }
.featured-info .product-price { color: var(--sand); font-weight: 500; }

/* ---------------------------------------------------------
   ROOMS MOSAIC
--------------------------------------------------------- */
.rooms { background: linear-gradient(180deg, var(--ivory), #ece5d5); }

.rooms-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .rooms-mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
  }
  .rooms-mosaic .room-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .rooms-mosaic .room-card:nth-child(2) { grid-column: span 2; }
  .rooms-mosaic .room-card:nth-child(3) { grid-column: span 2; }
  .rooms-mosaic .room-card:nth-child(4) { grid-column: span 2; grid-row: span 2; }
}

.room-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.room-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.room-card:hover img { transform: scale(1.05); }

.room-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,28,21,0.7), transparent 55%);
}

.room-info {
  position: relative;
  z-index: 1;
  padding: 20px;
  color: var(--ivory);
}

.room-info h3 { color: var(--ivory); font-size: 1.15rem; margin-bottom: 6px; }
.room-info p { font-size: 0.82rem; color: rgba(243,238,228,0.85); max-width: 30ch; }

/* ---------------------------------------------------------
   SOCIAL
--------------------------------------------------------- */
.social { background: var(--ivory); }

.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(63,91,72,0.08);
  border: 1px solid rgba(63,91,72,0.15);
  color: var(--forest-deep);
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.social-item svg {
  width: 20px; height: 20px;
  transition: transform 0.4s var(--ease);
}

.social-item:hover {
  background: var(--forest);
  color: var(--ivory);
  transform: translateY(-3px);
}

.social-item:hover svg { transform: rotate(-8deg) scale(1.1); }

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--sand);
  padding: 64px clamp(20px, 6vw, 64px) 24px;
}

.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand-mark { color: var(--brass-light); }
.footer-logo {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.footer-brand p { color: rgba(221,207,178,0.75); font-size: 0.9rem; max-width: 32ch; }

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ivory);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-col a { color: rgba(221,207,178,0.8); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--ivory); }

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(221,207,178,0.55);
}
