/* ════════════════════════════════════════
   VILLA RAZI — Main Stylesheet
   Inspired by glass-house.it aesthetic
   ════════════════════════════════════════ */

:root {
  --dark:       #1a1919;
  --dark-2:     #252424;
  --dark-3:     #333;
  --white:      #ffffff;
  --cream:      #f5f3ef;
  --sea:        #3a8fa3;
  --sea-light:  #5ab3c7;
  --text:       #2a2a2a;
  --muted:      #777;
  --border:     rgba(0,0,0,0.08);
  --font:       'Quicksand', sans-serif;
  --serif:      'Cormorant Garamond', serif;
  --hh:         80px; /* header height */
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); line-height: 1.75; overflow-x: hidden; background: var(--white); }
html[lang="he"] body { font-family: 'Heebo', sans-serif; direction: rtl; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Placeholders (remove when real images added) ── */
.placeholder-sea   { background: linear-gradient(135deg, #2a6b82, #3a8fa3); }
.placeholder-stone { background: linear-gradient(135deg, #7a8a7c, #5a6a5c); }
.placeholder-warm  { background: linear-gradient(135deg, #a08060, #c09878); }
.placeholder-teal  { background: linear-gradient(135deg, #2a8a7a, #4aaa9a); }
.placeholder-blue  { background: linear-gradient(135deg, #3a6a9a, #5a8aba); }

/* ── HEADER ─────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--hh);
  background: transparent;
  transition: background 0.4s ease, height 0.4s ease, backdrop-filter 0.4s;
}
#header.scrolled {
  background: rgba(26, 25, 25, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  height: 62px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 28px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: white;
  text-decoration: none;
}
.logo-img {
  height: 72px;
  width: auto;
  display: block;
  transition: height 0.4s;
}
#header.scrolled .logo-img { height: 54px; }
.logo-main {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  line-height: 1;
}
.logo-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-desktop a {
  color: rgba(255,255,255,0.82);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: white; }
.nav-cta {
  border: 1px solid rgba(255,255,255,0.55);
  padding: 7px 18px;
  border-radius: 3px;
  transition: all 0.2s !important;
}
.nav-cta:hover { background: white !important; color: var(--dark) !important; }
.lang-switch {
  opacity: 0.6;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transition: opacity 0.2s !important;
}
.lang-switch:hover { opacity: 1; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  transition: all 0.3s ease;
}
.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); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh;
  background: var(--dark);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  padding: 88px 32px 40px;
}
.nav-drawer.open { transform: translateX(0); }

.drawer-close {
  position: absolute;
  top: 24px; left: 24px;
  background: none; border: none;
  color: white; font-size: 1.1rem;
  cursor: pointer; opacity: 0.6;
  transition: opacity 0.2s;
}
.drawer-close:hover { opacity: 1; }

.nav-mobile { display: flex; flex-direction: column; }
.drawer-link {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.drawer-link:hover { color: white; }

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.drawer-overlay.active { opacity: 1; pointer-events: all; }


/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-swiper { width: 100%; height: 100%; }
.swiper-slide { width: 100%; height: 100%; }
.slide-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #2a5060; /* fallback color */
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: white;
  width: 90%;
  max-width: 700px;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 14px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}
.hero-subtitle {
  font-size: 1rem;
  opacity: 0.82;
  margin-bottom: 36px;
  font-weight: 400;
}
.hero-cta {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.75);
  color: white;
  padding: 13px 34px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.25s;
  border-radius: 2px;
}
.hero-cta:hover { background: white; color: var(--dark); }

.scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.65;
  animation: bob 2.2s ease-in-out infinite;
  transition: opacity 0.2s;
}
.scroll-indicator:hover { opacity: 1; }
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* Swiper pagination bullets */
.hero .swiper-pagination-bullet { background: rgba(255,255,255,0.45); opacity: 1; width: 7px; height: 7px; }
.hero .swiper-pagination-bullet-active { background: white; }


/* ── SECTIONS ────────────────────────────── */
.section { padding: 96px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 10px;
  font-weight: 700;
  display: block;
}
.section-eyebrow.light { color: var(--sea-light); }

h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}
h2.light { color: white; }

.section-desc { color: var(--muted); font-size: 0.93rem; max-width: 520px; margin: 0 auto; }
.section-desc-light { color: rgba(255,255,255,0.5); font-size: 0.93rem; }

/* Backgrounds */
.bg-dark  { background: var(--dark); }
.bg-cream { background: var(--cream); }

/* ── TWO-COL LAYOUT ──────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.two-col.reverse { direction: ltr; }
.two-col.reverse .two-col-text { direction: rtl; }

.two-col-img {
  height: 500px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.two-col-text h2 { margin-bottom: 22px; }
.two-col-text p { color: var(--muted); margin-bottom: 18px; font-size: 0.95rem; }
.light-muted { color: rgba(255,255,255,0.6) !important; }

/* Island stats */
.island-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--sea);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 7px;
}
.stat-label {
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}


/* ── HOUSE CARDS ─────────────────────────── */
.house-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.house-card {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.house-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.house-card-img {
  height: 270px;
  position: relative;
  overflow: hidden;
}
.house-card-img .cover-img { transition: transform 0.6s ease; }
.house-card:hover .house-card-img .cover-img { transform: scale(1.04); }

.house-card-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--dark);
  color: white;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 3px;
}
.house-card-body { padding: 30px 26px; }
.house-card-body h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 5px;
}
.house-size {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.house-features { margin-bottom: 26px; }
.house-features li {
  font-size: 0.87rem;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.house-features li::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sea);
  flex-shrink: 0;
}
.house-price {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--dark);
}
.house-price span { font-size: 0.9rem; color: var(--muted); font-family: var(--font); }


/* ── AMENITIES ───────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.amenity {
  text-align: center;
  padding: 30px 16px 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  transition: border-color 0.25s, transform 0.25s;
}
.amenity:hover { border-color: var(--sea); transform: translateY(-3px); }
.amenity-icon {
  width: 38px; height: 38px;
  margin: 0 auto 14px;
  color: var(--sea);
}
.amenity-icon svg { width: 100%; height: 100%; }
.amenity span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }


/* ── GALLERY ─────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px 240px 240px 240px;
  gap: 10px;
}
.gallery-item {
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  transition: opacity 0.3s, transform 0.4s;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery-item:hover { opacity: 0.88; transform: scale(0.985); }
.gi-large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}


/* ── PRICING ─────────────────────────────── */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}
.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 34px 26px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s;
}
.pricing-card:hover { border-color: var(--sea); }
.pricing-card.featured {
  background: rgba(58, 143, 163, 0.12);
  border-color: var(--sea);
}
.pricing-tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--sea);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-card h3 { color: var(--dark); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.pricing-desc { color: var(--muted); font-size: 0.77rem; margin-bottom: 26px; }
.pricing-amount {
  font-family: var(--serif);
  font-size: 3.2rem;
  color: var(--dark);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 30px;
  direction: ltr;
}
.pricing-amount span { font-size: 0.95rem; color: var(--muted); font-family: var(--font); }

.pricing-features { margin-bottom: 28px; text-align: right; }
.pricing-features li {
  color: var(--text);
  font-size: 0.82rem;
  padding: 7px 0 7px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 6px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--sea);
}
html[lang="he"] .pricing-features li {
  padding: 7px 20px 7px 0;
}
html[lang="he"] .pricing-features li::before {
  left: auto; right: 6px;
}
.pricing-cta {
  display: block;
  border: 1px solid var(--border);
  color: var(--dark);
  padding: 11px 24px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.2s;
}
.pricing-cta:hover { background: var(--dark); color: white; border-color: var(--dark); }
.featured-cta {
  background: var(--sea);
  border-color: var(--sea);
  color: white;
}
.featured-cta:hover { background: white !important; border-color: white !important; color: var(--dark) !important; }

