/* PHLDA Agricultural Products Trading
   Palette (from the logo only): Black #000000 · Gold #F2AC08 · Green #006C30 · Red #F03C14 · Beige #E9DCBC
   Type: Outfit (headings, echoes the logo's rounded letterforms) · Nunito Sans (body)
   Look: warm and earthy. Rounded cards, pill buttons, sentence-case headings, photo-led heroes. */
:root {
  --black: #000000;
  --ink: #15130F;
  --gold: #F2AC08;
  --gold-soft: #FDF2D3;
  --green: #006C30;
  --green-soft: #E3F0E7;
  --red: #F03C14;
  --beige: #E9DCBC;
  --sand: #F7F1E4;
  --paper: #FFFDF8;
  --white: #FFFFFF;
  --muted: #5C574B;
  --line: #E7DDC8;
  --on-dark: #EDE4CC;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(21, 19, 15, 0.05), 0 12px 32px -18px rgba(21, 19, 15, 0.28);
  --max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--black); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(18px, 5vw, 36px); }

/* ---------- Nav (black, so the logo reads as designed) ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--black); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 58px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.nav-links a[aria-current="page"] { background: var(--gold); color: var(--black); }
.nav-links .mobile-only { display: none; }
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--on-dark);
  border: 1px solid rgba(237, 228, 204, 0.4);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 1rem;
  cursor: pointer;
}
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--black);
    padding: 10px clamp(18px, 5vw, 36px) 22px;
    border-bottom: 3px solid var(--green);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-links .mobile-only { display: block; color: var(--gold); }
  .nav-toggle { display: inline-flex; }
  .desktop-only { display: none !important; }
  .brand img { height: 46px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: #FFC12E; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Eyebrow & badges ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--gold); }
.eyebrow.is-green { color: var(--green); }
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7A5600;
}
.badge-muted { background: var(--sand); color: var(--muted); }

/* ---------- Hero: full photo, content anchored low ---------- */
.hero {
  position: relative;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: clamp(80px, 12vw, 150px) 0 clamp(64px, 9vw, 110px);
  overflow: hidden;
}
.hero.has-photo { background-blend-mode: normal; }
.hero::before {
  /* softens the photo toward the bottom-left so the text always reads */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 0% 100%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: var(--on-dark); font-size: 1.15rem; max-width: 62ch; }
.hero .lead strong { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 36px;
}
.trust-strip-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 999px;
}
.trust-strip-item svg { width: 17px; height: 17px; color: var(--gold); flex: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.alt { background: var(--sand); }
.section h2 { max-width: 22ch; }
.lead { font-size: 1.1rem; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 64ch; margin: 0 0 36px; }
.section-lead strong { color: var(--ink); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(231, 221, 200, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(21, 19, 15, 0.05), 0 20px 40px -20px rgba(21, 19, 15, 0.35); }
.card h3 { margin: 6px 0 8px; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: 0.98rem; flex: 1; }
.card .badge { align-self: flex-start; margin-bottom: 10px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); color: #9A6B00;
  margin-bottom: 14px;
}
.card-icon.is-green { background: var(--green-soft); color: var(--green); }
.card-icon svg { width: 24px; height: 24px; }
.card-link {
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  color: var(--green); text-decoration: none; margin-top: auto;
}
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card .card-link + .card-link { margin-top: 6px; }

.path-card { border-top: none; position: relative; overflow: hidden; }
.path-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; }
.path-card.is-supplier::after { background: var(--green); }
.path-card.is-buyer::after { background: var(--gold); }

.disclosure-box {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
  margin-top: 24px;
}
.disclosure-box strong { color: var(--green); }

.check-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; color: var(--muted); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006C30' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split h3 { margin-top: 0; }

