/* 
 * Ultra Premium Components V3
 * 3D Cards, Glassmorphism, App-like Mobile
 */

/* ═══════════════════════════════════════
   HEADER & GLASS NAVIGATION 
   ═══════════════════════════════════════ */

.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.5rem 0;
  z-index: 9999;
  transition: all 0.6s var(--ease-out-expo);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(3, 3, 3, 0.8);
  backdrop-filter: blur(30px) saturate(1.2);
  -webkit-backdrop-filter: blur(30px) saturate(1.2);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--brand-white);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform var(--transition-normal);
}

.logo:hover {
  transform: scale(1.02);
  color: var(--brand-white);
}

.logo svg {
  color: var(--brand-gold);
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 8px rgba(199, 166, 120, 0.3));
}

/* Navigation Desktop */
.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
  }

  .nav-links a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.4s var(--ease-out-expo);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--brand-white);
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 1.5px;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-out-expo);
    box-shadow: 0 0 8px rgba(199, 166, 120, 0.3);
  }

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

/* Header Devis Button - compact on mobile */
.nav-container > .btn-outline {
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  border-width: 1px;
}

@media (max-width: 768px) {
  .nav-container > .btn-outline {
    padding: 0.2rem 0.45rem;
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    min-width: unset;
    width: auto;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10051;
  transition: transform var(--transition-normal);
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--brand-white);
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile Navigation - Full Screen App-like */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  height: 100dvh;
  background: rgba(3, 3, 3, 0.97);
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  z-index: 10050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--text-muted);
  display: block;
  padding: 0.8rem 2rem;
  transition: all 0.4s var(--ease-out-expo);
  transform: translateY(30px);
  opacity: 0;
  position: relative;
}

.mobile-nav.active a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.active a:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--brand-gold);
  transform: translateX(10px);
}

.mobile-nav a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0;
  height: 1px;
  background: var(--brand-gold);
  transition: width 0.4s var(--ease-out-expo);
}

.mobile-nav a:hover::before,
.mobile-nav a.active::before {
  width: 1.5rem;
}

.mobile-nav-footer {
  position: absolute;
  bottom: 3rem;
  text-align: center;
}

.mobile-nav-footer span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ═══════════════════════════════════════
   BUTTONS - Premium with Glow
   ═══════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 2.8rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  transition: all 0.6s var(--ease-out-expo);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-white) 0%, #e8e8e3 100%);
  color: var(--bg-pure);
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(199, 166, 120, 0);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-light) 100%);
  transform: translateY(105%);
  transition: transform 0.6s var(--ease-out-expo);
  z-index: 1;
  border-radius: inherit;
}

.btn-primary span {
  position: relative;
  z-index: 2;
  transition: color 0.6s var(--ease-out-expo);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg), var(--shadow-gold-strong);
  transform: translateY(-3px);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--brand-white);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-inset);
}

.btn-outline:hover {
  border-color: var(--brand-gold);
  background: var(--glass-brown);
  box-shadow: var(--shadow-gold), var(--shadow-inset);
  transform: translateY(-2px);
  color: var(--brand-white);
}

.btn-outline:active {
  transform: translateY(0) scale(0.98);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--brand-gold);
  padding: 0.8rem 0;
  border: none;
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out-expo);
}

.btn-ghost:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ═══════════════════════════════════════
   3D LUXURY CARD SYSTEM
   ═══════════════════════════════════════ */

.card-perspective {
  perspective: var(--perspective);
}

.luxury-card {
  position: relative;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--glass-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  transition: all 0.8s var(--ease-out-expo);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

/* Inner glow overlay */
.luxury-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  pointer-events: none;
  transition: opacity 0.6s;
}

/* Hover glow bottom */
.luxury-card::after {
  content: '';
  position: absolute;
  bottom: -50%; left: 10%; right: 10%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(199, 166, 120, 0.15), transparent 70%);
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo);
  pointer-events: none;
}

.luxury-card:hover {
  transform: translateY(-12px);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 50%, var(--glass-brown) 100%);
}

.luxury-card:hover::after {
  opacity: 1;
}

/* Card with 3D tilt (JS enhanced) */
.luxury-card.tilt-active {
  transition: box-shadow 0.8s var(--ease-out-expo), border-color 0.8s var(--ease-out-expo), background 0.8s var(--ease-out-expo);
}

/* Card image wrapper */
.luxury-card-img-wrapper {
  overflow: hidden;
  margin: -2.5rem -2.5rem 2rem -2.5rem;
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.luxury-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out-expo), filter 1s var(--ease-out-expo);
}

.luxury-card:hover .luxury-card-img-wrapper img {
  transform: scale(1.08);
}

/* Gradient overlay on card images */
.luxury-card-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg-card), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Image Gradients & Overlays */
.img-dark-overlay {
  position: relative;
}

.img-dark-overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

