/* =========================================================================
   Siaga design system — single source of truth for the marketing site.
   Light mode, derived from the homepage. Link this BEFORE any page-specific
   <style> block so pages can still override for bespoke sections.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400;1,6..72,500&display=swap');

@font-face { font-family:"Open Sauce One"; src:url("/fonts/Open Sauce/OpenSauceOne-Regular.ttf") format("truetype"); font-weight:400; font-display:swap; }
@font-face { font-family:"Open Sauce One"; src:url("/fonts/Open Sauce/OpenSauceOne-Medium.ttf") format("truetype"); font-weight:500; font-display:swap; }
@font-face { font-family:"Open Sauce One"; src:url("/fonts/Open Sauce/OpenSauceOne-SemiBold.ttf") format("truetype"); font-weight:600; font-display:swap; }
@font-face { font-family:"Season Serif"; src:url("/fonts/Season Serif/SeasonMix-TRIAL-Light.otf") format("opentype"); font-weight:400; font-display:swap; }
@font-face { font-family:"Season Serif"; src:url("/fonts/Season Serif/SeasonMix-TRIAL-SemiBold.otf") format("opentype"); font-weight:600; font-display:swap; }

:root {
  --accent: #fe5426; --accent-hi: #ff6a3d;
  --ink: #0a0a0a; --text: #1a1c20; --muted: #5f6672; --muted-2: #8b93a3; --muted-strong: #3a4150;
  --bg: #f2f3e9; --surface: #fafafa; --surface-2: #f3f4f6;
  --line: rgba(0,0,0,0.09); --line-2: rgba(0,0,0,0.14);
  /* aliases kept for existing markup that references these names */
  --border: rgba(0,0,0,0.09); --border-strong: rgba(0,0,0,0.14); --card: #f2f3e9;
  --container: 1216px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: clip;
  font-family: "Open Sauce One", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
