/* =============================================
   SHARECROPPER FIELDS — PREMIUM INTERACTIVE BROCHURE v2
   Typography: Cormorant Garamond (Display) + Inter (Body)
   ============================================= */

:root {
    --forest:       #0D3B24;
    --forest-deep:  #082A19;
    --forest-mid:   #145A34;
    --gold:         #C89B3C;
    --gold-light:   #D4AD54;
    --gold-pale:    rgba(200,155,60,0.08);
    --bg-cream:     #F4F2EA;
    --bg-white:     #FBF9F4;
    --text-primary: #1A1A1A;
    --text-muted:   #6B6B6B;
    --text-light:   #F8F7F2;
    --border-color: rgba(0,0,0,0.06);
    --red-muted:    #C0392B;
    --green-accent: #27AE60;
    
    --ff-display: 'Cormorant Garamond', serif;
    --ff-body:    'Plus Jakarta Sans', sans-serif;
    --ff-num:     'Space Grotesk', sans-serif;
    --ff-hi-display: 'Tiro Devanagari Hindi', serif;
    --ff-hi-body:    'Noto Sans Devanagari', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { font-family: var(--ff-body); background: var(--bg-cream); color: #1c2b24; line-height: 1.7; font-size: 15px; overflow-x: hidden; width: 100%; position: relative; }
p, .section-desc, .bento-desc { font-weight: 500; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ==================== NAV ==================== */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(244, 242, 234, 0.95); backdrop-filter: blur(20px) saturate(180%); z-index: 1000; border-bottom: 1px solid var(--border-color); }
.navbar.navbar-hide-top { transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.navbar.navbar-hide-top.visible { transform: translateY(0); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-emblem { background: var(--forest); color: var(--gold); padding: 0.4rem 0.6rem; border-radius: 4px; font-family: var(--ff-display); font-weight: 700; font-size: 1rem; letter-spacing: 1px; }
.nav-logo-img { height: 48px; width: auto; object-fit: contain; display: block; }
.logo-text { font-family: var(--ff-display); font-weight: 600; font-size: 1.3rem; color: var(--forest); }
.nav-links { display: flex; gap: 2rem; align-items: center; font-weight: 500; font-size: 0.85rem; letter-spacing: 0.3px; }
.nav-links a:not(.btn) { color: var(--text-muted); transition: color 0.3s; }
.nav-links a:not(.btn):hover { color: var(--forest); }
.menu-toggle { display: none; }
.nav-actions { display: flex; gap: 1rem; align-items: center; }

/* ==================== BUTTONS ==================== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 2rem; font-family: var(--ff-body); font-weight: 600; font-size: 0.9rem; border-radius: 50px; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); border: none; cursor: pointer; letter-spacing: 0.5px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); color: var(--forest-deep) !important; box-shadow: 0 4px 15px rgba(200,155,60,0.15); border: 1px solid rgba(255,255,255,0.2); }
.btn-gold:hover { background: linear-gradient(135deg, #DFB967 0%, var(--gold-light) 100%); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200,155,60,0.35); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-outline { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--forest-deep); }

/* ==================== SECTIONS ==================== */
.section { padding: 7rem 0; }
.section-cream { background: var(--bg-cream); }
.section-light { background: var(--bg-white); }
.section-dark { background: linear-gradient(135deg, #071912 0%, #0c241a 100%); color: var(--text-light); }
.section-header { text-align: center; margin-bottom: 4.5rem; max-width: 750px; margin-inline: auto; }
.section-label { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.label-line { width: 40px; height: 1.5px; background: var(--gold); }
.label-text { font-family: var(--ff-body); color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 0.75rem; font-weight: 600; }
.section-title { font-family: var(--ff-display); font-size: 3.5rem; font-weight: 600; color: var(--forest); margin-bottom: 1.5rem; line-height: 1.15; letter-spacing: -0.5px; }
.section-dark .section-title { color: var(--text-light); }
.section-desc { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }
.section-dark .section-desc { color: #b5b5b5; }

/* ==================== HERO ==================== */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; text-align: center; background: url('assets/hero.jpg') center/cover fixed; color: var(--text-light); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,42,25,0.65) 0%, rgba(8,42,25,0.88) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-title { font-family: var(--ff-display); font-size: 5.5rem; font-weight: 500; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.3rem; color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; font-weight: 300; letter-spacing: 0.5px; }
.hero-features { display: flex; justify-content: center; gap: 2.5rem; margin-bottom: 3rem; }
.hero-feature { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 400; }
.hero-feature span:first-child { color: var(--gold); font-size: 0.6rem; }

/* ==================== GRID LAYOUTS ==================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ==================== BENTO GRID ==================== */
.bento-grid { display: grid; gap: 1.5rem; }
.bento-pillars-dark { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto auto; }
.bento-pillars-dark .pillar-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-pillars-dark .pillar-2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.bento-pillars-dark .pillar-3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.bento-pillars-dark .pillar-4 { grid-column: 3 / 5; grid-row: 2 / 3; }
.bento-pillars-dark .pillar-5 { grid-column: 1 / 5; grid-row: 3 / 4; }

.bento-item-dark { background: #F8F7F4; padding: 2.5rem; border-radius: 16px; border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); transition: all 0.4s cubic-bezier(0.4,0,0.2,1); position: relative; overflow: hidden; color: #1c2b24; display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; z-index: 1; }
.bento-item-dark > * { position: relative; z-index: 2; }
.bg-number { position: absolute; bottom: -15px; right: 10px; font-size: 5.5rem; font-family: var(--ff-display); font-weight: 700; opacity: 0.04; color: #000; line-height: 1; pointer-events: none; z-index: 0 !important; }
.bento-item-dark:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: rgba(200,155,60,0.4); }
.bento-item-dark .bento-title { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 600; color: var(--forest); margin-bottom: 1rem; }
.bento-item-dark .bento-desc { font-family: var(--ff-body); color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; font-weight: 500; }

.bento-ops { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; }
.bento-ops .bento-item:nth-child(1) { grid-column: 1 / 3; }
.bento-ops .bento-item:nth-child(4) { grid-column: 2 / 4; }

.bento-item { background: var(--bg-white); padding: 2.5rem; border-radius: 16px; border: 1px solid var(--border-color); transition: all 0.4s cubic-bezier(0.4,0,0.2,1); position: relative; overflow: hidden; }
.bento-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--forest)); opacity: 0; transition: opacity 0.4s; }
.bento-item:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }
.bento-item:hover::before { opacity: 1; }
.section-dark .bento-item { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, 0.08); }
.section-dark .bento-item:hover { background: rgba(255,255,255,0.08); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }

.bento-icon { font-size: 2.2rem; margin-bottom: 1.2rem; }
.bento-title { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 600; color: var(--forest); margin-bottom: 0.8rem; }
.section-dark .bento-title { color: var(--gold); }

/* ==================== CARDS ==================== */
.card { background: var(--bg-white); padding: 2.5rem; border-radius: 16px; border: 1px solid var(--border-color); transition: all 0.4s cubic-bezier(0.4,0,0.2,1); height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.section-dark .card { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, 0.08); }
.section-dark .card:hover { background: rgba(255,255,255,0.08); }
.card-icon { font-size: 2.2rem; margin-bottom: 1.2rem; }
.card-title { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 600; color: var(--forest); margin-bottom: 0.8rem; }
.section-dark .card-title { color: var(--gold); }

/* ==================== PREMIUM CROP CARDS (HOVER PARALLAX) ==================== */
.bento-crops { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 1.5rem; }
.crop-bento-card { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; border: 1px solid rgba(0,0,0,0.06); background: #111311; text-decoration: none; color: inherit; display: block; }
.bento-crops .crop-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-crops .crop-2 { grid-column: 3 / 5; grid-row: 1 / 2; }
.bento-crops .crop-3 { grid-column: 3 / 4; grid-row: 2 / 3; }
.bento-crops .crop-4 { grid-column: 4 / 5; grid-row: 2 / 3; }

.crop-img-container { position: absolute; inset: 0; overflow: hidden; }
.crop-bento-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94); }
.crop-bento-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(10,10,10,0.95) 100%); transition: background 0.4s; }

