/* Bioful Aqua — shared theme
   Warm, clean, trustworthy. Cream base, warm brown primary, soft orange accent. */

:root {
  /* Palette — clean white base, bold orange accent */
  --bg: #ffffff;
  --bg-warm: #ffffff;
  --bg-warm-2: #f6f7f8;        /* cool neutral panel */
  --surface: #ffffff;
  --surface-low: #ffffff;
  --surface-high: #f6f7f8;

  --ink: #16110e;              /* body text */
  --ink-soft: #4a4641;         /* secondary text */
  --ink-mute: #8a847e;         /* muted / captions */
  --line: #e8e6e3;             /* hairline dividers, neutral */
  --line-soft: #f1efec;

  --brown: #2a1f1a;            /* near-black for headings */
  --brown-deep: #16110e;
  --brown-soft: #4a4641;
  --orange: #9b4100;           /* burnt amber — buttons + emphasis (Material primary) */
  --orange-deep: #793100;      /* deeper amber for hover (on-primary-fixed-variant) */
  --orange-bright: #c15406;    /* brighter amber for accents (primary-container) */
  --orange-soft: #ffdbcb;      /* peach badge background (primary-fixed) */
  --orange-peach: #ffb691;     /* warm peach (secondary-container) */
  --rust: #9b4100;             /* alias for emphasis text */
  --cream: #faf8f5;
  --sage: #6b7a63;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(42,26,18,0.04), 0 4px 12px rgba(42,26,18,0.04);
  --shadow-md: 0 4px 12px rgba(42,26,18,0.06), 0 12px 32px rgba(42,26,18,0.06);

  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Newsreader", "Manrope", ui-serif, Georgia, serif;

  --nav-h: 0px;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Type */
.serif { font-family: var(--font-serif); }
.italic-accent {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--orange);
  font-weight: 500;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--orange);
  flex-shrink: 0;
}
/* Inverted eyebrow for dark backgrounds (e.g. testimonials hero) — keep label color override but match line treatment */
.t-hero-inner .eyebrow { color: #ffb691; }
.t-hero-inner .eyebrow::before { background: #ffb691; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(44px, 5.6vw, 76px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-family: var(--font-serif); font-weight: 600; font-size: 28px; line-height: 1.2; }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 1.3; }

p { margin: 0; color: var(--ink-soft); }
.lead { font-size: 19px; line-height: 1.65; color: var(--ink-soft); font-weight: 300; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .wrap, .wrap-narrow { padding: 0 20px; }
}

/* Nav — unified across all pages, matches about.html (Who We Are) */
.nav {
  position: relative; height: auto;
  padding: 22px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.nav-inner {
  /* Legacy wrapper used by some pages — flatten so it doesn't introduce a grid */
  display: contents;
}
.nav a.logo { display: flex; align-items: center; flex-shrink: 0; min-width: 0; }
.nav a.logo img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; flex-wrap: nowrap; min-width: 0; }
.nav-right { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.nav-cta { margin-left: 0; }
.nav-toggle { display: none; }
.lang-toggle {
  display: inline-flex; align-items: center;
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
  user-select: none;
}
.lang-toggle button {
  background: transparent; border: 0; padding: 4px 6px;
  font: inherit; color: rgba(0,0,0,0.45);
  letter-spacing: inherit; text-transform: inherit;
  cursor: pointer; transition: color 0.18s;
}
.lang-toggle button:hover { color: #c36f43; }
.lang-toggle button.active { color: var(--brown-deep); font-weight: 700; }
.lang-toggle .lang-sep {
  width: 1px; height: 12px; background: rgba(0,0,0,0.18);
  margin: 0 2px;
}
.nav-links a {
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 500; color: var(--ink);
  padding: 6px 0;
  text-decoration: none; letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: #c36f43; }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta {
  padding: 18px 32px; border-radius: 999px 4px 999px 999px;
  background: #DA6D37; color: #fff;
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 700; border: 0;
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: #b8541f; }
.nav-cta:active { transform: scale(0.97); }

/* Nav dropdown (mini menu) */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-item > a .caret-mini {
  display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-item:hover > a .caret-mini,
.nav-item:focus-within > a .caret-mini { transform: rotate(180deg); opacity: 0.9; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 18px 44px rgba(42,26,18,0.10), 0 2px 6px rgba(42,26,18,0.04);
  padding: 10px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
/* Bridge hover gap so the menu doesn't disappear when crossing */
.nav-dropdown::before {
  content: ""; position: absolute;
  top: -16px; left: 0; right: 0; height: 18px;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  letter-spacing: 0;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--bg-warm); color: #c36f43; }

/* Progressive nav scale-down to prevent overlap */
@media (max-width: 1380px) {
  .nav { padding: 20px 44px; gap: 20px; }
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 17px; }
  .nav a.logo img { height: 48px; }
  .nav-cta { padding: 16px 26px; font-size: 14px; letter-spacing: 0.06em; }
  .nav-right { gap: 20px; }
}
@media (max-width: 1240px) {
  .nav { padding: 18px 32px; gap: 14px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 16px; }
  .nav a.logo img { height: 44px; }
  .nav-cta { padding: 14px 22px; font-size: 13px; }
  .nav-right { gap: 16px; }
  .lang-toggle { font-size: 13px; }
}
@media (max-width: 1120px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 15px; }
  .nav a.logo img { height: 40px; }
  .nav-cta { padding: 12px 18px; font-size: 12px; }
  .lang-toggle { font-size: 12px; }
  .lang-toggle button { padding: 4px 4px; }
}

/* Mobile drawer — kick in before items collide */
@media (max-width: 1140px) {
  .nav { padding: 14px 20px; gap: 12px; }
  .nav a.logo img { height: 40px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: transparent; border: 0; padding: 0;
    color: var(--ink);
    margin-left: auto;
  }
  .nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 12px 32px rgba(42,26,18,0.06);
    padding: 8px 20px 20px;
    z-index: 50;
  }
  .nav-links a {
    padding: 14px 4px;
    font-size: 18px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav.open .nav-links { display: flex; }
  /* Inline dropdown on mobile */
  .nav-item { display: block; width: 100%; }
  .nav-item > a { width: 100%; justify-content: space-between; }
  .nav-dropdown {
    position: static; transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 8px 16px; min-width: 0;
    background: transparent;
    display: none;
  }
  .nav-item.open > .nav-dropdown { display: flex; }
  .nav-item > a .caret-mini { transition: transform 0.2s; }
  .nav-item.open > a .caret-mini { transform: rotate(180deg); }
  .nav-dropdown a {
    padding: 10px 4px;
    font-size: 16px;
    border-bottom: 1px dashed var(--line-soft);
  }
  .nav-dropdown a:last-child { border-bottom: 0; }
  .nav-right {
    gap: 14px;
    margin-left: auto;
  }
  .nav-cta { padding: 12px 18px; font-size: 12px; letter-spacing: 0.06em; }
  .lang-toggle { font-size: 13px; }
}

@media (max-width: 480px) {
  .nav { padding: 12px 16px; }
  .nav a.logo img { height: 36px; }
  .nav-cta { padding: 10px 14px; font-size: 11px; }
  .lang-toggle button { padding: 4px 4px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 0;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--bg-warm-2); color: var(--ink);
  border: 0;
}
.btn-secondary:hover { background: var(--line); color: var(--brown); }
.btn-ghost {
  background: transparent; color: var(--brown-deep); padding: 10px 0;
  border-bottom: 1.5px solid var(--brown-deep);
  border-radius: 0;
}
.btn-ghost:hover { color: var(--orange); border-color: var(--orange); }

/* Chips / pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-warm-2); color: var(--brown);
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card-warm {
  background: var(--bg-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Icon badges */
.ibadge {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--orange-soft); color: var(--orange-deep);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ibadge svg { width: 22px; height: 22px; stroke-width: 1.8; }

/* Material-Symbols-ish fallback wrapper for inline SVG icons */
.icon { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; }
.icon-sm { width: 16px; height: 16px; }

/* Unified brand footer — orange bar with CTA on left, site links on right */
.footer {
  background: #DA6D37;
  color: rgba(255,255,255,0.92);
  padding: 40px 0 0;
}
.footer .wrap.footer-grid { padding-left: 56px; padding-right: 56px; max-width: 100%; margin: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr auto;
  gap: 120px;
  align-items: start;
  justify-content: space-between;
}
@media (max-width: 720px) {
  .footer .wrap.footer-grid { padding-left: 24px; padding-right: 24px; }
}
.footer-cta { display: flex; flex-direction: column; align-items: flex-start; }
.footer-cta .footer-logo {
  height: 64px; width: auto; margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-cta .cta-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}
.footer-cta h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500; line-height: 1.2; letter-spacing: -0.005em;
  color: #fff; margin: 0 0 16px; max-width: 460px;
}
.footer-cta h3 em { font-style: italic; color: #fff; font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-cta .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px;
  background: #fff; color: #DA6D37;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.footer-cta .btn:hover { background: #111; color: #fff; transform: translateY(-1px); }
.footer h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 10px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 3px; }
.footer a { font-size: 13px; color: rgba(255,255,255,0.92); line-height: 1.5; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 32px; padding: 14px 56px;
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.22);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.footer-bottom-inner { width: 100%; display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-bottom .fb-meta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: flex-start; width: 100%; }
@media (max-width: 720px) {
  .footer-bottom { padding: 14px 24px; }
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Tagline row */
.tagline-row {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) {
  .tagline-row { grid-template-columns: 1fr; }
}

/* Accordion */
details.accordion {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
details.accordion > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion .caret {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-warm-2); color: var(--brown);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.25s, background 0.2s;
}
details.accordion[open] .caret { transform: rotate(180deg); background: var(--brown); color: #fff; }
details.accordion .acc-body {
  padding: 20px 0 4px 64px;
  color: var(--ink-soft); line-height: 1.7;
}

/* Diagram link hover */
.method-link { transition: transform 0.2s, box-shadow 0.2s; }
.method-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Util */
.text-brown { color: var(--brown); }
.text-orange { color: var(--orange); }
.text-mute { color: var(--ink-mute); }
.text-center { text-align: center; }

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.7s ease both; }
