/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --secondary: #2a92f9;
  --secondary-dark: #0d79e5;
  --accent: #d32f2f;
  --light: #ffffff;
  --dark: #212121;
  --gray: #424242;
  --light-gray: #f5f5f5;
  --section-gray: #e8f5e9;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--gray);
  overflow-x: hidden;
  background-color: var(--light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow);
}

.btn:hover {
  background-color: var(--primary-dark);
  color: var(--light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--light);
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

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

.logo-text h1.cursive-logo {
  font-family: "Dancing Script", cursive;
  font-size: 2.2rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.logo-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--gray);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 1001;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  font-weight: 500;
  color: var(--dark);
  position: relative;
  padding: 5px 0;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(27, 94, 32, 0)),
    url("/assets/img/hero-background.jpg") no-repeat center center/cover;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 3rem;
  color: var(--light);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--light);
}

.hero-features {
  margin-bottom: 30px;
}

.hero-feature {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.hero-feature i {
  color: var(--light);
  margin-right: 10px;
  font-size: 1.2rem;
}

.hero-feature span {
  font-weight: 600;
  color: var(--light);
}

.hero-image {
  flex: 1;
  text-align: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  transform: perspective(800px) rotateY(-10deg);
  transition: var(--transition);
}

/* Online Ordering Section */
.online-ordering {
  padding: 100px 0;
  background-color: var(--light);
}

.ordering-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.ordering-content {
  flex: 1;
}

.ordering-content h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.ordering-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.ordering-features {
  margin-bottom: 30px;
}

.ordering-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.ordering-feature i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 5px;
}

.ordering-feature h4 {
  margin-bottom: 5px;
  color: var(--dark);
}

.fee-highlight {
  background-color: var(--section-gray);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary);
}

.fee-highlight h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.fee-highlight p:last-child {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--gray);
}

.ordering-image {
  flex: 1;
  text-align: center;
  position: relative;
}

.ordering-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  transition: var(--transition);
}

.ordering-image::after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-light);
  border-radius: 20px;
  z-index: -1;
  transition: var(--transition);
}

.ordering-image:hover::after {
  bottom: -10px;
  right: -10px;
}

/* Mobile App Section */
.mobile-app {
  padding: 100px 0;
  background-color: var(--section-gray);
}

.app-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.app-content {
  flex: 1;
}

.app-features {
  margin-bottom: 30px;
}

.app-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.app-feature i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 5px;
}

.app-feature h4 {
  margin-bottom: 5px;
  color: var(--dark);
}

.app-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.app-btn {
  background-color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-btn:hover {
  background-color: #333;
}

.app-image {
  flex: 1;
  text-align: center;
}

.app-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: var(--light);
  position: relative;
}

.services > .container {
  position: relative;
  z-index: 1;
}

.services-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.service-tab-btn {
  padding: 12px 25px;
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  margin: 0 10px 10px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.service-tab-btn:hover,
.service-tab-btn.active {
  background-color: var(--primary);
  color: var(--light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-content-panel {
  display: none;
}

.service-content-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.services-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    to bottom,
    var(--primary-light),
    var(--primary-dark)
  );
  opacity: 0.1;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  height: 100%;
}

.service-card-header {
  padding: 25px 25px 0;
  display: flex;
  align-items: center;
}

.service-card-header i {
  font-size: 2rem;
  color: var(--primary);
  margin-right: 15px;
}

.service-card-header h3 {
  margin-bottom: 0;
  color: var(--primary);
}

.service-card-body {
  padding: 0 25px 25px;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--section-gray);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.about-image {
  flex: 1;
  text-align: center;
  position: relative;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}

.about-image::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100px;
  height: 100px;
  border-top: 3px solid var(--primary);
  border-left: 3px solid var(--primary);
  border-radius: 10px 0 0 0;
  z-index: -1;
}

.about-image::after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 100px;
  height: 100px;
  border-bottom: 3px solid var(--primary);
  border-right: 3px solid var(--primary);
  border-radius: 0 0 10px 0;
  z-index: -1;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-highlights {
  margin-top: 30px;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.about-highlight i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 5px;
}