.crop-bento-card:hover .crop-bento-img { transform: scale(1.05); }
.crop-bento-card:hover .crop-bento-overlay { background: linear-gradient(180deg, transparent 5%, rgba(10,10,10,0.98) 100%); }

.crop-bento-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem; color: white; z-index: 2; pointer-events: none; }
.crop-bento-content h4 { font-family: var(--ff-display); font-size: 2.2rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--gold); }
.crop-bento-content p { font-family: var(--ff-body); font-size: 0.95rem; color: rgba(255,255,255,0.7); }

/* ==================== CROP SHOWCASE ==================== */
.crop-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.crop-showcase.reverse { direction: rtl; }
.crop-showcase.reverse > * { direction: ltr; }
.crop-image { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.12); }
.crop-image img { width: 100%; height: 600px; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.crop-showcase:hover .crop-image img { transform: scale(1.03); }
.crop-title { font-family: var(--ff-display); font-size: 3.2rem; font-weight: 600; color: var(--forest); margin-bottom: 1rem; letter-spacing: -0.5px; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-box { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); padding: 1.5rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.5); }
.stat-value { display: block; font-family: var(--ff-num); font-size: 2.16rem; font-weight: 800; color: #E5A93C; letter-spacing: -0.5px; }
.stat-name { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-top: 0.2rem; }

/* YIELD BOX */
.yield-box { background: linear-gradient(180deg, #0b291d 0%, #05140e 100%); color: white; padding: 2.5rem; border-radius: 16px; position: relative; overflow: hidden; }
.yield-box::after { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: var(--gold); filter: blur(100px); opacity: 0.15; pointer-events: none; }
.yield-title { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 600; color: var(--gold); margin-bottom: 1.5rem; letter-spacing: 0.5px; }
.yield-list { list-style: none; margin-bottom: 1.5rem; }
.yield-list li { display: flex; justify-content: space-between; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.95rem; }
.yield-list li span:last-child { font-weight: 600; }
.yield-total { display: flex; justify-content: space-between; align-items: center; padding-top: 1.2rem; }
.yield-total span:first-child { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 600; }
.highlight { font-family: var(--ff-num); font-size: 2.64rem; color: #E5A93C; font-weight: 800; letter-spacing: -0.5px; }
.highlight[data-countup] { font-variant-numeric: tabular-nums; }

/* ==================== MIYAWAKI SPLIT VIEW ==================== */
.split-compare { display: grid; grid-template-columns: 1fr 1fr; margin-top: 3rem; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-color); }
.split-side { padding: 3rem; }
.split-conventional { background: #fafafa; border-right: 3px solid var(--border-color); }
.split-miyawaki { background: var(--bg-white); }
.split-badge { display: inline-block; padding: 0.3rem 1rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.5rem; }
.split-conventional .split-badge { background: rgba(192,57,43,0.08); color: var(--red-muted); }
.split-miyawaki .split-badge { background: rgba(39,174,96,0.08); color: var(--green-accent); }
.split-side h3 { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--forest); }
.split-list { list-style: none; }
.split-list li { padding: 1rem 0; border-bottom: 1px solid var(--border-color); display: flex; gap: 1rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; }
.split-list li:last-child { border-bottom: none; }
.split-conventional .split-list li::before { content: '✕'; color: var(--red-muted); font-weight: 700; flex-shrink: 0; width: 20px; }
.split-miyawaki .split-list li::before { content: '✓'; color: var(--green-accent); font-weight: 700; flex-shrink: 0; width: 20px; }
.split-metric { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-weight: 600; font-size: 0.85rem; }
.split-miyawaki .split-metric { background: rgba(39,174,96,0.1); color: var(--green-accent); }

/* ==================== TIMELINE ==================== */
.timeline { display: flex; flex-direction: column; gap: 2rem; position: relative; max-width: 800px; margin: 0 auto; }
.timeline-track { position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,0.08); }
.timeline-progress-bar { position: absolute; left: 24px; top: 0; width: 2px; height: 0%; background: linear-gradient(180deg, var(--gold), var(--forest)); transition: height 0.1s linear; }
.timeline-item { display: flex; gap: 2rem; position: relative; }
.timeline-number { width: 50px; height: 50px; background: var(--gold); color: var(--forest); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ff-num); font-weight: 800; font-size: 1.56rem; flex-shrink: 0; z-index: 1; box-shadow: 0 4px 15px rgba(200,155,60,0.2); }
.timeline-content { background: var(--bg-cream); padding: 1.8rem 2rem; border-radius: 12px; flex: 1; border: 1px solid var(--border-color); }
.timeline-content h4 { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--forest); }

