/* ============================================================
   DJERBA PRESTIGE — Styles
   Palette Nude / Sable / Or
   ============================================================ */

:root {
  --cream:    #F7F3EC;
  --cream2:   #EEE5D6;
  --cream3:   #DDD0BC;
  --gold:     #C9A96E;
  --gold-dk:  #A07840;
  --gold-lt:  #E8D5AE;
  --brown:    #4A3525;
  --text:     #1C1A16;
  --text2:    #6B5E4A;
  --text3:    #A09078;
  --white:    #FDFAF5;
  --shadow:   rgba(44,28,14,.08);
  --shadow2:  rgba(44,28,14,.16);
  --ease:     cubic-bezier(.25,.46,.45,.94);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family:'Montserrat',sans-serif;
  background:var(--cream);
  color:var(--text);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body.rtl {
  direction:rtl;
  font-family:'Noto Naskh Arabic','Montserrat',sans-serif;
}

img { display:block; width:100%; height:auto; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position:fixed; top:0; left:0; right:0;
  z-index:900;
  padding:22px 0;
  transition:padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar.scrolled {
  padding:14px 0;
  background:rgba(247,243,236,.95);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 1px 0 var(--cream3);
}

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

.nav-logo { text-decoration:none; display:flex; flex-direction:column; line-height:1; }
.logo-main {
  font-weight:700; font-size:17px; letter-spacing:6px;
  color:var(--white); transition:color .35s;
}
.navbar.scrolled .logo-main { color:var(--text); }
.logo-sub {
  font-weight:300; font-size:8px; letter-spacing:5px;
  color:var(--gold); margin-top:3px;
}

.nav-menu {
  display:flex; align-items:center; gap:32px;
}
.nav-link {
  text-decoration:none; font-size:11px; font-weight:600;
  letter-spacing:2px; text-transform:uppercase;
  color:rgba(255,255,255,.8); transition:color .3s;
  position:relative;
}
.navbar.scrolled .nav-link { color:var(--text2); }
.nav-link::after {
  content:''; position:absolute; bottom:-5px; left:0;
  width:0; height:1px; background:var(--gold);
  transition:width .35s var(--ease);
}
.nav-link:hover { color:var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width:100%; }

.btn-nav {
  background:var(--gold); color:var(--white) !important;
  padding:10px 22px; font-size:10px !important;
  letter-spacing:2px; text-transform:uppercase;
  font-weight:700; text-decoration:none;
  transition:background .3s, transform .3s;
}
.btn-nav:hover { background:var(--gold-dk); transform:translateY(-1px); }
.btn-nav::after { display:none !important; }

.nav-right { display:flex; align-items:center; gap:20px; }

.lang-switcher { display:flex; align-items:center; gap:6px; }
.lang-btn {
  background:none; border:none; cursor:pointer;
  font-family:'Montserrat',sans-serif; font-size:11px;
  font-weight:600; letter-spacing:1px;
  color:rgba(255,255,255,.5); padding:2px 0;
  transition:color .3s;
}
.navbar.scrolled .lang-btn { color:var(--text3); }
.lang-btn.active, .lang-btn:hover { color:var(--gold) !important; }
.sep { color:rgba(255,255,255,.25); font-size:10px; }
.navbar.scrolled .sep { color:var(--cream3); }

.hamburger {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:4px;
}
.hamburger span {
  display:block; width:22px; height:1.5px;
  background:var(--white); border-radius:2px;
  transition:transform .35s var(--ease), opacity .35s;
}
.navbar.scrolled .hamburger span { background:var(--text); }
.hamburger.open span:nth-child(1) { transform:translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position:relative; height:100vh; min-height:680px;
  display:flex; align-items:center; justify-content:center;
  text-align:center; overflow:hidden;
}
.hero-bg {
  position:absolute; inset:0;
  background:linear-gradient(160deg,#1A0E06 0%,#3A2010 35%,#7A5030 65%,#C9A96E 100%);
}
.hero-img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center;
}
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(
    to bottom,
    rgba(12,8,4,.6) 0%,
    rgba(12,8,4,.3) 45%,
    rgba(12,8,4,.65) 100%
  );
}
.hero-content {
  position:relative; z-index:2;
  max-width:820px; padding:0 32px;
}
.hero-eyebrow {
  font-size:11px; font-weight:600; letter-spacing:6px;
  text-transform:uppercase; color:var(--gold-lt);
  margin-bottom:18px;
  opacity:0; transform:translateY(20px);
  animation:fadeUp .8s forwards .2s;
}
.hero-title {
  font-family:'Playfair Display',serif;
  font-size:clamp(52px,8vw,108px);
  font-weight:600; line-height:1;
  color:var(--white); margin-bottom:22px;
  opacity:0; transform:translateY(28px);
  animation:fadeUp .9s forwards .4s;
}
.hero-sub {
  font-size:clamp(14px,1.6vw,17px); font-weight:300;
  color:rgba(255,255,255,.78); line-height:1.75;
  margin-bottom:44px;
  opacity:0;
  animation:fadeUp .9s forwards .65s;
}
.hero-btns {
  display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
  opacity:0;
  animation:fadeUp .9s forwards .85s;
}
.hero-scroll-line {
  position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:1px; height:70px;
  background:linear-gradient(to bottom, rgba(201,169,110,.7), transparent);
  animation:lineGrow 2.5s infinite;
}
@keyframes lineGrow {
  0%   { height:70px; opacity:1; }
  100% { height:16px; opacity:0; transform:translateX(-50%) translateY(54px); }
}
@keyframes fadeUp {
  to { opacity:1; transform:translateY(0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 34px; font-family:'Montserrat',sans-serif;
  font-size:11px; font-weight:700; letter-spacing:2.5px;
  text-transform:uppercase; text-decoration:none;
  border:none; cursor:pointer; transition:all .35s var(--ease);
  white-space:nowrap;
}
.btn-gold  { background:var(--gold); color:var(--white); }
.btn-gold:hover  { background:var(--gold-dk); transform:translateY(-2px); box-shadow:0 8px 28px rgba(201,169,110,.35); }

.btn-ghost { background:transparent; color:var(--white); border:1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background:rgba(255,255,255,.1); border-color:var(--white); }

.btn-dark  { background:var(--text); color:var(--white); padding:10px 20px; font-size:10px; }
.btn-dark:hover  { background:var(--gold); }

.btn-white-sm { background:var(--white); color:var(--text); padding:10px 22px; font-size:10px; }
.btn-white-sm:hover { background:var(--gold-lt); }

.btn-full  { width:100%; justify-content:center; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip { background:var(--white); border-bottom:1px solid var(--cream2); }
.stats-row {
  max-width:1280px; margin:0 auto; padding:28px 48px;
  display:flex; align-items:center; justify-content:center;
}
.stat { display:flex; flex-direction:column; align-items:center; gap:4px; padding:0 52px; text-align:center; }
.stat-n {
  font-family:'Playfair Display',serif;
  font-size:26px; font-weight:600; color:var(--gold);
}
.stat-l { font-size:9px; font-weight:700; letter-spacing:2.5px; text-transform:uppercase; color:var(--text3); }
.stat-sep { width:1px; height:38px; background:var(--cream3); flex-shrink:0; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container { max-width:1280px; margin:0 auto; padding:0 48px; }

.tag {
  display:inline-block; font-size:10px; font-weight:700;
  letter-spacing:4px; text-transform:uppercase; color:var(--gold);
  margin-bottom:14px;
}
.tag::before { content:'—— '; opacity:.5; }
.tag-light { color:var(--gold-lt); }

.h2 {
  font-family:'Playfair Display',serif;
  font-size:clamp(32px,3.8vw,52px);
  font-weight:600; line-height:1.15;
  color:var(--text); margin-bottom:16px;
}
.h2 em { font-style:italic; color:var(--text2); }
.h2-light, .h2-light em { color:var(--white); }
.h2-light em { color:var(--gold-lt); }

.body-text { font-size:15px; line-height:1.85; color:var(--text2); max-width:520px; }

.section-head { text-align:center; margin-bottom:56px; }
.section-head .body-text { margin:0 auto; }

/* REVEAL ANIMATION */
.reveal { opacity:0; transform:translateY(36px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding:104px 0; background:var(--white); }
.about-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:88px; align-items:center;
}
.about-text .h2 { margin-bottom:18px; }
.about-text .body-text { margin-bottom:30px; }

.about-features {
  display:grid; grid-template-columns:1fr 1fr;
  gap:10px; margin-bottom:36px;
}
.feat {
  display:flex; align-items:center; gap:10px;
  font-size:12px; font-weight:600; color:var(--text2);
  letter-spacing:.5px; padding:10px 14px;
  background:var(--cream); border-left:2px solid var(--gold);
}
.feat-dot { width:5px; height:5px; background:var(--gold); flex-shrink:0; }

.about-img-wrap { position:relative; }
.about-img-inner { overflow:hidden; aspect-ratio:4/5; }
.about-img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.about-img-inner:hover .about-img { transform:scale(1.03); }
.about-accent {
  position:absolute; bottom:-24px; right:-24px;
  width:180px; height:180px;
  background:var(--gold-lt); z-index:-1; opacity:.5;
}

/* ============================================================
   VILLAS
   ============================================================ */
.villas { padding:104px 0; background:var(--cream); }

.filters {
  display:flex; justify-content:center; gap:8px; margin-bottom:52px;
}
.filter {
  background:none; border:1px solid var(--cream3);
  padding:10px 30px; font-family:'Montserrat',sans-serif;
  font-size:10px; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; cursor:pointer; color:var(--text2);
  transition:all .3s var(--ease);
}
.filter.active, .filter:hover { background:var(--gold); border-color:var(--gold); color:var(--white); }

.villas-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
}

.villa-card {
  background:var(--white); overflow:hidden;
  box-shadow:0 2px 20px var(--shadow);
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.villa-card:hover { transform:translateY(-6px); box-shadow:0 14px 40px var(--shadow2); }
.villa-card.hidden { display:none; }

.card-img-wrap { position:relative; aspect-ratio:4/3; overflow:hidden; }
.card-img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.villa-card:hover .card-img { transform:scale(1.05); }

.card-badges { position:absolute; top:14px; left:14px; display:flex; gap:6px; z-index:2; }
.badge {
  font-size:9px; font-weight:700; letter-spacing:1.5px;
  text-transform:uppercase; padding:5px 10px;
}
.badge.loc  { background:var(--gold); color:var(--white); }
.badge.sale { background:var(--text); color:var(--white); }

.card-overlay {
  position:absolute; inset:0;
  background:rgba(28,18,8,.45);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .4s;
}
.villa-card:hover .card-overlay { opacity:1; }

.card-body { padding:22px 24px 24px; }
.card-name {
  font-family:'Playfair Display',serif;
  font-size:21px; font-weight:600; margin-bottom:8px;
}
.card-desc { font-size:13px; line-height:1.72; color:var(--text2); margin-bottom:14px; }

.card-specs {
  display:flex; flex-wrap:wrap; gap:8px;
  padding-bottom:16px; margin-bottom:16px;
  border-bottom:1px solid var(--cream2);
}
.card-specs span { font-size:11px; color:var(--text3); font-weight:500; }

.card-footer { display:flex; align-items:center; justify-content:space-between; }
.price-block { display:flex; flex-direction:column; gap:1px; }
.price-from { font-size:9px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--text3); }
.price-val { font-family:'Playfair Display',serif; font-size:16px; font-weight:600; color:var(--gold-dk); }
.price-per { font-size:10px; color:var(--text3); font-weight:500; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding:104px 0; background:var(--brown); }
.services .tag { color:var(--gold-lt); }
.services .tag::before { color:var(--gold-lt); }

.services-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
}
.serv-card {
  padding:40px 26px; text-align:center;
  border:1px solid rgba(201,169,110,.2);
  transition:all .4s var(--ease);
}
.serv-card:hover { background:rgba(201,169,110,.08); border-color:rgba(201,169,110,.5); transform:translateY(-4px); }
.serv-icon { font-size:34px; margin-bottom:18px; display:block; }
.serv-card h3 {
  font-family:'Playfair Display',serif;
  font-size:17px; color:var(--white); margin-bottom:10px;
}
.serv-card p { font-size:13px; line-height:1.78; color:rgba(255,255,255,.5); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding:104px 0; background:var(--white); }
.contact-grid {
  display:grid; grid-template-columns:1fr 1.3fr;
  gap:80px; align-items:start;
}
.contact-left .h2 { margin-bottom:14px; }
.contact-left .body-text { margin-bottom:36px; }

.wa-btn {
  display:inline-flex; align-items:center; gap:12px;
  background:#25D366; color:var(--white); text-decoration:none;
  padding:16px 28px; font-family:'Montserrat',sans-serif;
  font-size:12px; font-weight:700; letter-spacing:1px;
  transition:all .35s var(--ease);
}
.wa-btn svg { width:20px; height:20px; flex-shrink:0; }
.wa-btn:hover { background:#1ebe5c; transform:translateY(-2px); box-shadow:0 8px 24px rgba(37,211,102,.3); }

.contact-form { display:flex; flex-direction:column; gap:18px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-group { display:flex; flex-direction:column; gap:7px; }
.form-group label {
  font-size:10px; font-weight:700; letter-spacing:1.5px;
  text-transform:uppercase; color:var(--text2);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding:13px 15px; border:1px solid var(--cream3);
  background:var(--cream); font-family:'Montserrat',sans-serif;
  font-size:14px; color:var(--text); outline:none;
  transition:border-color .3s, background .3s;
  resize:none; appearance:none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color:var(--gold); background:var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background:var(--text); padding:60px 0 0; }
.footer-top {
  display:grid; grid-template-columns:2fr 1fr 1fr; gap:56px;
  padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.07);
}
.footer .logo-main { color:var(--white); }
.footer-tagline { font-size:13px; color:rgba(255,255,255,.35); margin-top:14px; line-height:1.6; }
.footer-nav, .footer-contact { display:flex; flex-direction:column; gap:10px; }
.footer-nav h4, .footer-contact h4 {
  font-size:9px; font-weight:700; letter-spacing:3px;
  text-transform:uppercase; color:var(--gold); margin-bottom:8px;
}
.footer-nav a, .footer-contact a, .footer-contact p {
  font-size:13px; color:rgba(255,255,255,.45);
  text-decoration:none; transition:color .3s; letter-spacing:.3px;
}
.footer-nav a:hover, .footer-contact a:hover { color:var(--white); }
.footer-bottom { padding:20px 0; text-align:center; }
.footer-bottom p { font-size:10px; color:rgba(255,255,255,.2); letter-spacing:.8px; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position:fixed; bottom:30px; right:30px; z-index:800;
  width:54px; height:54px; background:#25D366;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--white); text-decoration:none;
  box-shadow:0 4px 18px rgba(37,211,102,.4);
  transition:transform .35s var(--ease), box-shadow .35s;
}
.wa-float svg { width:26px; height:26px; }
.wa-float:hover { transform:scale(1.1); box-shadow:0 8px 28px rgba(37,211,102,.5); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1100px) {
  .villas-grid { grid-template-columns:repeat(2,1fr); }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .about-grid { grid-template-columns:1fr; gap:52px; }
  .about-img-wrap { display:none; }
}

@media (max-width:768px) {
  .nav-container { padding:0 24px; }
  .container { padding:0 24px; }

  .nav-menu {
    display:none; position:fixed; inset:0;
    background:var(--white); flex-direction:column;
    justify-content:center; align-items:center;
    gap:28px; z-index:850;
  }
  .nav-menu.open { display:flex; }
  .nav-menu .nav-link { color:var(--text) !important; font-size:22px; letter-spacing:4px; }
  .nav-menu .btn-nav { margin-top:8px; }
  .hamburger { display:flex; }

  .stats-row { flex-wrap:wrap; gap:20px; justify-content:center; padding:24px; }
  .stat-sep { display:none; }
  .stat { padding:0 20px; }

  .villas-grid { grid-template-columns:1fr; }
  .services-grid { grid-template-columns:1fr; gap:14px; }
  .contact-grid { grid-template-columns:1fr; gap:48px; }
  .form-row { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr; gap:28px; }

  .hero-btns { flex-direction:column; align-items:center; }
  .about, .villas, .services, .contact { padding:72px 0; }
}

@media (max-width:480px) {
  .hero-title { font-size:40px; }
  .h2 { font-size:28px; }
  .btn { padding:12px 24px; font-size:10px; }
  .filters { flex-wrap:wrap; }
  .wa-float { bottom:20px; right:20px; }
}

/* ============================================================
   RTL
   ============================================================ */
body.rtl .feat { border-left:none; border-right:2px solid var(--gold); }
body.rtl .card-badges { left:auto; right:14px; }
body.rtl .about-accent { right:auto; left:-24px; }
body.rtl .tag::before { content:' ——'; }
