/* ============================================================
   SULTAN VILLA — Main Stylesheet
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:   #0f1923;
  --gold:   #c9a84c;
  --cream:  #faf3e0;
  --white:  #ffffff;
  --grey:   #6b7280;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --max-width: 1200px;
  --header-h: 80px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p  { margin-bottom: 1.2rem; }

/* ── Layout Helpers ─────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section {
  padding: 80px 0;
}
.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--cream {
  background: var(--cream);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: transparent;
  color: var(--gold);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ── Header ─────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#site-header.transparent { background: transparent; }
#site-header.solid,
#site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { height: 52px; width: auto; }
.site-logo span {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* ── Navigation ─────────────────────────────────────────────── */
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}
.primary-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.primary-nav a:hover { color: var(--gold); }
.primary-nav a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── Footer ─────────────────────────────────────────────────── */
#site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .tagline {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── WhatsApp Float ──────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── Page padding (below fixed header) ──────────────────────── */
.page-content {
  padding-top: var(--header-h);
  min-height: 60vh;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .primary-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 28px; text-align: center; }
  .primary-nav a { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 1001; }
}

/* ============================================================
   HEADER — gradient so white nav is always visible on hero
   ============================================================ */
#site-header.transparent {
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
}

/* ============================================================
   SHARED SECTION HELPERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin: 12px 0 16px; }
.section-header p { color: var(--grey); max-width: 540px; margin: 0 auto; }
.section-header--light h2 { color: var(--white); }
.section-header--light p { color: rgba(255,255,255,0.65); }

.label-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.label-tag--gold { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,18,28,0.55) 0%,
    rgba(10,18,28,0.35) 50%,
    rgba(10,18,28,0.7) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
}
.hero__eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   INTRO STRIP
   ============================================================ */
.intro-strip__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-strip__text h2 { margin: 12px 0 20px; }
.intro-strip__text p { color: var(--grey); }
.intro-strip__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.stat-card__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card__label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ============================================================
   AMENITIES
   ============================================================ */
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.amenity-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}
.amenity-card:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
}
.amenity-card__icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.amenity-card__title { font-size: 1rem; color: var(--white); margin-bottom: 8px; }
.amenity-card__desc { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ============================================================
   VILLA PREVIEW
   ============================================================ */
.villa-preview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.villa-preview__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  overflow: hidden;
}
.villa-preview__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.villa-preview__text {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.villa-preview__text h2 { margin: 12px 0 20px; }
.villa-preview__text p { color: var(--grey); margin-bottom: 24px; }
.villa-preview__features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.villa-preview__features li {
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--navy);
}
.villa-preview__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 14px 16px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.service-item__dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================================
   GALLERY TEASER
   ============================================================ */
.gallery-teaser { padding-bottom: 0; }
.gallery-teaser__strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 40px;
  height: 320px;
}
.gallery-teaser__item { overflow: hidden; display: block; }
.gallery-teaser__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-teaser__item:hover img { transform: scale(1.05); }

/* ============================================================
   BOOK CTA
   ============================================================ */
.cta-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,18,28,0.72);
  z-index: 1;
}

/* ============================================================
   RESPONSIVE — HOMEPAGE
   ============================================================ */
@media (max-width: 1024px) {
  .amenities__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-teaser__strip { grid-template-columns: repeat(3, 1fr); height: 260px; }
  .gallery-teaser__strip .gallery-teaser__item:nth-child(n+4) { display: none; }
}
@media (max-width: 768px) {
  .hero { background-attachment: scroll; }
  .intro-strip__grid { grid-template-columns: 1fr; gap: 40px; }
  .villa-preview__grid { grid-template-columns: 1fr; }
  .villa-preview__images { height: 340px; }
  .villa-preview__text { padding: 40px 24px; }
  .amenities__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-teaser__strip { grid-template-columns: repeat(2, 1fr); height: 220px; }
  .gallery-teaser__strip .gallery-teaser__item:nth-child(n+3) { display: none; }
}
