:root {
  --bg: #0e0805;
  --surface: #24180f;
  --surface-soft: rgba(42, 27, 19, 0.88);
  --text: #f5ead7;
  --muted: #bfa97d;
  --accent: #c79f50;
  --accent-strong: #987131;
  --border: rgba(245, 223, 167, 0.18);
  --shadow: rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #513b2c 0%, #150c08 45%, #050201 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.button-primary,
.button-secondary {
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

button:hover,
.button-primary:hover,
.button-secondary:hover,
.nav-list a:hover {
  transform: translateY(-1px);
}

header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(246, 236, 215, 0.08);
  background: rgba(67, 47, 35, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--text);
  margin-right: 0.5rem;
}

/* Rend le logo responsive et garde un équilibre visuel naturel */
.logo,
.brand img {
  max-width: 100%;
  max-height: 4.45rem;
  width: auto;
  height: auto;
  display: block; /* Évite les petits espaces vides indésirables sous l'image */
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.168rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
}

.lang-switcher::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.lang-switcher__thumb {
  position: absolute;
  top: 0.22rem;
  bottom: 0.22rem;
  left: var(--thumb-left, 0.25rem);
  width: var(--thumb-width, 3.4rem);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(199, 159, 80, 0.95), rgba(249, 241, 214, 0.25));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  transition: left 260ms cubic-bezier(0.2, 0.8, 0.2, 1), width 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}

.lang-switcher__option {
  position: relative;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.252rem 0.44rem;
  min-width: 3rem;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switcher__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  font-size: 1.15rem;
}

.lang-switcher__flag img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.lang-switcher__label {
  display: inline-block;
  line-height: 1;
}

.lang-switcher__option:hover,
.lang-switcher__option:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}

.lang-switcher__option.active,
.lang-switcher__option[aria-pressed="true"] {
  color: #fff;
}

@media (max-width: 720px) {
  .lang-switcher {
    gap: 0.25rem;
    padding: 0.25rem;
  }

  .lang-switcher__option {
    padding: 0.65rem 0.9rem;
    font-size: 0.82rem;
  }

  .lang-switcher__flag {
    width: 1.1rem;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: 0.95rem;
  }

  .logo,
  .brand img {
    max-height: 7rem;
    height: auto;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.primary-navigation {
  display: none;
  width: 100%;
  margin-top: 1rem;
}

.primary-navigation.open {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  display: inline-flex;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.08);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(173, 138, 59, 0.12);
  color: var(--text);
  border-color: rgba(173, 138, 59, 0.28);
}

/* Mobile menu drawer/sidebar overlay */
@media (max-width: 860px) {
  .menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    pointer-events: none;
  }

  .menu-backdrop.open {
    display: block;
  }

  .primary-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid rgba(245, 223, 167, 0.12);
    display: flex;
    flex-direction: column;
    padding: 5.5rem 1.5rem 2rem;
    margin: 0;
    z-index: 99;
    overflow-y: auto;
    transition: left 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .primary-navigation.open {
    left: 0;
  }

  .nav-list {
    gap: 0.5rem;
  }

  .nav-list a {
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    background: rgba(173, 138, 59, 0.15);
    transform: translateX(4px);
    transition: all 180ms ease;
  }
}

main {
  padding: 1.5rem 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero-video-wrapper {
  width: 100%;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-video {
  width: min(100%, 1400px);
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  border-radius: 1.75rem;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.45);
  background: url("images/hero-video-poster.jpg") center/cover no-repeat #060402;
  overflow: hidden;
}

.hero-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, opacity 180ms ease;
  z-index: 2;
}

.hero-video-mute-toggle {
  display: none;
}

.hero-video-wrapper.playing .hero-video-play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  pointer-events: none;
}

.hero-video caption,
.hero-video-caption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
  max-width: 900px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .hero-video {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .hero-video-play {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.4rem;
  }

  .hero-video-wrapper {
    display: grid;
    gap: 0.85rem;
    align-items: start;
  }

  .hero-video-wrapper > .hero-video-caption {
    display: none !important;
  }

  .hero-video-wrapper > .hero-video-mute-toggle {
    display: inline-flex !important;
  }
}

