/* Benipol Limited — site styles
   Palette: calm tints derived from the brand palette, with two accents.
   Bright accents (use sparingly):
     --accent    #5B45CD  purple blue  (links, buttons, focus)
     --accent-2  #7FB835  yellow green (decorative marks only — not for text)
   Tints are the same hues mixed towards white. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand accents */
  --accent: #5B45CD;
  --accent-hover: #4633B0;
  --accent-2: #7FB835;

  /* Light tints of the brand hues */
  --lilac-50: #F7F6FD;
  --lilac-100: #EFEDFB;
  --lilac-200: #DEDAF5;
  --green-50: #F4F9EE;
  --green-100: #E6F1D7;

  /* Neutrals */
  --bg: #FFFFFF;
  --ink: #1E1C2A;
  --ink-muted: #4B4959;
  --line: #E4E2EC;

  --font-sans: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(4rem, 9vw, 7rem);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.75rem; font-weight: 800; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.1875rem; font-weight: 750; }
p { margin: 0 0 1rem; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: saturate(1.2) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1875rem; }
.wordmark:hover { color: var(--ink); }
.wordmark-mark { color: var(--accent); flex: none; }
.wordmark-suffix { font-weight: 600; color: var(--ink-muted); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 1.5rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: 0.975rem; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 720px) {
  .header-inner { padding-top: 0.75rem; padding-bottom: 0.5rem; }
  .site-header { position: static; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 0 1.1rem; }
  .site-nav a { display: inline-block; padding: 0.5rem 0; white-space: nowrap; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 750; text-decoration: none;
  border: 2px solid var(--accent); transition: background-color .15s ease, border-color .15s ease;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }
.button-secondary { background: transparent; color: var(--accent); }
.button-secondary:hover { background: var(--lilac-100); color: var(--accent-hover); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--lilac-100) 0%, var(--lilac-50) 70%, var(--bg) 100%);
  padding: clamp(4.5rem, 12vw, 8.5rem) 0 clamp(4rem, 9vw, 6.5rem);
}
.hero h1 { max-width: 16ch; }
.eyebrow, .section-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 1rem;
}
.eyebrow::before, .section-label::before {
  content: ""; width: 1.5rem; height: 3px; border-radius: 3px; background: var(--accent-2);
}
.lead { font-size: clamp(1.125rem, 2vw, 1.3125rem); color: var(--ink-muted); max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Sections */
.section { padding: var(--section-space) 0; }
.section-muted { background: var(--lilac-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid-split { display: grid; gap: 2rem 4rem; }
@media (min-width: 880px) { .grid-split { grid-template-columns: 5fr 7fr; } }

.prose > p { max-width: 42rem; }
.section-text { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.6; margin: 0; }
.grid-split { align-items: start; }
.grid-split h2 { margin-bottom: 0; }


/* Mission */
.mission { background: var(--green-50); border: 1px solid var(--green-100); border-radius: calc(var(--radius) + 4px); padding: clamp(1.75rem, 5vw, 3.25rem); }
.mission h2 { margin-bottom: 0; }


/* Contact */
.contact-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); max-width: 56rem; }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; }
.contact-card p { color: var(--ink-muted); margin: 0; }
.contact-card a { font-weight: 700; overflow-wrap: anywhere; }

/* Placeholder marker for facts that still need confirmation */
.tbc {
  display: inline; background: #FFF6D6; color: #5C4400; border: 1px dashed #B58A00;
  border-radius: 4px; padding: 0.05em 0.35em; font-weight: 600; font-size: 0.925em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Policy page */
.policy { padding: clamp(3rem, 7vw, 5rem) 0 var(--section-space); background: linear-gradient(180deg, var(--lilac-50) 0, var(--bg) 22rem); }
.policy-layout { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 960px) {
  .policy-layout { grid-template-columns: 16rem minmax(0, 1fr); }
  .policy-header { grid-column: 1 / -1; }
  .toc { position: sticky; top: 6rem; align-self: start; }
}
.policy-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.policy-meta { color: var(--ink-muted); font-weight: 600; }
.draft-notice { background: #FFF6D6; border: 1px solid #E8C860; border-left: 5px solid #B58A00; color: #3D2E00; border-radius: 8px; padding: 0.9rem 1.1rem; max-width: 42rem; }

.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; background: var(--bg); }
.toc h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin-bottom: 0.75rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.95rem; }
.toc li { margin: 0.3rem 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.policy-body { max-width: 44rem; }
.policy-body section { scroll-margin-top: 6rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.policy-body section:last-child { border-bottom: 0; }
.policy-body h2 { font-size: 1.5rem; }
.policy-body h3 { font-size: 1.0625rem; margin-top: 1.5rem; }
.policy-body ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.policy-body li { margin: 0.35rem 0; }

/* Footer */
.site-footer { background: var(--ink); color: #D9D7E3; padding: 3.5rem 0 2rem; font-size: 0.975rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--lilac-200); }
.site-footer .tbc { color: #5C4400; }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; } }
.footer-name { color: #fff; font-weight: 800; font-size: 1.125rem; }
.footer-company p { margin-bottom: 0.4rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-base { border-top: 1px solid #3A3848; margin-top: 2.5rem; padding-top: 1.5rem; color: #B5B3C2; font-size: 0.875rem; }
.footer-base p { margin: 0; }

/* 404 */
.notfound { padding: var(--section-space) 0; min-height: 50vh; }

/* ---- Richer home layout ---- */
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-visual .illus { width: 100%; height: auto; max-width: 520px; display: block; margin: 0 auto; }
@media (max-width: 899px) { .hero-visual .illus { max-width: 360px; } }

.glance {
  margin: clamp(3rem, 6vw, 4.5rem) 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.glance > div { padding: 1.25rem 1.5rem; border-left: 1px solid var(--line); }
.glance > div:first-child { border-left: 0; }
.glance dt { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.3rem; }
.glance dd { margin: 0; font-weight: 750; font-size: 1.0625rem; }
@media (max-width: 760px) {
  .glance { grid-template-columns: 1fr 1fr; }
  .glance > div:nth-child(3) { border-left: 0; }
  .glance > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.journey { list-style: none; padding: 0; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.journey li { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--bg); }
.journey h3 { margin: 1.25rem 0 0.4rem; }
.journey p { margin: 0; color: var(--ink-muted); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-icon { color: var(--accent); background: var(--lilac-100); border-radius: 12px; padding: 10px; width: 44px; height: 44px; }
.card-num { font-weight: 800; color: var(--ink-muted); font-size: 0.875rem; letter-spacing: 0.06em; }

.media-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .media-split { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.media-visual .illus { width: 100%; height: auto; max-width: 440px; display: block; }
.media-split h2 { margin-bottom: 1rem; }

.values-block { margin-top: clamp(3rem, 6vw, 4.5rem); }
.h3-size { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.values { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.values li { background: var(--lilac-50); border: 1px solid var(--lilac-100); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.values h3 { font-size: 1.0625rem; margin-bottom: 0.35rem; }
.values p { margin: 0; color: var(--ink-muted); font-size: 0.975rem; }

.contact-band { background: linear-gradient(180deg, var(--lilac-100), var(--lilac-50)); }
.contact-grid { max-width: none; }
