/* Base Styles */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --primary: #16a34a;
  --primary-hover: #15803d;
  --secondary: #f8fafc;
  --border: #e2e8f0;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --radius: 0.5rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem; /* Add this line - matches navbar height */
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
}

.button:hover {
  background-color: var(--primary-hover);
}

.separator {
  height: 1px;
  background-color: var(--border);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #166534; /* green-800 */
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: #374151; /* gray-700 */
}

.card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  text-align: center;
}

.card-content {
  padding: 1.5rem;
}

.hidden {
  display: none;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leaf-icon {
  color: #16a34a; /* green-600 */
}

.logo span {
  font-size: 1.75rem;
  font-weight: bold;
  color: #166534;
}

.desktop-nav {
  display: none;
}

.desktop-cta {
  display: none;
}

.mobile-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: transparent;
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  transition: right 0.3s ease;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background-color: var(--background);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #16a34a; /* green-600 */
}

.mobile-cta {
  margin-top: auto;
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: white;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("images/home/homepage.jpg");
  background-size: cover;
  background-position: center;
  background-size: 100% 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #166534; /* green-800 */
}

.hero p {
  max-width: 600px;
  margin-bottom: 1.5rem;
  color: #374151; /* gray-700 */
}

/* About Section */
.about {
  padding: 3rem 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

.about h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #166534; /* green-800 */
}

.about p {
  margin-bottom: 1.5rem;
  color: #374151; /* gray-700 */
}

.features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.check-icon {
  color: #16a34a; /* green-600 */
  margin-top: 0.125rem;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-image {
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-image:hover img {
  transform: scale(1.05);
}

/* Products Section */
.products {
  padding: 3rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #166534;
}

.product-description {
  margin-bottom: 1rem;
  color: #4b5563;
}

.product-packages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.package-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.package-tag {
  background-color: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Delivery Section */
.delivery {
  padding: 3rem 0;
}

.delivery-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.card-icon {
  margin: 0 auto 0.5rem;
  color: #16a34a; /* green-600 */
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.how-to-order {
  max-width: 48rem;
  margin: 0 auto;
  background-color: #f0fdf4; /* green-50 */
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.how-to-order h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #166534; /* green-800 */
}

.how-to-order p {
  margin-bottom: 1.5rem;
  color: #374151; /* gray-700 */
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.contact-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  color: #16a34a; /* green-600 */
  margin-top: 0.25rem;
}

.contact-info h4 {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.small-text {
  font-size: 0.875rem;
  color: #6b7280; /* gray-500 */
  margin-top: 0.25rem;
}

/* Contact Section */
.contact {
  padding: 3rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-form-container {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151; /* gray-700 */
}

.form-group input,
.form-group textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  width: 100%;
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-success {
  padding: 1.5rem;
  background-color: #f0fdf4; /* green-50 */
  border-radius: var(--radius);
  text-align: center;
}

.form-success h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #166534; /* green-800 */
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.map-placeholder {
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #e2e8f0; /* gray-200 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder p {
  color: #6b7280; /* gray-500 */
}

/* Footer */
.footer {
  background-color: #f0fdf4; /* green-50 */
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-info {
  max-width: 32rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #166534; /* green-800 */
}

.footer-info p {
  margin-bottom: 1rem;
  color: #374151; /* gray-700 */
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #16a34a; /* green-600 */
  transition: color 0.2s;
}

.social-links a:hover {
  color: #166534; /* green-800 */
}

.footer-nav h3,
.footer-contact h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: #374151; /* gray-700 */
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #16a34a; /* green-600 */
}

.footer-contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #374151; /* gray-700 */
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #6b7280; /* gray-500 */
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  overflow: hidden;
}

/* Gallery Modal should be above product modal */
#galleryModal {
  z-index: 1100; /* Higher z-index than product modal */
}

.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
}

.modal-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-container img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 4px;
}

/* Przyciski nawigacji */
.close-modal, .prev-image, .next-image {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  position: absolute;
  z-index: 10;
}

.close-modal:hover, .prev-image:hover, .next-image:hover {
  background: rgba(0, 0, 0, 0.6);
}

.close-modal {
  top: 20px;
  right: 20px;
}

.prev-image {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.next-image {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Product Modal */
.product-modal-content {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.product-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.product-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #166534; /* green-800 */
}

.product-modal-header p {
  color: #6b7280; /* gray-500 */
}

.product-tabs {
  padding: 1.5rem;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-button {
  flex: 1;
  background: none;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: #6b7280; /* gray-500 */
  border-bottom: 2px solid transparent;
}

.tab-button.active {
  color: #16a34a; /* green-600 */
  border-bottom-color: #16a34a; /* green-600 */
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.product-details-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-details-text p {
  margin-bottom: 1rem;
  color: #374151; /* gray-700 */
}

.product-packages h4 {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.packages-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.package-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.package-size {
  font-size: 1.25rem;
  font-weight: 700;
}

.package-description {
  font-size: 0.875rem;
  color: #6b7280; /* gray-500 */
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.product-gallery-image {
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.product-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.product-gallery-image:hover img {
  opacity: 0.9;
}

.nutrition-content,
.culinary-content {
  background-color: #f0fdf4; /* green-50 */
  padding: 1.5rem;
  border-radius: var(--radius);
}

.nutrition-content h3,
.culinary-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #166534; /* green-800 */
}

.nutrition-content p,
.culinary-content p {
  margin-bottom: 1.5rem;
  color: #374151; /* gray-700 */
}

.nutrition-benefits,
.culinary-suggestions {
  margin-top: 1.5rem;
}

.nutrition-benefits h4,
.culinary-suggestions h4 {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.nutrition-benefits ul,
.culinary-suggestions ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #374151; /* gray-700 */
}

/* Media Queries */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .delivery-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: row;
  }

  .delivery-cards {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .desktop-nav {
    display: flex;
    gap: 1.5rem;
  }

  .desktop-cta {
    display: block;
  }

  .mobile-menu-button {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* reCAPTCHA Styles */
.g-recaptcha {
  margin-bottom: 1rem;
}

@media (max-width: 320px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
  }
}

/* Map container */
.map-container {
  height: 300px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

#googleMap {
  width: 100%;
  height: 100%;
}

/* Keep the static map styles for fallback */
.static-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background-color: #f5f5f5;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.static-map img {
  max-width: 80%;
  max-height: 200px;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