/* ==================== TABLES ==================== */
.table-wrapper { width: 100%; overflow-x: auto; background: var(--bg-white); border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0,0,0,0.04); }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th, td { padding: 1.1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 1.05rem; }
th { background: var(--forest); color: var(--text-light); font-family: var(--ff-body); font-weight: 700; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 1.5px; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: #fcfcfa; }
.table-highlight { background: var(--gold-pale) !important; font-weight: 600; color: var(--forest); }
.table-total { background: var(--forest-deep) !important; color: #E5A93C !important; font-weight: 800; font-family: var(--ff-num); font-size: 1.4rem; letter-spacing: -0.5px; }
.table-total td { border-bottom: none; color: #E5A93C !important; font-size: 1.35rem; font-weight: 800; font-family: var(--ff-num); }

/* ==================== WELLNESS ==================== */
.wellness-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.wellness-item { display: flex; align-items: center; gap: 1rem; background: var(--bg-white); padding: 1.8rem 2rem; border-radius: 14px; border: 1px solid var(--border-color); transition: all 0.3s; }
.wellness-item:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); border-color: var(--gold); }
.wellness-item span:first-child { font-size: 1.6rem; }
.wellness-item span:last-child { color: var(--forest-deep); font-family: var(--ff-display); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.2px; }

/* ==================== FLOATING CONTACT CARD ==================== */
.contact-float { background: var(--bg-white); border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.08); border: 1px solid var(--border-color); overflow: hidden; max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.contact-trust { padding: 3.5rem; background: var(--forest); color: white; display: flex; flex-direction: column; justify-content: center; }
.contact-trust h3 { font-family: var(--ff-display); font-size: 2.2rem; font-weight: 600; margin-bottom: 1.5rem; line-height: 1.2; }
.contact-trust p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.8; margin-bottom: 2rem; }
.trust-badge { display: flex; align-items: center; gap: 0.8rem; padding: 1rem; background: rgba(255,255,255,0.06); border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
.trust-badge-icon { width: 40px; height: 40px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.trust-badge-text { font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.trust-badge-text strong { color: white; display: block; }
.contact-form-side { padding: 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.contact-form-side h3 { font-family: var(--ff-display); font-size: 2rem; font-weight: 600; color: var(--forest); margin-bottom: 0.5rem; }
.contact-form-side p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.form-input { width: 100%; padding: 1rem 1.2rem; margin-bottom: 1rem; border: 1.5px solid #e8e8e8; border-radius: 10px; font-family: var(--ff-body); font-size: 0.95rem; background: #fafafa; transition: all 0.3s; }
.form-input:focus { outline: none; border-color: var(--gold); background: white; box-shadow: 0 0 0 3px rgba(200,155,60,0.1); }
.btn-full { width: 100%; }

/* ==================== CONTACT INFO BOXES ==================== */
.contact-boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 3rem; }
.contact-box { background: var(--bg-cream); padding: 1.5rem; border-radius: 12px; display: flex; align-items: center; gap: 1.2rem; border: 1px solid var(--border-color); transition: all 0.3s; }
.contact-box:hover { transform: translateX(5px); border-color: var(--gold); }
.contact-box-icon { width: 44px; height: 44px; background: var(--forest); color: var(--gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }

/* ==================== LISTS ==================== */
.bullet-list { list-style: none; }
.bullet-list li { position: relative; padding-left: 1.8rem; margin-bottom: 1rem; line-height: 1.6; }
.bullet-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--gold); border-radius: 2px; transform: rotate(45deg); }

/* ==================== FOOTER ==================== */
.footer { background: linear-gradient(135deg, #071912 0%, #0c241a 100%); color: #666; text-align: center; padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }

/* Footer Social Links */
.footer-socials { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-social-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.4rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600; font-family: var(--ff-body); text-decoration: none; transition: all 0.3s ease; }
.footer-social-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.footer-social-fb { background: #1877F2; color: #fff; }
.footer-social-wa { background: #25D366; color: #fff; }
.footer-social-link:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); filter: brightness(1.1); }

/* Floating Social Buttons */
.floating-socials { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; z-index: 9000; opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.4s ease; }
.floating-socials.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,0.25); transition: all 0.3s ease; animation: floatPulse 2s ease-in-out infinite; }
.float-btn:hover { transform: scale(1.15) translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.float-wa { background: #25D366; color: #fff; animation-delay: 0s; }
.float-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; animation-delay: 0.3s; }
.float-fb { background: #1877F2; color: #fff; animation-delay: 0.6s; }
@keyframes floatPulse { 0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.25); } 50% { box-shadow: 0 8px 28px rgba(0,0,0,0.35); } }

/* ==================== ANIMATIONS ==================== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.svg-icon { width: 44px; height: 44px; stroke: #E5A93C; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.2rem; filter: drop-shadow(0 0 8px rgba(229,169,60,0.4)); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .grid-2, .grid-3, .grid-4, .crop-showcase, .split-compare, .contact-float, .contact-boxes { grid-template-columns: 1fr; }
    .bento-pillars-dark, .bento-ops, .bento-crops { grid-template-columns: 1fr; }
    .bento-pillars-dark > *, .bento-ops > *, .bento-crops > * { grid-column: auto !important; grid-row: auto !important; }
    .crop-showcase.reverse { direction: ltr; }
    .hero-title { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
    .split-conventional { border-right: none; border-bottom: 3px solid var(--border-color); }
    .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(244, 242, 234, 0.95); backdrop-filter: blur(20px) saturate(180%); padding: 1.5rem; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); box-shadow: 0 10px 20px rgba(0,0,0,0.05); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all 0.3s ease; }
    .nav-links.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 100; }
    .menu-toggle span { width: 24px; height: 2px; background: var(--forest); transition: all 0.3s ease; transform-origin: left center; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); }
}
@media (max-width: 600px) {
    .section { padding: 4rem 0; }
    .hero-features { flex-direction: column; gap: 0.8rem; align-items: center; }
    .hero-title { font-size: 2.8rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .crop-image img { height: 350px; }
    .crop-bento-card { height: 280px; }
    .crop-title { font-size: 2.2rem; }
    .contact-trust, .contact-form-side { padding: 2.5rem; }
    .bento-item-dark, .bento-item, .card { padding: 1.5rem; }
    .timeline-item { gap: 1rem; }

    /* Mobile: hide inline tables, show open buttons */
    .table-wrapper { display: none; }
    .table-open-btn { display: flex !important; }

    /* Oversized Numbers Fix */
    .stat-value { font-size: 1.5rem; }
    .highlight { font-size: 1.8rem; }
    .yield-list li { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .yield-list li span:last-child { font-size: 1.1rem; }
    .yield-total { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ==================== TABLE VIEWER BUTTON ==================== */
.table-open-btn {
    display: none; /* hidden on desktop by default */
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    letter-spacing: 0.3px;
}
.table-open-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(0,0,0,0.2); }
.table-open-btn:active { transform: scale(0.98); }
.table-open-btn svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 2; }

/* ==================== TABLE VIEWER MODAL ==================== */
.table-viewer-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}
.table-viewer-modal.active { opacity: 1; pointer-events: all; }
.table-viewer-close {
    position: fixed; top: 1rem; right: 1rem;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15); border: none; border-radius: 50%;
    color: #fff; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10001; transition: background 0.3s;
}
.table-viewer-close:hover { background: rgba(255,255,255,0.3); }
.table-viewer-hint {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.5); font-size: 0.8rem; font-family: var(--ff-body);
    z-index: 10001; pointer-events: none;
    animation: hintFade 3s ease forwards;
}
@keyframes hintFade { 0%,70% { opacity: 1; } 100% { opacity: 0; } }
.table-viewer-content {
    width: 100%; height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: flex; align-items: flex-start; justify-content: flex-start;
    touch-action: pan-x pan-y pinch-zoom;
}
.table-viewer-content table {
    margin: 2rem auto;
    min-width: 800px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform-origin: center top;
}