/* Hero mobile : vidéo verticale dédiée avec titre/sous-titre qui apparaissent en fondu + zoom à la fin de la lecture */
.hero-video-wrapper--mobile {
  display: none;
}

@media (max-width: 859px) {
  .hero-video-wrapper--desktop {
    display: none;
  }

  .hero-video-wrapper--mobile {
    display: block;
  }
}

.hero-mobile {
  position: relative;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 78vh;
  box-shadow: 0 0 50px 12px rgba(199, 159, 80, 0.35), 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero-mobile-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #060402;
  transform-origin: center;
  transition: opacity 1100ms ease, transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-mobile-video.fade-out {
  opacity: 0;
  transform: scale(1.35);
}

.hero-mobile-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, rgba(5, 2, 1, 0.55) 0%, rgba(5, 2, 1, 0.35) 45%, rgba(5, 2, 1, 0.75) 100%), url("images/fond.png") center/cover no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.2);
  transform-origin: center;
  transition: opacity 1100ms ease, transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.hero-mobile-overlay.reveal {
  opacity: 1;
  transform: scale(1);
}

.hero-mobile-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 6.8vw, 2.2rem);
  line-height: 1.3;
  color: #fdf6e8;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  margin: 0 0 1.25rem;
}

.hero-mobile-title .accent-word {
  color: var(--accent);
}

.hero-mobile-text {
  color: rgba(245, 234, 215, 0.9);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 22rem;
  margin: 0;
}

.hero-copy {
  max-width: 36rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text {
  margin: 1.1rem 0 1.5rem;
  color: var(--text);
  font-size: 1rem;
  max-width: 32rem;
}

.hero[aria-labelledby="villas-title"] > div:first-child {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: 1.75rem;
  background-image: url('CHEMIN_IMAGE_ICI');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #fff;
}

.hero[aria-labelledby="villas-title"] > div:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.58));
  pointer-events: none;
}

.hero[aria-labelledby="villas-title"] > div:first-child > * {
  position: relative;
  z-index: 1;
}

.hero[aria-labelledby="villas-title"] .hero-title,
.hero[aria-labelledby="villas-title"] .hero-text {
  color: #fff;
}

.hero[aria-labelledby="villas-title"] .hero-text {
  max-width: 34rem;
}

@media (min-width: 860px) {
  .hero[aria-labelledby="villas-title"] > div:first-child {
    padding: 2.5rem 2rem;
  }
}

.hero-text[data-i18n="majunga.heroText"] {
  font-size: 1.2rem;
}

.hero.hero-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero.hero-split .hero-copy {
  max-width: 42rem;
}

.hero.hero-split .hero-visual {
  width: 100%;
}

.hero.hero-split .hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.75rem;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-media {
  display: grid;
  gap: 1rem;
}

.concept-section,
.section-block,
.investment-section {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 236, 215, 0.08);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header .eyebrow {
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  max-width: 56rem;
}

.pillar-grid,
.stats-grid,
.service-grid,
.investment-grid {
  display: grid;
  gap: 1rem;
}

.pillar-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.pillar-card,
.stat-card,
.service-card,
.metric-card {
  background: rgba(246, 236, 215, 0.05);
  border: 1px solid rgba(246, 236, 215, 0.12);
  border-radius: 1.35rem;
  padding: 1.35rem;
}

.pillar-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  border-radius: 1rem;
  background: rgba(210, 172, 92, 0.14);
}

.stat-card strong,
.metric-card h3 {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
  color: var(--text);
}

.stat-card p,
.metric-card p,
.service-card p,
.pillar-card p {
  margin: 0;
  color: var(--muted);
}

.concept-section {
  display: grid;
  gap: 1.75rem;
}

.concept-section .concept-copy {
  max-width: 54rem;
}

.concept-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  min-height: 340px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.service-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.investment-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Make the metric-card that contains the gps map span the full viewport width */
.investment-grid .metric-card:has(#gps-map) {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  /* keep the same visual padding used for metric-card */
  padding: 1.35rem;
  /* allow the card to visually match other cards while spanning full width */
}