.pricing-note {
  text-align: center;
  color: rgba(255,255,255,0.28);
  font-size: 0.73rem;
}


/* ── LOCATION STEPS ──────────────────────── */
.steps { display: flex; flex-direction: column; gap: 22px; margin-top: 10px; }
.step { display: flex; gap: 22px; align-items: flex-start; }
.step-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--sea);
  line-height: 1;
  min-width: 42px;
}
.step-text strong { display: block; font-size: 0.95rem; margin-bottom: 3px; color: var(--text); }
.step-text p { font-size: 0.85rem; color: var(--muted); margin: 0; }


/* ── CONTACT ─────────────────────────────── */
.contact-logo { display: flex; justify-content: center; margin-bottom: 32px; }
.contact-logo img {
  height: 120px;
  width: auto;
  padding: 22px 55px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 170'><path d='M 5,85 C 3,68 8,50 24,38 C 38,28 62,22 95,18 C 118,15 142,14 168,13 C 195,12 222,12 250,12 C 278,12 306,12 332,13 C 360,14 388,16 412,21 C 438,26 462,34 477,50 C 491,65 496,82 491,97 C 485,115 466,130 438,141 C 404,154 358,160 305,163 C 255,166 205,166 158,163 C 112,160 70,152 38,139 C 14,129 2,113 5,85 Z' fill='%233a8fa3'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 34px;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.contact-btn.whatsapp { background: #25D366; color: white; }
.contact-btn.whatsapp:hover { background: #1ebe5c; transform: translateY(-2px); }
.contact-btn.email { background: var(--dark); color: white; }
.contact-btn.email:hover { background: var(--dark-2); transform: translateY(-2px); }


/* ── FOOTER ──────────────────────────────── */
.footer { background: var(--dark); padding: 56px 28px; text-align: center; }
.footer-logo {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: white;
  letter-spacing: 0.38em;
  margin-bottom: 10px;
  font-weight: 400;
}
.footer-logo-img { height: 90px; width: auto; margin: 0 auto 16px; display: block; opacity: 0.9; }
.footer-sub { color: rgba(255,255,255,0.35); font-size: 0.72rem; letter-spacing: 0.18em; margin-bottom: 14px; }
.footer-note { color: rgba(255,255,255,0.2); font-size: 0.68rem; }


/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .amenities-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 44px; }
  .two-col.reverse { direction: rtl; }
  .two-col-img { height: 340px; }
  .house-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto 32px; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gi-large { grid-row: auto; }
  .island-stats { gap: 24px; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  :root { --hh: 68px; }
  .section { padding: 72px 0; }
  .hero-title { font-size: 3rem; }
  .two-col-img { height: 280px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(7, 180px); }
}

@media (max-width: 480px) {
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(12, 200px); }
  .contact-btn { width: 100%; justify-content: center; }
  .contact-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
}
