:root {
  --primary: #1b4d3e;
  --primary-hover: #13382d;
  --secondary: #76a035;
  --tertiary: #cbe35a;
  --canvas: #faf9f4;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", SimSun, serif;
  --gutter: clamp(20px, 5.5vw, 88px);
  --surface: #ffffff;
  --surface-muted: #f3f4f0;
  --ink: #16241d;
  --ink-muted: #5a6b60;
  --border: rgba(27, 77, 62, 0.1);
  --border-strong: rgba(27, 77, 62, 0.22);
  --shadow-rest: 0 2px 8px -2px rgba(27, 77, 62, 0.05), 0 1px 3px 0 rgba(27, 77, 62, 0.03);
  --shadow-lift: 0 14px 28px -8px rgba(27, 77, 62, 0.12), 0 4px 10px -2px rgba(27, 77, 62, 0.05);
  --radius-card: 16px;
  --radius-pill: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  border-radius: var(--radius-pill);
}

.wrap {
  width: min(1320px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* Header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 244, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand img {
  width: 118px;
  mix-blend-mode: multiply;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.7vw, 46px);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary);
}

.site-nav a {
  padding: 10px 0;
  white-space: nowrap;
}

.site-nav [aria-current="page"] {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 7px 17px;
  border: 1px solid #74877a;
  border-radius: 2px;
  font-size: 14px;
  color: var(--primary);
}

.header-contact:hover {
  color: white;
  background: var(--primary);
}

.page-title {
  font: 600 clamp(34px, 4.2vw, 62px)/1.2 var(--serif);
  margin: 0 0 14px;
}

a:focus-visible, button:focus-visible, .pill-option input:focus-visible + span {
  outline: 3px solid #a08c40;
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:not(:disabled):hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.inquiry-form .btn:disabled {
  opacity: .65;
  cursor: default;
}

.btn-accent {
  background: var(--tertiary);
  color: var(--ink);
}

.btn-accent:hover {
  background: #d7ec72;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(27, 77, 62, 0.05);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.chip-origin {
  background: rgba(118, 160, 53, 0.14);
  color: var(--primary);
}

.chip-origin::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.chip-hero {
  background: rgba(203, 227, 90, 0.18);
  color: var(--tertiary);
  border: 1px solid rgba(203, 227, 90, 0.36);
}

.chip-spec {
  background: var(--canvas);
  color: var(--ink-muted);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 440px;
}

/* Fruit Showcase */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fruit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-rest);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fruit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.fruit-photo-wrap {
  position: relative;
  aspect-ratio: 15 / 11;
  overflow: hidden;
  background: var(--surface-muted);
}

.fruit-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fruit-photo-wrap .lime-photo,
.fruit-entry img.lime-photo {
  object-fit: contain;
  object-position: center;
  background: #e7ebdf;
}

.fruit-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.fruit-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fruit-title-row h3 {
  margin: 0;
  font-size: 22px;
}

.fruit-desc {
  margin: 0;
  color: var(--ink-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fruit-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.text-link:hover {
  text-decoration: underline;
}

/* Grade Specs */
.grades-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grade-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-rest);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.grade-card.featured {
  border-color: rgba(27, 77, 62, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9f2 100%);
}

.grade-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.grade-card h3 {
  margin: 0;
  font-size: 19px;
}

.grade-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 14px;
}

.grade-list li {
  padding-left: 16px;
  position: relative;
}

.grade-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.grade-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Supply & Timeline */
.supply-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.orchard-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 10px;
}

.orchard-gallery figure {
  margin: 0;
}

.orchard-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.orchard-gallery figcaption {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 13px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(27, 77, 62, 0.08);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.timeline-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.timeline-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Contact & Inquiry */
.contact-panel {
  background: var(--primary);
  color: #ffffff;
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: start;
  box-shadow: var(--shadow-lift);
}

.contact-info h2 {
  margin: 12px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.contact-info p {
  margin: 0 0 24px;
  color: rgba(249, 250, 246, 0.84);
}

.phone-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 18px;
}

.phone-label {
  font-size: 12px;
  color: rgba(249, 250, 246, 0.74);
}

.phone-number {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--tertiary);
}

.inquiry-form {
  background: var(--surface);
  color: var(--ink);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inquiry-form h2 {
  margin: 0;
  font-size: 18px;
}

.form-hint {
  margin: -10px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label,
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-option {
  position: relative;
}

.pill-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-option span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--canvas);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-option input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.input {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--canvas);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(118, 160, 53, 0.18);
}

.inquiry-feedback,
#email-fallback {
  margin: 0;
  font-size: 13px;
  color: var(--primary);
}

.inquiry-feedback:empty {
  display: none;
}

