:root {
  --primary-color: #2e7d32;
  --secondary-color: #f9fbe7;
  --accent-color: #f57f17;
  --text-dark: #1b1b1b;
  --text-light: #555555;
  --white: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-logo: 'Playfair Display', serif;
  --font-body: 'Work Sans', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

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

html, body {
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--secondary-color);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-logo);
  font-weight: 700;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

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

/* Logo Styles */
.logo {
  text-decoration: none;
  display: block;
}

.logo-img {
  height: 50px; /* Adjusted for smaller horizontal layout */
  width: auto;
  transition: transform 0.3s ease;
}

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

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}
/* Responsive Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

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

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%; /* Start off-screen */
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    overflow-y: auto;
    transition: left 0.2s ease-in-out;
    box-shadow: none;
    z-index: 1001; /* Behind toggle button */
  }

  .nav-links.active {
    left: 0; /* Slide in */
    max-height: 100vh;
  }

  .nav-links a {
    width: auto;
    text-align: center;
    padding: 0;
    border-bottom: none;
    font-size: 1.5rem;
  }
}
.hero {
  margin-top: 80px;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 0 1rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-left: 2rem; /* Match nav container padding */
  box-sizing: border-box;
  text-align: left;
  animation: fadeIn 1s ease-out;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('john-family.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  z-index: -1;
}



.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 5rem;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.1;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  max-width: 450px;
}

.hero .btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--primary-color);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0,0,0,0.1));
  color: var(--white);
  text-decoration: none;
  border-radius: 6px; /* Slightly rounded corners */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(0,0,0,0.2);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 4px 6px rgba(0,0,0,0.2),
    0 2px 0 #1b5e20; /* 3D effect border */
  cursor: pointer;
  transition: all 0.1s ease;
  position: relative;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.btn:hover {
  background-color: #388e3c;
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 6px 8px rgba(0,0,0,0.25),
    0 2px 0 #1b5e20;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 
    inset 0 2px 5px rgba(0,0,0,0.2),
    0 1px 0 #1b5e20;
  background-image: linear-gradient(to top, rgba(255,255,255,0.05), rgba(0,0,0,0.1));
}

/* Features/About */
.section {
  padding: 4rem 2rem; /* Increased padding for better separation */
}

.section > div, .section > .delivery-banner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  color: var(--primary-color);
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 3.5rem;
  margin-bottom: 0.2rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Products Grid */
.bg-dots-white {
    background-color: #e8f5e9da; /* Slightly darker green background */
    background-size: 40px 40px;
    background-image: radial-gradient(circle, rgba(46, 125, 50, 0.2) 1px, transparent 1px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 1rem;
  background-color: var(--secondary-color);
  border-radius: 50%;
  color: var(--primary-color);
}

.product-card h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  color: var(--text-light);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Delivery Banner */
.delivery-banner {
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 12px;
  margin: 2rem 0;
  background-image: 
    radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  background-size: 40px 40px, 100% 100%; /* Resize dots, keep gradient full */
  display: flex;
  overflow: hidden;
  align-items: stretch; /* Ensure equal height */
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.2), /* Top highlight */
    0 4px 8px rgba(0,0,0,0.1), /* Soft drop shadow */
    0 8px 16px rgba(0,0,0,0.05), /* Deeper shadow */
    0 -1px 0 rgba(0,0,0,0.1); /* Subtle bottom edge */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.delivery-banner:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 6px 12px rgba(0,0,0,0.15),
    0 12px 24px rgba(0,0,0,0.1);
}

.delivery-map {
  flex: 1;
  min-height: 300px;
}

.delivery-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.delivery-content {
  flex: 1;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.delivery-content h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .delivery-banner {
    flex-direction: column-reverse; /* Map on bottom for mobile */
  }
  .delivery-map {
    height: 250px;
    min-height: auto;
  }
}

.feature-tag {
  background-color: #62a257;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: var(--white);
  padding: 4rem 2rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: #999;
  margin-bottom: 0.5rem;
}

