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

/* ===== DARK THEME (default) ===== */
:root,
[data-theme="dark"] {
  --gold: #c8a97e;
  --gold-light: #dfc9a7;
  --dark: #1a1a1a;
  --darker: #111;
  --text: #e0ddd5;
  --text-muted: #a09d95;
  --white: #fff;
  --bg: #0d0d0d;
  --section-bg: #141414;
  --header-bg: rgba(13, 13, 13, 0.92);
  --nav-mobile-bg: rgba(13, 13, 13, 0.98);
  --input-bg: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(200, 169, 126, 0.15);
  --border-medium: rgba(200, 169, 126, 0.2);
  --map-filter: grayscale(0.8) contrast(1.1);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --gold: #a0845c;
  --gold-light: #8b6f48;
  --dark: #1a1a1a;
  --darker: #f5f3ef;
  --text: #3d3a35;
  --text-muted: #6b665e;
  --white: #1a1a1a;
  --bg: #faf8f5;
  --section-bg: #f0ede8;
  --header-bg: rgba(250, 248, 245, 0.92);
  --nav-mobile-bg: rgba(250, 248, 245, 0.98);
  --input-bg: rgba(0, 0, 0, 0.04);
  --border-subtle: rgba(160, 132, 92, 0.15);
  --border-medium: rgba(160, 132, 92, 0.25);
  --map-filter: none;
}

[data-theme="light"] .hero-bg { filter: brightness(0.5); }
[data-theme="light"] .hero-content h1,
[data-theme="light"] .hero-content .overline { color: #fff; }
[data-theme="light"] .hero-content p { color: #d4d0c8; }
[data-theme="light"] .hero .btn { color: #1a1a1a; border-color: var(--gold); background: var(--gold); }
[data-theme="light"] .hero .btn-outline { background: transparent; color: #fff; border-color: #fff; }
[data-theme="light"] .hero .btn-outline:hover { background: #fff; color: #1a1a1a; }
[data-theme="light"] .lightbox { background: rgba(255,255,255,0.95); }
[data-theme="light"] .lightbox-close,
[data-theme="light"] .lightbox-nav { color: #1a1a1a; }

/* Theme toggle icon visibility */
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold-light); }

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

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

/* ===== HEADER / NAV ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background .3s;
}

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

.nav-logo img {
  height: 50px;
  width: auto;
}

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

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color .3s;
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all .3s;
}

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

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

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

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: all .3s;
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .3s;
}

.lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border-medium);
  min-width: 130px;
  z-index: 200;
}

.lang-dropdown.open { display: block; }

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: all .2s;
}

.lang-dropdown button:hover,
.lang-dropdown button.active {
  color: var(--gold);
  background: var(--section-bg);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text);
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  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;
  background-repeat: no-repeat;
  filter: brightness(0.4);
  transform: scale(1.05);
}

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

.hero-content .overline {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ===== SECTION COMMON ===== */
section {
  padding: 100px 0;
}

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

.section-header .overline,
.overline {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

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

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

.about-image {
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--gold);
  z-index: -1;
}

.about-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 400;
}

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

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border-subtle);
  transition: border-color .3s;
}

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== MENU SECTION ===== */
.menu-section { background: var(--bg); }

.menu-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.menu-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  text-align: center;
  padding: 48px 32px;
  transition: all .3s;
}

.menu-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.menu-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 400;
}

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

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

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

.gallery-item {
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
  content-visibility: auto;
}

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  padding: 20px;
  z-index: 1001;
  opacity: 0.7;
  transition: opacity .3s;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ===== RESERVE ===== */
.reserve { background: var(--bg); }

.reserve-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.reserve-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 400;
}

.reserve-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.info-item .icon {
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.info-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 2px;
}

.info-item .value {
  color: var(--text);
  font-size: 1rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  border: 1px solid var(--border-medium);
  padding: 40px;
}

.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 400;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border-medium);
  border-radius: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .3s;
  -webkit-appearance: none;
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .btn {
  width: 100%;
  border: none;
  font-family: inherit;
}

/* ===== MAP ===== */
.map-section {
  padding: 0;
  height: 400px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: var(--map-filter);
}

/* ===== FOOTER ===== */
footer {
  background: var(--darker);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 45px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

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

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all .3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-hosted a {
  color: var(--gold);
  font-weight: 600;
}

.footer-hosted a:hover {
  color: var(--gold-light);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid,
  .reserve-wrapper {
    grid-template-columns: 1fr;
  }
  .about-image { order: -1; }
  .about-image img { height: 350px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

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

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

  .menu-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  section { padding: 72px 0; }

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

  .about-image::after { display: none; }

  .features {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature { padding: 16px 12px; }

  .menu-card { padding: 32px 24px; }

  .contact-form { padding: 28px 20px; }

  .reserve-info h3,
  .about-text h3 { font-size: 1.5rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section { padding: 56px 0; }

  .container { padding: 0 16px; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn { width: 100%; text-align: center; }

  .btn { padding: 14px 28px; font-size: 0.82rem; }

  nav { padding: 10px 16px; }

  .nav-logo img { height: 40px; }
}

/* Touch device optimization */
@media (hover: none) {
  .gallery-item:hover img { transform: none; }
  .menu-card:hover { transform: none; }
  .feature:hover { border-color: var(--border-subtle); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
