/* Base colours defined using CSS variables for easy theming */
:root {
  --foam: #f9f4ef; /* light background reminiscent of steamed milk */
  --coffee: #3c2c23; /* rich espresso tone for headings and accents */
  --caramel: #d9a561; /* warm caramel accent for calls to action */
  --cream: #fffdf7; /* off‑white for text on dark backgrounds */
  --text: #54493e; /* body copy colour */
}

/* Dark theme overrides */
body.dark {
  --foam: #21150f;
  --coffee: #f2e5d5;
  --caramel: #b1865e;
  --cream: #2b1b13;
  --text: #d9c9b9;
}

/* Global styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: var(--foam);
  color: var(--text);
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--coffee);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--coffee);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--caramel);
}

.order {
  background: var(--coffee);
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.order:hover {
  background: var(--caramel);
  transform: translateY(-2px);
}

/* Hero section */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
  background: #2e2119;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) saturate(1.2);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.65));
  z-index: -1;
}

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

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background: var(--caramel);
  color: var(--cream);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Section general styles */
.section {
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--coffee);
}

/* About */
.about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: center;
}

/* Menu */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.menu-category h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--coffee);
}

.menu-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-category li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
}

.menu-category li span {
  font-size: 1rem;
}

.menu-category .price {
  font-weight: 600;
  color: var(--coffee);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* Contact */
.contact-details {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.contact-details a {
  color: var(--coffee);
  text-decoration: underline;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background: var(--coffee);
  color: var(--cream);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
}

.social-icons a {
  color: var(--cream);
  margin-left: 1rem;
  font-size: 1.4rem;
  transition: color 0.2s ease;
}

.social-icons a:first-child {
  margin-left: 0;
}

.social-icons a:hover {
  color: var(--caramel);
}

/* Theme toggle button inserted by script */
.theme-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 50px;
  background: var(--coffee);
  color: var(--cream);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
  z-index: 1001;
}

.theme-toggle:hover {
  background: var(--caramel);
}