/* ==========================================
   EMBER & OAK — Restaurant & Event Venue
   Brand Colors:
     Primary:    #C45D3E (ember orange)
     Secondary:  #2C2016 (dark oak)
     Accent:     #D4A853 (gold)
     Light:      #FDF6EE (cream)
     Text:       #3A2E28 (warm brown)
   ========================================== */

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

:root {
  --ember: #C45D3E;
  --ember-dark: #A04A30;
  --oak: #2C2016;
  --oak-light: #4A3728;
  --gold: #D4A853;
  --gold-light: #E8C97A;
  --cream: #FDF6EE;
  --cream-dark: #F5EBD8;
  --text: #3A2E28;
  --text-light: #6B5B52;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(44,32,22,0.10);
  --shadow-lg: 0 8px 40px rgba(44,32,22,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- HEADER / NAV --- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(44,32,22,0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background var(--transition);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 700; color: var(--gold);
  letter-spacing: 1px;
}
.logo span { color: var(--ember); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  color: var(--cream-dark); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width var(--transition);
}
.nav a:hover, .nav a.active { color: var(--gold); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-cta {
  background: var(--ember) !important; color: var(--white) !important;
  padding: 10px 24px !important; border-radius: var(--radius);
  font-weight: 600 !important; text-transform: uppercase !important;
  letter-spacing: 0.5px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--ember-dark) !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--cream);
  margin: 5px 0; transition: var(--transition);
}

/* --- HERO --- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(44,32,22,0.8), rgba(196,93,62,0.4)),
              url('../assets/images/hero-placeholder.jpg') center/cover no-repeat;
  color: var(--white); text-align: center;
  padding-top: var(--header-height);
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 8px 20px; border: 1px solid var(--gold);
  border-radius: 30px; font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 24px;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold); }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block; padding: 14px 36px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; cursor: pointer; transition: all var(--transition);
  border: none;
}
.btn-primary { background: var(--ember); color: var(--white); }
.btn-primary:hover { background: var(--ember-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--oak); }
.btn-gold { background: var(--gold); color: var(--oak); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- SECTIONS --- */
.section { padding: 100px 0; }
.section-dark { background: var(--oak); color: var(--cream); }
.section-cream { background: var(--cream-dark); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .label {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ember);
  margin-bottom: 12px;
}
.section-dark .section-header .label { color: var(--gold); }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--text-light); font-size: 1.05rem; }
.section-dark .section-header p { color: rgba(253,246,238,0.7); }

/* --- GRID LAYOUTS --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- CARDS --- */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 28px; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card-body p { color: var(--text-light); font-size: 0.95rem; }
.card-price { font-size: 1.1rem; font-weight: 700; color: var(--ember); margin-top: 12px; }

/* --- EVENT TYPE CARDS --- */
.event-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px 32px; text-align: center; box-shadow: var(--shadow);
  transition: all var(--transition); border: 2px solid transparent;
}
.event-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.event-card .icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--gold));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.5rem; color: var(--white);
}
.event-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.event-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.event-card .card-link {
  color: var(--ember); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* --- FEATURES/STATS --- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; color: var(--gold); margin-bottom: 8px; }
.stat-item p { font-size: 0.95rem; opacity: 0.8; }

/* --- FORMS --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.form-group label .required { color: var(--ember); }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--cream-dark);
  border-radius: var(--radius); font-size: 0.95rem; font-family: inherit;
  background: var(--white); color: var(--text);
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--gold); }
.form-control::placeholder { color: var(--text-light); opacity: 0.6; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233A2E28' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- FORM CARD --- */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-lg);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-card .subtitle { color: var(--text-light); margin-bottom: 32px; }

/* --- GALLERY --- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  position: relative; aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,32,22,0.5), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px; width: 48px; height: 48px;
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* --- TESTIMONIALS --- */
.testimonial {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow); position: relative;
}
.testimonial::before {
  content: '\201C'; position: absolute; top: 16px; left: 24px;
  font-size: 4rem; color: var(--gold); opacity: 0.3;
  font-family: 'Playfair Display', Georgia, serif; line-height: 1;
}
.testimonial p { font-style: italic; margin-bottom: 16px; color: var(--text-light); }
.testimonial .author { font-weight: 700; color: var(--text); }
.testimonial .event-type { font-size: 0.85rem; color: var(--ember); }

/* --- FOOTER --- */
.footer {
  background: var(--oak); color: var(--cream); padding: 80px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { font-size: 1.8rem; margin-bottom: 16px; }
.footer-brand p { color: rgba(253,246,238,0.6); font-size: 0.9rem; max-width: 300px; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(253,246,238,0.7); font-size: 0.9rem; }
.footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(253,246,238,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: rgba(253,246,238,0.4);
}

/* --- TOAST NOTIFICATIONS --- */
.toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 3000;
  padding: 16px 24px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500;
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s ease; max-width: 400px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: #065F46; color: var(--white); }
.toast-error { background: #991B1B; color: var(--white); }

/* --- LOADING SPINNER --- */
.btn .spinner {
  display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white); border-radius: 50%;
  animation: spin 0.6s linear infinite; margin-right: 8px;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-text { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- MENU PAGE --- */
.menu-section { margin-bottom: 60px; }
.menu-section h3 {
  font-size: 1.8rem; margin-bottom: 8px; padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
}
.menu-section .section-desc { color: var(--text-light); margin-bottom: 32px; }
.menu-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--cream-dark);
}
.menu-item-name { font-weight: 600; font-size: 1.05rem; }
.menu-item-desc { color: var(--text-light); font-size: 0.9rem; margin-top: 4px; }
.menu-item-price { font-weight: 700; color: var(--ember); white-space: nowrap; margin-left: 24px; }
.menu-item-dots {
  flex: 1; border-bottom: 1px dotted var(--cream-dark); margin: 0 12px; min-width: 40px;
  align-self: end; margin-bottom: 4px;
}

/* --- PAGE HEADER --- */
.page-header {
  padding: 160px 0 80px; text-align: center;
  background: linear-gradient(135deg, var(--oak) 0%, var(--oak-light) 100%);
  color: var(--cream);
}
.page-header h1 { font-size: 3rem; margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; opacity: 0.7; max-width: 550px; margin: 0 auto; }

/* --- CONTACT PAGE --- */
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.2rem; flex-shrink: 0;
}
.contact-item h4 { font-family: 'Inter', sans-serif; font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p { color: var(--text-light); font-size: 0.9rem; }

.map-container {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); height: 400px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

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

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .hero h1 { font-size: 2.4rem; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-header { padding: 120px 0 60px; }
  .page-header h1 { font-size: 2.2rem; }
  .form-card { padding: 28px; }

  /* Mobile nav */
  .nav {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: var(--oak); flex-direction: column; gap: 0; padding: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 400px; }
  .nav a { display: block; padding: 16px 24px; width: 100%; border-bottom: 1px solid rgba(253,246,238,0.05); }
  .nav-cta { margin: 16px 24px !important; text-align: center; }
  .menu-toggle { display: block; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; text-align: center; }
  .container { padding: 0 16px; }
}