/* ==================== VIDEO MODAL & PLAY BUTTONS ==================== */
.process-card { position: relative; padding-bottom: 4rem; }
.play-btn { position: absolute; bottom: 1.5rem; right: 1.5rem; width: 40px; height: 40px; background: var(--gold); color: var(--forest-deep); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(200, 155, 60, 0.3); }
.play-btn svg { width: 18px; height: 18px; margin-left: 3px; }
.play-btn:hover { transform: scale(1.1); background: var(--forest); color: var(--gold); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }

.video-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(8px); }
.video-modal.active { opacity: 1; pointer-events: auto; }
.video-modal-content { position: relative; width: auto; max-width: 480px; max-height: 90vh; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); aspect-ratio: 9 / 16; }
.video-modal video { width: 100%; height: 100%; object-fit: cover; }
.close-modal-btn { position: absolute; top: 20px; right: 30px; background: transparent; border: none; color: white; font-size: 2.5rem; cursor: pointer; z-index: 10000; transition: transform 0.3s; }
.close-modal-btn:hover { transform: scale(1.1); }

/* ==================== PROJECT TIMELINE ==================== */
#project-timeline {
    background: #0A1C14;
    color: var(--text-light);
    overflow: hidden;
}
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(212, 175, 55, 0.15);
    transform: translateX(-50%);
}
.timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--gold);
    box-shadow: 0 0 15px var(--gold);
    transition: height 0.1s linear;
}
.timeline-node {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-node.active {
    opacity: 1;
    transform: translateY(0);
}
.timeline-node::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0A1C14;
    border: 3px solid rgba(212, 175, 55, 0.5);
    z-index: 2;
    transition: all 0.4s ease;
}
.timeline-node.active::after {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold);
}
.timeline-node.left {
    justify-content: flex-start;
}
.timeline-node.right {
    justify-content: flex-end;
}
.timeline-node-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.timeline-node-content:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}
.timeline-phase {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-family: var(--ff-display);
}
.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.timeline-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}
.timeline-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 1.2rem;
    top: -2px;
}
.timeline-list li strong {
    color: #ffffff;
    font-weight: 600;
}
.timeline-node-content::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
}
.timeline-node.left .timeline-node-content::before {
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent rgba(212, 175, 55, 0.3);
}
.timeline-node.right .timeline-node-content::before {
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent rgba(212, 175, 55, 0.3) transparent transparent;
}
.timeline-node-content:hover::before {
    /* Optional: match border highlight on hover, requires separate rules */
}
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    .timeline-node::after {
        left: 30px;
    }
    .timeline-node.left, .timeline-node.right {
        justify-content: flex-end;
    }
    .timeline-node-content {
        width: calc(100% - 70px);
    }
    .timeline-node.left .timeline-node-content::before,
    .timeline-node.right .timeline-node-content::before {
        left: -15px;
        right: auto;
        border-width: 15px 15px 15px 0;
        border-color: transparent rgba(212, 175, 55, 0.3) transparent transparent;
    }
}