/* ═══════════════════════════════════════
   GLASS PANELS
   ═══════════════════════════════════════ */

.glass-panel {
  background: rgba(10, 10, 14, 0.6);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--glass-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.premium-surface {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent),
    linear-gradient(145deg, rgba(21,21,28,0.96), rgba(10,10,14,0.9));
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  overflow: hidden;
}

.premium-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.025) 48%, transparent 55%),
    radial-gradient(circle at top right, rgba(199,166,120,0.08), transparent 28%);
  pointer-events: none;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.story-stack {
  display: grid;
  gap: 1rem;
}

.story-point {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

.story-point strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brand-white);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.metric-card .label {
  display: block;
  margin-top: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.detail-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.detail-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  color: var(--text-secondary);
}

.detail-item::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-gold-light), var(--brand-gold-dark));
  box-shadow: 0 0 18px rgba(199,166,120,0.35);
}

.quote-panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(199,166,120,0.16);
  background: linear-gradient(145deg, rgba(199,166,120,0.08), rgba(255,255,255,0.02));
  box-shadow: var(--shadow-gold), var(--shadow-inset);
}

.quote-panel blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.45;
  color: var(--brand-white);
}

.quote-panel cite {
  display: block;
  margin-top: 1rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.editorial-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.editorial-card {
  position: relative;
  min-height: 100%;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
}

.editorial-card .index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(199,166,120,0.22);
  color: var(--brand-gold);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.timeline-mini {
  display: grid;
  gap: 1rem;
}

.timeline-mini-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-mini-item .time {
  color: var(--brand-gold);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 0.3rem;
}

.timeline-mini-item .content {
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.floating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(12,12,18,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-badge::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 14px rgba(199,166,120,0.5);
}

/* ═══════════════════════════════════════
   STAT COUNTER
   ═══════════════════════════════════════ */

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--brand-white);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, var(--brand-white), var(--brand-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════
   DIVIDER LINE
   ═══════════════════════════════════════ */

.luxury-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
  margin: 2rem auto;
}

/* ═══════════════════════════════════════
   FORMS - Premium
   ═══════════════════════════════════════ */

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-control {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  padding: 1.2rem 0;
  color: var(--brand-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--brand-gold);
  box-shadow: 0 2px 8px rgba(199, 166, 120, 0.1);
}

.form-control::placeholder {
  color: var(--text-subtle);
  transition: color 0.3s;
}

.form-control:focus::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: none;
  min-height: 120px;
  padding-top: 1.5rem;
}

select.form-control {
  -webkit-appearance: none;
  color: var(--text-subtle);
}

/* Premium form card */
.form-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  padding: 3rem 2.5rem;
  border: 1px solid var(--glass-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

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

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--glass-white);
  padding: 6rem 0 2rem 0;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-pure) 100%);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 1.5rem;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer ul a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out-expo);
}

.footer ul a:hover {
  color: var(--brand-white);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-white);
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}

.footer-social a:hover {
  color: var(--brand-gold);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */

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

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.1s linear;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    linear-gradient(0deg, var(--bg-pure) 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.5) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(63, 43, 31, 0.2), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 5rem;
}

/* ═══════════════════════════════════════
   GALLERY GRID
   ═══════════════════════════════════════ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 350px;
  gap: 0.5rem;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out-expo), filter 1s var(--ease-out-expo);
  filter: brightness(0.85);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}

.gallery-item:hover::after {
  opacity: 1;
}

.large-item { grid-row: span 2; grid-column: span 2; }

@media (max-width: 768px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 4px; }
  .large-item { grid-column: span 2; grid-row: span 1; }
}

/* ═══════════════════════════════════════
   IMAGE REVEAL
   ═══════════════════════════════════════ */

.img-premium {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.img-premium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out-expo);
}

.img-premium:hover img {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════
   MOBILE APP-LIKE BOTTOM BAR
   ═══════════════════════════════════════ */

@keyframes appTabBarIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.app-tab-bar {
  display: none;
}

@media (max-width: 768px) {
  .app-tab-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    justify-content: space-around;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.4rem 0.45rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(22, 20, 18, 0.72) 0%, rgba(10, 9, 8, 0.92) 100%);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    border-top: 1px solid rgba(199, 166, 120, 0.14);
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: appTabBarIn 0.65s var(--ease-out-expo) both;
  }

  .app-tab-bar__link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.55rem 0.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s var(--ease-out-expo), background 0.3s var(--ease-out-expo), transform 0.2s;
  }

  .app-tab-bar__link:active {
    transform: scale(0.96);
  }

  .app-tab-bar__link.active {
    color: var(--brand-gold);
    background: rgba(199, 166, 120, 0.1);
    box-shadow: inset 0 0 0 1px rgba(199, 166, 120, 0.15);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .btn {
    padding: 1rem 2rem;
    font-size: 0.8rem;
    width: 100%;
  }

  .luxury-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
  }

  .luxury-card-img-wrapper {
    margin: -2rem -1.5rem 1.5rem -1.5rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .grid { gap: 1.5rem; }

  .form-card {
    padding: 2rem 1.5rem;
  }

  .split-layout,
  .metric-strip,
  .editorial-columns {
    grid-template-columns: 1fr;
  }

  .timeline-mini-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .timeline-mini-item .content {
    padding-left: 0;
    border-left: none;
  }
}

