/* ===== MOORISH HISTORY — Museum Aesthetic ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --bg: #0A0A0A;
  --bg-alt: #141414;
  --card-bg: #1A1A1A;
  --card-border: #2A2A2A;
  --text: #F5F0E8;
  --text-muted: #A09A90;
  --gold: #C8A84E;
  --burgundy: #7A1F3D;
  --brass: #B5885A;
  --gold-dim: rgba(200,168,78,0.15);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-body: 'Lato', 'Source Sans Pro', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: #E0C366; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  line-height: 1.2;
}

.display-font { font-family: var(--font-display); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Gold Divider --- */
.gold-divider {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 24px auto;
}

.gold-divider-left {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 24px 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  transition: background .3s;
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav .brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  transition: color .25s;
}

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

.nav-cart {
  position: relative;
  cursor: pointer;
}

.nav-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .3s;
  text-align: center;
}

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

.btn-gold:hover {
  background: #D4B85E;
  color: var(--bg);
}

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

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

.btn-brass {
  background: var(--brass);
  color: var(--bg);
}

.btn-brass:hover { background: #C49A6A; }

.btn-burgundy {
  background: var(--burgundy);
  color: #fff;
}

.btn-burgundy:hover { background: #8E2848; }

.btn-sm {
  padding: 10px 24px;
  font-size: 0.75rem;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Page hero (shorter) */
.page-hero {
  min-height: 50vh;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-img-placeholder {
  width: 100%;
  height: 240px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}

.card-body { padding: 24px; }

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Card grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}

.timeline-entry {
  display: flex;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
}

.timeline-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-entry:nth-child(odd) { flex-direction: row; }
.timeline-entry:nth-child(even) { flex-direction: row-reverse; }

.timeline-entry::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--bg);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
}

.timeline-entry:nth-child(odd) .timeline-content { margin-right: 5%; }
.timeline-entry:nth-child(even) .timeline-content { margin-left: 5%; }

.timeline-date {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--text);
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.timeline-content img {
  width: 100%;
  border-radius: 4px;
  margin-top: 16px;
}

/* --- Newsletter --- */
.newsletter-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 80px 0;
  text-align: center;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--gold);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background .3s;
}

.newsletter-form button:hover { background: #D4B85E; }

.newsletter-msg {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--gold);
}

/* --- Shop --- */
.product-card .card-body { display: flex; flex-direction: column; }

.product-price {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.size-btn {
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all .2s;
}

.size-btn:hover,
.size-btn.selected {
  border-color: var(--gold);
  color: var(--gold);
}

.badge-coming-soon {
  display: inline-block;
  padding: 4px 12px;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-display);
  border-radius: 2px;
}

/* --- Itinerary --- */
.itinerary-week {
  margin-bottom: 60px;
}

.itinerary-week h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.itinerary-day {
  padding: 20px 0;
  border-bottom: 1px solid rgba(42,42,42,0.5);
  display: flex;
  gap: 24px;
}

.itinerary-day strong {
  font-family: var(--font-display);
  color: var(--brass);
  min-width: 70px;
  font-size: 0.9rem;
}

/* --- Pricing cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 40px 32px;
  text-align: center;
  transition: border-color .3s;
}

.pricing-card:hover {
  border-color: var(--gold);
}

.pricing-card.featured {
  border-color: var(--gold);
  position: relative;
}

.pricing-card h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(42,42,42,0.5);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-features li::before {
  content: '✦ ';
  color: var(--gold);
}

/* --- Blog --- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.blog-filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all .2s;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
}

.blog-date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--brass);
  letter-spacing: 0.1em;
}

/* --- Video Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  overflow: hidden;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

/* --- Contact --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 4px;
  outline: none;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group textarea { min-height: 150px; resize: vertical; }

.form-group select { cursor: pointer; }

.form-group select option { background: var(--card-bg); }

/* --- Footer --- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--card-border);
  padding: 80px 0 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.footer p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all .3s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Cart Modal --- */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
}

.cart-overlay.open { display: block; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-alt);
  border-left: 1px solid var(--card-border);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s;
}

.cart-overlay.open .cart-panel { transform: translateX(0); }

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 1rem;
}

.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--card-border);
  align-items: center;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
.cart-item-info p { font-size: 0.8rem; color: var(--text-muted); }

.cart-item-price {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--card-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

/* --- Membership --- */
.tier-waitlist {
  margin-top: 16px;
}

.tier-waitlist input {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 0.85rem;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.tier-waitlist button {
  padding: 10px 16px;
  background: var(--gold);
  border: none;
  color: var(--bg);
  font-size: 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
}

/* --- Image Placeholder --- */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--card-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 20px;
  font-style: italic;
}

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

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-links.open { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }

  .hero h1 { letter-spacing: 0.1em; }

  .timeline::before { left: 20px; }
  .timeline-entry { flex-direction: row !important; }
  .timeline-entry:nth-child(even) { flex-direction: row !important; }
  .timeline-entry::after { left: 20px; }
  .timeline-content { width: 100%; margin-left: 50px !important; margin-right: 0 !important; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .itinerary-day { flex-direction: column; gap: 8px; }

  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { min-height: 70vh; }
  .page-hero { min-height: 40vh; }
  .section { padding: 60px 0; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { border-radius: 4px; }
  .newsletter-form button { border-radius: 4px; }
  .hero-ctas { flex-direction: column; align-items: center; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-brass { color: var(--brass); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