/* ==================== FLOATING BACK BUTTON ==================== */
.floating-back-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--forest);
    transition: all 0.3s ease;
}
.floating-back-btn:hover {
    transform: translateY(-3px);
    background: var(--gold-pale);
    color: var(--forest-deep);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.floating-back-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (max-width: 768px) {
    .floating-back-btn {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Fix for iOS Safari background-attachment: fixed bug */
    .hero {
        background-attachment: scroll;
    }
}

/* ==================== CUSTOM OVERRIDES: PILLARS & HOW IT WORKS ==================== */

/* Five Pillars Overhaul */
.bento-pillars-dark {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.5rem !important;
}
.bento-pillars-dark > div {
    flex: 1 1 calc(33.333% - 1.5rem) !important;
    min-width: 280px !important;
    max-width: 400px !important;
}
div:has(> .bento-pillars-dark) {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 7rem;
    margin-bottom: -7rem; /* cancel out section padding */
}
div:has(> .bento-pillars-dark)::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-50vw + 50%);
    width: 100vw;
    background-color: #0A1C14;
    z-index: -1;
}
div:has(> .bento-pillars-dark) h3.section-title {
    color: #D4AF37 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.bento-item-dark {
    background: #112B1F !important;
    padding: 32px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #E5E7EB !important;
    justify-content: flex-start !important;
}
.bento-item-dark:hover {
    border-color: rgba(212,175,55,0.4) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important;
}
.bg-number {
    position: absolute !important;
    top: 32px !important;
    left: 32px !important;
    bottom: auto !important;
    right: auto !important;
    font-size: 2.5rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    color: #D4AF37 !important;
    opacity: 1 !important;
}
.bento-item-dark .bento-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #D4AF37 !important;
    margin-top: 3.5rem !important;
    margin-bottom: 1rem !important;
}
.bento-item-dark .bento-desc {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #9CA3AF !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}
.bento-item-dark svg {
    display: none !important;
}

/* How It Works Overhaul */
#model {
    background-color: #0A1C14 !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}
#model .section-label span {
    color: #D4AF37 !important;
}
#model .label-line {
    background: #D4AF37 !important;
}
#model .section-title {
    color: #D4AF37 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
