/* ============================================================
   marketing.manilyn.net — shared site shell
   Aesthetic: warm Filipino food-brand
   banana-leaf greens · warm rice cream · toasted gold · chili
   ============================================================ */

:root {
  /* palette */
  --leaf-900: #14301f;
  --leaf-800: #1c3d2a;
  --leaf-700: #245439;
  --leaf-500: #2e7d4f;
  --leaf-300: #7bb18d;

  --cream:    #fbf6ea;   /* rice cream page bg */
  --cream-2:  #f4ecd8;   /* slightly deeper */
  --paper:    #fffdf8;   /* card / sheet */

  --gold:     #e8a13a;   /* toasted gold */
  --gold-dk:  #c9822a;
  --chili:    #d94f2b;   /* the "hot" accent */
  --chili-dk: #b23a1c;

  --ink:      #2a251d;   /* body text */
  --ink-soft: #5c5344;
  --line:     #e3d8bf;

  /* type */
  --display: "Fraunces", Georgia, serif;
  --body:    "Nunito Sans", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  --wrap: 1120px;
  --radius: 16px;
  --shadow: 0 18px 40px -22px rgba(20, 48, 31, .45);
  --shadow-sm: 0 6px 18px -10px rgba(20, 48, 31, .4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(46,125,79,.10), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(232,161,58,.12), transparent 40%),
    /* faint banana-leaf vein texture */
    repeating-linear-gradient(115deg, rgba(46,125,79,.035) 0 2px, transparent 2px 26px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- headings & text ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--leaf-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.28rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--leaf-700); text-decoration-color: rgba(46,125,79,.4); text-underline-offset: 3px; }
a:hover { color: var(--chili); }
strong { color: var(--leaf-900); }

.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--chili-dk);
  margin: 0 0 .8rem;
}

/* ---------- layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.pill {
  display: inline-flex; align-items: center; gap: .5ch;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--leaf-800); color: var(--cream);
  padding: .4em .9em; border-radius: 999px;
}

/* ---------- top header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,246,234,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--leaf-900); }
.brand .logo { width: 40px; height: 40px; flex: none; }
.brand b { font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.brand span { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--chili-dk); }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  font-size: .92rem; font-weight: 700; text-decoration: none; color: var(--ink-soft);
  padding: .5em .85em; border-radius: 999px;
}
.nav a:hover { color: var(--leaf-900); background: var(--cream-2); }
.nav a.active { color: var(--leaf-900); background: var(--cream-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55ch;
  font-family: var(--body); font-weight: 800; font-size: .92rem;
  padding: .7em 1.25em; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--chili); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(217,79,43,.7); }
.btn-ghost { background: transparent; color: var(--leaf-800); border: 1.5px solid var(--leaf-300); }
.btn-ghost:hover { color: var(--leaf-900); border-color: var(--leaf-500); background: var(--paper); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 4rem;
  background: var(--leaf-900);
  color: #d8e6d9;
}
.site-footer .wrap { padding: 2.5rem 0 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.site-footer .brand b { color: var(--cream); }
.site-footer a { color: var(--gold); }
.site-footer small { font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; color: #9fb7a4; }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ============================================================
   SHARED DOCUMENT COMPONENTS
   used by content pages (business-plan, marketing-plan, …):
   sticky TOC + numbered sections + callouts + tables + charts
   ============================================================ */
.doc { display: grid; grid-template-columns: 250px 1fr; gap: 3rem; align-items: start;
  width: min(100% - 2.5rem, var(--wrap)); margin: clamp(2rem,5vw,3.5rem) auto; }
.toc { position: sticky; top: 84px; }
.toc h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--chili-dk); margin-bottom: .8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: .4em .9em; font-size: .9rem; font-weight: 700; color: var(--ink-soft); text-decoration: none; border-left: 2px solid transparent; margin-left: -2px; }
.toc li a::before { content: counter(t,decimal) ".  "; counter-increment: t; font-family: var(--mono); font-size: .78rem; color: var(--gold-dk); }
.toc li a.cover-link::before { content: "○  "; }
.toc li a:hover { color: var(--leaf-900); }
.toc li a.active { color: var(--leaf-900); border-left-color: var(--chili); background: linear-gradient(90deg, rgba(217,79,43,.08), transparent); }

.section { scroll-margin-top: 84px; padding: 1.2rem 0 2.4rem; border-bottom: 1px dashed var(--line); }
.section:last-child { border-bottom: 0; }
.section > .num { display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border-radius: 12px; background: var(--leaf-800); color: var(--cream); font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin-bottom: .7rem; box-shadow: var(--shadow-sm); }
.section h2 { margin: .2rem 0 .3rem; }
.section .intro { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.2rem; }
.section h3 { margin: 1.5rem 0 .4rem; color: var(--leaf-700); }
.section h3::before { content: "▸ "; color: var(--chili); }
.section ul { margin: .3rem 0 1rem; padding-left: 1.1rem; }
.section li { margin-bottom: .35rem; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }
.callout.usp { border-left-color: var(--chili); }
.callout h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--chili-dk); margin-bottom: .5rem; }
.callout p:last-child { margin: 0; }

.tbl-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: 12px; }
table.fin { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--paper); min-width: 420px; }
table.fin caption { text-align: left; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--chili-dk); padding: .8rem 1rem .2rem; }
table.fin th, table.fin td { padding: .6em .9em; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.fin td.num, table.fin th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.fin thead th { background: var(--cream-2); font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf-800); }
table.fin tr.total td { font-weight: 800; color: var(--leaf-900); background: rgba(232,161,58,.12); border-top: 2px solid var(--gold); }
table.fin tr.total td.num { color: var(--chili-dk); }

.org { text-align: center; margin: 1rem 0 1.4rem; }
.org .node { display: inline-block; background: var(--leaf-800); color: var(--cream); border-radius: 12px; padding: .7em 1.2em; font-weight: 800; box-shadow: var(--shadow-sm); }
.org .node small { display: block; font-family: var(--mono); font-weight: 400; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.org .rung { height: 22px; width: 2px; background: var(--leaf-300); margin: 0 auto; }
.org .tier { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.org .tier .node { background: var(--paper); color: var(--leaf-900); border: 1px solid var(--line); }
.org .tier .node small { color: var(--chili-dk); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 1rem; margin: 1.2rem 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--chili-dk); line-height: 1; }
.stat span { font-size: .82rem; color: var(--ink-soft); }

@media (max-width: 820px){
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 1rem; }
  .toc ol { display: flex; flex-wrap: wrap; gap: .2rem; border-left: 0; }
  .toc li a { border-left: 0; }
  .mv-grid { grid-template-columns: 1fr; }
}
@media print { .toc { display: none; } .doc { grid-template-columns: 1fr; } }
