/* Molalugi Investments: public site */

:root {
  --gold: #b8862b;
  --gold-light: #e9c46a;
  --gold-dark: #7a5212;
  --gold-soft: #f7efdf;
  --ink: #141414;
  --ink-2: #2a2622;
  --muted: #625a50;
  --line: #ebe2d2;
  --cream: #fdfaf4;
  --white: #fff;
  --wa: #1fa855;
  --radius: 16px;
  --shadow: 0 2px 4px rgba(20, 20, 20, .04), 0 12px 32px rgba(20, 20, 20, .08);
  --serif: 'Georgia', 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--cream); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: .6em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em;
  border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark)); color: var(--ink); box-shadow: 0 6px 18px rgba(184, 134, 43, .35); }
.btn--gold:hover { box-shadow: 0 8px 24px rgba(184, 134, 43, .5); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #2b2b2b; }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #1a9449; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 46px; width: auto; }
.nav { display: none; gap: 26px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--gold-dark); }
.header-call { display: none; }
@media (min-width: 900px) { .nav { display: flex; } .header-call { display: inline-flex; } .brand img { height: 52px; } }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .menu-btn { display: none; } }
.mobile-nav { border-top: 1px solid var(--line); background: var(--white); }
.mobile-nav a { display: block; padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }

/* sections */
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 80px 0; } }
.section--dark { background: var(--ink); color: #eee6d8; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .muted { color: #bfb4a2; }
.section-head { max-width: 640px; margin-bottom: 32px; }

.steps { display: grid; gap: 18px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { border: 1px solid #3a342c; border-radius: var(--radius); padding: 24px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 800; margin-bottom: 14px; }

.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--gold-dark); margin-top: 3px; }
.contact-list strong { display: block; }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map { border: 0; width: 100%; min-height: 340px; height: 100%; border-radius: var(--radius); background: var(--gold-soft); }

/* legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }

/* footer */
.site-footer { background: #0d0d0d; color: #b9ae9c; padding: 40px 0 28px; font-size: .92rem; }
.site-footer a { color: #e9d6ac; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: var(--white); font-size: 1rem; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-base { border-top: 1px solid #2a2722; margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- hero with the hatching egg ---------- */
.hero { position: relative; overflow: hidden; background: #0e0c09; color: #efe6d6; padding: 44px 0 36px; }
.hero-bg { position: absolute; inset: 0; background: url('/assets/img/farm/broiler-house.jpg') center / cover; opacity: .28; filter: saturate(.7); transform: scale(1.08); animation: drift 24s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 420px at 75% 50%, rgba(233, 196, 106, .18), transparent 70%), linear-gradient(90deg, #0e0c09 15%, rgba(14, 12, 9, .55) 60%, rgba(14, 12, 9, .8)); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 8px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 64px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 40px; } }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4rem); }
.hero h1 span { display: block; background: linear-gradient(135deg, #f3dc9a, var(--gold-light) 30%, var(--gold) 70%, #d9a842); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: #d6ccbb; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.hero-art { position: relative; text-align: center; }
.hatch-btn { display: block; width: 100%; max-width: 460px; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; }
.hatch { width: 100%; height: auto; overflow: visible; }
.hatch-hint { margin: 0; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: #a69a85; opacity: 0; animation: fade-in .6s 4.6s forwards; }

.rise { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.d0 { --d: 0; } .d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; }
.rise { animation-delay: calc(var(--d, 0) * .12s + .1s); }

/* The egg's story, all in one 4.4s timeline. */
.hatch .h-egg, .hatch .h-shadow, .hatch .h-top, .hatch .h-chick, .hatch .h-crack, .hatch .h-sparks, .hatch .h-glow { transform-box: fill-box; transform-origin: center; }
.hatch .h-egg { transform-origin: 50% 100%; }
.hatch .h-crack { stroke-dasharray: 220; stroke-dashoffset: 220; }
.hatch .h-chick { transform: translateY(14px); }
.hatch .h-sparks { opacity: 0; }
.hatch .h-glow { opacity: .4; }
.hatch.play .h-egg { animation: roll-in 1.3s cubic-bezier(.25, .8, .3, 1) both, wobble .9s 1.4s ease-in-out both; }
.hatch.play .h-shadow { animation: shadow-in 1.3s cubic-bezier(.25, .8, .3, 1) both; }
.hatch.play .h-crack { animation: crack .5s 2.2s ease-out forwards, fade-out .2s 2.85s forwards; }
.hatch.play .h-top { animation: pop-top 1.1s 2.8s cubic-bezier(.3, .6, .4, 1) forwards; }
.hatch.play .h-chick { animation: chick-up .7s 2.95s cubic-bezier(.3, 1.6, .5, 1) forwards, bob 2.4s 3.8s ease-in-out infinite; }
.hatch.play .h-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4s 4s infinite; }
.hatch.play .h-wing { transform-box: fill-box; transform-origin: 80% 20%; animation: flap .25s 3.3s 6 alternate ease-in-out; }
.hatch.play .h-wing--r { transform-origin: 20% 20%; animation-name: flap-r; }
.hatch.play .h-sparks { animation: sparks 1.2s 2.9s ease-out forwards; }
.hatch.play .h-glow { animation: glow 3s 3s ease-in-out infinite alternate; }

@keyframes roll-in { from { transform: translateX(-130%) rotate(-560deg); } to { transform: none; } }
@keyframes shadow-in { from { transform: translateX(-130%) scaleX(.6); opacity: 0; } to { transform: none; opacity: .35; } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-9deg); } 35% { transform: rotate(8deg); } 55% { transform: rotate(-6deg); } 75% { transform: rotate(4deg); } }
@keyframes crack { to { stroke-dashoffset: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pop-top { 0% { transform: none; } 35% { transform: translate(40px, -95px) rotate(35deg); } 100% { transform: translate(128px, 112px) rotate(165deg) scale(.62); } }
@keyframes chick-up { to { transform: translateY(-46px); } }
@keyframes bob { 0%, 100% { transform: translateY(-46px) rotate(0); } 50% { transform: translateY(-52px) rotate(-3deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes flap { to { transform: rotate(-28deg); } }
@keyframes flap-r { to { transform: rotate(28deg); } }
@keyframes sparks { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes glow { to { opacity: .9; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: scale(1.16) translateX(-2%); } }

/* ---------- gold ticker ---------- */
.ticker { background: linear-gradient(90deg, var(--gold-dark), var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, var(--gold-dark)); color: var(--ink); overflow: hidden; white-space: nowrap; border-block: 1px solid #5c3f0e; }
.ticker-track { display: inline-flex; animation: ticker 38s linear infinite; }
.ticker span { padding: 12px 22px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
.ticker span::after { content: '\2022'; margin-left: 44px; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- products ---------- */
.products { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .products { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .products { grid-template-columns: repeat(4, 1fr); } }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-6px); box-shadow: 0 4px 8px rgba(20, 20, 20, .05), 0 22px 44px rgba(20, 20, 20, .14); }
.product-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--gold-soft); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product-img img { transform: scale(1.07); }
.product-body { position: relative; padding: 38px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product .icon { position: absolute; top: -30px; left: 20px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--white); display: grid; place-items: center; color: var(--ink); background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 6px 14px rgba(122, 82, 18, .3); }
.product .icon svg { width: 30px; height: 30px; }
.product p { color: var(--muted); flex: 1; }
.product .ask { font-weight: 700; text-decoration: none; }
.product .ask span { display: inline-block; transition: transform .2s; }
.product .ask:hover span { transform: translateX(4px); }

/* ---------- egg-to-chick journey ---------- */
.section--cream { background: linear-gradient(180deg, var(--cream), var(--gold-soft)); }
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; position: relative; }
@media (min-width: 800px) {
  .journey { grid-template-columns: repeat(4, 1fr); }
  .journey::before { content: ''; position: absolute; top: 38px; left: 12%; right: 12%; height: 3px; background: linear-gradient(90deg, var(--gold-light), var(--gold-dark)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s .3s ease; }
  .journey.in::before { transform: scaleX(1); }
}
.journey li { text-align: center; position: relative; }
.j-icon { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 50%; background: var(--ink); color: var(--gold-light); border: 3px solid var(--gold); position: relative; z-index: 1; }
.j-icon svg { width: 38px; height: 38px; }
.journey p { color: var(--muted); max-width: 18em; margin: 0 auto; }

/* ---------- photo banner ---------- */
.banner { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 96px 0; }
.banner-bg { position: absolute; inset: -10% 0; background: url('/assets/img/farm/broiler-house.jpg') center / cover; }
@media (min-width: 900px) { .banner-bg { background-attachment: fixed; } }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 5, .72), rgba(10, 8, 5, .55)); }
.banner .wrap { position: relative; z-index: 1; max-width: 760px; }
.banner h2 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.banner p { color: #e6dccb; font-size: 1.1rem; }

/* ---------- gallery + lightbox ---------- */
.gallery { columns: 2 160px; column-gap: 12px; }
@media (min-width: 900px) { .gallery { columns: 4; column-gap: 14px; } }
.g-item { margin: 0 0 12px; break-inside: avoid; border-radius: 12px; overflow: hidden; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: var(--gold-soft); cursor: zoom-in; overflow: hidden; }
.g-open img { width: 100%; height: auto; transition: transform .5s, filter .5s; }
.g-open:hover img { transform: scale(1.06); filter: brightness(1.06); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 6, 4, .88); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox p { color: #eee3cf; text-align: center; margin: 10px 0 0; }
.lb-close { position: absolute; top: -14px; right: -6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * .1s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ticker-track { animation: none; }
  .hero-bg { animation: none; }
}