#model .timeline-content {
    background: #112B1F !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    padding: 32px !important;
}
#model .timeline-number {
    background: transparent !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    color: #D4AF37 !important;
    box-shadow: none !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
#model .timeline-content h4 {
    color: #D4AF37 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    margin-bottom: 0.8rem !important;
}
#model .timeline-content p {
    color: #9CA3AF !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    line-height: 1.6 !important;
}
#model .timeline-track {
    background: rgba(255, 255, 255, 0.08) !important;
}
#model .timeline-progress-bar {
    background: #D4AF37 !important;
}

/* Vision & Mission Overhaul */
#profile {
    background-color: #0A1C14 !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}
#profile .section-label span {
    color: #D4AF37 !important;
}
#profile .label-line {
    background: #D4AF37 !important;
}
#profile .section-title {
    color: #D4AF37 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
#profile .section-desc {
    color: #9CA3AF !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
#profile .card {
    background: #112B1F !important;
    padding: 32px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #E5E7EB !important;
}
#profile .card:hover {
    border-color: rgba(212,175,55,0.4) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important;
}
#profile .card-title {
    color: #D4AF37 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    margin-bottom: 1.5rem !important;
}
#profile .card p, #profile .bullet-list li {
    color: #9CA3AF !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    line-height: 1.6 !important;
}
#profile .bullet-list li strong {
    color: #E5E7EB !important;
    font-weight: 600 !important;
}
#profile .card-icon {
    display: none !important;
}

/* Remove Conventional Plantation Box */
.split-conventional {
    display: none !important;
}
.split-compare {
    grid-template-columns: 1fr !important;
}

/* Click Suggestion Overlay */
.click-suggestion {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 1.5rem !important;
    font-weight: 500 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.crop-bento-card:hover .click-suggestion {
    opacity: 1;
    color: #D4AF37 !important;
}

/* High-Value Crops Title Pop */
.crop-bento-content h4 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    color: #D4AF37 !important;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8), 0px 1px 3px rgba(0,0,0,0.5) !important;
    letter-spacing: 0.5px !important;
}

/* =====================================================
   MASTER LAYOUT SECTION
   ===================================================== */

/* Badges Row */
.ml-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}
.ml-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 50px;
    color: #D4AF37;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Interactive Diagram Container */
.ml-diagram-outer {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 0 0 30px; /* Space for external dimensions */
}

.ml-dim-top {
    position: absolute;
    top: 0;
    left: 30px;
    right: 0;
    text-align: center;
    color: #E5E7EB;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.ml-dim-left {
    position: absolute;
    top: 30px;
    bottom: 0;
    left: 0;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-dim-text {
    transform: rotate(-90deg);
    white-space: nowrap;
    color: #E5E7EB;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

#interactive-farm-layout {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/red_soil.jpg') center/cover repeat;
    border-radius: 20px;
    position: relative;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8), 0 15px 40px rgba(0,0,0,0.5);
    padding: 20px; /* thickness of the hedge */
}