#email-fallback {
  align-self: flex-start;
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 960px) {
  .products-grid,
  .grades-grid,
  .supply-wrap,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 110px;
  }

  .masthead .wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 16px;
    padding-top: 8px;
  }

  .brand img {
    width: 98px;
  }

  .header-contact {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    gap: 9px;
    padding: 6px 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    font-size: 13px;
  }

  .section {
    padding: 44px 0;
  }

  .contact-panel {
    padding: 24px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Brand homepage */
.home {
  color: #1d392e;
}

.home-hero {
  position: relative;
  isolation: isolate;
  background: #153120;
  color: #fffef4;
}

.hero-gallery,
.hero-gallery::after,
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gallery {
  z-index: -1;
  overflow: hidden;
}

.hero-slide {
  object-fit: cover;
  object-position: center 55%;
  opacity: 0;
  transition: opacity .65s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-gallery::after {
  content: "";
  background: linear-gradient(90deg, rgba(5, 27, 16, .94), rgba(5, 28, 16, .79) 24%, rgba(8, 27, 15, .22) 53%, transparent 80%);
}

.hero-frame {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(435px, 37vw, 620px);
  padding-block: 48px 68px;
}

.hero-intro h1,
.home-fruit h2,
.origin-copy h2,
.fruit-entry h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.045em;
}

.hero-intro h1 {
  font-size: clamp(44px, 5.65vw, 92px);
  line-height: 1.18;
}

.hero-intro h1 span {
  display: block;
  color: #e6edac;
}

.hero-intro p {
  max-width: 19em;
  margin: 24px 0 30px;
  color: #f2f5e6;
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.85;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 11px 18px;
  border-radius: 2px;
  background: #e6edac;
  color: #203b2b;
  font-weight: 600;
  font-size: 14px;
}

.hero-action:hover {
  background: #fbfbdc;
}

.hero-controls {
  position: absolute;
  bottom: 24px;
  right: 0;
  display: flex;
  align-items: center;
  padding: 0 4px 0 14px;
  background: rgba(11, 30, 19, .84);
  border: 1px solid rgba(255, 255, 255, .35);
  color: white;
}

.hero-controls[hidden] {
  display: none;
}

.hero-caption {
  display: flex;
  gap: 10px;
  margin-right: 10px;
  font-size: 13px;
}

.hero-position {
  font-variant-numeric: tabular-nums;
  color: #e6edac;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
}

.hero-controls button:hover {
  background: rgba(255, 255, 255, .16);
}

.hero-controls button:focus-visible {
  outline-color: #e6edac;
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.home-fruit {
  padding-block: clamp(44px, 5.5vw, 86px);
}

.fruit-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.home-fruit > h2 {
  margin-bottom: clamp(18px, 2vw, 30px);
}

.home-fruit h2,
.origin-copy h2 {
  font-size: clamp(32px, 3.1vw, 52px);
  line-height: 1.25;
}

.line-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding-block: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}

.line-link:hover {
  opacity: .78;
}

.fruit-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 58px);
}

.fruit-entry img {
  width: 100%;
  height: clamp(150px, 26vw, 412px);
  object-fit: cover;
  object-position: center 60%;
}

.fruit-caption {
  margin-top: 12px;
}

.fruit-entry h3 {
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.4;
}

.fruit-entry:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.fruit-entry p {
  margin: 4px 0 0;
  color: #5d695b;
}

.origin-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(290px, 32vw, 420px);
  background: #203f32;
  color: #fffef4;
  margin-bottom: clamp(40px, 5.5vw, 86px);
}

.origin-scenes {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: minmax(0, 1fr);
}

.origin-scenes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 46%;
}

.origin-scenes::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 27, 18, .9), rgba(8, 27, 18, .72) 38%, rgba(8, 27, 18, .12) 72%, transparent);
}

.origin-copy {
  padding: clamp(24px, 4.3vw, 68px);
}

.origin-copy p {
  max-width: 24em;
  margin: 16px 0 22px;
  color: #ecf1e6;
  text-wrap: pretty;
}

.origin-copy a:focus-visible {
  outline-color: #e6edac;
}

@media (max-width: 768px) {
  .hero-frame {
    min-height: clamp(475px, 85vw, 570px);
    align-items: flex-end;
    padding-block: 138px 82px;
  }

  .hero-gallery::after {
    background: linear-gradient(0deg, rgba(5, 24, 14, .95), rgba(5, 24, 14, .66) 44%, rgba(5, 24, 14, .08) 76%);
  }

  .hero-intro h1 {
    font-size: clamp(43px, 8vw, 64px);
  }

  .hero-intro p {
    margin: 13px 0 18px;
  }

  .hero-controls {
    bottom: 16px;
    right: auto;
    left: 0;
  }

  .fruit-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .fruit-entry img {
    height: clamp(146px, 37vw, 230px);
  }

  .fruit-entry p {
    font-size: 13px;
  }

  .origin-feature {
    align-items: end;
    min-height: clamp(330px, 62vw, 410px);
  }

  .origin-scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin-scenes::after {
    background: linear-gradient(0deg, rgba(8, 27, 18, .96), rgba(8, 27, 18, .76) 38%, rgba(8, 27, 18, .08) 83%, transparent);
  }
}
