/* Sycamore Agritech — site styles */

:root {
  /* Brand colours from the logo: green #083e1f, leaf #115729, gold #a88a3c, grey #464646 */
  --green-950: #052715;
  --green-900: #083e1f;
  --green-800: #0d4a25;
  --green-700: #115729;
  --green-500: #3d7a4c;
  --green-100: #d6e6d8;
  --green-50: #edf4ee;
  --wheat-500: #a88a3c;
  --wheat-300: #c9a94f;
  --wheat-100: #f3ead2;
  --grey: #464646;
  --cream: #f7f5ef;
  --paper: #fffefb;
  --ink: #1d221e;
  --muted: #59625b;
  --line: #e3ded1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(8, 62, 31, .06), 0 10px 30px rgba(8, 62, 31, .09);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --wrap: 1160px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Multilingual: show only the active language (zh / en / fr / pt) */
html:not([data-lang="zh"]) [lang="zh-CN"],
html:not([data-lang="en"]) [lang="en"],
html:not([data-lang="fr"]) [lang="fr"],
html:not([data-lang="pt"]) [lang="pt"] { display: none !important; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-900);
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.01em; margin-bottom: .6em; }
h3 { font-size: 1.15rem; margin-bottom: .4em; }
html[data-lang="zh"] h1,
html[data-lang="zh"] h2 { letter-spacing: .03em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: var(--header-h); }

.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-500);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--wheat-500); flex: none; }

.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-800); color: var(--paper); }
.btn-primary:hover { background: var(--green-700); }
.btn-gold { background: var(--wheat-300); color: var(--green-950); }
.btn-gold:hover { background: #d8b95d; }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--green-900); }

:focus-visible { outline: 2px solid var(--wheat-500); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 239, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(8, 62, 31, .05); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-text { display: inline-flex; flex-direction: column; gap: 5px; }
.brand-word { width: auto; height: 20px; }
.brand-sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 9.5px; font-weight: 600; line-height: 1;
  letter-spacing: .3em; text-transform: uppercase; white-space: nowrap;
  color: var(--grey);
}
.brand-sub span { margin-right: -.3em; }
.brand-sub::before, .brand-sub::after { content: ""; flex: 1; height: 1.5px; background: var(--wheat-500); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: 999px;
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--green-50); color: var(--green-800); }
.nav a.nav-cta { background: var(--green-800); color: var(--paper); margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--green-700); }

