@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --background: #f7f3ec;
  --foreground: #2f2f2f;
  --card: #fcfaf4;
  --primary: #123f2c;
  --primary-foreground: #f7f3ec;
  --forest-deep: #0d2f21;
  --secondary: #efe8dc;
  --muted-foreground: #55584f;
  --accent: #b7872e;
  --champagne: #d4b16a;
  --leaf: #6f7d4a;
  --border: #e0d7c6;
  --ring: #556b3e;
  --shadow-soft: 0 18px 50px -24px rgba(13, 47, 33, .4);
  --shadow-lift: 0 28px 70px -28px rgba(13, 47, 33, .5);
  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; }
.icon { width: 1.1rem; height: 1.1rem; flex: none; }
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.container-wide { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }
.narrow { max-width: 48rem; }
.center { margin-inline: auto; text-align: center; }
.section { padding-block: 6rem; }
.section-soft { background: color-mix(in srgb, var(--secondary) 58%, transparent); }
.eyebrow { margin: 0; color: var(--leaf); font: 600 .75rem/1.4 var(--font-display); letter-spacing: .22em; text-transform: uppercase; }
.eyebrow.gold { color: var(--accent); }
.section-heading h2 { margin: 1rem 0 0; color: var(--forest-deep); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.13; }
.section-heading .intro { max-width: 46rem; margin: 1.25rem auto 0; color: var(--muted-foreground); font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.7; }
.section-heading.left .intro { margin-left: 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { height: 100%; overflow: hidden; border: 1px solid rgba(224, 215, 198, .75); border-radius: 1.5rem; background: var(--card); box-shadow: var(--shadow-soft); }
.card-pad { padding: 1.75rem; }
.lift { transition: transform .3s ease, box-shadow .3s ease; }
.lift:hover { transform: translateY(-.45rem); box-shadow: var(--shadow-lift); }
.image-frame { overflow: hidden; border-radius: 1.5rem; box-shadow: var(--shadow-lift); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .75rem 1.75rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: .875rem; font-weight: 600; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.button-gold { background: var(--accent); color: #2f2f2f; box-shadow: var(--shadow-lift); }
.button-outline-light { border-color: rgba(247, 243, 236, .4); color: var(--primary-foreground); background: transparent; }
.button-outline-light:hover { background: rgba(247, 243, 236, .1); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(247, 243, 236, .78); backdrop-filter: blur(12px); transition: background .3s ease, border-color .3s ease; }
.site-header.is-scrolled, .site-header.is-open { border-color: rgba(224, 215, 198, .75); background: rgba(247, 243, 236, .96); }
.header-inner { min-height: 4.55rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { min-width: 0; display: flex; align-items: center; gap: .75rem; }
.brand img { width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--border); }
.brand-name { display: block; color: var(--forest-deep); font: 600 1.125rem/1.15 var(--font-display); }
.brand-tagline { display: block; margin-top: .2rem; color: var(--muted-foreground); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: .1rem; }
.nav-link { padding: .55rem .75rem; border-radius: 999px; color: var(--muted-foreground); font-size: .875rem; font-weight: 500; transition: color .2s ease, background .2s ease; }
.nav-link:hover { color: var(--leaf); background: var(--secondary); }
.nav-link.active { color: var(--primary); background: var(--secondary); }
.desktop-nav .quote-link { margin-left: .5rem; padding: .72rem 1.3rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: .875rem; font-weight: 600; box-shadow: var(--shadow-soft); }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: transparent; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid rgba(224, 215, 198, .75); background: var(--background); }
.mobile-nav.open { display: block; }
.mobile-nav-inner { display: flex; flex-direction: column; gap: .2rem; padding-block: 1rem; }
.mobile-nav .nav-link { padding: .8rem 1rem; border-radius: .75rem; color: var(--foreground); font-size: 1rem; }
.mobile-nav .quote-link { margin-top: .4rem; padding: .8rem 1rem; border-radius: .75rem; background: var(--primary); color: var(--primary-foreground); text-align: center; font-weight: 600; }

/* Heroes */
.home-hero, .page-hero, .image-cta, .dark-image-section { position: relative; isolation: isolate; overflow: hidden; color: var(--primary-foreground); }
.hero-media, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; object-fit: cover; }
.hero-overlay { z-index: -1; background: linear-gradient(135deg, rgba(13, 47, 33, .90), rgba(13, 47, 33, .65) 52%, rgba(13, 47, 33, .25)); }
.home-hero { min-height: 92vh; display: flex; align-items: center; }
.home-hero-content { padding-block: 7rem; }
.home-hero-copy { max-width: 48rem; }
.home-hero h1 { margin: 1.5rem 0 0; color: var(--primary-foreground); font-size: clamp(2.5rem, 5.1vw, 3.75rem); line-height: 1.06; }
.home-hero .lead { max-width: 42rem; margin: 1.5rem 0 0; color: rgba(247, 243, 236, .85); font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.scroll-hint { position: absolute; left: 50%; bottom: 2rem; width: 1.75rem; height: 1.75rem; transform: translateX(-50%); animation: scroll-hint 2s ease-in-out infinite; }
.page-hero .hero-overlay { background: linear-gradient(90deg, rgba(13, 47, 33, .92), rgba(13, 47, 33, .78) 52%, rgba(13, 47, 33, .45)); }
.page-hero-content { padding-block: 6rem 8rem; }
.page-hero h1 { max-width: 52rem; margin: 1.25rem 0 0; font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.08; }
.page-hero .lead { max-width: 42rem; margin: 1.5rem 0 0; color: rgba(247, 243, 236, .8); font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.7; }

/* Content */
.stats { margin-top: 3.5rem; }
.stat { padding: 2rem; text-align: center; }
.stat strong { display: block; color: var(--primary); font: 600 clamp(2rem, 4vw, 2.5rem)/1.1 var(--font-display); }
.stat span { display: block; margin-top: .75rem; color: var(--muted-foreground); font-size: .875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 3.5rem; }
.split .image-frame { aspect-ratio: 12 / 9; }
.split-copy h2 { margin: 1rem 0 0; color: var(--forest-deep); font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.15; }
.split-copy p:not(.eyebrow) { margin: 1.25rem 0 0; color: var(--muted-foreground); line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 2rem; color: var(--primary); font-weight: 600; }
.text-link:hover { color: var(--leaf); }
.farm-grid, .portfolio-grid, .sustainability-grid, .investment-grid, .reasons-grid { margin-top: 3.5rem; }
.card-image { height: 14rem; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .card-image img { transform: scale(1.05); }
.card .location { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--leaf); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.card h2, .card h3 { margin: .8rem 0 0; color: var(--forest-deep); font-size: 1.25rem; }
.card p { margin: .75rem 0 0; color: var(--muted-foreground); font-size: .875rem; line-height: 1.7; }
.portfolio-tile { position: relative; height: 18rem; overflow: hidden; border-radius: 1.5rem; color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.portfolio-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.portfolio-tile:hover img { transform: scale(1.1); }
.portfolio-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,47,33,.92), rgba(13,47,33,.24) 55%, transparent); }
.portfolio-copy { position: absolute; z-index: 1; inset: auto 0 0; padding: 1.5rem; }
.portfolio-copy h3 { margin: 0; font-size: 1.125rem; }
.portfolio-copy p { max-height: 0; margin: .5rem 0 0; overflow: hidden; opacity: 0; color: rgba(247,243,236,.8); font-size: .875rem; line-height: 1.6; transition: max-height .5s ease, opacity .5s ease; }
.portfolio-tile:hover .portfolio-copy p, .portfolio-tile:focus-within .portfolio-copy p { max-height: 8rem; opacity: 1; }
.dark-image-section { padding-block: 7rem; }
.dark-image-section .hero-overlay { background: rgba(13,47,33,.88); }
.dark-image-section .section-heading h2 { color: var(--primary-foreground); }
.dark-image-section .section-heading .intro { color: rgba(247,243,236,.75); }
.dark-card { height: 100%; padding: 1.75rem; border: 1px solid rgba(247,243,236,.15); border-radius: 1.5rem; background: rgba(247,243,236,.05); backdrop-filter: blur(5px); }
.dark-card > .icon { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.dark-card h3 { margin: 1rem 0 0; font-size: 1.125rem; }
.dark-card p { margin: .75rem 0 0; color: rgba(247,243,236,.75); font-size: .875rem; line-height: 1.7; }
.icon-accent { width: 1.5rem; height: 1.5rem; color: var(--leaf); }
.number { color: var(--accent); font: 600 .875rem var(--font-display); }
.image-cta .hero-overlay { background: rgba(13,47,33,.85); }
.image-cta-content { padding-block: 6rem; text-align: center; }
.image-cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.5rem); }
.image-cta p { max-width: 42rem; margin: 1.25rem auto 0; color: rgba(247,243,236,.8); line-height: 1.7; }
.image-cta .button { margin-top: 2.25rem; }
.activities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.activities li { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem 1rem; border-radius: 1rem; background: rgba(239, 232, 220, .72); color: var(--forest-deep); font-size: .875rem; font-weight: 500; }
.activities .icon { margin-top: .1rem; color: var(--leaf); }
.farm-detail + .farm-detail { margin-top: 4rem; }
.farm-detail.reverse .image-frame { order: 2; }
.feature-icon { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: 1rem; background: var(--secondary); color: var(--leaf); }
.feature-icon .icon { width: 1.35rem; height: 1.35rem; }
.gold-card { border-color: rgba(212,177,106,.45); }
.gold-card .icon-accent { color: var(--accent); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.filter-button { padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted-foreground); cursor: pointer; font-size: .875rem; font-weight: 500; transition: .2s ease; }
.filter-button:hover { border-color: var(--leaf); color: var(--primary); }
.filter-button.active { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.gallery-grid { columns: 3; column-gap: 1.5rem; margin-top: 3rem; }
.gallery-item { position: relative; break-inside: avoid; margin: 0 0 1.5rem; overflow: hidden; border-radius: 1.5rem; box-shadow: var(--shadow-soft); }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; transition: transform .7s ease; }
.gallery-item figcaption { position: absolute; inset: auto 0 0; padding: 3rem 1.25rem 1.25rem; background: linear-gradient(to top, rgba(13,47,33,.9), transparent); color: var(--primary-foreground); font-size: .875rem; font-weight: 500; opacity: 0; transform: translateY(.5rem); transition: .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover figcaption { opacity: 1; transform: none; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.contact-form { padding: 2.5rem; }
.contact-form h2 { margin: 0; color: var(--forest-deep); font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; color: var(--forest-deep); font-size: .875rem; font-weight: 500; }
.field .required { color: #b42318; }
.field input, .field textarea { width: 100%; margin-top: .5rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: .75rem; outline: none; background: var(--background); color: var(--foreground); font-size: .875rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(85,107,62,.18); }
.form-note { margin: 1rem 0 0; color: var(--muted-foreground); font-size: .8rem; line-height: 1.5; }
.contact-form .button { margin-top: 1.5rem; }
.contact-stack { display: grid; gap: 1.25rem; }
.contact-card { padding: 1.75rem; }
.contact-card h3 { margin: 1rem 0 0; color: var(--forest-deep); font-size: 1rem; }
.contact-card p, .contact-card a { display: block; margin: .25rem 0 0; color: var(--muted-foreground); font-size: .875rem; overflow-wrap: anywhere; }
.whatsapp-card { display: flex; align-items: center; gap: 1rem; border-color: rgba(37,211,102,.4); background: rgba(37,211,102,.05); }
.whatsapp-card .feature-icon { flex: none; background: #25d366; color: #fff; }
.whatsapp-card h3 { margin-top: 0; }

/* Footer and floating contact */
.site-footer { background: var(--forest-deep); color: var(--primary-foreground); }
.footer-grid { display: grid; grid-template-columns: 1.15fr .9fr 1fr; gap: 3rem; padding-block: 4rem; }
.footer-brand .brand-name { color: var(--primary-foreground); font-size: 1.25rem; }
.footer-brand p { max-width: 22rem; margin: 1.25rem 0 0; color: rgba(247,243,236,.7); font-size: .875rem; line-height: 1.7; }
.social-row { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social-icon { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid rgba(247,243,236,.25); border-radius: 50%; color: rgba(247,243,236,.8); }
.social-icon .icon { width: 1rem; height: 1rem; }
.footer-title { color: var(--accent); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.footer-links a, .contact-list a { color: rgba(247,243,236,.75); font-size: .875rem; }
.footer-links a:hover, .contact-list a:hover { color: var(--champagne); }
.contact-list { display: grid; gap: .85rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: rgba(247,243,236,.75); font-size: .875rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .7rem; }
.contact-list .icon { margin-top: .1rem; color: var(--accent); }
.copyright { padding-block: 1.5rem; border-top: 1px solid rgba(247,243,236,.15); color: rgba(247,243,236,.6); text-align: center; font-size: .75rem; }
.floating-whatsapp { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 45; display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1rem; border-radius: 999px; background: #25d366; color: #fff; font-size: .875rem; font-weight: 600; box-shadow: 0 10px 28px rgba(13,47,33,.28); transition: transform .2s, background .2s; }
.floating-whatsapp:hover { transform: translateY(-2px); background: #1ebe5b; }

/* Motion */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes hero-drift { 0%,100% { transform: scale(1.08); } 50% { transform: scale(1.16) translate(-1.5%,-1.5%); } }
.hero-drift { animation: hero-drift 28s ease-in-out infinite; }
@keyframes scroll-hint { 0%,100% { transform: translate(-50%,0); opacity:.55; } 50% { transform: translate(-50%,9px); opacity:1; } }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .container, .container-wide { padding-inline: 1rem; }
  .section { padding-block: 4.5rem; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .contact-layout { grid-template-columns: 1fr; }
  .farm-detail.reverse .image-frame { order: 0; }
  .page-hero-content { padding-block: 5rem 6rem; }
  .gallery-grid { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .brand-tagline { display: none; }
  .home-hero { min-height: calc(100svh - 4.55rem); }
  .home-hero-content { padding-block: 5rem 7rem; }
  .home-hero h1 { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .button { width: 100%; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .activities { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .gallery-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .contact-form { padding: 1.5rem; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { width: 3.25rem; height: 3.25rem; justify-content: center; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
