/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #2d5016;
  --accent-green: #4a7c59;
  --light-green: #8fbc8f;
  --cream: #faf8f3;
  --warm-white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #6c7b7f;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--cream);
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Header and Navigation */
header {
  background: var(--warm-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: -0.6rem;
  margin-top: 0.45rem;
  border-radius: 50%;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary-green);
  background-color: var(--cream);
}

.nav-links a[aria-current="page"] {
  color: var(--primary-green);
  background-color: var(--cream);
  font-weight: 600;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-green);
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: var(--primary-green);
}

h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--accent-green);
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Hero section */
.hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--cream) 0%, rgba(143, 188, 143, 0.1) 100%);
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--accent-green);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
}

/* Cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: var(--warm-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Specific positioning for café card image */
.card img[src*="landing-card-cafe"] {
  object-position: center 75%; /* Moves the crop up to show upper portion */
}

/* Adjust crop position for the "after" image */
.before-after img[src*="our-story-after"] {
  object-position: center 25%; /* Shows lower portion of the image */
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.card .btn {
  margin-top: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary-green);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.btn:hover,
.btn:focus {
  background: var(--accent-green);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--accent-green);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary-green);
}

/* Map section */
.map-section {
  margin: 3rem 0;
  text-align: center;
}

.map-section img {
  width: 100%;
  max-width: 800px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.map-section figcaption {
  margin-top: 1rem;
  color: var(--text-light);
  font-style: italic;
}

/* Before/After images */
.before-after {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.before-after figure {
  text-align: center;
}

.before-after img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.before-after figcaption {
  margin-top: 0.5rem;
  color: var(--text-light);
  font-style: italic;
}

/* Founders section */
.founders {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}

.founders img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.timeline-item {
  background: var(--warm-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.timeline-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.timeline-item h4 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

/* Best sellers and menu items */
.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.menu-item {
  background: var(--warm-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.menu-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.menu-item-content {
  padding: 1.5rem;
}

.menu-item h4 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

/* Zoom out best seller images 2 and 3 using object-position */
.menu-item img[src*="best-seller-2"] {
  object-position: center 35%; /* Zoomed out more - shows upper portion */
}

.menu-item img[src*="best-seller-3"] {
  object-position: center 35%; /* Zoomed out more - shows upper-middle portion */
}

/* Umami showcase section */
.umami-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
  margin: 3rem 0;
}

.umami-showcase figure {
  text-align: center;
}

.umami-showcase img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.umami-features {
  text-align: center;
}

.umami-features ul {
  list-style: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-green);
  line-height: 2;
}

.umami-features li {
  margin-bottom: 1rem;
}

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

.drinks-gallery figure {
  text-align: center;
}

.drinks-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.drinks-gallery figcaption {
  margin-top: 0.5rem;
  color: var(--text-light);
}

/* Room sections */
.room {
  background: var(--warm-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.room-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.room img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.room-details ul {
  list-style: none;
  margin: 1rem 0;
}

.room-details li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.room-details li::before {
  content: "🌿";
  position: absolute;
  left: 0;
}

/* Footer */
footer {
  background: var(--primary-green);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

footer p {
  margin-bottom: 0.5rem;
  color: var(--cream);
}

footer a {
  color: var(--cream);
  text-decoration: underline;
  transition: var(--transition);
}

footer a:hover,
footer a:focus {
  color: var(--light-green);
}

/* Responsive design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
  }

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

  .nav-links li {
    margin: 0.5rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  main {
    padding: 1rem;
  }

  .founders {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .room-content {
    grid-template-columns: 1fr;
  }

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

  .umami-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

  .umami-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Image loading optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Print styles */
@media print {
  header,
  footer,
  .menu-toggle {
    display: none;
  }
  
  main {
    max-width: none;
    padding: 0;
  }
}
