/* ========================================================================
   LEVY INMOBILIARIA — Luxury Real Estate Website
   Stylesheet: dark editorial luxury theme · gold accents · fully responsive
   ======================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Backgrounds */
  --bg-charcoal: #1A1D21;
  --bg-card: #2C2F33;
  --bg-cover-frame: #4D4D4D;
  --bg-section-alt: #16181B;

  /* Gold accents */
  --realgold: #F2E782;
  --gold: #C9A961;
  --gold-bright: #D4AF37;
  --gold-light: #F0D78C;
  --highlight: #EEDC82;
  --olive-banner: #9B8B3A;
  --badge-bg: #4A4328;

  /* Text */
  --text-cream: #F5F0E8;
  --text-grey: #CCCCCC;
  --text-dim: #AAAAAA;
  --text-dark: #1A1A1A;

  /* Borders */
  --border-grey: #444444;
  --border-soft: #333333;

  /* Layout */
  --container-max: 1200px;
  --section-pad-y: 100px;
  --section-pad-x: 40px;
  --radius: 4px;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-cream);
  background: var(--bg-charcoal);
  overflow-x: hidden;
}

/*img { max-width: 100%; display: block; height: auto; }*/

a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold-light); }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.005em;
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  background: transparent;
}

.container:before {
	display: none;
}

.section-dark {
  background: var(--bg-charcoal);
  position: relative;
}

.section-header { margin-bottom: 60px; max-width: 100%; }

.h1-serif-gold {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--realgold);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 18px;
  text-align: center;
}

.section-intro {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text-grey);
  font-weight: 300;
  line-height: 1.7;
  max-width: 800px;
}

section { padding: var(--section-pad-y) 0; }

/* Close button — only visible inside mobile menu panel */
.nav-menu-close { display: none; }
.nav-home-link { display: none; }

/* ---------- 4. STICKY NAV ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 22, 25, 0);
  backdrop-filter: blur(0);
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}

.site-header.scrolled {
  background: rgba(20, 22, 25, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 0 rgba(201, 169, 97, .15), 0 8px 24px -8px rgba(0,0,0,.5);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--realgold);
}

.brand-mini-mark { display: inline-flex; color: var(--realgold); }

.brand-mini-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-mini-levy {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--text-cream);
  font-weight: 500;
}
.brand-mini-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--realgold);
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-grey);
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--realgold);
  transition: width .3s ease;
}
.nav-menu a:hover { color: var(--gold-light); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.active { color: var(--gold-light); }
.nav-menu a.active::after { width: 100%; }

.nav-menu a.nav-cta {
  background: var(--realgold);
  color: var(--text-dark);
  padding: 9px 22px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: background .25s ease, color .25s ease;
}
.nav-menu a.nav-cta::after { display: none; }
.nav-menu a.nav-cta:hover { background: var(--gold-light); color: var(--text-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 36px; height: 36px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 6px; right: 6px;
  height: 2px;
  background: var(--realgold);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* ---------- 5. COVER (PAGE 1) ---------- */
.cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  background: var(--bg-cover-frame);
  position: relative;
  overflow: hidden;
}

.cover-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("../images/levy-dark-pattern-bg-xl.jpg");
  background-image: -webkit-image-set(url("../images/levy-dark-pattern-bg-xl.webp")1x );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /*opacity: 0.35;*/
  /*filter: brightness(0.6);*/
}

.cover-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cover-logo-card {
  /*background: #FFFFFF;*/
  /*padding: 60px 80px;*/
  /*box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);*/
  background: transparent;
  padding: 40px;
  border-radius: 2px;
  max-width: 560px;
  width: 100%;
}
.cover-logo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cover-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--realgold);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 0 2px BLACK;
}

.cover-tagline {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: var(--text-grey);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.cover-scroll-cue {
  width: 26px; height: 44px;
  border: 1.5px solid var(--realgold);
  border-radius: 14px;
  position: relative;
  margin-top: 30px;
}
.cover-scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  background: var(--realgold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollCue 1.6s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 12px); opacity: 0.3; }
}

/* ---------- 6. CARDS: GOLD LEFT BAR ---------- */
.cards-gold-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card-gold-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 6px solid var(--gold-bright);
  padding: 32px 30px;
  border-radius: var(--radius);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card-gold-bar:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.7);
  border-left-color: var(--gold-light);
}
.card-gold-bar h3 {
  color: var(--realgold);
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 500;
}
.card-gold-bar p {
  color: var(--text-grey);
  font-size: 0.96rem;
  line-height: 1.65;
}

.three-cards-gold-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

/* ---------- 7. SERVICES ---------- */
.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 980px;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}
.service-row:last-child { border-bottom: 0; }

.service-icon {
  color: var(--realgold);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(201, 169, 97, 0.06);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 50%;
}

.service-body h3 {
  color: var(--realgold);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.service-body p {
  color: var(--text-grey);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- 8. PROPERTIES GRID ---------- */
.properties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.7);
}

.property-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}
.property-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.property-card:hover .property-img img { transform: scale(1.06); }

