/*
 * Lenny's Café website stylesheet
 *
 * This stylesheet defines the look and feel of the Lenny's Café website. It
 * uses a palette inspired by deep greens and teal tones, echoing the
 * vintage‑modern ambience of the café described in the design guide. Media
 * queries ensure a responsive layout that adapts gracefully from mobile to
 * larger screens. Variables make it easy to tweak colours and spacing in
 * one place.
 */

/* CSS Custom Properties for palette */
:root {
  --primary: #022c1a; /* darkest green – used for backgrounds */
  --secondary: #034130; /* deep forest green – used for menu background */
  --accent1: #0a6d52; /* mid-tone green */
  --accent2: #10824f; /* bright green for buttons */
  --accent3: #5bc4b2; /* soft aqua for highlights */
  --light: #f7f7f5; /* off‑white for backgrounds */
  --dark: #011a10; /* almost black for contrast */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background-color: var(--light);
  color: var(--primary);
  padding-top: 80px; /* offset for fixed header */
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--accent3);
}

p {
  margin-bottom: 1rem;
  max-width: 60ch;
}

a {
  color: var(--accent2);
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background-color: var(--primary);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
}

nav.navigation {
  position: relative;
}

nav.navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav.navigation li + li {
  margin-left: 1.5rem;
}

nav.navigation a {
  font-weight: 600;
  color: var(--accent3);
  transition: color 0.3s ease;
}

nav.navigation a:hover,
nav.navigation a:focus {
  color: var(--accent2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent3);
  font-size: 2rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8rem 1rem 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--accent3);
}

.btn {
  display: inline-block;
  background-color: var(--accent2);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 3rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: var(--accent3);
  color: var(--dark);
}

/* Section Base */
.section {
  padding: 4rem 1rem;
}

/* Story Section */
.story {
  background-color: var(--light);
}

.story h2 {
  color: var(--primary);
}

.story em {
  font-style: italic;
}

/* Menu Section */
.menu {
  background-color: var(--secondary);
  color: #fff;
}

.menu h2 {
  color: var(--accent3);
  margin-bottom: 2rem;
}

.menu-category + .menu-category {
  margin-top: 2rem;
}

.menu h3 {
  color: var(--accent3);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.menu h4 {
  color: var(--accent3);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.menu .menu-item {
  margin-bottom: 1rem;
}

.menu .menu-item strong {
  color: var(--accent3);
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.menu .menu-item p {
  /* Use a lighter accent colour on the dark menu background for legibility */
  color: var(--accent3);
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 60ch;
}

/* Interior Section */
.interior {
  background-color: var(--light);
  color: var(--primary);
}

.interior h2 {
  color: var(--primary);
}

.interior p {
  max-width: 65ch;
}

/* Contact Section */
.contact {
  background-color: var(--primary);
  color: #fff;
}

.contact h2 {
  color: var(--accent3);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.contact-block {
  flex: 1 1 220px;
  min-width: 220px;
}

.contact-block h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent3);
}

.contact-block a {
  color: var(--accent3);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-block a:hover,
.contact-block a:focus {
  color: var(--accent2);
}

/* Footer */
.site-footer {
  background-color: var(--dark);
  color: var(--accent3);
  text-align: center;
  padding: 1rem;
}

.site-footer p {
  font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 767px) {
  /* Stack menu items and reveal toggle */
  .nav-toggle {
    display: block;
  }
  nav.navigation ul {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    padding: 1rem;
    display: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  nav.navigation ul.open {
    display: flex;
  }
  nav.navigation li + li {
    margin-left: 0;
    margin-top: 0.75rem;
  }
  .hero {
    padding: 6rem 1rem 4rem;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero h1 {
    font-size: 2.75rem;
  }
}

@media (min-width: 992px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero p {
    font-size: 1.375rem;
  }
}