/* Shivay Energy and Foods LLP. Colours taken from the company logo. */
:root {
  --green: #14401f;       /* logo text green */
  --green-2: #1f5a2c;
  --leaf: #4b9b2c;        /* logo leaf green */
  --earth: #7a4a24;       /* logo brown */
  --sand: #f6f2ea;
  --text: #1e2a22;
  --muted: #5b675f;
  --line: #e1dccf;
  --white: #fff;
  --font-head: "Montserrat", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--font-body); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green); line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 4px; font: 600 .95rem/1.2 var(--font-head); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s; }
.btn--sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn--primary { background: var(--leaf); color: var(--white); }
.btn--primary:hover { background: #3f8524; }
.btn--light { background: var(--white); color: var(--green); }
.btn--light:hover { background: var(--sand); }
.btn--outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: var(--white); }

/* Top bar */
.topbar { background: var(--green); color: rgba(255,255,255,.85); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar__links { display: flex; gap: 1.4rem; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.nav.is-scrolled { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand__logo { height: 58px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__menu a:not(.btn) { color: var(--text); text-decoration: none; font: 600 .92rem/1 var(--font-head); padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav__menu a:not(.btn):hover, .nav__menu a.is-active { color: var(--leaf); border-bottom-color: var(--leaf); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--green); transition: transform .2s, opacity .2s; }
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: linear-gradient(rgba(14, 40, 20, .78), rgba(14, 40, 20, .78)), url("../img/photo-harvest.jpg") center 60% / cover no-repeat;
  color: var(--white); padding: clamp(80px, 11vw, 140px) 0 clamp(110px, 13vw, 170px);
}
.hero__inner { max-width: 760px; margin-left: max(16px, calc((100% - 1160px) / 2)); }
.hero__label { display: inline-block; font: 600 .82rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: #cfe9bf; border-left: 3px solid var(--leaf); padding-left: .7rem; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; margin: .8rem 0 1rem; }
.hero__text { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Key specs strip (overlaps hero) */
.keyspecs { list-style: none; margin: -60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--leaf); box-shadow: 0 10px 30px rgba(0,0,0,.08); position: relative; }
.keyspecs li { padding: 1.5rem 1.4rem; }
.keyspecs li + li { border-left: 1px solid var(--line); }
.keyspecs strong { display: block; font: 700 1.5rem/1.2 var(--font-head); color: var(--green); }
.keyspecs span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: clamp(64px, 8vw, 100px) 0; }
.section--sand { background: var(--sand); }
.label { font: 700 .8rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--earth); margin-bottom: .8rem; }
.head { max-width: 720px; margin-bottom: 2.4rem; }
.head p:last-child { color: var(--muted); }
.note { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.sub { font-size: 1.35rem; margin: 3.5rem 0 1.4rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.about__photo figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.about__text > p { color: #3a463e; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--leaf); }
.ticks li::after { content: ""; position: absolute; left: .38rem; top: .55em; width: .3rem; height: .55rem; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks strong { color: var(--green); }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.product img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product__body { padding: 1.3rem 1.4rem 1.5rem; }
.product__body p { color: var(--muted); margin: 0; }
.product-more { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 64px); margin-top: 3rem; }
.plain-list { margin: 0; padding-left: 1.2rem; }
.plain-list li { margin-bottom: .4rem; }
.plain-list li::marker { color: var(--leaf); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
.spec th, .spec td { text-align: left; padding: .7rem 1rem; border: 1px solid var(--line); }
.spec th { font-weight: 400; color: var(--muted); width: 45%; }
.spec td { font-weight: 600; }
.apps { margin-top: 2.6rem; padding: 1.5rem 1.6rem; background: var(--white); border-left: 4px solid var(--earth); }
.apps p { margin: 0; color: #3a463e; }

/* Environment */
.env { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.env__text > p { color: #3a463e; }
.env__photo { margin: 0; }
.env__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.benefits { margin: 1.6rem 0 0; }
.benefits dt { font: 700 1rem/1.3 var(--font-head); color: var(--green); padding-left: 1.2rem; position: relative; margin-top: 1.1rem; }
.benefits dt::before { content: ""; position: absolute; left: 0; top: .35em; width: .55rem; height: .55rem; background: var(--leaf); border-radius: 50% 0; }
.benefits dd { margin: .25rem 0 0 1.2rem; color: var(--muted); }

.carbon { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc { background: var(--sand); border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem; }
.calc label { display: block; font-weight: 600; margin-bottom: .5rem; }
.range { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.range input { flex: 1; accent-color: var(--leaf); cursor: pointer; }
.range output { min-width: 76px; text-align: center; padding: .35rem .6rem; border: 1px solid var(--line); background: var(--white); border-radius: 4px; font-weight: 600; }
.calc__out th, .calc__out td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.calc__out th { color: var(--muted); }
.calc__out td { text-align: right; white-space: nowrap; }
.calc__out strong { font: 700 1.25rem/1 var(--font-head); color: var(--green); }
.compare th, .compare td { padding: .8rem 1rem; border: 1px solid var(--line); text-align: left; }
.compare thead th { background: var(--green); color: var(--white); font-family: var(--font-head); font-size: .9rem; }
.compare tbody th { font-weight: 600; color: var(--text); width: 36%; }
.compare td { color: var(--muted); }
.compare td.good { color: var(--green-2); font-weight: 600; background: #f2f8ee; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--earth); padding-top: 1rem; }
.steps li::before { content: "Step " counter(step); display: block; font: 700 .78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--earth); margin-bottom: .6rem; }
.steps h4 { margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Team */
.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team li { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; }
.team h3 { margin-bottom: .2rem; }
.role { font-weight: 600; font-size: .92rem; color: var(--earth); }
.team li p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__info > p { color: #3a463e; }
.contact__list { margin: 1.6rem 0 0; }
.contact__list dt { font: 700 .8rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--earth); margin-top: 1.4rem; }
.contact__list dd { margin: .4rem 0 0; font-size: 1.05rem; }
.contact__list a { color: var(--green); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { text-decoration: underline; }
.contact__list address { font-style: normal; }
.contact__list .directions { display: inline-block; margin-top: .4rem; font-size: .95rem; color: var(--leaf); }

.form { background: var(--sand); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.4rem, 3vw, 2rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .85rem; border: 1px solid #cbc4b3; border-radius: 4px; background: var(--white); font: 400 1rem/1.4 var(--font-body); color: var(--text); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(75,155,44,.2); }
.field input[aria-invalid="true"] { border-color: #b42318; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__error { color: #b42318; font-weight: 600; font-size: .92rem; min-height: 1.2em; margin: 0 0 .4rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: .6rem; }

.map { margin-top: 56px; height: 360px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.footer { background: var(--green); color: rgba(255,255,255,.8); font-size: .95rem; padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer h4 { color: var(--white); font-size: .95rem; margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .45rem; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__logo { display: inline-block; background: var(--white); border-radius: 4px; padding: 8px 12px; margin-bottom: 1rem; }
.footer__logo img { height: 52px; width: auto; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.1rem 0; font-size: .88rem; }
.footer__bottom p { margin: 0; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 1000px) {
  .about, .env, .carbon, .contact, .product-more { grid-template-columns: 1fr; }
  .env__photo img { aspect-ratio: 16 / 9; }
  .team, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar__inner > span:first-child { display: none; }
  .topbar__inner { justify-content: center; }
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 0 16px 16px; display: none; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .nav__menu a:not(.btn):hover, .nav__menu a.is-active { border-bottom-color: var(--line); }
  .nav__menu .btn { margin-top: 1rem; text-align: center; }
  .brand__logo { height: 48px; }
  .nav__inner { height: 70px; }
  .products { grid-template-columns: 1fr; }
  .keyspecs { grid-template-columns: 1fr 1fr; }
  .keyspecs li:nth-child(3) { border-left: 0; }
  .keyspecs li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar__links { gap: .8rem; font-size: .8rem; }
  .team, .steps, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .keyspecs li { padding: 1.1rem 1rem; }
  .keyspecs strong { font-size: 1.2rem; }
  .map { height: 280px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
