:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --red: #d32f2f;
  --red-dark: #b71c1c;
  --yellow: #fbc02d;
  --cream: #fbfdf8;
  --stone: #212121;
  --stone-60: rgba(33, 33, 33, 0.6);
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

body.dark-mode {
  --green: #81c784;
  --green-dark: #a5d6a7;
  --red: #ef5350;
  --red-dark: #e57373;
  --yellow: #fff176;
  --cream: #121212;
  --stone: #e0e0e0;
  --stone-60: rgba(224, 224, 224, 0.6);
  --card: #1e1e1e;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Base */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--stone);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 0.5em;
  color: var(--stone);
}

h2 {
  font-size: 1.8rem;
}

p {
  margin: 0.4em 0 1em;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8em 1.2em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Keep primary CTA green for freshness */
.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
}

/* Light button pairs nicely over images */
.btn-light {
  background: #ffffff;
  color: var(--red-dark);
  border: 1px solid #ffffff;
}

.btn-light:hover {
  background: #fff8f8;
  color: var(--red-dark);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(27, 94, 32, 0.15);
  transition: all 0.3s ease;
}

body.dark-mode .navbar {
  background: rgba(30, 30, 30, 0.95);
  border-bottom: 1px solid rgba(129, 199, 132, 0.15);
}

.nav-container {
  max-width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green-dark);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--stone);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--green-dark);
}

/* Hero */
.hero {
  position: relative;
  min-height: 64vh;
  background: url('images/banner.png') center/cover no-repeat;
  margin-top: 60px;
  /* offset for fixed navbar */
}

.hero-overlay {
  position: relative;
  inset: 0;
  /* dark green tint + dark gradient for legibility */
  background: linear-gradient(180deg, rgba(27, 94, 32, 0.3), rgba(0, 0, 0, 0.6));
  display: grid;
  align-items: center;
  text-align: center;
  padding: 5rem 1rem 4rem;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(4rem, 7vw, 5rem);
  letter-spacing: 0.5px;
}

.hero p {
  color: #eee8df;
  margin: 0.6em auto 1.2em;
  max-width: 640px;
}

/* Dividers */
.divider {
  display: grid;
  place-items: center;
  padding: 1.2rem 0;
}

/* Leaf inherits color from .leaf */
.leaf {
  color: var(--green-dark);
}

.leaf svg {
  display: block;
}

.leaf svg path {
  stroke: currentColor;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  border: 1px solid rgba(27, 94, 32, 0.15);
}

/* Highlights */
.highlights {
  padding: 2.5rem 0;
}

.section-subtitle {
  color: var(--stone-60);
  margin-top: -0.4rem;
  margin-bottom: 1.4rem;
  text-align: center;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.highlight-item {
  text-align: center;
}

.highlight-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.highlight-item h3 {
  color: var(--green);
  margin-bottom: 0.3rem;
  text-align: center;
}

/* Carousel */
.photo-carousel {
  padding: 2.5rem 0;
}

.photo-carousel h2 {
  text-align: center;
  margin-bottom: 0.8rem;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem;
}

.carousel img {
  scroll-snap-align: start;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel img:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Contact */
.contact {
  padding: 2.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: start;
}

.contact-details h2,
.contact-form h2 {
  margin-bottom: 0.6rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  display: grid;
  gap: 10px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-list a:hover {
  border-bottom-color: var(--red);
}

.icon {
  font-size: 1.1rem;
}

/* Contact form */
.contact-form form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9em 1em;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  background: var(--card);
  color: var(--stone);
  font: inherit;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  border-color: #444;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green);
  border-color: var(--green-dark);
}

.form-status {
  font-size: 0.95rem;
  color: var(--red-dark);
  min-height: 1.2em;
}

/* Map */
.location {
  padding: 2.5rem 0 3.2rem;
}

.location h2 {
  text-align: left;
  margin-bottom: 0.8rem;
}

.map-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 94, 32, 0.18);
}

/* Footer */
.site-footer {
  background: var(--red);
  padding: 3rem 0 1.5rem;
  color: #fff;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #eee8df;
  max-width: 300px;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-social h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.social-icons {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: #f7efe6;
  text-decoration: none;
  transition: opacity 0.2s;
}

.site-footer a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #dccbb8;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .highlight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .carousel {
    grid-auto-columns: 80%;
  }

  .hero {
    min-height: 56vh;
  }

  .floating-whatsapp {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }
}

.carousel {
  -ms-overflow-style: none;
  /* IE/Edge */
  scrollbar-width: none;
  /* Firefox */
}

.carousel::-webkit-scrollbar {
  /* Chrome/Safari */
  display: none;
}

/* --- Admin Styles --- */
.admin-header {
  background: var(--green);
  padding: 2.5rem 0;
  text-align: center;
}

.admin-header h1 {
  color: white;
  margin: 0;
}

.admin-header p {
  color: #e2ebd0;
  margin-top: 0.5rem;
}

.admin-section {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid rgba(27, 94, 32, 0.15);
}

.admin-section h2 {
  color: var(--red-dark);
  border-bottom: 2px solid var(--cream);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

#product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.admin-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #faf9f6;
  position: relative;
}

.admin-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.admin-item-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.admin-item-content input,
.admin-item-content textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.admin-item-content input:focus,
.admin-item-content textarea:focus {
  outline: 2px solid var(--green);
  border-color: var(--green);
}

.admin-actions {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.btn-danger {
  background: #dc3545;
  color: white;
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-danger:hover {
  background: #c0392b;
}

.add-new-box {
  background: var(--cream);
  border: 2px dashed #ccc;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1.5rem;
}

.add-new-box h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.file-input {
  background: white;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  margin-bottom: 1rem;
}

.message-alert {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin: 1.5rem auto;
  text-align: center;
  font-weight: 600;
  border: 1px solid #c3e6cb;
}

/* Admin Navbar Override */
.admin-navbar {
  position: relative;
  border-bottom: none;
}