/* --- Global Styles --- */
:root {
  --primary-color: #4a4e4d; /* Forest Green */
  --secondary-color: #a38b7f; /* Soft Brown */
  --background-color: #fdfaf6; /* Cream White */
  --text-color: #333;
  --heading-font: "Lora", serif;
  --body-font: "Montserrat", sans-serif;
}

body {
  font-family: var(--body-font);
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
  color: var(--primary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

/* --- Header & Navigation --- */
header {
  background-color: var(--background-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: 0.4s;
}

/* --- Hero Section --- */
.hero {
  background-image: url("../images/watercolor-coffee-cup-coffee-beans-illustration.jpg"); /* Placeholder */
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem 4rem;
  border-radius: 10px;
}

.hero h1 {
  font-size: 3.5rem;
  color: white;
}

.hero p {
  font-size: 1.5rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  margin-top: 1rem;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #8b7365;
}

.cta-button.secondary {
  background-color: transparent;
  border: 2px solid white;
}

/* --- Page Sections --- */
.gallery-preview,
.todays-special,
.testimonials-preview {
  padding: 4rem 5%;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.special-item {
  max-width: 700px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.testimonial blockquote {
  font-style: italic;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1rem auto;
}

/* --- Footer --- */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem 5%;
  margin-top: 4rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--background-color);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero h1 {
    font-size: 2.5rem;
  }
}

/* --- About Page --- */
.page-header {
  height: 40vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 3rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  border-radius: 8px;
}

.about-content {
  padding: 4rem 5%;
  max-width: 900px;
  margin: 0 auto;
}

.about-content > div {
  margin-bottom: 4rem;
}

.timeline {
  position: relative;
  margin-top: 2rem;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--secondary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- Menu Page --- */
.menu-container {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-filters {
  text-align: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--secondary-color);
  color: white;
}

.menu-section {
  margin-bottom: 3rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.menu-item {
  border-bottom: 1px dashed var(--secondary-color);
  padding-bottom: 1rem;
}

.menu-item h4 {
  margin-bottom: 0.5rem;
}

.price {
  font-weight: bold;
  color: var(--primary-color);
}

.dietary-info {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
}

/* --- Gallery Page --- */
.gallery-container {
  padding: 4rem 5%;
}

.gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

/* --- Testimonials Page --- */
.testimonial-slider-container {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

/* --- Contact Page --- */
.contact-container {
  display: flex;
  gap: 2rem;
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form-section {
  flex: 2;
}

.contact-info-section {
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--body-font);
}

.info-block {
  margin-bottom: 2rem;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
}