/* Hedge Border */
.ml-hedge {
    border: 15px solid #145A32;
    border-radius: 12px;
    background-color: transparent;
    border-image: repeating-linear-gradient(45deg, #145A32, #145A32 10px, #0B3A1F 10px, #0B3A1F 20px) 15;
    position: relative;
    padding: 2.5rem 1rem 1rem 1rem;
    aspect-ratio: 16 / 9;
}

/* Field Contents */
.ml-field-grid {
    display: flex;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Columns */
.ml-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 100%;
}

.ml-vine-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: rgba(255,255,255,0.15);
    z-index: 1;
}

/* Gaps */
.ml-gap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.ml-gap.gap-wide {
    flex: 1.5; /* 8ft gap is wider than 7ft gap */
}

.ml-gap-arrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    margin-bottom: 10px;
    white-space: nowrap;
    position: absolute;
    top: -20px;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}
.ml-gap-arrow.blue { color: #85C1E9; }
.ml-gap-arrow.red { color: #F1948A; }

/* Kantola Line */
.ml-kantola-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding-top: 15px;
}

/* Crop Markers */
.cm {
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent; /* Hide text */
    z-index: 5;
    background-color: transparent !important;
    border: none !important;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1.25) saturate(1.2) drop-shadow(0 0 2px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.3)) drop-shadow(0 8px 6px rgba(0,0,0,0.6));
    transition: opacity 0.3s ease, transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.cm:hover {
    transform: scale(1.2);
    z-index: 10;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 1)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.6)) drop-shadow(0 8px 12px rgba(0,0,0,1)) brightness(1.15);
}

.cm.fade-out {
    opacity: 0.15;
    pointer-events: none;
    filter: grayscale(100%);
}

.cm-tp { background-image: url('assets/sprites/teak_pepper.png'); width: 100px; height: 100px; }
.cm-c { background-image: url('assets/sprites/coffee.png'); width: 45px; height: 45px; }
.cm-k { background-image: url('assets/sprites/kantola.png'); width: 60px; height: 60px; margin: 8px 0; }


