/* ==========================================================================
   DABACO OIL - prototype-fidelity pages: shared foundation
   Used by About, News + Nutrition and Contact (page root: <div class="fp-root">).

   - Every --fp-* token is declared on the page root class only (nothing global).
   - leaf / gold / ink reuse existing project tokens; the rest are page-scoped
     because no existing token is a visual match (see audit-and-mapping.md section 4).
   - Font: the project's Be Vietnam Pro (var(--font-family-base)); no extra font is loaded here.
   - Breakpoints follow the prototype (max-width 991px / 600px), not Bootstrap's min-width scale.
   ========================================================================== */

.fp-root {
  --fp-leaf: var(--dabaco-blue);
  --fp-gold: var(--dabaco-blue);
  --fp-ink: var(--text-dark);

  /* page-scoped semantic colors */
  --fp-green: var(--dabaco-green);
  --fp-green-hover: var(--dabaco-green-hover);
  --fp-gold-soft: color-mix(in srgb, var(--dabaco-blue) 10%, var(--fp-paper));
  --fp-gold-line: color-mix(in srgb, var(--dabaco-blue) 28%, var(--fp-line));
  --fp-gold-ink: var(--dabaco-blue-hover);
  --fp-paper: #f4f7f0;
  --fp-mint: #e4efdc;
  --fp-muted: #56665b;
  --fp-line: #d9e2d2;
  --fp-om3-ink: #24302A;
  --fp-om3-head: var(--dabaco-blue-hover);
  --fp-danger: #c0392b;
  --fp-danger-bg: #fbeaea;
  --fp-danger-ink: #8e2a20;

  /* layout rhythm */
  --fp-wrap: var(--container-width, 1320px);
  --fp-sec: 64px;
  --fp-gap-lg: 64px;
  --fp-gap-md: 40px;

  /* radius / shadow (prototype literals) */
  --fp-radius: 8px;
  --fp-radius-sm: 6px;
  --fp-radius-pill: 40px;
  --fp-shadow: 0 2px 14px color-mix(in srgb, var(--fp-leaf) 6%, transparent);
  --fp-shadow-hover: 0 10px 28px color-mix(in srgb, var(--fp-leaf) 12%, transparent);

  /* typography: same font as the rest of the site, sizes rescaled for Be Vietnam Pro */
  --fp-display: var(--font-family-base);
  --fp-h1: clamp(2rem, 4.6vw, 3.75rem);
  --fp-h2: clamp(1.75rem, 3.2vw, 2.75rem);

  position: relative;
  font-family: var(--fp-display);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--fp-ink);
  background: var(--fp-paper);
}

/* --------------------------------------------------------------------------
   Scoped resets (Bootstrap Reboot + typography.css would otherwise change the look)
   -------------------------------------------------------------------------- */
.fp-root *,
.fp-root *::before,
.fp-root *::after {
  box-sizing: border-box;
}

.fp-root h1,
.fp-root h2,
.fp-root h3,
.fp-root h4 {
  margin: 0;
  font-family: var(--fp-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  color: inherit;
}

.fp-root h2 {
  margin-bottom: 18px;
  font-size: var(--fp-h2);
  color: var(--fp-leaf);
}

.fp-root h3 {
  font-size: var(--h3-size);
}

.fp-root h4 {
  font-size: var(--h4-size);
}

.fp-root p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.fp-root p + p {
  margin-top: 14px;
}

.fp-root a {
  color: inherit;
  text-decoration: none;
}

.fp-root a:hover {
  color: inherit;
  text-decoration: none;
}

.fp-root ul,
.fp-root ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.fp-root button,
.fp-root input,
.fp-root textarea {
  font: inherit;
  margin: 0;
}

.fp-root :focus-visible {
  outline: 3px solid var(--fp-leaf);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--fp-gold);
}

/* anchors land below the sticky header */
.fp-root [id] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

/* icon sprite holder (symbols only, never visible) */
.fp-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.fp-root .fp-icon {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.fp-root .fp-wrap {
  width: 100%;
  max-width: var(--fp-wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3.5vw, 2.5rem);
}

.fp-root .fp-block {
  padding: var(--fp-sec) 0;
  background: #fff;
}

.fp-root .fp-block--alt {
  background: var(--fp-paper);
}

.fp-root .fp-block--mint {
  background: var(--fp-mint);
}

.fp-root .fp-lead {
  max-width: 60ch;
  font-size: var(--fs-h5);
  color: var(--fp-muted);
}

.fp-root .fp-muted {
  color: var(--fp-muted);
}

.fp-root .fp-note {
  margin-top: 20px;
  font-size: var(--fs-body);
  color: var(--fp-muted);
}

.fp-root .fp-note .fp-icon {
  margin-right: 6px;
  color: var(--fp-gold);
}

/* zone heading with numbered disc (Contact) */
.fp-root .fp-zone-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: var(--fs-h2);
  color: var(--fp-leaf);
}

