/* =============================================================================
   Quintessential Automations — shared site styles
   Brand: deep navy + brushed gold on warm cream.  Light by day, dark by night.
   ============================================================================= */
:root {
  /* brand (from the logo kit) */
  --navy: #0a223d;
  --navy-deep: #07172c;
  --gold-dark: #ad7217;
  --gold: #c8923a;
  --gold-light: #dfb678;
  --cream: #f5e7d2;
  --cream-soft: #fdf4e6;

  --font-head: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gold-grad: linear-gradient(135deg, #a96d12 0%, #e8c27d 46%, #b57a1c 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* light (cream) — the default; the shared theme script swaps these at sunset */
:root, :root[data-theme="light"] {
  --bg: #fbf6ec;
  --bg-2: #f4ead8;
  --surface: #ffffff;
  --surface-2: #fffaf1;
  --ink: #0a223d;
  --ink-2: #3b4d66;
  --muted: #62718a;
  --line: rgba(10, 34, 61, .12);
  --accent: #a96d12;
  --accent-ink: #ffffff;
  --glass: rgba(251, 246, 236, .78);
  --shadow: 0 30px 60px -28px rgba(10, 34, 61, .35), 0 8px 20px -12px rgba(10, 34, 61, .2);
  --hero-wash: radial-gradient(900px 520px at 78% 8%, rgba(223,182,120,.38), transparent 62%), radial-gradient(800px 600px at 5% 40%, rgba(10,34,61,.07), transparent 60%);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #07172c;
  --bg-2: #0a1f3a;
  --surface: #0e2746;
  --surface-2: #11304f;
  --ink: #f5e7d2;
  --ink-2: #cfd8e6;
  --muted: #9fb0c7;
  --line: rgba(245, 231, 210, .14);
  --accent: #dfb678;
  --accent-ink: #0a223d;
  --glass: rgba(7, 23, 44, .72);
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, .7), 0 8px 20px -12px rgba(0, 0, 0, .5);
  --hero-wash: radial-gradient(900px 520px at 78% 8%, rgba(223,182,120,.16), transparent 62%), radial-gradient(800px 600px at 5% 40%, rgba(80,130,220,.12), transparent 60%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background .6s var(--ease), color .6s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.eyebrow { font: 600 12.5px/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .gold-text { background: linear-gradient(135deg, #e8c27d 0%, #fbe5b2 48%, #d9a95b 100%); -webkit-background-clip: text; background-clip: text; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---- buttons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--font-head); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s, background .25s, border-color .25s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { color: #1a1204; background: var(--gold-grad); box-shadow: 0 14px 28px -12px rgba(173,114,23,.7), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -12px rgba(173,114,23,.75), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- header --------------------------------------------------------------- */
.site-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: var(--glass); border-bottom: 1px solid transparent; transition: border-color .3s, background .6s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 46px; width: auto; }
.logo .l-dark { display: none; }
:root[data-theme="dark"] .logo .l-light { display: none; }
:root[data-theme="dark"] .logo .l-dark { display: block; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font: 500 14.5px/1 var(--font-body); color: var(--ink-2); padding: 10px 11px; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav-links .nav-cta { margin-left: 8px; padding: 11px 20px; font-size: 14px; color: #1a1204; }
.nav-links .nav-cta:hover { background: var(--gold-grad); color: #1a1204; }
.theme-btn { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink-2); height: 42px; padding: 0 14px 0 12px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font: 600 12.5px/1 var(--font-head); letter-spacing: .04em; }
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ico-moon { display: none; }
:root[data-theme="dark"] .theme-btn .ico-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ico-moon { display: block; }
.menu-btn { display: none; appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; margin-left: auto; }
.menu-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 1220px) {
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 24px 24px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 12px; font-size: 17px; }
  .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .menu-btn { display: grid; place-items: center; }
  .theme-btn { margin-left: auto; }
  .menu-btn { margin-left: 0; }
}

@media (max-width: 520px) {
  .site-nav .wrap { gap: 10px; width: min(var(--maxw), 100% - 32px); height: 68px; }
  .logo img { height: 36px; }
  .theme-btn { padding: 0 12px; height: 40px; }
  .theme-btn .t-label { display: none; }
  .menu-btn { width: 40px; height: 40px; }
  .nav-links { inset: 68px 0 auto 0; }
  .wrap { width: min(var(--maxw), 100% - 32px); }
}

/* ---- footer ---------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 40px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.foot-grid a:hover { color: var(--accent); }
.foot-tag { margin-top: 16px; color: var(--muted); max-width: 34ch; font-size: 15px; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: 13.5px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
