/* ============================================
   EL CAPITAN WARWICK'S — STYLESHEET
   Palette: Plum (#4a148c / #6b21a8) + Amber (#f5a623 / #d97706)
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================ */

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

:root {
  --plum-900: #1a0533;
  --plum-800: #2d0a5c;
  --plum-700: #4a148c;
  --plum-600: #6b21a8;
  --plum-500: #7c3aed;
  --plum-100: #f3e8ff;
  --plum-50:  #faf5ff;

  --amber-500: #f5a623;
  --amber-600: #d97706;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;

  --neutral-900: #0f0f14;
  --neutral-800: #1a1a24;
  --neutral-700: #2a2a3a;
  --neutral-600: #3a3a4c;
  --neutral-100: #f0f0f5;
  --neutral-50:  #f8f8fc;
  --white:       #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.14), 0 2px 4px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.1);
  --shadow-xl:  0 24px 60px rgba(0,0,0,0.22);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-900);
  background: var(--neutral-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 5, 51, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 166, 35, 0.15);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(26, 5, 51, 0.97);
  box-shadow: var(--shadow-lg);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.nav-logo-text { letter-spacing: -0.01em; }
.nav-logo-accent { color: var(--amber-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: var(--amber-500) !important;
  color: var(--plum-900) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--amber-400) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--plum-900);
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(26, 5, 51, 0.95) 0%,
      rgba(74, 20, 140, 0.85) 40%,
      rgba(107, 33, 168, 0.7) 70%,
      rgba(26, 5, 51, 0.9) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-card {
  max-width: 680px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 20px;
  background: rgba(245, 166, 35, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(245, 166, 35, 0.2);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--plum-900);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.35);
}

.btn-primary:hover {
  background: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.45);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

/* FLOATING STAT CARDS */
.hero-stats {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
  min-width: 150px;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(245, 166, 35, 0.45);
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber-500);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.text-center { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum-600);
  background: var(--plum-100);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--plum-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--neutral-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 600px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 80%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-float {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 50%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
}

.about-img-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent {
  position: absolute;
  top: -20px;
  right: 30%;
  width: 80px;
  height: 80px;
  background: var(--amber-500);
  border-radius: var(--radius-md);
  opacity: 0.2;
  z-index: -1;
}

.about-content .section-tag { margin-bottom: 16px; }

.about-content .section-title {
  margin-bottom: 20px;
}

.about-content > p {
  color: var(--neutral-600);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  color: var(--neutral-800);
}

.about-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plum-100);
  border-radius: var(--radius-sm);
  color: var(--plum-700);
}

/* ============================================
   MENU
   ============================================ */
.menu {
  background: var(--neutral-50);
}

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

.menu-category {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.menu-category:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.2);
}

.menu-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--plum-100);
}

.menu-cat-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plum-100);
  border-radius: var(--radius-md);
}

.menu-cat-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--plum-900);
}

.menu-items { display: flex; flex-direction: column; gap: 12px; }

.menu-items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
}

.menu-item-name {
  font-weight: 600;
  color: var(--neutral-800);
  font-size: 0.95rem;
}

.menu-item-desc {
  font-size: 0.82rem;
  color: var(--neutral-600);
  white-space: nowrap;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 5, 51, 0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.gallery-item--wide {
  grid-column: span 12;
  height: 340px;
}

.gallery-item:not(.gallery-item--wide) {
  grid-column: span 6;
  height: 260px;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
  background: var(--plum-900);
  color: var(--white);
}

.visit .section-tag {
  background: rgba(245, 166, 35, 0.15);
  color: var(--amber-500);
}

.visit .section-title { color: var(--white); }

.visit .section-sub { color: rgba(255,255,255,0.65); }

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.visit-info { display: flex; flex-direction: column; gap: 28px; }

.visit-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.visit-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.visit-detail-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius-sm);
}

.visit-detail strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 4px;
}

.visit-detail p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.6;
}

.visit-detail a {
  color: rgba(255,255,255,0.82);
  transition: var(--transition);
}

.visit-detail a:hover { color: var(--amber-500); }

.visit-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.visit-actions .btn-primary {
  background: var(--amber-500);
  color: var(--plum-900);
}

.visit-actions .btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--neutral-900);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--plum-700);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--amber-500);
}

.footer-logo-accent { color: var(--amber-500); }

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.footer-contact a {
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.footer-contact a:hover { color: var(--amber-500); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   SCROLL REVEAL (below-fold only)
   ============================================ */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-stats {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
    max-width: 1200px;
    padding: 0 24px;
  }

  .stat-card { flex: 1; min-width: 130px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-images { height: 420px; }

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

  .gallery-item--wide { height: 260px; }
  .gallery-item:not(.gallery-item--wide) { height: 200px; }

  .visit-grid { grid-template-columns: 1fr; }
  .visit-map { min-height: 320px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(26, 5, 51, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(245,166,35,0.15);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-cta { margin-left: 0 !important; text-align: center; }

  .nav-toggle { display: flex; }

  .hero-card { padding: 32px 24px; }
  .hero-stats { gap: 10px; }
  .stat-card { padding: 14px 16px; min-width: 110px; }
  .stat-number { font-size: 1.3rem; }
  .stat-label { font-size: 0.68rem; }

  .section { padding: 72px 0; }

  .about-images { height: 320px; }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item--wide,
  .gallery-item:not(.gallery-item--wide) {
    grid-column: span 1;
    height: 220px;
  }
  .gallery-overlay { opacity: 1; }

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

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .visit-actions { flex-direction: column; }
  .visit-actions .btn { width: 100%; justify-content: center; }
}