/* The map itself fills the available card width and preserves the previous heights */
.investment-grid .metric-card:has(#gps-map) .gps-map,
.gps-map {
  width: 100%;
  max-width: 100%;
  height: 220px; /* mobile height - preserved */
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.04);
  background: #0a0a0a;
}

.gps-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (min-width: 860px) {
  .investment-grid .metric-card:has(#gps-map) {
    grid-column: 1 / -1;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100vw - 4rem));
    max-width: 100%;
    margin: 0 auto 1rem;
    justify-self: center;
  }

  .investment-grid .metric-card:has(#gps-map) .gps-map,
  .gps-map {
    width: 100%;
    height: 300px; /* desktop height - preserved */
    max-width: 100%;
    margin: 0 auto;
  }

  .gps-button-container {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100vw - 4rem));
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Ensure the embedded map iframe inherits the container size reliably */
.gps-map iframe,
.gps-map .leaflet-container {
  width: 100% !important;
  height: 100% !important;
}

/* Make the Google Maps button area also span full width and center the button */
.gps-button-container {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  justify-content: center;
  padding: 0.75rem 1.35rem; /* keep some vertical spacing */
  box-sizing: border-box;
}

/* Small visual tweak so the card's rounded corners don't clip the full-width flow */
.investment-grid .metric-card:has(#gps-map) {
  border-radius: 0; /* outer card spans full width; inner map keeps rounded corners */
}
.investment-grid .metric-card:has(#gps-map) .gps-map {
  border-radius: 0.85rem;
}

.cta-banner {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(173, 138, 59, 0.14);
  display: grid;
  gap: 1rem;
}

.cta-banner p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero.hero-fullwidth {
    grid-template-columns: 1fr;
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
  }

  .hero.hero-fullwidth .hero-video-wrapper {
    width: 100%;
  }

  .hero.hero-fullwidth .hero-video {
    width: 100%;
    max-width: none;
    min-width: 0;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    object-fit: cover;
    background-color: #000;
  }

  .pillar-grid,
  .service-grid,
  .investment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .concept-section {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero.hero-split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  header {
    font-size: 1.3rem;
  }

  .brand {
    font-size: 1.24rem;
  }

  .nav-list a {
    font-size: 1.24rem;
  }

  .lang-switcher__option {
    font-size: 1rem;
  }

  .logo,
  .brand img {
    max-height: 7rem;
    height: 7rem;
    width: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 30px rgba(173, 138, 59, 0.16);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(246, 236, 215, 0.18);
}

.hero-visual {
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(23, 14, 9, 0.96), rgba(70, 47, 33, 0.32));
  min-height: 260px;
  box-shadow: 0 24px 90px var(--shadow);
}

.hero-visual img,
.card img,
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual:hover img,
.card:hover img {
  transform: scale(1.02);
}

/* Lightbox styles */
#lightbox {
  pointer-events: none;
}
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
  z-index: 1200;
  padding: 1.25rem;
}
.lightbox-backdrop.open {
  visibility: visible;
  pointer-events: auto;
}
.lightbox-backdrop.visible {
  opacity: 1;
}
.lightbox-image {
  max-width: 92%;
  max-height: 84vh;
  border-radius: 0.6rem;
  box-shadow: 0 28px 80px rgba(0,0,0,0.6);
  transform: scale(0.96);
  transition: transform 320ms cubic-bezier(0.2,0.9,0.2,1);
}
.lightbox-backdrop.visible .lightbox-image {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  cursor: pointer;
}
.lightbox-caption {
  margin-top: 0.9rem;
  color: #fff;
  text-align: center;
  max-width: 92%;
  font-size: 0.98rem;
  opacity: 0.95;
}

@media (max-width: 720px) {
  .lightbox-image { max-width: 100%; max-height: 72vh; }
  .lightbox-close { font-size: 1.35rem; width: 2.2rem; height: 2.2rem; }
}

.hero-visual img,
.card img {
  transition: transform 320ms ease;
}

.card-image {
  width: 100%;
  height: 250px;
  display: block;
  border-radius: 1rem;
  margin-bottom: 1rem;
  object-fit: cover;
  flex-shrink: 0;
}

/* Mobile-only image optimization for card images */
@media (max-width: 859px) {
  .card-image {
    height: 250px;
    object-fit: cover;
  }
}