/* ═══════════════════════════════════════
   HORIZONTAL SCROLL BADGES 
   ═══════════════════════════════════════ */

.badge-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.badge-row::-webkit-scrollbar { display: none; }

.badge {
  flex-shrink: 0;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--glass-white);
  background: var(--bg-card);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.3s var(--ease-out-expo);
}

.badge:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  box-shadow: var(--shadow-gold);
}

/* ═══════════════════════════════════════
   PROCESS STEP NUMBERS
   ═══════════════════════════════════════ */

.step-number {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  background: linear-gradient(180deg, rgba(199, 166, 120, 0.3), rgba(199, 166, 120, 0.05));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════ */

.faq-item {
  border-bottom: 1px solid var(--glass-white);
  padding: 2rem 0;
}

.faq-question {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--brand-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--brand-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out-expo), padding 0.6s;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    border-top: 1px solid var(--glass-white);
    z-index: 99999;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; /* Slightly squarer for industrial look */
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
  }
  .mobile-call-btn {
    flex: 0 0 54px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--glass-white);
    color: var(--text-main);
  }
  .mobile-quote-btn {
    flex: 1;
    height: 48px;
    background: var(--text-main);
    color: var(--bg-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--text-main);
  }
  .mobile-sticky-btn:active {
    transform: scale(0.97);
  }
  body {
    padding-bottom: 74px; /* Prevent footer from hiding */
  }
}


/* Carousel Styles */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s linear;
  transform: scale(1.05);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero::after {
  content: none; /* override previous if any */
}

/* MOBILE STICKY CTA BAR */
.mobile-sticky-v2 {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-sticky-v2 {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px;
    z-index: 2147483647;
    border-top: 1px solid rgba(199, 166, 120, 0.22);
    background: rgba(10, 9, 8, 0.95);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.7);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-sticky-v2 a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-sans);
    transition: background 0.3s, transform 0.15s;
  }

  .mobile-sticky-v2 a:active { transform: scale(0.97); }

  .mobile-sticky-v2 .cta-tel {
    flex: 0 0 60px;
    background: rgba(42, 29, 21, 0.7);
    border-right: 1px solid rgba(255,255,255,0.08);
  }

  .mobile-sticky-v2 .cta-tel svg {
    width: 22px;
    height: 22px;
    color: #c7a678;
  }

  .mobile-sticky-v2 .cta-quote {
    flex: 1;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c7a678 0%, #d4ba8e 100%);
    color: #0e0c0a;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* BROWN BLOCKS DIVERSITY */
.luxury-card-brown {
  background: linear-gradient(145deg, #3F2B1F 0%, #2A1D15 100%) !important;
  border: 1px solid rgba(199, 166, 120, 0.1) !important;
  box-shadow: inset 0 2px 20px rgba(0,0,0,0.5), 0 15px 35px rgba(0,0,0,0.6) !important;
}
.luxury-card-brown:hover {
  background: linear-gradient(145deg, #4A3325 0%, #35241A 100%) !important;
  transform: translateY(-8px) scale(1.02);
  box-shadow: inset 0 2px 20px rgba(0,0,0,0.5), 0 20px 40px rgba(199,166,120,0.15) !important;
}

.nav-logo { height: 38px; width: auto; filter: brightness(0) invert(1); margin-right: 0.5rem; vertical-align: middle; }
.loader-logo { height: 60px; filter: brightness(0) invert(1); animation: pulse-logo 2s infinite ease-in-out; }
@keyframes pulse-logo { 0% { transform: scale(0.9); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(0.9); opacity: 0.5; } }

@media (max-width: 768px) {
  .logo { font-size: 1.1rem !important; }
  .logo .nav-logo { height: 26px !important; margin-right: 0.4rem !important; }
}

.mobile-menu-btn { z-index: 10055 !important; position: relative !important; }
.mobile-menu-btn.active span { background-color: var(--brand-gold) !important; box-shadow: 0 0 8px rgba(199,166,120,0.5); }

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

/* Fix Gallery Blurry Images */
.gallery-item img {
    object-fit: cover !important;
    max-width: 100% !important;
    height: 100% !important;
    image-rendering: -webkit-optimize-contrast; /* Webkit crispness */
    transform: translateZ(0); /* Hardware acceleration */
}

/* Explicit Mobile Nav Close */
.mobile-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--brand-white);
    font-size: 3.5rem;
    font-weight: 100;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}
.mobile-close-btn:hover { color: var(--brand-gold); }