.property-card h3 {
  color: var(--realgold);
  font-size: 1.5rem;
  margin: 22px 26px 8px;
  font-weight: 500;
}
.property-card p {
  color: var(--text-grey);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0 26px 26px;
}

/* ---------- 9. SPLIT SCREEN (Costa del Sol) ---------- */
.costa-del-sol { padding: 0; background: var(--bg-charcoal); }
.split-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.split-left {
  background: var(--bg-charcoal);
  display: flex;
  align-items: center;
  padding: 80px var(--section-pad-x);
}
.split-left-inner { width: 100%; max-width: 580px; }

.costa-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0 40px;
}

.costa-col h3 {
  color: var(--realgold);
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
}
.costa-col p, .costa-col li {
  color: var(--text-grey);
  font-size: 0.95rem;
  line-height: 1.65;
}

.costa-col-highlight {
  background: var(--highlight);
  padding: 22px 22px;
  color: var(--text-dark) !important;
  border-radius: var(--radius);
}
.costa-col-highlight h3 { color: var(--text-dark); }
.costa-col-highlight p { color: var(--text-dark); font-weight: 500; }

.bullet-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}
.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0; top: 0;
  color: var(--realgold);
  font-size: 1.1rem;
  line-height: 1.5;
}

.costa-interior {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7);
}
.costa-interior img { width: 100%; height: 100%; object-fit: cover; }

.split-right {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.split-right img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}

/* ---------- 10. ISRAEL EXPANSION ---------- */
.israel-expansion .section-header h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.globe-icon { color: var(--realgold); display: inline-flex; }

.city-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.city-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: transform .35s ease, border-color .35s ease;
}
.city-card:hover {
  transform: translateY(-3px);
  border-color: var(--realgold);
}
.city-card h3 {
  color: var(--realgold);
  font-size: 1.55rem;
  margin-bottom: 8px;
}
.city-card p { color: var(--text-grey); font-size: 0.95rem; }

.olive-banner {
  background: var(--olive-banner);
  color: var(--text-cream);
  padding: 20px 28px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
}
.olive-banner p { font-size: 1rem; }
.olive-banner strong { color: #FFFFFF; font-weight: 700; }
.banner-icon { color: var(--text-cream); display: inline-flex; flex-shrink: 0; }

.map-wrap {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.7);
}
.map-wrap img { width: 100%; }

/* ---------- 11. CITY PROFILE ---------- */
.city-profile { background: var(--bg-charcoal); }
.city-profile .container { max-width: 1180px; }

.city-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
  align-items: stretch;
}

.highlight-card {
  background: var(--highlight);
  color: var(--text-dark);
  padding: 36px 36px;
  border-radius: var(--radius);
}
.highlight-card h3 {
  color: var(--text-dark);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.highlight-card p {
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.7;
}

.city-list {
  padding: 8px 8px;
}
.city-list h3 {
  color: var(--realgold);
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.city-list > p {
  color: var(--text-grey);
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.em-dash-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--text-grey);
  font-size: 0.96rem;
  line-height: 1.6;
}
.em-dash-list li::before {
  content: "—";
  position: absolute;
  left: 0; top: 0;
  color: var(--realgold);
}
.em-dash-list strong { color: var(--text-cream); font-weight: 700; }

.city-photo {
  width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.7);
}
.city-photo img { width: 100%; object-fit: cover; }

.city-photo.framed {
  padding: 16px;
  background: #FFFFFF;
  border-radius: 2px;
}

/* ---------- 12. ICON-CIRCLE CARDS (Netanya) ---------- */
.three-cards-icon-circle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.card-icon-circle {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .35s ease, border-color .35s ease;
}
.card-icon-circle:hover {
  transform: translateY(-4px);
  border-color: var(--realgold);
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-bright);
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon-circle h3 {
  color: var(--text-cream);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.card-icon-circle p { color: var(--text-grey); font-size: 0.94rem; line-height: 1.6; }

/* ---------- 13. GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 60px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease, filter .4s ease;
  filter: brightness(0.92);
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1); }

.gallery-captions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.gallery-caption .num {
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 10px;
}
.gallery-caption .rule {
  display: block;
  width: 50px;
  height: 1.5px;
  background: var(--gold-light);
  margin-bottom: 14px;
}
.gallery-caption h3 {
  color: var(--gold-light);
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 500;
}
.gallery-caption p { color: var(--text-grey); font-size: 0.94rem; line-height: 1.6; }

/* ---------- 14. WHY US (split with portrait) ---------- */
.why-us { padding: 0; background: var(--bg-charcoal); }
.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.why-portrait {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}
.why-portrait img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center 30%;
}

.why-content {
  display: flex;
  align-items: center;
  padding: 80px var(--section-pad-x);
}
.why-content-inner { width: 100%; max-width: 560px; margin: 0 auto; }

.stats-row {
  display: grid;
  /*grid-template-columns: repeat(3, 1fr);*/
  gap: 24px;
  margin: 40px 0 50px;
  padding: 30px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--text-cream);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--realgold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.stat p { font-size: 0.85rem; color: var(--text-grey); line-height: 1.5; }