/* Desktop: cards display normally */
@media (min-width: 860px) {
  .card-image {
    height: 250px;
    object-fit: cover;
  }
}

.card-media {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1rem;
  display: block;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.cards,
.feature-list,
.contact-grid {
  display: grid;
    gap: 1.15rem;
  }

  .feature-list {
    margin-top: 1rem;
  }

  .card,
  .feature,
  .contact-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(36, 23, 14, 0.96), rgba(27, 15, 9, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.75rem;
    padding: 1.75rem;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
    overflow: hidden;
    backdrop-filter: blur(14px);
    position: relative;
  }

  .contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 35%);
    opacity: 0.75;
  }

  .contact-card > * {
    position: relative;
    z-index: 1;
  }

  .card:hover,
  .feature:hover,
  .contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(199, 159, 80, 0.35);
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.28);
  }

  .contact-card h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
  }

  .card-title,
  .feature-title {
    margin: 0;
    padding: 1.25rem 1.25rem 0;
    font-size: 1.32rem;
    font-weight: 700;
    text-transform: uppercase;
  }

.card-text,
.feature-text {
  margin: 0;
  padding: 0.75rem 1.25rem 1.25rem;
  height: auto;
  color: var(--muted);
  flex-grow: 1;
}

.section-note {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.photo-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-image-bottom {
  margin-top: 1.5rem;
}

.feature-image-bottom img {
  border-radius: 1.5rem;
  overflow: hidden;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.photo-card {
  border-radius: 1.5rem;
  overflow: hidden;
  background: #3f2b1e;
  min-height: 180px;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  transition: background 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.contact-list li a:hover {
  background: rgba(199, 159, 80, 0.16);
  border-color: rgba(199, 159, 80, 0.28);
  transform: translateY(-1px);
}

.contact-card form {
  display: grid;
  gap: 1.4rem;
}

.contact-card form .grid {
  gap: 1rem;
}

.contact-card form label {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
}

.contact-card form input,
.contact-card form select,
.contact-card form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.contact-card form input:focus,
.contact-card form select:focus,
.contact-card form textarea:focus {
  outline: none;
  border-color: rgba(199, 159, 80, 0.65);
  box-shadow: 0 0 0 4px rgba(199, 159, 80, 0.12);
  transform: translateY(-0.5px);
}

.contact-card form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-card form button {
  border-radius: 1.05rem;
  padding: 1rem 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.form-group {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(191, 169, 125, 0.75);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Strongly-scoped overrides for the investment cards grid to ensure 2x2 layout
   and equal-height cards regardless of other styles. Uses high-specificity
   selectors and !important where necessary to prevent external override. */
#investment-cards-container-unique {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  grid-auto-rows: 1fr !important; /* equal heights per row */
  align-items: stretch !important;
  justify-items: stretch !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 24px 16px !important;
  box-sizing: border-box !important;
}

#investment-cards-container-unique .investment-card--force {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  height: 100% !important; /* fill grid cell height */
  padding: 18px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  background: rgba(255,255,255,0.03) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

#investment-cards-container-unique .investment-card-emoji {
  font-size: 1.6rem !important;
  line-height: 1 !important;
  margin-bottom: 10px !important;
}

#investment-cards-container-unique .investment-card-title,
#investment-cards-container-unique .investment-card-desc {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
}

@media (max-width: 420px) {
  #investment-cards-container-unique {
    gap: 12px !important;
    padding: 16px 12px !important;
  }

  #investment-cards-container-unique .investment-card--force {
    padding: 14px !important;
    min-height: 120px !important;
  }

  #investment-cards-container-unique .investment-card-emoji {
    font-size: clamp(18px, 7vw, 28px) !important;
    margin-bottom: 8px !important;
  }

  #investment-cards-container-unique .investment-card-title {
    font-size: clamp(14px, 4.5vw, 16px) !important;
  }
}

.footer-brand {
  max-width: 26rem;
}

