/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #2a4a1c;
  --green:        #3d6b28;
  --green-light:  #6a9e3f;
  --accent:       #e8931a;
  --accent-dark:  #c47410;
  --bg:           #faf8f3;
  --bg-alt:       #f0ebe0;
  --text:         #2c2c2c;
  --text-muted:   #6b6b6b;
  --white:        #ffffff;
  --radius:       10px;
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --transition:   0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}

h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 16px; }

p { color: var(--text-muted); margin-bottom: 16px; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* ── Nav ─────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}
.nav-links a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(20,40,10,0.72) 0%, rgba(50,85,20,0.55) 100%),
    url('images/karri-tree-avenue.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 60px;
}

.hero-content { max-width: 700px; }

.hero .section-tag {
  color: rgba(255,255,255,0.75);
}

.hero h1 {
  color: var(--white);
  margin: 8px 0 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.5);
  animation: bounce 2s infinite;
  transition: opacity 0.4s ease;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Banner Strip ────────────────────────────────────────────── */
.banner-strip {
  background: var(--green-dark);
  color: rgba(255,255,255,0.9);
  padding: 14px 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
}
.banner-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* ── About ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  display: block;
}

.about-text .section-tag { display: block; margin-bottom: 8px; }
.about-text h2 { color: var(--green-dark); margin-bottom: 16px; }

.about-values {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-values li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-values strong { display: block; color: var(--text); font-family: 'Helvetica Neue', Arial, sans-serif; }
.about-values span { font-size: 0.9rem; }

/* ── Shop ────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  gap: 28px;
  justify-content: center;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.product-img {
  height: 200px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.product-img-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product-body { padding: 20px; }
.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.product-desc { font-size: 0.85rem; margin-bottom: 16px; line-height: 1.5; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.product-add {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.product-add:hover { background: var(--green-dark); transform: scale(1.04); }

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-btn {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--green-dark); transform: scale(1.08); }
.qty-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  min-width: 20px;
  text-align: center;
}

/* ── Truffle gram selector ───────────────────────────────────── */
.truffle-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gram-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%232a4a1c'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1.5px solid var(--green);
  border-radius: 50px;
  padding: 7px 30px 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: border-color var(--transition);
}
.gram-select:focus { outline: none; border-color: var(--green-dark); }
.gram-input {
  border: 1.5px solid var(--green);
  border-radius: 50px;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  width: 100px;
  transition: border-color var(--transition);
}
.gram-input:focus { outline: none; border-color: var(--green-dark); }
.remove-truffle { flex-shrink: 0; }

/* ── Cart Bar ────────────────────────────────────────────────── */
.cart-bar {
  margin-top: 48px;
  padding: 20px 32px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.cart-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#cart-summary { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 0.95rem; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-info .section-tag { display: block; margin-bottom: 8px; }
.contact-info h2 { color: var(--green-dark); margin-bottom: 32px; }

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-details strong {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-light);
}
.contact-details span, .contact-details a {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 { color: var(--green-dark); }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-row label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}
.form-row input,
.form-row textarea {
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: 'Georgia', serif;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green-light);
  background: var(--white);
}

.form-success {
  color: var(--green-light);
  font-size: 0.95rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-error-global {
  color: #c0392b;
  font-size: 0.9rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 16px;
}

.field-error {
  display: block;
  color: #c0392b;
  font-size: 0.8rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-top: 4px;
}

.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

[data-fs-submit-btn]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery-grid {
  columns: 3;
  column-gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 14px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.62));
  color: rgba(255,255,255,0.92);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0;
  text-align: center;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-tagline { font-size: 0.85rem; margin-bottom: 20px; }
.footer-copy { font-size: 0.8rem; font-family: 'Helvetica Neue', Arial, sans-serif; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 24px; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo { height: 300px; }
  .gallery-grid { columns: 2; }

  .banner-inner { gap: 16px; }
  .banner-inner span { font-size: 0.75rem; }

  .cart-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .contact-form-wrap { padding: 28px 20px; }
}

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  object-fit: contain;
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
