/* ============================================
   Rabbit Room - Styles
   Colors: Dark purple #4a2c6e, Copper #b87333,
           Dark bg #1a1320, Cream text #f5f0e8
   Fonts: EB Garamond + Atkinson Hyperlegible
   ============================================ */

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

:root {
  --purple: #4a2c6e;
  --purple-light: #6b4a8e;
  --purple-dark: #35204f;
  --copper: #b87333;
  --copper-light: #d4944e;
  --copper-dark: #8f5a28;
  --bg-dark: #1a1320;
  --bg-card: #231a2e;
  --bg-card-hover: #2d2238;
  --cream: #f5f0e8;
  --cream-muted: #c9c1b6;
  --overlay: rgba(26, 19, 32, 0.85);
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'Atkinson Hyperlegible', Arial, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--copper-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--copper);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Utilities --- */
.section-padding {
  padding: 5rem 0;
}

.text-center { text-align: center; }
.text-copper { color: var(--copper); }
.text-muted { color: var(--cream-muted); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header .divider {
  width: 60px;
  height: 2px;
  background: var(--copper);
  margin: 1rem auto;
}

.section-header p {
  color: var(--cream-muted);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--copper);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--copper-light);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--copper);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(26, 19, 32, 0.97);
  padding: 0.8rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.nav-logo span {
  color: var(--copper);
}

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

.nav-links a {
  color: var(--cream-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--cream);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 7rem 0 1rem;
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--cream-muted);
}

.breadcrumbs a:hover {
  color: var(--copper);
}

.breadcrumbs .separator {
  color: var(--cream-muted);
  margin: 0 0.5rem;
}

.breadcrumbs .current {
  color: var(--copper);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--purple-dark) 50%, var(--bg-dark) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(74, 44, 110, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(184, 115, 51, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1.5rem;
}

.hero-content h1 {
  margin-bottom: 0.5rem;
}

.hero-content .tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--copper-light);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: var(--cream-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  padding: 10rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--purple-dark) 50%, var(--bg-dark) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(74, 44, 110, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}

.page-hero p {
  position: relative;
  z-index: 1;
  color: var(--cream-muted);
  font-size: 1.1rem;
}

.page-hero .divider {
  width: 60px;
  height: 2px;
  background: var(--copper);
  margin: 1rem auto;
  position: relative;
  z-index: 1;
}

/* --- About Section / Page --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview .image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid rgba(184, 115, 51, 0.2);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.about-preview .about-image {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(184, 115, 51, 0.2);
}

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

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text .divider {
  width: 60px;
  height: 2px;
  background: var(--copper);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--cream-muted);
  margin-bottom: 1rem;
}

.about-text p:last-of-type {
  margin-bottom: 2rem;
}

/* --- Features / Values Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 5px;
  border: 1px solid rgba(184, 115, 51, 0.1);
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(184, 115, 51, 0.3);
  transform: translateY(-5px);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--copper);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--cream-muted);
  font-size: 0.95rem;
}

/* --- Menu Section / Page --- */
.menu-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.menu-category-btn {
  padding: 0.5rem 1.5rem;
  background: var(--bg-card);
  color: var(--cream-muted);
  border: 1px solid rgba(184, 115, 51, 0.2);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--transition);
}

.menu-category-btn:hover,
.menu-category-btn.active {
  background: var(--copper);
  color: var(--bg-dark);
  border-color: var(--copper);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.menu-item {
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: 5px;
  border: 1px solid rgba(184, 115, 51, 0.1);
  transition: all var(--transition);
}

.menu-item:hover {
  border-color: rgba(184, 115, 51, 0.3);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.menu-item-header h3 {
  font-size: 1.15rem;
  color: var(--cream);
}

.menu-item-header .price {
  color: var(--copper);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 1rem;
}

.menu-item p {
  color: var(--cream-muted);
  font-size: 0.9rem;
}

.menu-note {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 5px;
  border: 1px solid rgba(184, 115, 51, 0.15);
}

.menu-note p {
  color: var(--cream-muted);
  font-style: italic;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.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 .overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.gallery-item .overlay span {
  color: var(--copper);
  font-size: 2rem;
}

.gallery-placeholder {
  color: var(--cream-muted);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

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

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 5px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2001;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--copper);
}

/* --- Contact Section / Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 5px;
  border: 1px solid rgba(184, 115, 51, 0.1);
  margin-bottom: 1.5rem;
}

.contact-info-card h3 {
  color: var(--copper);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.contact-info-card p {
  color: var(--cream-muted);
  margin-bottom: 0.4rem;
}

.contact-info-card a {
  color: var(--copper-light);
}

.contact-form {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 5px;
  border: 1px solid rgba(184, 115, 51, 0.1);
}

.contact-form h3 {
  color: var(--copper);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-dark);
  color: var(--cream);
  border: 1px solid rgba(184, 115, 51, 0.2);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

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

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

/* --- Map placeholder --- */
.map-container {
  width: 100%;
  height: 400px;
  background: var(--bg-card);
  border: 1px solid rgba(184, 115, 51, 0.15);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

.map-container p {
  color: var(--cream-muted);
  font-style: italic;
}

/* --- Footer --- */
.footer {
  background: var(--purple-dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(184, 115, 51, 0.15);
}

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

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

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

.footer-col h4 {
  color: var(--copper);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: var(--cream-muted);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--copper);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid rgba(184, 115, 51, 0.2);
  border-radius: 50%;
  color: var(--cream-muted);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--copper);
  color: var(--bg-dark);
  border-color: var(--copper);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 115, 51, 0.1);
  font-size: 0.85rem;
  color: var(--cream-muted);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .about-preview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hero { min-height: 90vh; }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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