.footer-brand .brand {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.footer-text {
  margin: 0;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a,
.footer-social a {
  display: inline-flex;
  color: var(--text);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.footer-links a:hover,
.footer-social a:hover {
  background: rgba(173, 138, 59, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.footer-social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, max-content));
  gap: 0.65rem;
  align-items: center;
}

.footer-note {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* New clean mobile-only social grid */
.contact-grid > .social-grid-mobile {
  display: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

@media (max-width: 859px) {
  section.contact-grid > .social-grid-mobile {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    grid-auto-flow: row !important;
    gap: 15px !important;
    margin-top: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    position: relative !important;
    overflow: visible !important;
  }

  section.contact-grid > .social-grid-mobile > a {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0.95rem 1rem !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text) !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: background 220ms ease, transform 220ms ease, border-color 220ms ease !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }

  section.contact-grid > .social-grid-mobile > a:hover {
    background: rgba(199, 159, 80, 0.16) !important;
    border-color: rgba(199, 159, 80, 0.28) !important;
    transform: translateY(-1px) !important;
  }

  section.contact-card > ul.contact-list > li.social-link {
    display: none !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
}

/* Final override for mobile social grid */
@media (max-width: 859px) {
  html body main section.contact-grid > .social-grid-mobile {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 15px !important;
    margin-top: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    position: relative !important;
    overflow: visible !important;
  }

  html body main section.contact-grid > .social-grid-mobile > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0.95rem 1rem !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text) !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: background 220ms ease, transform 220ms ease, border-color 220ms ease !important;
  }

  /* Ensure the 4 social buttons render as two vertical columns (2x2)
     Column 1: WhatsApp (1) above Facebook (2)
     Column 2: Messenger (3) above Instagram (4)
     This explicit placement uses nth-child to keep semantic HTML order unchanged. */
  html body main section.contact-grid > .social-grid-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 12px !important;
  }

  html body main section.contact-grid > .social-grid-mobile > a:nth-child(1) { grid-column: 1; grid-row: 1; }
  html body main section.contact-grid > .social-grid-mobile > a:nth-child(2) { grid-column: 1; grid-row: 2; }
  html body main section.contact-grid > .social-grid-mobile > a:nth-child(3) { grid-column: 2; grid-row: 1; }
  html body main section.contact-grid > .social-grid-mobile > a:nth-child(4) { grid-column: 2; grid-row: 2; }
}

/* Footer mobile social grid (mobile-only) */
.footer-social-mobile {
  display: none;
}

@media (max-width: 859px) {
  .footer-social-mobile {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 1rem;
    box-sizing: border-box;
    align-items: stretch;
  }

  .footer-social-mobile a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-weight: 600;
    text-align: center;
    transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
  }

  .footer-social-mobile a:hover {
    background: rgba(173,138,59,0.12);
    transform: translateY(-1px);
  }

  /* Hide original footer social and non-WhatsApp contact links on mobile to avoid duplicates */
  .footer-social { display: none !important; }
  .footer-contact a { display: none !important; }
  .footer-contact a[href*="wa.me"] { display: inline-flex !important; }
}

/* Navigation styles for regular links (no dynamic tabs) */

@media (min-width: 860px) {
  .header-inner {
    align-items: center;
  }

  .menu-toggle {
    display: none;
  }

  .primary-navigation {
    display: block !important;
    width: auto;
    margin-top: 0;
  }

  .nav-list {
    flex-direction: row;
  }

  .nav-list a {
    background: transparent;
    padding: 0.9rem 1.2rem;
    font-size: 1.05rem;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    background: rgba(173, 138, 59, 0.12);
    border-color: rgba(173, 138, 59, 0.28);
  }

  .hero {
    grid-template-columns: 1fr 1fr;
  }

  main {
    padding: 2rem 2rem 3rem;
  }

  .cards,
  .feature-list,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .form-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .form-group:has(textarea) {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }
}

/* ========================================
   MOBILE-SPECIFIC BACKGROUND IMAGE
   This section applies ONLY to mobile devices (max-width: 859px)
   DO NOT modify for desktop
   ======================================== */

@media (max-width: 859px) {
  /* Mobile background image for hero sections */
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=600&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
  }

  .hero {
    position: relative;
  }

  /* Ensure text is visible over background on mobile */
  .hero div {
    position: relative;
    z-index: 1;
  }

  /* Older unused mobile helpers removed so only the new social grid applies */
}