.fp-root .fp-zone-h > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fp-gold);
  color: var(--fp-leaf);
  font-size: var(--fs-h5);
}

/* --------------------------------------------------------------------------
   Hero (+ breadcrumb overlay)
   -------------------------------------------------------------------------- */
.fp-root .fp-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--fp-leaf);
}

.fp-root .fp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.fp-root .fp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--fp-leaf) 95%, transparent) 0%,
    color-mix(in srgb, var(--fp-leaf) 78%, transparent) 42%,
    color-mix(in srgb, var(--fp-leaf) 10%, transparent) 100%
  );
}

.fp-root .fp-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(320px, 46vh, 460px);
  padding-top: var(--fp-gap-lg);
  padding-bottom: var(--fp-gap-lg);
}

.fp-root .fp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--fp-gold);
}

.fp-root .fp-hero__title {
  max-width: 22ch;
  font-size: var(--fp-h1);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
}

.fp-root .fp-hero__lead {
  max-width: 60ch;
  margin-top: 16px;
  font-size: var(--fs-h5);
  color: #e2ece4;
}

/* breadcrumb rendered once at the top of the first hero (light text on the dark gradient) */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.fp-root .fp-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 20px;
  border: 1px solid var(--fp-leaf);
  border-radius: var(--fp-radius-pill);
  background: transparent;
  color: var(--fp-leaf);
  font-weight: 600;
  cursor: pointer;
}

.fp-root .fp-ghost:hover {
  background: var(--fp-leaf);
  color: #fff;
}

.fp-root .fp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--fp-radius-pill);
  background: var(--dabaco-orange);
  color: var(--text-dark);
  font-weight: 700;
  cursor: pointer;
}

.fp-root .fp-btn:hover {
  background: var(--dabaco-orange-hover);
  color: #fff;
}

.fp-root .fp-btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

/* --------------------------------------------------------------------------
   Media slots (_FpMedia): image or paper-coloured, aspect-correct placeholder
   -------------------------------------------------------------------------- */
.fp-root .fp-media {
  display: block;
  width: 100%;
  object-fit: cover;
}

/* no icon, no text: just the paper colour and a hairline */
.fp-root .fp-media-ph {
  background: var(--fp-paper);
  border: 1px solid var(--fp-line);
}

/* card thumbnails sit inside an already-bordered card */

/* --------------------------------------------------------------------------
   Mobile call bar (hidden above 600px)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Responsive: tablet (Bootstrap 991.98px)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Responsive: phone (Bootstrap 575.98px)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

/* Shared page and section hierarchy for Contact and Nutrition. */
.fp-root:is(.fp-contact, .fp-nutrition) {
  --fp-section-heading-size: var(--section-heading-size);
}
.fp-root .fp-page-title {
  color: var(--dabaco-blue);
  font-size: var(--page-heading-size);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  margin: var(--space-3) 0 var(--space-4);
}

/* Orange section accents shared by Contact and Nutrition. */
.fp-root .fp-section-kicker,
.fp-root.fp-nutrition .nutrition-kicker.fp-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--dabaco-blue) 10%, transparent);
  color: var(--dabaco-blue);
  line-height: 1.4;
}
.fp-root .fp-section-kicker .fp-icon {
  width: 1em;
  height: 1em;
}
.fp-root.fp-nutrition .nutrition-kicker.fp-section-kicker { align-items: flex-start; }
.fp-nutrition .fp-section-kicker .fp-icon { margin-top: .2em; }
.fp-contact .fp-contact__intro :is(h1, h2)::after,
.fp-nutrition .nutrition-section-head :is(h1, h2)::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--dabaco-orange), color-mix(in srgb, var(--dabaco-orange) 70%, var(--bg-white)));
  margin: var(--space-4) auto 0;
}
.fp-nutrition .nutrition-section-head--articles h2::after { margin-left: 0; }
.fp-contact .fp-contact__panel-intro {
  border-left: 3px solid var(--dabaco-orange);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(90deg, color-mix(in srgb, var(--dabaco-blue) 6%, transparent), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
