/* ============================================
   PALACIO ESTATE — Design System
   The Art of Grand Living
   ============================================ */

/* ---------- CSS Variables / Tokens ---------- */
:root {
  /* Brand Colors */
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --gold-dark: #A68A3E;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --gold-border: rgba(201, 168, 76, 0.25);

  --dark: #0A0A0A;
  --dark-surface: #111111;
  --dark-card: #161616;
  --dark-border: #1E1E1E;
  --dark-hover: #1A1A1A;

  --green: #1B3A2A;
  --green-light: #2D5E42;
  --green-glow: rgba(45, 94, 66, 0.2);

  --white: #F5F0E8;
  --cream: #E8E0D0;
  --muted: #8A8272;
  --muted-light: #A39E90;

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 800px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration: 0.4s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--dark);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-lg);
}
.label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

section {
  padding: var(--space-5xl) 0;
}

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-lg) 0;
  transition: all var(--duration) var(--ease);
}

header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--dark-border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
  transition: color var(--duration) var(--ease);
  position: relative;
}

nav > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration) var(--ease);
}

nav > a:hover { color: var(--gold); }
nav > a:hover::after { width: 100%; }

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration) var(--ease);
}

.nav-dropdown.open > a { color: var(--gold); }
.nav-dropdown.open > a::after { width: 100%; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  padding-top: 8px;
  left: 50%;
  margin-left: -110px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) 0;
  min-width: 220px;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-border) transparent;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 200;
}
.dropdown-menu::-webkit-scrollbar {
  width: 4px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--gold-border);
  border-radius: 2px;
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.dropdown-menu a:hover {
  color: var(--gold);
  background: var(--dark-surface);
}

.dropdown-menu a::after { display: none !important; }

.dropdown-divider {
  height: 1px;
  background: var(--dark-border);
  margin: 6px 0;
}

.dropdown-label {
  padding: 8px 20px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold) !important;
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease) !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--dark) !important;
}

.nav-cta::after { display: none !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, var(--gold-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--green-glow) 0%, transparent 40%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg, var(--dark) 0%, transparent 30%, transparent 70%, var(--dark) 100%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: saturate(0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  padding-top: 120px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-2xl);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(74, 222, 128, 0.6), 0 0 12px 4px rgba(74, 222, 128, 0.3);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px 2px rgba(74, 222, 128, 0.6), 0 0 12px 4px rgba(74, 222, 128, 0.3); }
  50% { opacity: 0.3; box-shadow: 0 0 2px 1px rgba(74, 222, 128, 0.2); }
}


.hero h1 {
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted-light);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
}

.btn-dark {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--white);
}

.btn-dark:hover {
  border-color: var(--gold-border);
  background: var(--dark-hover);
}

/* ---------- Stats Bar ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: calc(-1 * var(--space-3xl));
  position: relative;
  z-index: 3;
  background: var(--dark-surface);
}

.stat {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-right: 1px solid var(--dark-border);
  transition: background var(--duration) var(--ease);
}

.stat:last-child { border-right: none; }
.stat:hover { background: var(--dark-card); }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ---------- Section Styling ---------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--muted-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

/* ---------- Legacy Section ---------- */
.legacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.legacy-text h2 {
  margin-bottom: var(--space-lg);
}

.legacy-text p {
  color: var(--muted-light);
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

.legacy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.legacy-stat {
  display: block;
  padding: var(--space-lg);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  background: var(--dark-surface);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}

.legacy-stat::after {
  content: 'Read more \2192';
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.5;
  transition: opacity 0.3s;
  letter-spacing: 0.05em;
}

.legacy-stat:hover::after {
  opacity: 1;
}

a.legacy-stat:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.legacy-stat .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
}

.legacy-stat .desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.legacy-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
}

.legacy-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
}

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--muted-light);
  line-height: 1.65;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--dark-border));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-3xl);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--dark);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.timeline-item h4 {
  margin-bottom: var(--space-sm);
}

.timeline-item p {
  font-size: 0.88rem;
  color: var(--muted-light);
  line-height: 1.7;
}

/* ---------- Connect Section ---------- */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.connect-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-lg);
  transition: all var(--duration) var(--ease);
}

.connect-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.connect-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.connect-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.connect-card .tag {
  display: inline-block;
  background: var(--green-glow);
  border: 1px solid rgba(45, 94, 66, 0.3);
  color: var(--green-light);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
}

.connect-card p {
  font-size: 0.82rem;
  color: var(--muted-light);
  line-height: 1.65;
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  margin-bottom: var(--space-md);
}

.cta-content p {
  color: var(--muted-light);
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--dark-border);
  padding: var(--space-4xl) 0 var(--space-2xl);
  background: var(--dark-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3xl) var(--space-3xl);
  margin-bottom: var(--space-3xl);
}
.footer-links {
  display: flex;
  gap: var(--space-2xl);
  justify-content: flex-end;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: var(--space-md);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.footer-col-scroll {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-border) transparent;
}
.footer-col-scroll::-webkit-scrollbar {
  width: 4px;
}
.footer-col-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.footer-col-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-border);
  border-radius: 2px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 6px 0;
  transition: color var(--duration) var(--ease);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--dark-border);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: var(--space-2xl) 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .legacy-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: var(--space-4xl) 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--dark-border); }
  .features-grid, .connect-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-surface);
    border-bottom: 1px solid var(--dark-border);
    padding: var(--space-lg);
    gap: var(--space-md);
    max-height: 80vh;
    overflow-y: auto;
  }
  .mobile-toggle { display: block; }
  .feature-icon { width: 32px; height: 32px; font-size: 0.95rem; }
  .connect-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .connect-card-link { flex-direction: column; }
  .connect-icon { margin-bottom: var(--space-md); }
  .dropdown-menu {
    display: block !important;
    position: static;
    margin-left: 0;
    box-shadow: none;
    border: none;
    background: var(--dark-card);
    border-radius: var(--radius);
    margin-top: var(--space-sm);
    min-width: auto;
    width: 100%;
  }
  .dropdown-label {
    padding: 8px 16px 4px;
    font-size: 0.65rem;
  }
  .dropdown-menu a {
    padding: 6px 16px;
    font-size: 0.75rem;
  }
}

/* Clickable card links */
.feature-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: inherit;
  height: 100%;
  position: relative;
}
.feature-card-link::after {
  content: 'Read more \2192';
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.5;
  transition: opacity 0.3s;
  letter-spacing: 0.05em;
}
.feature-card-link:hover::after {
  opacity: 1;
}
.feature-card-link:hover {
  color: inherit;
}
.connect-card-link {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  color: inherit;
  text-decoration: none;
  padding: inherit;
  height: 100%;
  position: relative;
}
.connect-card-link::after {
  content: 'Read more \2192';
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.5;
  transition: opacity 0.3s;
  letter-spacing: 0.05em;
}
.connect-card-link:hover::after {
  opacity: 1;
}
.connect-card-link:hover {
  color: inherit;
}

/* ---------- Interchange Carousel ---------- */
.carousel-wrapper {
  position: relative;
  margin: 0 auto 40px;
  max-width: 800px;
  max-height: 400px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
  background: #0A0A0A;
}
.carousel-track {
  display: flex;
}
.carousel-slide {
  min-width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carousel-slide.active {
  position: relative;
  opacity: 1;
  height: auto;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
}
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--muted-light);
  font-size: 0.85rem;
  font-style: italic;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark-border);
  border: 1px solid var(--gold-border);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}
