/* Three Hearts Farm — Apple-inspired design */

:root {
  --color-bg: #fafafa;
  --color-bg-alt: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-accent: #2d5016;
  --color-accent-hover: #1e3a0f;
  --color-border: #d2d2d7;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(48px, 8vw, 80px); }
h2 { font-size: clamp(32px, 5vw, 48px); }
h3 { font-size: clamp(24px, 3vw, 32px); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.25em;
  color: var(--color-text-secondary);
  font-weight: 300;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn.primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(45,80,22,0.35);
}

.btn.primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 28px rgba(45,80,22,0.45);
}

.btn.secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(2px) saturate(120%);
}

.btn.secondary:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: #fff;
}

.btn.full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Revert: image on top, green gradient under (set inline) */
  background: #2d5016;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: 50px 50px;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Slightly darker for better text contrast while keeping image visible */
  background: radial-gradient(ellipse at center bottom, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.34) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 24px;
  max-width: 900px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.65);
}

/* Add a soft backdrop just behind the text for legibility */
.hero-content::before{
  content:"";
  position:absolute; inset:-18px -28px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.30), rgba(0,0,0,0.12) 60%, transparent 78%);
  filter: blur(10px);
  border-radius: 28px;
  z-index:-1;
}

.hero-tag {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 48px;
}

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

.hero .btn.primary {
  background: #fff;
  color: var(--color-accent);
}

.hero .btn.primary:hover {
  background: #f5f5f7;
  transform: scale(1.02);
}

.hero .btn.secondary {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.hero .btn.secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-hint span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

/* About */
.about {
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8ebe5 0%, #d4ddd0 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  overflow: hidden;
}

.image-placeholder.dark {
  background: linear-gradient(135deg, #2d3a28 0%, #1a2416 100%);
  color: rgba(255,255,255,0.5);
}

.about-text h2 {
  margin-bottom: 24px;
}

/* Values Strip */
.values {
  padding: 56px 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.values-grid h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

.values-grid .small {
  color: var(--color-text-secondary);
}

/* Products Intro */
.products-intro {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.products-intro h2 {
  margin-bottom: 16px;
}

/* Product Sections */
.product-section {
  padding: 120px 0;
}

.product-section.alt {
  background: var(--color-bg-alt);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product-grid.reverse {
  direction: rtl;
}

.product-grid.reverse > * {
  direction: ltr;
}

.product-image {
  position: relative;
}

.product-image img, .about-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain; /* show whole subject without cropping */
  border-radius: 24px;
  display: block;
}

.product-image .image-placeholder {
  aspect-ratio: 1;
  border-radius: 32px;
}

.product-content {
  max-width: 480px;
}

.product-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  background: rgba(45, 80, 22, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.product-content h2 {
  margin-bottom: 8px;
}

.price {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.features {
  list-style: none;
  margin: 24px 0 32px;
}

.features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--color-text-secondary);
}

.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Forms Section */
.forms-section {
  padding: 120px 0;
  background: var(--color-text);
}

.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.form-card {
  background: #fff;
  border-radius: 24px;
  padding: 48px;
}

.form-card h3 {
  margin-bottom: 8px;
}

.form-card > p {
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}

.optional {
  font-weight: 400;
  color: var(--color-text-secondary);
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(45, 80, 22, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-card .btn {
  margin-top: 8px;
}

.success-message {
  text-align: center;
  padding: 48px 24px;
}

.success-message svg {
  width: 64px;
  height: 64px;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.success-message p {
  font-size: 18px;
  color: var(--color-text);
}

.hidden {
  display: none;
}

/* FAQ + Map */
.faq-map { padding: 96px 0; }
.faq-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--color-text-secondary); margin-top: 10px; }

/* Newsletter */
.newsletter { padding: 64px 0; background: var(--color-bg-alt); }
.newsletter-card {
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 24px;
}
.newsletter form { display: flex; gap: 12px; }
.newsletter input[type=email] {
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--color-border); width: min(340px, 60vw);
}

/* Footer */
.footer {
  background: var(--color-text);
  color: #fff;
  padding: 64px 0 32px;
}

.footer-nav { display:flex; gap:20px; justify-content:center; margin-bottom:24px; }
.footer-nav a { color:#fff; text-decoration:none; opacity:0.8; }
.footer-nav a:hover { opacity:1; }

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-brand p {
  opacity: 0.6;
  font-size: 14px;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-contact a:hover {
  opacity: 0.7;
}

.footer-contact .small {
  font-size: 13px;
  opacity: 0.5;
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  opacity: 0.5;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid,
  .product-grid,
  .forms-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .product-grid.reverse {
    direction: ltr;
  }
  
  .product-content {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  
  .hero {
    min-height: 90vh;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .about,
  .product-section,
  .forms-section {
    padding: 80px 0;
  }
  
  .form-card {
    padding: 32px 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
}
