/* --- Core Variables & Theming --- */
:root {
  --bg-cream: #fcfbf9;
  --bg-dark: #0a0a0a;
  --gold-accent: #c5a059;
  --gold-hover: #e0b86a;
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-cream);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

h1, h2, h3, h4, h5, .brand-font {
  font-family: var(--font-heading);
  font-weight: 600;
}

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

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

section { padding: 100px 0; }

/* --- Typography Scaling --- */
.hero-title {
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 30px;
  word-wrap: break-word;
}

.section-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--bg-dark);
  margin-bottom: 20px;
  word-wrap: break-word;
}

/* --- Navbar --- */
.navbar {
  background: transparent;
  padding: 15px 0;
  transition: var(--transition-smooth);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: #fff !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding-left: 10px; /* Prevent cutoff */
}

.nav-link {
  color: #fff !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 15px;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  opacity: 1;
  color: var(--gold-accent) !important;
}

/* --- Buttons --- */
.btn-gold {
  background-color: var(--gold-accent);
  color: #fff;
  padding: 14px 30px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--gold-accent);
  transition: var(--transition-smooth);
  border-radius: 0;
}

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

.btn-outline-gold {
  background-color: transparent;
  color: var(--gold-accent);
  padding: 14px 30px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--gold-accent);
  transition: var(--transition-smooth);
  border-radius: 0;
}

.btn-outline-gold:hover {
  background-color: var(--gold-accent);
  color: #fff;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url('https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?auto=format&fit=crop&q=80&w=2000') center/cover fixed no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--gold-accent);
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 30px;
}

/* --- Section Titles --- */
.section-title {
  font-size: 3.5rem;
  color: var(--bg-dark);
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  display: block;
}

/* --- About Section --- */
.about-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  box-shadow: 20px 20px 0px var(--gold-accent);
}

/* --- Services Section --- */
.services-section {
  background-color: var(--bg-dark);
  color: #fff;
}

.service-card {
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  height: 100%;
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--gold-accent);
  transform: translateY(-10px);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--gold-accent);
  margin-bottom: 20px;
}

/* --- Menu Section --- */
.menu-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.menu-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  transition: var(--transition-smooth);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.menu-title { font-size: 1.5rem; }
.menu-price { color: var(--gold-accent); font-weight: 500; }

/* --- Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 350px;
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover img { transform: scale(1.1); }
.span-2-row { grid-row: span 2; }
.span-2-col { grid-column: span 2; }

/* --- Chef Section --- */
.chef-section {
  background: url('https://images.unsplash.com/photo-1559339352-11d035aa65de?auto=format&fit=crop&q=80&w=2000') center/cover fixed;
  position: relative;
  color: #fff;
}

.chef-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
}

.chef-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border: 1px solid var(--gold-accent);
  padding: 10px;
}

.quote {
  font-size: 1.8rem;
  font-style: italic;
  color: var(--gold-accent);
  margin-bottom: 30px;
}

/* --- Contact Section --- */
.premium-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  width: 100%;
  padding: 15px 0;
  margin-bottom: 20px;
  outline: none;
}

.premium-input:focus { border-color: var(--gold-accent); }

/* --- Footer --- */
footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 80px 0;
}

.footer-brand { font-size: 2rem; margin-bottom: 20px; letter-spacing: 4px; }
.footer-text { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.social-links a { margin-right: 15px; font-size: 1.2rem; transition: var(--transition-smooth); }
.social-links a:hover { color: var(--gold-accent); }

/* --- Mobile Navigation Overlay --- */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #0a0a0a !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out;
    visibility: hidden;
  }

  .navbar-collapse.show {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-item { margin: 15px 0; width: 100%; text-align: center; }
  .nav-link { font-size: 1.8rem !important; }
  .navbar-toggler { z-index: 10000 !important; position: relative; }
}

/* --- Overall Responsiveness Fixes --- */
@media (max-width: 1200px) {
  .hero-title { font-size: 4rem; }
  .section-title { font-size: 3rem; }
}

@media (max-width: 991px) {
  section { padding: 80px 0; }
  .hero-title { font-size: 3.5rem; }
  .about-img { height: 400px; margin-top: 40px; }
  .chef-img { height: auto; max-height: 450px; margin-bottom: 30px; }
  .quote { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .section-title { font-size: 2.5rem; }
  .gallery-grid { grid-auto-rows: 250px; }
  .span-2-col, .span-2-row { grid-column: span 1; grid-row: span 1; }
  .menu-item { flex-direction: column; text-align: center; }
  .menu-img { margin: 0 auto 20px; }
  .menu-header { flex-direction: column; border-bottom: none; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { letter-spacing: 4px; }
  .section-title { font-size: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .span-2-col, .span-2-row { grid-column: span 1; grid-row: span 1; }
  .navbar-brand { font-size: 1.5rem; }
  .btn-gold, .btn-outline-gold { width: 100%; margin-bottom: 10px; }
  .hero-content .d-flex { flex-direction: column; }
}
