/* Basic Reset & Global Styles */
:root {
  --primary-color: #6f4e37; /* Coffee Brown */
  --secondary-color: #d2b48c; /* Tan/Latte */
  --accent-color-1: #a0522d; /* Sienna/Terracotta */
  --accent-color-2: #f5deb3; /* Wheat/Cream */
  --text-color: #333333;
  --light-text-color: #666666;
  --background-color: #fdf5e6; /* Old Lace/Light Cream */
  --light-background: #f8f0e3; /* Slightly darker cream */
  --white: #ffffff;
  --border-color: #e0e0e0;

  --font-heading: "Playfair Display", serif;
  --font-body: "Open Sans", sans-serif;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color-1);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 15px;
}

h1 {
  font-size: 2.8em;
}
h2 {
  font-size: 2.2em;
}
h3 {
  font-size: 1.8em;
}
h4 {
  font-size: 1.4em;
}

p {
  margin-bottom: 1em;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--light-background);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h3 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: var(--accent-color-1);
}

.section-header p {
  font-size: 1.1em;
  color: var(--light-text-color);
  max-width: 700px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1em;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--white);
}

.primary-btn:hover {
  background-color: black;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.small-btn {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Header */
.header {
  background-color: black;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo h1 {
  font-family: var(--font-heading);
  font-size: 2em;
  color: var(--primary-color);
  margin: 0;
}

.nav ul {
  display: flex;
  gap: 30px;
}

.nav a {
  font-weight: 600;
  color: var(--light-text-color);
  position: relative;
  padding-bottom: 5px;
}

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

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

/* Hero Section - Home Page */
.hero-section {
  background: url("public/cafe2.jpg") no-repeat center center / cover;
  color: var(--white);
  text-align: center;
  padding: 150px 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 40px;
  color: var(--accent-color-2);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s forwards;
  opacity: 0; /* Start hidden for animation */
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Hero Section (for other pages) */
.page-hero-section {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-hero-section.menu-hero {
  background: url("public/menu.jpg") no-repeat center center / cover;
}

.page-hero-section.about-hero {
  background: url("public/contact.jpg") no-repeat center center / cover;
}

.page-hero-section.contact-hero {
  background: url("public/about.jpg") no-repeat center center / cover;
}

.page-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero-subtitle {
  font-size: 1.3em;
  color: var(--accent-color-2);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Preview Section (Home Page) */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-image-wrapper {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image {
  width: 100%;
  height: 80%;
  display: block;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.05);
}

.about-text {
  flex: 2;
  min-width: 300px;
}

.about-text p {
  color: var(--light-text-color);
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* Featured Items Section (Home Page) */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.featured-item {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.featured-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.item-image-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-item:hover .item-image {
  transform: scale(1.1);
}

.item-details {
  padding: 25px;
}

.item-details h4 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.item-details p {
  color: var(--light-text-color);
  font-size: 0.95em;
  margin-bottom: 15px;
}

.item-details .price {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--accent-color-1);
}

/* Call to Action Section */
.cta-section {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  font-size: 3em;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--accent-color-2);
}

/* Footer */
.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 60px 0 20px;
  font-size: 0.9em;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.3em;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.footer-section.links ul li {
  margin-bottom: 10px;
}

.footer-section.links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-section.links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Menu Page Specific Styles */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.menu-item {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu-item .item-details h4 {
  margin-bottom: 5px;
  font-size: 1.3em;
  color: var(--primary-color);
}

.menu-item .item-details p {
  color: var(--light-text-color);
  font-size: 0.95em;
  margin-bottom: 0;
}

.menu-item .price {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent-color-1);
  flex-shrink: 0; /* Prevent price from shrinking */
  margin-left: 20px;
}

/* About Page Specific Styles */
.story-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.story-text {
  flex: 2;
  min-width: 300px;
}

.story-text p {
  color: var(--light-text-color);
  font-size: 1.1em;
  margin-bottom: 20px;
}

.story-image-wrapper {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.story-image-wrapper:hover .story-image {
  transform: scale(1.05);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.value-item {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
  font-size: 3em;
  margin-bottom: 15px;
  color: var(--accent-color-1);
}

.value-item h4 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.value-item p {
  color: var(--light-text-color);
  font-size: 0.95em;
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.team-member {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--secondary-color);
  transition: border-color 0.3s ease;
}

.team-member:hover .member-photo {
  border-color: var(--primary-color);
}

.team-member h4 {
  font-size: 1.4em;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-member p {
  color: var(--light-text-color);
  font-size: 0.95em;
  margin-bottom: 10px;
}

.member-bio {
  font-style: italic;
  font-size: 0.9em;
  color: var(--light-text-color);
}

/* Contact Page Specific Styles */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.contact-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
  font-size: 3em;
  margin-bottom: 15px;
  color: var(--accent-color-1);
}

.contact-card h4 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.contact-card p {
  color: var(--light-text-color);
  font-size: 0.95em;
  margin-bottom: 15px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 1em;
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(111, 78, 55, 0.2);
  outline: none;
}

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

.contact-form .btn {
  width: auto;
  padding: 12px 30px;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: var(--light-background);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9em;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5em;
  }
  .hero-subtitle {
    font-size: 1.3em;
  }
  .page-hero-title {
    font-size: 3em;
  }
  .page-hero-subtitle {
    font-size: 1.1em;
  }
  .about-content,
  .story-content {
    flex-direction: column;
    text-align: center;
  }
  .about-image-wrapper,
  .story-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
  .about-text,
  .story-text {
    min-width: unset;
    width: 100%;
  }
  .about-text p,
  .story-text p {
    text-align: left; /* Keep text left-aligned within its container */
  }
  .cta-content h2 {
    font-size: 2.5em;
  }
  .cta-content p {
    font-size: 1.1em;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-section.links ul {
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 15px;
  }
  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .hero-section,
  .page-hero-section {
    padding: 100px 20px;
    min-height: 450px;
  }
  .hero-title {
    font-size: 2.8em;
  }
  .hero-subtitle {
    font-size: 1.2em;
  }
  .page-hero-title {
    font-size: 2.5em;
  }
  .section-padding {
    padding: 60px 0;
  }
  .section-header h3 {
    font-size: 2em;
  }
  .featured-grid,
  .menu-grid,
  .values-grid,
  .team-grid,
  .contact-details-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .contact-form {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2em;
  }
  .hero-subtitle {
    font-size: 1em;
  }
  .page-hero-title {
    font-size: 2em;
  }
  .nav ul {
    gap: 15px;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .section-header h3 {
    font-size: 1.8em;
  }
  .featured-grid,
  .menu-grid,
  .values-grid,
  .team-grid,
  .contact-details-grid {
    grid-template-columns: 1fr;
  }
  .menu-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .menu-item .price {
    margin-left: 0;
    margin-top: 15px;
  }
  .contact-form {
    padding: 20px;
  }
}
