/* ==========================================================================
   EMARA GENERAL CONTRACTING & REAL ESTATE INVESTMENT COMPANY, S.P.S.L.
   Luxury Architectural Petrol + Shimmering Gold 3D Design System
   Designed by </> wijhadev (wijhadev.com)
   ========================================================================== */

/* Local Bundled Fonts (Zero External CDN Dependency) */
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/NotoKufiArabic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/NotoKufiArabic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  src: url('../fonts/NotoSansArabic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  src: url('../fonts/NotoSansArabic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core Brand Palette from Official Logo + Luxury Glossy Gold */
  --bg-obsidian: #061015;
  --bg-petrol: #0B1B23;
  --bg-surface: #102530;
  --bg-surface-elevated: #153140;
  --brand-petrol: #1E414E;
  --brand-copper: #C27848;
  --brand-blue: #1A8AC4;

  /* Luxury Glossy Gold Spectrum */
  --gold-deep: #8C6218;
  --gold-mid: #D4AF37;
  --gold-bright: #F4D87C;
  --gold-highlight: #FFF6CC;
  --gold-gradient: linear-gradient(135deg, #9B7020 0%, #DFB955 25%, #FFF4BE 50%, #D4AF37 75%, #8D6419 100%);
  --gold-gradient-text: linear-gradient(90deg, #C99A2E 0%, #F7DF8A 35%, #FFF7D1 50%, #DFB54A 68%, #B48422 100%);
  --gold-glow: 0 0 28px rgba(212, 175, 55, 0.28), 0 12px 32px rgba(0, 0, 0, 0.55);

  /* Typography & Neutral Text */
  --text-primary: #F5F7F8;
  --text-secondary: #C4D0D6;
  --text-muted: #8FA3AE;

  /* Layout & Fluid Scaling (320px Mobile to 4K TVs) */
  --container-max: clamp(300px, 92vw, 1520px);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --nav-height: 82px;
  --transition-fast: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(14px, 0.9vw + 8px, 19px);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 15% 0%, rgba(26, 138, 196, 0.08), transparent 40%),
              radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.09), transparent 45%),
              var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

html[dir="ltr"] body {
  font-family: 'Inter', 'Noto Sans Arabic', system-ui, sans-serif;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
  line-height: 1.32;
  font-weight: 700;
}
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] .brand-title {
  font-family: 'Inter', 'Noto Kufi Arabic', sans-serif;
  letter-spacing: -0.015em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2.25rem);
}

main {
  flex: 1;
}

/* Gold Shimmer Text */
.gold-text {
  background: var(--gold-gradient-text);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShimmer 5.5s linear infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 16, 21, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(6, 16, 21, 0.94);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(244, 216, 124, 0.45);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nav-logo-wrap {
  width: 56px;
  height: 36px;
  border-radius: 10px;
  padding: 2px;
  background: var(--gold-gradient);
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.nav-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #eceef0;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name-short {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright);
  white-space: nowrap;
}

.brand-sub-short {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.2vw, 1.25rem);
  list-style: none;
}

.nav-links a {
  position: relative;
  padding: 0.45rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0.75rem;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-highlight);
  background: rgba(212, 175, 55, 0.08);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--bg-obsidian);
  background: var(--gold-gradient);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.lang-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(244, 216, 124, 0.6);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(16, 37, 48, 0.85);
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
}

/* ==========================================================================
   LUXURY BUTTONS
   ========================================================================== */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.88rem 1.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  color: #071217;
  background: var(--gold-gradient);
  background-size: 200% auto;
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.75);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-position 0.5s ease;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  background-position: right center;
  box-shadow: 0 12px 34px rgba(244, 216, 124, 0.55);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.86rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--gold-highlight);
  background: rgba(11, 27, 35, 0.68);
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-highlight);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.42);
}

/* ==========================================================================
   3D ANIMATED SHIMMERING GOLD-EDGED CARDS (CORE DESIGN SIGNATURE)
   ========================================================================== */
.card-3d-scene {
  perspective: 1200px;
}