.features-list { display: grid; gap: 22px; }
.feature {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 18px;
  align-items: flex-start;
}
.square-bullet {
  width: 10px; height: 10px;
  background: var(--text-dim);
  margin-top: 8px;
}
.feature h3 {
  color: var(--text-cream);
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: 500;
}
.feature p { color: var(--text-grey); font-size: 0.94rem; line-height: 1.65; }

/* ---------- 15. CONTACT ---------- */
.contact { background: var(--bg-charcoal); }

.contact-logo-card {
  /*background: #FFFFFF;*/
  /*padding: 50px 70px;*/
  /*box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);*/
  background: transparent;
  padding: 40px;
  border-radius: 2px;
  max-width: 520px;
  margin: 0 auto 50px;
}
.contact-logo-card img { width: 100%; }

.contact-info { max-width: 900px; margin: 0 auto; }

.contact-badge {
  text-align: center;
  margin-bottom: 36px;
}
.contact-badge span {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--realgold);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
}

.contact-block h3 {
  color: var(--realgold);
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 500;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.98rem;
  color: var(--text-cream);
}
.contact-line a:hover { color: var(--gold-light); }
.contact-sub { font-size: 0.85rem; color: var(--text-dim); margin-top: 2px; }

.ci { display: inline-flex; flex-shrink: 0; }
.ci-phone { color: #999999; }
.ci-email { color: #29B6F6; }
.ci-globe { color: #2196F3; }

/* ---------- 16. FOOTER ---------- */
.site-footer {
  background: #111315;
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--realgold);
}
.footer-mark { display: inline-flex; }
.footer-brand > div { display: flex; flex-direction: column; line-height: 1; }
.footer-levy {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--text-cream);
}
.footer-sub {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  color: var(--realgold);
  margin-top: 3px;
}
.footer-tagline {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-grey);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-copy { font-size: 0.78rem; color: var(--text-dim); }

/* ---------- 17. SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* No-JS safety: never leave content invisible */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root { --section-pad-y: 80px; --section-pad-x: 32px; }

  .split-screen, .why-split { grid-template-columns: 1fr; }
  .split-left, .why-content { padding: 60px var(--section-pad-x); }
  .split-right, .why-portrait { min-height: 60vh; position: relative; }
  .split-right img, .why-portrait img { position: absolute; }

  /* On tablet/mobile, the full-bleed aerial is the hero — hide the redundant interior shot */
  .costa-interior { display: none; }

  .city-split { grid-template-columns: 1fr; }

  .three-cards-gold-bar,
  .three-cards-icon-circle,
  .gallery-captions { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 767px) {
  :root { --section-pad-y: 60px; --section-pad-x: 22px; }

  /* Mobile nav */
  .nav-toggle { display: block; z-index: 1001; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(82vw, 320px);
    background: var(--bg-charcoal);
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 28px 28px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -10px 0 40px -10px rgba(0,0,0,0.7);
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1rem;
  }
  .nav-menu a::after { display: none; }
  .nav-menu a.nav-cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: 0;
  }
  /* Close button inside the mobile menu panel */
  .nav-menu-close {
    display: block;
    position: absolute;
    top: 14px; right: 18px;
    width: 44px; height: 44px;
    background: none;
    border: 0;
    color: var(--realgold);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: color .25s ease, transform .25s ease;
  }
  .nav-menu-close:hover { color: var(--gold-light); transform: rotate(90deg); }
  .nav-home-link { display: block; }

  /* Cover */
  .cover { padding: 100px 18px 50px; }
  .cover-logo-card { padding: 36px 30px; }

  /* Cards & grids */
  .cards-gold-bar,
  .properties-grid,
  .city-cards-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .costa-columns { grid-template-columns: 1fr; }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .stat { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
  .stat:last-child { border-bottom: 0; }

  .section-header { margin-bottom: 40px; }

  .service-row { grid-template-columns: 60px 1fr; gap: 18px; }
  .service-icon { width: 60px; height: 60px; }
  .service-icon svg { width: 32px; height: 32px; }

  .olive-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 22px; }

  .highlight-card { padding: 26px 24px; }

  .city-photo.framed { padding: 10px; }

  .contact-logo-card { padding: 30px 26px; }

  /* Disable heavy hover transforms on touch */
  .property-card:hover,
  .card-gold-bar:hover,
  .city-card:hover,
  .card-icon-circle:hover { transform: none; }
}

@media (max-width: 480px) {
  :root { --section-pad-x: 18px; }
  .cover-title { font-size: 1.75rem; }
  .h1-serif-gold { font-size: 1.75rem; }
  .brand-mini-levy { font-size: 1.15rem; }
  .nav-container { padding: 12px 18px; }
}

/* ---------- 18b. LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
  transform: scale(0.96);
  transition: transform .35s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,169,97,0.4);
  color: var(--realgold);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, transform .25s ease;
}
.lightbox-close:hover {
  background: rgba(201,169,97,0.18);
  transform: rotate(90deg);
}

/* ---------- 19. ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}