/* ---------- Grades ---------- */
.price-card { position: relative; }
.grade-card .price-value { font-family: var(--font-head); font-weight: 700; font-size: 3rem; line-height: 1; margin: 10px 0 4px; flex: none; color: var(--ink); }
.grade-card .price-value small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.grade-card .grade-note { font-size: 0.85rem; flex: none; margin-bottom: 18px; }
.grade-card.is-premium { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.grade-card.is-premium .badge { background: var(--gold); color: var(--black); }

/* ---------- Steps: numbered cards ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; counter-reset: none; }
.steps.is-six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps.is-six { grid-template-columns: 1fr; } }
.steps li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow);
}
.section.alt .steps li { background: var(--white); }
.step-num {
  flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  background: var(--green); color: var(--white);
}
.steps h3 { margin: 6px 0 6px; font-size: 1.12rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: var(--white); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 0 22px; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  padding: 18px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq-item p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Closing CTA: green panel ---------- */
.cta { background: var(--paper); }
.cta-inner {
  background: var(--green);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  right: -120px; top: -160px; background: rgba(242, 172, 8, 0.22);
}
.cta-inner::after {
  content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%;
  left: 8%; bottom: -40px; background: rgba(240, 60, 20, 0.35);
}
.cta h2 { color: var(--white); max-width: 24ch; margin: 0 auto 14px; position: relative; }
.cta p { color: #D7EBDD; max-width: 56ch; margin: 0 auto 28px; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; }
.cta .btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.cta .btn-ghost:hover { background: var(--white); color: var(--green); }

/* ---------- Founder ---------- */
.founder { display: flex; gap: clamp(28px, 5vw, 56px); align-items: center; flex-wrap: wrap; }
.founder-avatar {
  width: 280px; aspect-ratio: 4 / 5; flex: none;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--gold);
}
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-body { flex: 1; min-width: 260px; }
.founder-body h3 { font-size: 1.8rem; margin: 0 0 4px; }
.founder-title { color: var(--green); font-weight: 700; margin: 0 0 16px; }
.founder-body p { color: var(--muted); }
.founder-body .btn { margin-top: 8px; }
@media (max-width: 600px) { .founder-avatar { width: 100%; max-width: 320px; } }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.values div { background: var(--white); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.values h3 { font-size: 1.1rem; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.values h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
.values p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Service areas ---------- */
.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.area-list li {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 22px 10px 46px;
  position: relative;
  box-shadow: var(--shadow);
}
.area-list li::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F03C14'%3E%3Cpath d='M12 2a8 8 0 0 0-8 8c0 6 8 12 8 12s8-6 8-12a8 8 0 0 0-8-8Zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.area-list strong { font-family: var(--font-head); font-size: 1.02rem; }
.area-list span { color: var(--muted); font-size: 0.8rem; }

/* ---------- Tables ---------- */
.compare-table-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow); background: var(--white); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.compare-table thead th { background: var(--ink); color: var(--white); font-family: var(--font-head); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) td { background: #FCF9F2; }

/* ---------- Photos ---------- */
.photo-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.photo-grid .photo:first-child { grid-row: span 2; }
.photo-grid .photo:first-child img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.photo-grid .photo:nth-child(4) { grid-column: 2 / span 2; }
.photo-grid .photo:nth-child(4) img { aspect-ratio: 16 / 9; }
@media (max-width: 860px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid .photo:first-child { grid-row: auto; grid-column: span 2; }
  .photo-grid .photo:first-child img { aspect-ratio: 16 / 10; height: auto; }
  .photo-grid .photo:nth-child(4) { grid-column: span 2; }
}
.photo { margin: 0; position: relative; display: flex; flex-direction: column; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--r); }
.photo.is-wide img { aspect-ratio: 4 / 3; }
.photo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; padding-left: 4px; }
.split .photo { margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--on-dark); padding: 64px 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-about .brand img { height: 78px; }
.footer-about p { max-width: 36ch; margin: 14px 0 0; }
.footer-col h4 { font-size: 1rem; color: var(--gold); margin: 0 0 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(237, 228, 204, 0.15);
  padding-top: 20px; padding-bottom: 24px;
  font-size: 0.85rem; color: rgba(237, 228, 204, 0.7);
}
.footer::after { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--gold) 0 70%, var(--green) 70% 92%, var(--red) 92% 100%); }

/* ---------- Enquiry form ---------- */
.form-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 34px); display: grid; gap: 16px; }
.form-card label { display: grid; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; }
.form-card .opt { color: var(--muted); font-weight: 500; }
.form-card input, .form-card select, .form-card textarea {
  font: inherit; font-family: var(--font-body); font-weight: 400; font-size: 1rem;
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-type { border: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form-type legend { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.form-type label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.form-type label:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.form-type input { accent-color: var(--green); width: auto; margin: 0; }
.form-card .btn { justify-self: start; }
.form-card button:disabled { opacity: 0.7; cursor: wait; }
.form-privacy { font-size: 0.82rem; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done h3 { margin: 0; }
.form-done p { margin: 0; color: var(--muted); }
.ref-note { font-size: 0.92rem; color: var(--muted); margin-top: 22px; }
.ref-note strong { color: var(--ink); letter-spacing: 0.04em; }

[hidden] { display: none !important; }
.footer-credit a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--white); }