.card-3d {
  position: relative;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(19, 44, 57, 0.92) 0%, rgba(9, 22, 29, 0.97) 100%);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48), 0 0 18px rgba(212, 175, 55, 0.14);
  isolation: isolate;
  overflow: hidden;
  border: 1.5px solid transparent;
}

/* Gleaming animated metallic gold border */
.card-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    #8F6719 0%,
    #D4AF37 22%,
    #FFF7CE 48%,
    #C27848 64%,
    #F4D87C 82%,
    #8C6218 100%
  );
  background-size: 260% 260%;
  animation: borderGoldFlow 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

/* Dynamic specular glossy gold sheen on hover */
.card-3d::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 244, 190, 0.22) 0%,
    rgba(212, 175, 55, 0.08) 28%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.card-3d:hover {
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.65),
              0 0 32px rgba(212, 175, 55, 0.36),
              inset 0 0 20px rgba(244, 216, 124, 0.08);
}

.card-3d:hover::after {
  opacity: 1;
}

.card-3d-inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  transform: translateZ(24px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

@keyframes borderGoldFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Reveal animation on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   HERO SECTION (FULL-BLEED 18-PHOTO ANIMATED BACKGROUND + LUXURY ANIMATED LOGO)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-obsidian);
}

.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.5s ease-in-out;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  animation: heroKenBurns 8.5s ease-out forwards;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.62) saturate(1.12);
}

@keyframes heroKenBurns {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.13) translate3d(-1.5%, -1%, 0); }
}

/* Architectural petrol + warm gold atmospheric overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6, 16, 21, 0.78) 0%, rgba(11, 27, 35, 0.62) 48%, rgba(6, 16, 21, 0.96) 100%);
}

/* Subtle architectural grid lines */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1040px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

/* Large Luxurious Animated Logo Stage */
.hero-logo-stage {
  position: relative;
  width: clamp(230px, 34vw, 410px);
  padding: 5px;
  border-radius: 30px;
  background: var(--gold-gradient);
  background-size: 250% 250%;
  animation: logoFloat 5.2s ease-in-out infinite, borderGoldFlow 5s linear infinite;
  box-shadow:
    0 0 0 6px rgba(212, 175, 55, 0.14),
    0 0 55px rgba(212, 175, 55, 0.42),
    0 24px 60px rgba(0, 0, 0, 0.72);
  transform-style: preserve-3d;
}

.hero-logo-stage::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 38px;
  border: 1.5px dashed rgba(244, 216, 124, 0.45);
  animation: haloPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.hero-logo-inner {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  background: #f0f2f4;
}

.hero-logo-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 248, 210, 0.65) 50%, transparent 80%);
  animation: logoSheenSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

.hero-logo-inner img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
  50% { transform: translateY(-12px) rotateX(3deg) rotateY(-2deg); }
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.03); }
}

@keyframes logoSheenSweep {
  0%, 55% { left: -130%; }
  100% { left: 165%; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: rgba(11, 27, 35, 0.76);
  border: 1px solid rgba(244, 216, 124, 0.55);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.25);
}

.hero-title {
  font-size: clamp(1.65rem, 3.6vw, 3.35rem);
  font-weight: 700;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.75);
}

.hero-subtitle {
  font-size: clamp(0.98rem, 1.35vw, 1.25rem);
  color: #E2EAEE;
  max-width: 780px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

/* Hero Slideshow Counter & Controls */
.hero-slide-controls {
  position: absolute;
  bottom: 1.5rem;
  inset-inline: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.slide-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(6, 16, 21, 0.76);
  border: 1px solid rgba(212, 175, 55, 0.48);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  color: var(--gold-bright);
}

.slide-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-highlight);
  transition: background var(--transition-fast);
}
.slide-nav-btn:hover {
  background: rgba(212, 175, 55, 0.25);
}