.about-highlight h4 {
  margin-bottom: 5px;
  color: var(--dark);
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
  background-color: var(--light);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(4, 100px); /* Reduced rows from 6 to 4 */
  gap: 15px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:nth-child(1) {
  grid-column: 1 / 9; /* Wider first item */
  grid-row: 1 / 5; /* Full height */
}

.gallery-item:nth-child(2) {
  grid-column: 9 / 13; /* Narrower second item */
  grid-row: 1 / 3; /* Top half */
}

.gallery-item:nth-child(3) {
  grid-column: 9 / 13; /* Same width as second */
  grid-row: 3 / 5; /* Bottom half */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

/* Reviews Section */
.reviews {
  padding: 100px 0;
  background-color: var(--section-gray);
}

.reviews-container {
  position: relative;
  overflow: hidden;
}

.reviews-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.review-card {
  flex: 0 0 calc(33.333% - 20px);
  margin: 0 10px;
  background-color: var(--light);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.review-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-rating {
  color: #ffc107;
  margin-bottom: 15px;
}

.review-text {
  flex: 1;
  margin-bottom: 20px;
  position: relative;
}

.review-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-light);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: Georgia, serif;
}

.review-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 2px solid var(--primary-light);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 5px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--primary);
}

.review-button-container {
  text-align: center;
  margin-top: 40px;
}

.review-btn {
  background-color: #ffc107;
  color: var(--dark);
}

.review-btn:hover {
  background-color: #e0a800;
  color: var(--dark);
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: var(--light);
}

.contact-container {
  display: flex;
  gap: 40px;
}

.contact-phone-content {
  flex: 1;
}

.contact-phone-content h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-phone-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-hours {
  margin-bottom: 30px;
  background-color: var(--section-gray);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-hours h3 {
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

.contact-features {
  margin-top: 30px;
}

.contact-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-feature i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 5px;
}

.contact-feature h4 {
  margin-bottom: 5px;
  color: var(--dark);
}

.contact-feature a:hover {
  color: var(--dark);
}

.contact-form-container {
  flex: 1;
  background-color: var(--section-gray);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form-container h3 {
  color: var(--primary);
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

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

.submit-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.submit-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: var(--light);
  padding: 70px 0 0;
}

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

.footer-col h3 {
  color: var(--light);
  margin-bottom: 20px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-col p {
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: var(--light);
  display: flex;
  align-items: center;
}

.footer-links li a i {
  margin-right: 8px;
  font-size: 0.8rem;
  transition: none;
}

.footer-links li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  text-align: center;
  color: #ccc;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-bottom a {
  color: var(--primary);
}

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

/* Back to Top Button */
#backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--light);
  border: none;
  cursor: pointer;
  display: none;
  z-index: 99;
  box-shadow: var(--shadow-hover);
  transition: var(--transition);
}

#backToTopBtn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Custom Alert Modal */
.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.custom-alert.active {
  opacity: 1;
  visibility: visible;
}

.alert-content {
  background-color: var(--light);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-hover);
  transform: translateY(-20px);
  transition: var(--transition);
  position: relative;
}

.custom-alert.active .alert-content {
  transform: translateY(0);
}

.alert-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.alert-content h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.alert-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.alert-btn {
  padding: 10px 25px;
  background-color: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.alert-btn:hover {
  background-color: var(--primary-dark);
}

/* Animation Classes */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content,
  .ordering-container,
  .app-container,
  .about-container,
  .contact-container {
    flex-direction: column;
  }

  .hero-text,
  .hero-image,
  .ordering-content,
  .ordering-image,
  .app-content,
  .app-image,
  .about-content,
  .about-image,
  .contact-phone-content,
  .contact-form-container {
    width: 100%;
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }

  .review-card {
    flex: 0 0 calc(50% - 20px);
  }

  .gallery-container {
    grid-template-rows: repeat(6, 80px);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--light);
    transition: var(--transition);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 15px 0;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .services-tabs {
    flex-direction: column;
  }

  .service-tab-btn {
    width: 100%;
    margin: 5px 0;
  }

  .review-card {
    flex: 0 0 calc(100% - 20px);
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

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

  .gallery-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    height: 250px;
  }
}

@media (max-width: 576px) {
  .hero-text h2 {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .app-buttons {
    flex-direction: column;
  }
}
