/* =====================================================
   MOGADOR PALAIS DES CONGRÈS — Landing Page Styles
   ===================================================== */

:root {
  --burgundy:      #6B1E1E;
  --burgundy-dark: #4E1515;
  --gold:          #C8A96A;
  --gold-dark:     #A88845;
  --brown:         #2B1A17;
  --brown-mid:     #4A2C25;
  --beige:         #F5EFE6;
  --beige-dark:    #EAE0D0;
  --beige-mid:     #D9CCBA;
  --white:         #FFFFFF;
  --muted:         #7A6558;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body:    'DM Sans', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; width: 100%; max-width: 100%; overflow-x: hidden; }
body { font-family: var(--body); background: var(--beige); color: var(--brown); -webkit-font-smoothing: antialiased; width: 100%; max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--brown); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 0; }

/* ── NAV ── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 72px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 60px;
  transition: background 400ms ease, box-shadow 400ms ease;
}
#main-nav.scrolled {
  background: rgba(43,26,23,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(200,169,106,0.2);
}
.nav-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.nav-logo-wrap { background: var(--white); padding: 4px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.nav-logo-wrap img { width: 28px; height: 28px; object-fit: contain; }
.nav-brand-name { font-family: var(--display); font-size: 16px; font-weight: 400; color: var(--beige); letter-spacing: 0.04em; line-height: 1.1; }
.nav-brand-sub { font-family: var(--body); font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-family: var(--body); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,239,230,0.8); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav-links a:hover { color: var(--gold); border-color: var(--gold); }
.nav-cta { font-family: var(--body); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; background: var(--burgundy); color: var(--beige); border: none; padding: 10px 24px; cursor: pointer; text-decoration: none; transition: background 0.2s; }
.nav-cta:hover { background: var(--burgundy-dark); }

/* ── BUTTONS ── */
.btn { display: inline-block; text-decoration: none; cursor: pointer; border: none; font-family: var(--body); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-primary { background: var(--burgundy); color: var(--beige); padding: 16px 44px; font-size: 11px; }
.btn-primary:hover { background: var(--burgundy-dark); }
.btn-gold { background: var(--gold); color: var(--brown); padding: 16px 44px; font-size: 11px; }
.btn-gold:hover { background: var(--gold-dark); color: var(--beige); }
.btn-outline { background: transparent; color: var(--beige); border: 1px solid rgba(245,239,230,0.4); padding: 15px 43px; font-size: 11px; font-weight: 500; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-text-gold { background: none; border: none; font-family: var(--body); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy); border-bottom: 1px solid var(--gold); padding-bottom: 2px; cursor: pointer; }

/* ── ORNAMENTS ── */
.ornament { display: flex; align-items: center; gap: 10px; }
.ornament-line { flex: 1; height: 1px; background: var(--gold); }
.ornament-diamond { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.ornament-center { margin: 0 auto; width: 160px; }

.overline { font-family: var(--body); font-size: 10px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; display: block; }
.overline-light { color: var(--gold); }

/* ── SECTION STRUCTURE ── */
.section-pad { padding: 96px 80px; }
.section-pad-sm { padding: 72px 80px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: var(--display); font-size: clamp(32px, 3.5vw, 48px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; color: var(--brown); margin: 10px 0 16px; }
.section-header h2.on-dark { color: var(--beige); }
.section-header p { font-size: 15px; color: var(--muted); max-width: 520px; margin: 18px auto 0; line-height: 1.8; }
.section-header p.on-dark { color: rgba(245,239,230,0.65); }
.max-w { max-width: 1200px; margin: 0 auto; }
.grid-2, .grid-3, .grid-4, .gallery-grid, .stats-inner { width: 100%; }

/* ── IMAGE PLACEHOLDERS ── */
.img-ph { background: linear-gradient(135deg, #3d2318 0%, #2B1A17 45%, #1a0e0b 100%); position: relative; overflow: hidden; }
.img-ph-warm { background: linear-gradient(135deg, #4A2C25 0%, #3d2318 50%, #2B1A17 100%); }
.img-ph-deep { background: linear-gradient(135deg, #1a0e0b 0%, #2B1A17 60%, #3d2318 100%); }
.img-ph::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(200,169,106,0.04) 0, rgba(200,169,106,0.04) 1px, transparent 0, transparent 50%); background-size: 18px 18px; }

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }
.fade-in.d4 { transition-delay: 0.4s; }
.fade-in.d5 { transition-delay: 0.5s; }

/* ── FORM ── */
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-family: var(--body); font-size: 9px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245,239,230,0.55); }
.form-field input, .form-field select, .form-field textarea {
  background: rgba(245,239,230,0.06); border: 1px solid rgba(200,169,106,0.22);
  color: var(--beige); font-family: var(--body); font-size: 14px;
  padding: 13px 16px; outline: none; border-radius: 0;
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none; width: 100%;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(245,239,230,0.25); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold); background: rgba(245,239,230,0.1); }
.form-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C8A96A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-field select option { background: var(--brown); color: var(--beige); }
.form-field textarea { resize: vertical; min-height: 110px; }

/* Success state */
.form-success { display: none; text-align: center; padding: 48px 32px; }
.form-success.visible { display: block; }
.form-main.hidden { display: none; }

/* ── CARDS ── */
.card-white { background: var(--white); padding: 36px 32px; border-top: 2px solid transparent; transition: border-color 0.25s; }
.card-white:hover { border-color: var(--gold); }
.card-beige { background: var(--beige-dark); padding: 36px 32px; }

/* ── TESTIMONIALS ── */
.testimonial-card { background: var(--white); padding: 40px 36px; border-left: 2px solid var(--gold); position: relative; }
.testimonial-card::before { content: '\201C'; font-family: var(--display); font-size: 80px; color: var(--gold); opacity: 0.25; position: absolute; top: 12px; left: 28px; line-height: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .section-pad, .section-pad-sm { padding: 72px 48px; }
  .congress-layout { flex-direction: column !important; }
}

/* ── Mobile navigation toggle ── */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--beige);
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  #main-nav {
    padding: 0 24px;
    background: rgba(43,26,23,0.97);
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  #hero { min-height: 540px !important; height: 92vh !important; }
  .nav-brand { min-width: 0; }
  .nav-brand-name { font-size: 14px; }
  .nav-brand-sub { font-size: 7px; letter-spacing: 0.16em; }
  .section-header p { max-width: 100%; }
  .mobile-nav-toggle { display: flex; }
  .nav-links, .nav-cta { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: rgba(26,14,11,0.98);
    margin-top: 12px;
    padding-bottom: 8px;
    border-top: 1px solid rgba(200,169,106,0.15);
  }
  .nav-links.active li { padding: 0; }
  .nav-links.active a {
    display: block;
    padding: 12px 0;
    font-size: 11px;
    text-align: center;
  }
  .nav-cta.active {
    display: block;
    text-align: center;
    padding: 14px 0;
    margin-top: 8px;
    font-size: 11px;
  }
  .nav-cta:not(.active) { display: none; }

  /* Section inline padding — the bulk of sections use inline styles */
  section[style*="padding: 96px 80px"] { padding: 64px 24px !important; }
  section[style*="padding:96px 80px"] { padding: 64px 24px !important; }

  /* Footer padding */
  footer[style*="padding:64px 80px"] { padding: 48px 24px 24px !important; }

  /* Stats bar */
  .stats-inner { flex-wrap: wrap; }
  .stats-inner > div { flex: 0 0 50% !important; border-right: none !important; border-bottom: 1px solid rgba(245,239,230,0.12); }
  .stats-inner > div:last-child { border-bottom: none; }

  /* Congress layout rows */
  .congress-layout { flex-direction: column !important; gap: 0 !important; }
  .congress-layout .img-ph { flex: none !important; width: 100% !important; height: 220px !important; }
  /* Fix reversed row — remove row-reverse so image stacks on top */
  .congress-layout[style*="row-reverse"] { flex-direction: column !important; }

  /* 3-column grids */
  .grid-3 { grid-template-columns: 1fr !important; gap: 2px !important; }
  .grid-3 > * { padding: 32px 28px !important; }

  /* 2-column grids (Why Mogador, Hotel, Contact) */
  .grid-2 { grid-template-columns: 1fr !important; gap: 40px !important; }

  /* Amenities 4-col grid */
  .grid-4 { grid-template-columns: 1fr 1fr !important; }

  /* Hero decorations */
  .hero-arch { display: none; }

  /* Hero content padding */
  #hero > div[style*="text-align:center"] { padding: 0 20px !important; }

  /* Hero buttons stack */
  .hero-btns { flex-direction: column; align-items: center; gap: 12px; }

  /* Gallery grid */
  .gallery-grid { grid-template-columns: 1fr 1fr !important; }
  .gallery-grid .span-2 { grid-column: span 1 !important; }

  /* Form grid */
  .form-grid { grid-template-columns: 1fr !important; }
  [style*="grid-column:span 2"] { grid-column: span 1 !important; }

  /* Fallback selectors for inline styles in bundled exports */
  [style*="grid-template-columns:repeat(2,1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1.4fr"] { grid-template-columns: 1fr !important; gap: 40px !important; }
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: 1fr 1fr !important; }
  [style*="display:flex;align-items:stretch;gap:2px"] { flex-direction: column !important; }
  [style*="min-width:300px"] { min-width: 0 !important; }

  /* Venue section */
  .venue-text { min-width: 0 !important; }
  section#venue svg[width="240"] { width: 140px !important; height: auto !important; }

  /* Footer columns */
  footer .max-w > div[style*="display:flex"] { flex-direction: column !important; gap: 32px !important; }
  footer .max-w > div[style*="display:flex"] > div { flex: none !important; min-width: 0 !important; }
  footer div[style*="flex:0 0 260px"] { flex: none !important; width: 100% !important; }
}

@media (max-width: 480px) {
  section[style*="padding: 96px 80px"] { padding: 56px 20px !important; }
  section[style*="padding:96px 80px"] { padding: 56px 20px !important; }
  footer[style*="padding:64px 80px"] { padding: 40px 20px 20px !important; }
  .stats-inner > div { flex: 0 0 100% !important; }
  .grid-4 { grid-template-columns: 1fr !important; }
  .gallery-grid { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: 1fr !important; }
  .section-header h2 { font-size: clamp(26px, 7vw, 36px) !important; }
  .btn { width: 100%; text-align: center; justify-content: center; }
  section[style*="display:flex"][style*="gap:14px"] { flex-direction: column !important; align-items: center !important; }
}