/* ==========================================================================
   SUBPAGE HERO BANNER
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.16), transparent 60%),
    linear-gradient(180deg, #0D222D 0%, var(--bg-obsidian) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  margin-bottom: 0.85rem;
}

.page-hero p {
  max-width: 720px;
  margin-inline: auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section {
  padding-block: clamp(3.25rem, 6vw, 5.75rem);
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(14, 34, 45, 0.42) 0%, rgba(6, 16, 21, 0.85) 100%);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.09);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.25rem, 2.2vw, 2rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1.25rem, 2.2vw, 1.85rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
}

/* Stat Cards */
.stat-value {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Media inside 3D Cards */
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px) 0 0;
  background: #09171E;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-3d:hover .card-media img {
  transform: scale(1.07);
}

.card-tag {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #071217;
  background: var(--gold-gradient);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.card-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(194, 120, 72, 0.16));
  border: 1.5px solid rgba(244, 216, 124, 0.55);
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.22);
}

.card-title {
  font-size: 1.18rem;
  margin-bottom: 0.55rem;
  color: var(--gold-highlight);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.94rem;
  flex: 1;
}

/* Legal Info Rows */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.25rem;
}

.legal-item-label {
  font-size: 0.82rem;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.legal-item-value {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Gallery Filter Pills */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(16, 37, 48, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.35);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  color: #071217;
  background: var(--gold-gradient);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.38);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

.gallery-item {
  cursor: pointer;
}

.gallery-item .card-media {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-md) - 2px);
}

.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.25rem 1rem 0.85rem;
  background: linear-gradient(0deg, rgba(6, 16, 21, 0.92) 0%, transparent 100%);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-highlight);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 10, 14, 0.94);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open {
  display: flex;
}
.lightbox-box {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  border-radius: 20px;
  padding: 4px;
  background: var(--gold-gradient);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8);
}
.lightbox-box img {
  max-height: 80vh;
  width: auto;
  border-radius: 16px;
  background: #061015;
}
.lightbox-caption {
  text-align: center;
  padding: 0.7rem 1rem;
  color: #071217;
  font-weight: 700;
  font-size: 0.92rem;
}
.lightbox-close {
  position: absolute;
  top: -16px;
  inset-inline-end: -16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #071217;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   CONTACT FORM & GOOGLE MAPS
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 2rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  background: rgba(6, 16, 21, 0.75);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

textarea.form-control {
  min-height: 135px;
  resize: vertical;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(25, 135, 84, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #A7F3D0;
}

.form-feedback.error {
  display: block;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #FECACA;
}

.map-frame-wrap {
  position: relative;
  width: 100%;
  height: 390px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   UNIFIED LUXURY FOOTER (ALL PAGES)
   ========================================================================== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #09171E 0%, #040B0F 100%);
  border-top: 2px solid rgba(212, 175, 55, 0.48);
  padding-top: 3.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2.25rem;
  padding-bottom: 2.75rem;
}

.footer-heading {
  font-size: 1.05rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-list a,
.footer-list li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: color var(--transition-fast);
}

.footer-list a:hover {
  color: var(--gold-highlight);
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  padding-block: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.wijhadev-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-highlight);
  font-weight: 700;
  direction: ltr;
  transition: all var(--transition-fast);
}

.wijhadev-credit:hover {
  background: var(--gold-gradient);
  color: #071217;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

/* ==========================================================================
   FLOATING CIRCULAR WHATSAPP BUTTON (3 SECONDS ON SCROLL UP/DOWN)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 1500;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border: 2.5px solid var(--gold-bright);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 22px rgba(212, 175, 55, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px) scale(0.75);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s ease, bottom 0.25s ease;
}

.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.whatsapp-float.above-footer {
  bottom: 108px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 34px rgba(37, 211, 102, 0.65), 0 0 28px rgba(244, 216, 124, 0.75);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (320px MOBILE UP TO 4K TVS)
   ========================================================================== */
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    inset-inline: 0;
    background: rgba(6, 16, 21, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.45);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .brand-sub-short {
    display: none;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group a {
    width: 100%;
  }
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 18px;
    inset-inline-end: 18px;
  }
}

@media (min-width: 2200px) {
  :root {
    --container-max: 1960px;
    --nav-height: 98px;
  }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
