/* Fiji Baat marketing site — shared styles.
   Colour system matches the existing fijibaat.1818.one app exactly, so the
   marketing site and the contributor/admin app read as one continuous brand. */
:root {
  --bg: #0b1220; --panel: #121b2e; --panel2: #0e1626; --line: #223049;
  --ink: #e8eefb; --muted: #8ea0bf; --accent: #17b3b0; --accent2: #2b8cff;
  --good: #2fbf71; --warn: #f5a623; --gold: #c0b098; --brand-orange: #f2871c;
  --radius: 14px; --shadow: 0 8px 30px rgba(0,0,0,.28);
  --maxw: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: radial-gradient(1400px 700px at 80% -10%, #14243f 0%, var(--bg) 55%);
  color: var(--ink); font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: var(--accent2); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---- header / nav ---- */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(11,18,32,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.navwrap { max-width: var(--maxw); margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand .brandmark { height: 44px; width: 44px; display: block; flex-shrink: 0; }
.brand .brandtext { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brandname { font-weight: 800; font-size: 18px; letter-spacing: 1.5px; font-family: Arial, Helvetica, sans-serif; }
.brand .brandname .p1 { color: #8fd0dc; }
.brand .brandname .p2 { color: #f4f6f5; }
.brand .brandtag { font-size: 7px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.brand img { height: 22px; width: auto; opacity: .9; }
nav.mainnav { display: flex; gap: 15px; margin-left: auto; align-items: center; flex-wrap: nowrap; }
nav.mainnav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
nav.mainnav a:hover, nav.mainnav a.active { color: var(--ink); }
nav.mainnav a.cta { color: #041018; background: linear-gradient(90deg, var(--accent), var(--accent2)); padding: 8px 16px; border-radius: 9px; font-weight: 700; }
.navtoggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 7px 10px; font-size: 16px; margin-left: auto; }
/* hide the tagline in the mid-width band so the nav has room before it collapses */
@media (max-width: 1120px) { .brand .brandtag { display: none; } }
@media (max-width: 1000px) {
  nav.mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; padding: 14px 22px 18px; gap: 14px; }
  nav.mainnav.open { display: flex; }
  nav.mainnav a { font-size: 14.5px; }
  .navtoggle { display: inline-block; }
  .brand .brandtag { display: block; }   /* room again once nav is a dropdown */
}

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; text-align: center; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); margin: 0 0 16px; line-height: 1.15; text-shadow: 0 2px 22px rgba(11,18,32,.85); }
.hero h1 .fh { color: var(--gold); }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 30px; text-shadow: 0 1px 14px rgba(11,18,32,.8); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- hero word-cloud (real Fiji Baat words drifting behind the hero) ---- */
.wordcloud { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* gentle, wide scrim so the headline stays legible without clumping the words to the edges */
.wordcloud::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(75% 65% at 50% 44%, rgba(11,18,32,.5) 0%, transparent 78%); }
.word { position: absolute; white-space: nowrap; font-weight: 600; letter-spacing: .2px;
  color: var(--gold); user-select: none; will-change: transform, opacity;
  animation: worddrift var(--dur, 11s) ease-in-out var(--delay, 0s) infinite alternate; }
.word.blue { color: var(--accent2); }
.word.plain { color: var(--muted); font-style: italic; }
@keyframes worddrift {
  from { transform: translateY(6px); }
  to   { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .word { animation: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 11px; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; border: 0; }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #041018; }
.btn.ghost { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); }
.btn.gold { background: linear-gradient(90deg, var(--gold), #d8c6a8); color: #241d10; }
.btn:hover { filter: brightness(1.08); }

/* ---- sections / cards ---- */
section { padding: 56px 0; }
section.alt { background: rgba(255,255,255,.015); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.sectiontitle { font-size: clamp(24px, 3.4vw, 34px); text-align: center; margin: 0 0 12px; }
p.sectionsub { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 40px; font-size: 16px; }
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .num { font-size: 34px; font-weight: 800; color: var(--gold); }

/* ---- stats strip ---- */
.stats { display: flex; justify-content: center; gap: 46px; flex-wrap: wrap; text-align: center; }
.stats .stat b { display: block; font-size: 38px; font-weight: 800; color: var(--accent); }
.stats .stat span { color: var(--muted); font-size: 13.5px; }

/* ---- content pages (prose) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(28px,4vw,40px); margin: 0 0 6px; }
.prose h1 .fh { color: var(--gold); }
.prose .kicker { color: var(--muted); font-size: 14px; margin: 0 0 30px; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; }
.prose p { color: #cfdaf0; font-size: 16px; line-height: 1.75; }
.prose ul { color: #cfdaf0; font-size: 16px; line-height: 1.8; }
.prose .callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 20px; margin: 24px 0; color: var(--muted); font-size: 14.5px; }
.prose .draftnotice { background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.35); border-radius: 10px; padding: 14px 18px; color: var(--warn); font-size: 14px; margin: 0 0 30px; }

/* ---- forms ---- */
form.inquiry { max-width: 560px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
form.inquiry label { display: block; font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
form.inquiry label:first-child { margin-top: 0; }
form.inquiry input, form.inquiry select, form.inquiry textarea {
  width: 100%; padding: 12px 13px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--ink); font-size: 15px; font-family: inherit;
}
form.inquiry input:focus, form.inquiry select:focus, form.inquiry textarea:focus { outline: none; border-color: var(--accent); }
form.inquiry textarea { resize: vertical; min-height: 110px; }
form.inquiry button { width: 100%; margin-top: 22px; }
.formmsg { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.formmsg.ok { color: var(--good); } .formmsg.err { color: #ff9b9b; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--line); padding: 46px 0 30px; margin-top: 40px; }
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
@media (max-width: 700px) { .footgrid { grid-template-columns: 1fr; } }
.footgrid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 12px; }
.footgrid a { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; margin-bottom: 9px; }
.footgrid a:hover { color: var(--ink); }
.footbottom { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.footbottom .foundedby { font-size: 11px; opacity: .55; margin-top: 5px; }

/* ---- misc ---- */
.pill { display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(23,179,176,.1); color: var(--accent); border: 1px solid rgba(23,179,176,.3); margin-bottom: 16px; }