.serif   { font-family: "Newsreader", Georgia, serif; font-weight: 400; letter-spacing: 0; }
.display { font-family: "Open Sauce One", sans-serif; font-weight: 600; letter-spacing: -0.012em; }
.type-6xl { font-size: clamp(2rem, 3.9vw, 3.3rem); line-height: 1.08; }
.type-5xl { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; }
.type-4xl { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; }
.type-2xl { font-size: 1.3rem; line-height: 1.25; }
.type-base{ font-size: 1rem; line-height: 1.55; }
.type-sm  { font-size: 0.875rem; line-height: 1.5; }
.type-xs  { font-size: 0.8125rem; line-height: 1.45; }
.type-2xs { font-size: 0.75rem; line-height: 1.4; }
.muted { color: var(--muted); }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- section rhythm ---------- */
.sec { padding: 96px 0; }
.sec-sm { padding: 64px 0; }
@media (max-width: 700px) { .sec { padding: 68px 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; border-radius: 6px; font-family: inherit;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; padding: 0 20px; height: 46px;
  cursor: pointer; border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}
.btn:active { transform: scale(0.96); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.875rem; border-radius: 5px; }
.btn-xs { height: 34px; padding: 0 14px; font-size: 0.8rem; border-radius: 5px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(254,84,38,0.18), 0 6px 18px rgba(254,84,38,0.16); }
.btn-accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); box-shadow: 0 1px 2px rgba(254,84,38,0.22), 0 10px 26px rgba(254,84,38,0.22); }
.btn-ghost { background: #f2f3e9; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
/* .btn-elevated kept for existing markup (the "Log in" pill); light treatment */
.btn-elevated { background: var(--surface-2); border-color: rgba(0,0,0,0.10); color: #1a1a1a; }
.btn-elevated:hover { background: #e7e8ea; color: var(--ink); }
.btn-light { background: #f2f3e9; border-color: #fff; color: var(--accent); }
.btn-light:hover { background: #f1f1ff; border-color: #f1f1ff; }
.btn-line { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-line:hover { border-color: #fff; }
.btn-arrow .arr { display: inline-flex; width: 0; margin-left: 0; opacity: 0; overflow: hidden; transform: translateX(-3px); transition: width 0.2s ease, margin-left 0.2s ease, opacity 0.2s ease, transform 0.2s ease; }
.btn-arrow:hover .arr { width: 16px; margin-left: 6px; opacity: 1; transform: translateX(0); }
/* "Get in touch" nav CTA: black filled pill (white text); orange liquid rises from the bottom on hover.
   `header` prefix raises specificity so it wins over per-page inline nav styles. */
header .nav-cta .btn-accent, header .m-cta .btn-accent {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 40px; background: #111; border: 0; color: #fff;
  text-transform: none; letter-spacing: 0.01em; box-shadow: none;
}
header .nav-cta .btn-accent::before, header .m-cta .btn-accent::before {
  content: ""; position: absolute; left: 50%; bottom: 0; z-index: -1;
  width: 190%; aspect-ratio: 1 / 1; background: var(--accent); border-radius: 44%;
  transform: translate(-50%, 100%); transition: transform 0.42s cubic-bezier(0.5,0,0.18,1);
}
header .nav-cta .btn-accent:hover, header .m-cta .btn-accent:hover { color: #fff; box-shadow: none; }
header .nav-cta .btn-accent:hover::before, header .m-cta .btn-accent:hover::before { transform: translate(-50%, 18%); }

/* "Log in" nav button: same liquid pill, white fill + black text (orange rises on hover) */
header .nav-cta .btn-elevated, header .nav-cta .btn-ghost,
header .m-cta .btn-elevated, header .m-cta .btn-ghost {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 40px; background: #fff; border: 0; color: #111;
  text-transform: none; letter-spacing: 0.01em; box-shadow: none;
}
header .nav-cta .btn-elevated::before, header .nav-cta .btn-ghost::before,
header .m-cta .btn-elevated::before, header .m-cta .btn-ghost::before {
  content: ""; position: absolute; left: 50%; bottom: 0; z-index: -1;
  width: 190%; aspect-ratio: 1 / 1; background: var(--accent); border-radius: 44%;
  transform: translate(-50%, 100%); transition: transform 0.42s cubic-bezier(0.5,0,0.18,1);
}
header .nav-cta .btn-elevated:hover, header .nav-cta .btn-ghost:hover,
header .m-cta .btn-elevated:hover, header .m-cta .btn-ghost:hover { color: #fff; background: #fff; }
header .nav-cta .btn-elevated:hover::before, header .nav-cta .btn-ghost:hover::before,
header .m-cta .btn-elevated:hover::before, header .m-cta .btn-ghost:hover::before { transform: translate(-50%, 18%); }

/* ---------- top nav ---------- */
header.nav-wrap { position: sticky; top: 0; z-index: 50; background: rgba(242,243,233,0.82); border-bottom: 1px solid rgba(0,0,0,0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav { height: 62px; display: flex; align-items: center; gap: 32px; position: relative; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; width: auto; display: block; filter: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1000px) { .nav-links { position: absolute; left: 50%; transform: translateX(-50%); } }
.nav-links li { display: flex; align-items: center; }
.nav-links a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; border-radius: 4px; color: #767b85; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.nav-mobile { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 42px; height: 42px; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
  .nav-mobile { display: block; overflow: hidden; max-height: 0; transition: max-height 0.32s ease; border-top: 1px solid var(--line); background: rgba(242,243,233,0.98); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  body.nav-open .nav-mobile { max-height: 360px; }
  .nav-mobile-inner { display: flex; flex-direction: column; padding: 8px 24px 22px; }
  .nav-mobile a { padding: 14px 0; font-size: 0.92rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--line); }
  .nav-mobile .m-cta { display: flex; gap: 10px; margin-top: 16px; }
  .nav-mobile .m-cta a { flex: 1; justify-content: center; border-bottom: 0; }
}

/* mobile nav toggle: two bars that cross into an X when open */
header .nav-toggle .nt-ico { position: relative; width: 22px; height: 14px; }
header .nav-toggle .nt-ico b { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s ease, top 0.3s ease; }
header .nav-toggle .nt-ico b:nth-child(1) { top: 3px; }
header .nav-toggle .nt-ico b:nth-child(2) { top: 9px; }
body.nav-open header .nav-toggle .nt-ico b:nth-child(1) { top: 6px; transform: rotate(45deg); }
body.nav-open header .nav-toggle .nt-ico b:nth-child(2) { top: 6px; transform: rotate(-45deg); }

/* ---------- footer ---------- */
.site-footer { background: #f2f3e9; color: #1a1a1a; padding: 80px 0 88px; border-top: 1px solid var(--line); }
.sf-top { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; justify-content: space-between; }
@media (min-width: 768px) { .sf-top { flex-direction: row; } }
.sf-left { display: flex; flex-direction: column; gap: 16px; }
.sf-logo img { height: 26px; display: block; filter: none; }
.sf-copy { margin: 0; font-size: 0.82rem; font-weight: 500; color: #6b7280; }
.sf-cols { display: flex; gap: 48px; }
.sf-col h3 { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #0a0a0a; margin: 0 0 10px; }
.sf-col ul { list-style: none; margin: 0; padding: 0; }
.sf-col li { margin-bottom: 4px; }
.sf-col li a { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: #6b7280; transition: color 0.2s; }
.sf-col li a:hover { color: #0a0a0a; }

/* ---------- shared motion ---------- */
.rise { opacity: 0; transform: translateY(14px); animation: siaga-rise 0.7s cubic-bezier(0.2,0.8,0.2,1) forwards; }
.rise.d1 { animation-delay: 0.05s; } .rise.d2 { animation-delay: 0.16s; } .rise.d3 { animation-delay: 0.27s; }
.rise.d4 { animation-delay: 0.38s; } .rise.d5 { animation-delay: 0.5s; }
@keyframes siaga-rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; transform: none; } }