.footer-section i {
  margin-right: 10px;
}

/* Skeuomorphic About Card */
#about {
  background-color: #eaddcf; /* Distinct beige/brown background */
  width: 100%;
  max-width: 100%; /* Ensure full width background */
  position: relative;
  overflow: hidden;
}

.paper-grid {
    position: relative; /* Change to relative as it's the section itself */
    background-size: 100% 40px;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.1) 1px, transparent 1px);
    z-index: 1; /* Keep base z-index */
}

#about > .about-container {
    position: relative;
    z-index: 2;
}

#about .about-text {
  background-color: #f4f1ea;
  border: 1px solid #dcd9d0;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 
    inset 0 0 30px rgba(0,0,0,0.05),
    0 1px 3px rgba(0,0,0,0.1),
    0 8px 15px rgba(0,0,0,0.05);
  position: relative;
}

/* Paper texture effect */
#about .about-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  border-radius: 4px;
  z-index: 1;
}



#about .section-title {
  color: #4a3b2a; /* Darker, wood-like tone */
  text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(46, 125, 50, 0.2);
  display: inline-block;
  padding-bottom: 0.5rem;
  font-family: 'Instrument Serif', serif;
  font-size: 3.5rem;
}

#about .section-subtitle {
  font-family: 'Georgia', serif; /* Classic serif for body text */
  font-size: 1.3rem; /* Slightly larger */
  color: #3e3e3e;
  line-height: 1.8;
  font-style: italic;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
  margin-left: 0; /* Align left */
  margin-right: 0;
  text-align: left;
}

/* About Section Layout */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.story-img {
  max-width: 100%;
  border-radius: 4px;
  transform: rotate(3deg); /* Natural rotation */
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.1),
    0 1px 3px rgba(0,0,0,0.08); /* Subtle shadow */
  border: 10px solid #fcfcfc; /* Photo frame effect */
  transition: transform 0.3s ease;
}

.story-img:hover {
  transform: rotate(0deg) scale(1.02);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-text {
    text-align: center;
  }

  #about .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

.text-center {
  text-align: center;
  margin-bottom: 1.5rem;
}
.copyright {
  text-align: center;
  padding: 2rem 0; /* Adjusted padding */
  margin-top: 3rem;
  border-top: 1px solid #111; /* Very dark border */
  background-color: #0a0a0a; /* Darker black background */
  color: #666; /* Muted text */
  margin-left: -2rem; /* Extend to full width */
  margin-right: -2rem;
  margin-bottom: -4rem; /* Extend to bottom */
}

/* Floating Action Button */
.fab-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: pulse 2s infinite;
}

.fab-btn:hover {
  transform: scale(1.1);
  background-color: #1b5e20;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(46, 125, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

/* Pricing and Actions */
.price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 700;
  margin: 0.5rem 0;
}

.product-actions {
  margin-top: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  justify-content: center;
  align-items: flex-start; /* Allow scrolling from top */
  overflow-y: auto; /* Scrollable background */
  padding: 2rem 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-right h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.modal-content {
  background-color: var(--white);
  padding: 0; /* Remove padding for split layout */
  border-radius: 12px;
  width: 95%; /* Take up more screen width */
  max-width: 1000px; /* Wider modal */
  position: relative;
  margin: auto;
  transform: translateY(20px);
  transition: transform 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  overflow: hidden;
}

.modal-left {
  flex: 1.1; /* slightly wider than half */
  background-image: url('package.webp');
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: none; /* Hidden on small screens */
}

.modal-right {
  flex: 1;
  padding: 2.5rem; /* More padding for form */
}

@media (min-width: 768px) {
  .modal-left {
    display: block;
  }
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 10;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    max-width: 200px;
    margin-bottom: 2rem;
    margin-top: 0.2rem;
  }

  .hero-content {
    margin-top: -100px;
  }

  .hero .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}
