/* RICHLOONG — B2B fruit supply chain site */
:root {
  --bg: #f7f4ef;
  --bg-alt: #efe8dc;
  --surface: #ffffff;
  --ink: #1a2e24;
  --ink-muted: #4a5c52;
  --brand: #1b6b4a;
  --brand-dark: #0f4a32;
  --accent: #e07a3d;
  --accent-soft: #f4c9a8;
  --line: rgba(26, 46, 36, 0.12);
  --shadow: 0 12px 40px rgba(15, 40, 28, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-muted); }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-height: 44px;
  object-fit: contain;
}
@media (min-width: 900px) {
  .logo-img { height: 44px; }
}

.nav {
  display: none;
  gap: 1.35rem;
}
.nav a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--brand); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.lang-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.lang-btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-muted);
}
.lang-btn.active {
  background: var(--brand);
  color: #fff;
}
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0 10px;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav a {
  padding: 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
}
.mobile-nav a:hover { background: var(--bg-alt); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .header-actions .btn-sm { display: inline-flex; }
}
@media (max-width: 899px) {
  .header-actions .btn-sm { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(224, 122, 61, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(27, 107, 74, 0.14), transparent 50%),
    linear-gradient(180deg, #f7f4ef 0%, #efe8dc 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.lead {
  font-size: 1.1rem;
  max-width: 38rem;
  margin-bottom: 1.5rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  min-width: 6rem;
}
.hero-stats strong {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--brand);
}
.hero-stats span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
}
.visual-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 0.65rem 0.65rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
}
.fruit-photo {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 2px);
  background: var(--bg-alt);
}
.card-a { transform: rotate(-3deg); }
.card-b { transform: rotate(2deg); margin-top: 1.5rem; }
.card-c {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: flex-start;
  transform: rotate(-1deg);
  max-width: 280px;
  margin: 0 auto;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
}
.card-c .fruit-photo {
  width: 96px;
  height: 72px;
  flex-shrink: 0;
}
.chain-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}
.section-desc { margin: 0; }
.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1.4fr 0.8fr; align-items: start; gap: 3rem; }
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.about-card h3 { margin-bottom: 1rem; }
.about-card li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  padding-left: 1.1rem;
  position: relative;
}
.about-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.about-card li:last-child { border-bottom: 0; }

.cards-4, .cards-3 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.service-card, .product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover, .product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(27, 107, 74, 0.1);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-card p, .product-card p {
  margin: 0;
  font-size: 0.95rem;
}

.prod-art {
  height: 160px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.prod-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.prod-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 40, 28, 0.18));
  pointer-events: none;
}
.prod-art-custom {
  background: linear-gradient(135deg, #1b6b4a, #0f4a32);
}

/* Why / timeline */
.timeline {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 800px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.step-num {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}
.step p { margin: 0; font-size: 0.92rem; }
.why-points {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .why-points { grid-template-columns: repeat(3, 1fr); }
}
.why-points h3 { color: var(--brand); }

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.contact-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
}
.contact-list strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(27, 107, 74, 0.35);
  border-color: var(--brand);
}
.form-note {
  font-size: 0.8rem;
  margin: 0;
}
.form-success {
  margin: 0;
  padding: 0.85rem 1rem;
  background: rgba(27, 107, 74, 0.12);
  color: var(--brand-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  background: #132820;
  color: rgba(255,255,255,0.75);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}
.footer-logo-link {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  line-height: 0;
}
.footer-logo {
  display: block;
  height: 32px;
  width: auto;
  object-fit: contain;
}
.footer-tag { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-inner p { color: rgba(255,255,255,0.65); margin: 0.4rem 0 0; }
.footer-meta { font-size: 0.85rem; margin: 0; }
@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* Service code badge */
.svc-code {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: rgba(27, 107, 74, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin: 0 0 0.5rem;
}


/* Historical vision disclaimer */
.vision-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  opacity: 0.85;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

/* Facilities */
.facility-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.facility-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.facility-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-alt);
}
.facility-card h3, .facility-card p {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.facility-card h3 { margin: 1rem 0 0.35rem; }
.facility-card p { padding-bottom: 1.25rem; font-size: 0.92rem; margin: 0; }

.about-dl { margin-top: 1.25rem; }

/* News */
.news-feature {
  display: grid;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .news-feature { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
}
.news-feature-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.news-feature-body { padding: 1.5rem 1.5rem 1.75rem; }
.news-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.news-cite {
  font-size: 0.82rem;
  margin: 0.75rem 0 1rem;
}
.news-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.news-thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-alt);
}
.news-thumbs.small { grid-template-columns: repeat(3, 1fr); margin-top: 0.85rem; }
.news-thumbs.small img { height: 64px; }

.news-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.news-card > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-alt);
}
.news-card-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.news-card-body h3 { font-size: 1.05rem; }
.news-card-body p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.news-card-note {
  background: linear-gradient(160deg, rgba(27,107,74,0.08), var(--surface));
  justify-content: center;
}
.news-card-note .news-card-body { padding-top: 1.75rem; }

.footer-contact {
  font-size: 0.85rem !important;
  margin-top: 0.65rem !important;
}
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: #fff; }

@media (max-width: 899px) {
  .news-thumbs { grid-template-columns: repeat(2, 1fr); }
}