/* Golden Gate */
.ml-gate-wrapper {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.ml-gate {
    display: flex;
    align-items: center;
    background: #0A1C14;
    padding: 0 5px;
}
.ml-gate-pillar {
    width: 14px;
    height: 35px;
    background: linear-gradient(90deg, #D4AF37, #F1C40F, #B7950B);
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
}
.ml-gate-door {
    width: 35px;
    height: 25px;
    border: 2px solid #D4AF37;
    background: repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(212,175,55,0.4) 4px, rgba(212,175,55,0.4) 6px);
}
.ml-gate-door.left { border-right: 1px solid #D4AF37; }
.ml-gate-door.right { border-left: 1px solid #D4AF37; }

/* Legend */
.farm-legend {
    position: absolute;
    bottom: 25px;
    right: 35px;
    background: rgba(10,25,18,0.95);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}
.farm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E5E7EB;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
}
.cm-dot {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.cm-tp-dot { background-image: url('assets/sprites/teak_pepper.png'); }
.cm-c-dot { background-image: url('assets/sprites/coffee.png'); }
.cm-k-dot { background-image: url('assets/sprites/kantola.png'); }

@media (max-width: 768px) {
    .cm-t { width: 40px; height: 40px; font-size: 0.7rem; }
    .cm-p { width: 30px; height: 30px; font-size: 0.6rem; }
    .cm-c { width: 30px; height: 30px; font-size: 0.6rem; }
    .cm-k { width: 20px; height: 20px; font-size: 0.5rem; }
    .ml-gap-arrow { font-size: 0.55rem; padding: 1px 4px; top: -15px; }
    .farm-legend { bottom: -10px; right: 10px; padding: 6px 10px; }
    .farm-legend-item { font-size: 0.7rem; }
    .cm-dot { width: 10px; height: 10px; }
    .ml-hedge { padding: 1.5rem 0.5rem 1rem 0.5rem; border-width: 10px; }
    .ml-dim-top { font-size: 0.75rem; left: 20px; }
    .ml-dim-left { width: 20px; }
    .ml-dim-text { font-size: 0.75rem; }
    .ml-diagram-outer { padding: 20px 0 0 20px; }
}

/* Toggle Buttons */
.ml-toggles {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.ml-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: #112B1F;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    color: #9CA3AF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.ml-toggle:hover {
    border-color: rgba(212,175,55,0.4);
    color: #E5E7EB;
}
.ml-toggle.active {
    border-color: #D4AF37;
    color: #D4AF37;
    background: rgba(212,175,55,0.08);
}
.ml-toggle-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Grid Layout */
.ml-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 4rem;
}

/* Column Title */
.ml-col-title {
    color: #D4AF37;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212,175,55,0.2);
}

/* Layer Cards */
.ml-layer-card {
    background: #112B1F;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ml-layer-card:hover {
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.ml-layer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.ml-layer-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}
.ml-layer-name {
    color: #E5E7EB;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}
.ml-layer-tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    color: #9CA3AF;
    font-weight: 500;
    margin-top: 0.25rem;
}
.ml-layer-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ml-layer-specs li {
    padding: 0.5rem 0;
    color: #9CA3AF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ml-layer-specs li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ml-layer-specs li strong {
    color: #E5E7EB;
    font-weight: 600;
}


.ml-disclaimer {
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    color: rgba(156,163,175,0.6);
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* Master Layout Mobile */
@media (max-width: 768px) {
    .ml-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .ml-diagram-outer {
        /* Mobile diagram styling */
    }
    #interactive-farm-layout {
        aspect-ratio: 1 / 1.1; /* slightly taller on mobile */
    }
    .ml-hedge {
        aspect-ratio: auto;
        height: 100%;
    }
    .farm-legend {
        top: 15px;
        right: 15px;
        bottom: auto;
        padding: 6px 10px;
    }
    .farm-legend-item {
        font-size: 0.75rem;
    }
    .mobile-hide {
        display: none !important;
    }
    .ml-badges {
        gap: 0.4rem;
    }
    .ml-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    .ml-toggles {
        gap: 0.5rem;
    }
    .ml-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}


/* ==================== HINDI TYPOGRAPHY OVERRIDES ==================== */
body.lang-hi {
    font-family: var(--ff-hi-body);
    line-height: 1.85;
    letter-spacing: 0.5px; /* Give Devanagari characters room to breathe */
}
body.lang-hi .hero-title,
body.lang-hi .section-title,
body.lang-hi .card-title,
body.lang-hi .bento-title,
body.lang-hi .ml-col-title,
body.lang-hi h1, body.lang-hi h2, body.lang-hi h3 {
    font-family: var(--ff-hi-display);
    letter-spacing: 0.8px;
}
body.lang-hi .hero-subtitle,
body.lang-hi .section-desc,
body.lang-hi .bento-desc,
body.lang-hi p, body.lang-hi li, body.lang-hi td {
    font-family: var(--ff-hi-body);
    letter-spacing: 0.5px;
}
body.lang-hi .logo-text {
    font-family: var(--ff-display); /* Keep logo in English font */
    letter-spacing: 1px;
}

/* ==================== LANGUAGE SPLASH SCREEN ==================== */
.lang-splash {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--forest-deep);
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(13,59,36,0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(200,155,60,0.05) 0%, transparent 50%);
    animation: splashFadeIn 0.6s ease-out;
}
@keyframes splashFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.lang-splash-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 20px rgba(200,155,60,0.3));
    animation: splashLogoIn 0.8s ease-out 0.2s both;
}
@keyframes splashLogoIn {
    from { opacity: 0; transform: scale(0.7) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.lang-splash-brand {
    font-family: var(--ff-display);
    font-size: 2.8rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    animation: splashTextIn 0.8s ease-out 0.4s both;
}
.lang-splash-tagline {
    font-family: var(--ff-body);
    font-size: 1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 3.5rem;
    animation: splashTextIn 0.8s ease-out 0.5s both;
}
@keyframes splashTextIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lang-splash-prompt {
    font-family: var(--ff-body);
    font-size: 0.9rem;
    color: rgba(248,247,242,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.8rem;
    animation: splashTextIn 0.8s ease-out 0.6s both;
}
.lang-splash-options {
    display: flex;
    gap: 2rem;
    animation: splashTextIn 0.8s ease-out 0.7s both;
}
.lang-splash-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 120px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.lang-splash-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(200,155,60,0.08), rgba(200,155,60,0.02));
    opacity: 0;
    transition: opacity 0.4s;
}
.lang-splash-btn:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(200,155,60,0.15);
}
.lang-splash-btn:hover::before {
    opacity: 1;
}
.lang-splash-btn .lang-label {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}
.lang-splash-btn .lang-label-hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
}
.lang-splash-btn:hover .lang-label {
    color: var(--gold);
}
.lang-splash-btn .lang-sub {
    font-family: var(--ff-body);
    font-size: 0.75rem;
    color: rgba(248,247,242,0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}
.lang-splash-close {
    display: none; /* hidden by default, shown via JS after selection */
}

/* Splash fade-out animation */
.lang-splash.fade-out {
    animation: splashFadeOut 0.5s ease-in forwards;
}
@keyframes splashFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; pointer-events: none; }
}

/* ==================== NAVBAR LANGUAGE TOGGLE ==================== */
.nav-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(200,155,60,0.3);
    border-radius: 8px;
    color: var(--gold);
    font-family: var(--ff-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    white-space: nowrap;
}
.nav-lang-toggle:hover {
    background: rgba(200,155,60,0.1);
    border-color: var(--gold);
}
.nav-lang-toggle svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

@media (max-width: 768px) {
    .lang-splash-options {
        flex-direction: column;
        gap: 1rem;
    }
    .lang-splash-btn {
        width: 240px;
        height: 100px;
    }
    .lang-splash-brand {
        font-size: 2rem;
    }
}