/* Language menu */
.lang { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--green-900); cursor: pointer;
}
.lang-btn:hover { border-color: var(--green-500); }
.lang-btn .icon { width: 17px; height: 17px; color: var(--green-500); }
.lang-btn .chev { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lc { display: none; }
html[data-lang="zh"] .lc-zh, html[data-lang="en"] .lc-en,
html[data-lang="fr"] .lc-fr, html[data-lang="pt"] .lc-pt { display: inline; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 160px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 9px 12px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: .95rem; color: var(--ink); text-align: left; cursor: pointer;
}
.lang-menu button:hover { background: var(--green-50); }
html[data-lang="zh"] .lang-menu [data-set-lang="zh"],
html[data-lang="en"] .lang-menu [data-set-lang="en"],
html[data-lang="fr"] .lang-menu [data-set-lang="fr"],
html[data-lang="pt"] .lang-menu [data-set-lang="pt"] { font-weight: 600; color: var(--green-800); }
html[data-lang="zh"] .lang-menu [data-set-lang="zh"]::after,
html[data-lang="en"] .lang-menu [data-set-lang="en"]::after,
html[data-lang="fr"] .lang-menu [data-set-lang="fr"]::after,
html[data-lang="pt"] .lang-menu [data-set-lang="pt"]::after { content: "✓"; color: var(--wheat-500); }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--green-900); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero: full-bleed farm photo */
.hero {
  position: relative; overflow: hidden;
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
  background: var(--green-950); color: #fff;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 55% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 26, 14, .78) 0%, rgba(6, 26, 14, .5) 40%, rgba(6, 26, 14, 0) 72%),
    linear-gradient(0deg, rgba(6, 26, 14, .45) 0%, rgba(6, 26, 14, 0) 30%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 136px; }
.hero-inner > * { max-width: 620px; }
.eyebrow-light { color: var(--wheat-300); }
.hero h1 { color: #fff; margin-bottom: .45em; }
.lead { font-size: 1.12rem; color: rgba(255, 255, 255, .86); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.hero-tags li {
  padding: 5px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* Pillars */
.pillars { position: relative; z-index: 2; }
.pillar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: -64px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.pillar { padding: 28px 26px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar .icon { width: 28px; height: 28px; color: var(--wheat-500); margin-bottom: 14px; }
.pillar h3 { font-size: 1.08rem; }
.pillar p { margin: 0; font-size: .93rem; color: var(--muted); }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--green-900); color: rgba(247, 245, 239, .75); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .eyebrow { color: var(--wheat-300); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }
.section-dark .section-head p:last-child { color: inherit; }

figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); }

/* Farming */
.farm-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.farm-copy > p { color: var(--muted); }
.practice-list { margin-top: 36px; }
.practice-list li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.practice-list li:last-child { border-bottom: 1px solid var(--line); }
.practice-list .icon {
  flex: none; width: 48px; height: 48px; padding: 11px;
  border-radius: 12px; background: var(--wheat-100); color: var(--green-800);
}
.practice-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.farm-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.farm-photo img {
  width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 45% 50%;
  border-radius: 20px; box-shadow: var(--shadow);
}

/* Crops */
.crop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.crop {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; background: var(--paper); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.crop:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.crop img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.crop-body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.crop h3 { font-size: 1.6rem; }
.crop p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags li {
  padding: 3px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: var(--green-800);
  background: var(--green-50); border: 1px solid var(--green-100);
}
.crop-link {
  margin-top: auto; align-self: flex-start;
  font-weight: 600; color: var(--green-700); text-decoration: none;
}
.crop-link:hover { color: var(--wheat-500); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); }
.steps li { position: relative; padding: 28px 24px 0 0; border-top: 1px solid rgba(247, 245, 239, .18); }
.steps li::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%; background: var(--wheat-300);
}
.step-num { display: block; margin-bottom: 10px; font-family: var(--font-serif); font-size: 2rem; line-height: 1; color: var(--wheat-300); }
.steps p { margin: 0; font-size: .93rem; }

/* Supply */
.supply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.list-title { margin: 32px 0 8px; font-size: 1.05rem; }
.checks li {
  position: relative; padding: 11px 0 11px 34px;
  border-top: 1px solid var(--line);
}
.checks li:first-child { border-top: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--green-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffefb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.supply-photo img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: start; }
.about-grid > div > p { color: var(--muted); max-width: 38em; }
.quote {
  margin: 32px 0 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--wheat-300);
}
.quote p { margin: 0 0 6px; font-family: var(--font-serif); font-size: 1.35rem; color: var(--green-800); }
.quote footer { font-size: .9rem; color: var(--muted); }
.about-card {
  padding: 30px 32px; border-radius: 20px;
  background: var(--paper); border: 1px solid var(--line);
}
.about-card h3 { margin-bottom: 8px; }
.facts { margin: 0; }
.facts > div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-500); }
.facts dd { margin: 2px 0 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-list { margin: 36px 0 0; }
.contact-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list dt { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-500); }
.contact-list dd { margin: 2px 0 0; font-size: 1.08rem; }
.contact-list a { color: var(--green-800); text-decoration-color: var(--wheat-300); text-underline-offset: 3px; }
.contact-list .phones { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.contact-list .phones a { white-space: nowrap; }

.inquiry {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  padding: 36px; border-radius: 20px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--green-900); }
.field label b { color: var(--wheat-500); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2359625b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(61, 122, 76, .18);
}
.field input.invalid { border-color: #c0573f; box-shadow: 0 0 0 3px rgba(192, 87, 63, .15); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { margin: 0; flex: 1 1 220px; font-size: .85rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--green-950); color: rgba(247, 245, 239, .7); padding: 56px 0 28px; font-size: .93rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; }
.brand-light .brand-sub { color: rgba(247, 245, 239, .8); }
.brand-light .brand-sub::before, .brand-light .brand-sub::after { background: var(--wheat-300); }
.footer-tag { margin: 12px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--wheat-300); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 24px; border-top: 1px solid rgba(247, 245, 239, .12);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
}

@media (max-width: 1000px) {
  :root { --header-h: 62px; }
  .menu-toggle { display: flex; }
  .lang { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(8, 62, 31, .08);
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }

  .farm-grid, .supply-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .farm-photo { position: static; }
  .farm-photo img { aspect-ratio: 4 / 3; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 80px 0; }
}

@media (max-width: 1000px) {
  /* Photo on top, text below on solid dark green */
  .hero { display: block; min-height: 0; background: #0b1f12; }
  .hero::after { display: none; }
  .hero-media { position: relative; display: block; height: auto; }
  .hero-media img { position: static; height: auto; aspect-ratio: 16 / 10; object-position: 30% 50%; }
  .hero-media::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
    background: linear-gradient(180deg, rgba(11, 31, 18, 0), #0b1f12);
  }
  .hero-inner { margin-top: -40px; padding-top: 0; padding-bottom: 104px; }
}

@media (max-width: 700px) {
  .crop-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-word { height: 15px; }
  .brand-text { gap: 4px; }
  .brand-sub { font-size: 7.5px; gap: 4px; }
  .header-inner { gap: 10px; }
  .lang-btn { padding: 0 8px 0 10px; gap: 4px; }
  .lead { font-size: 1.03rem; }
  .hero-actions .btn { flex: 1 1 auto; }

  .pillar-grid { grid-template-columns: 1fr; margin-top: -48px; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .pillar { padding: 22px 20px; }

  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .crop-body { padding: 22px 20px 24px; }
  .about-card { padding: 24px; }
  .inquiry { grid-template-columns: 1fr; padding: 24px 20px; }
  .section { padding: 64px 0; }
  .quote p { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
