/* ============================================
   SAS AGENCIES — SHARED STYLES
   Used by all pages: home, products, about, oem,
   manufacturing, contact. Built on the brand
   system tokens. Import via <link> in each page.
   ============================================ */

:root {
  --ink: #0E0F12;
  --graphite: #1C1F26;
  --steel: #3A3F4A;
  --bone: #F4F1EA;
  --paper: #FAF8F3;
  --line: #E5E0D5;
  --ember: #C75B12;
  --ember-deep: #9A3F08;
  --hi-vis: #F5D547;
  --max: 1320px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bone); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.serif { font-family: 'Fraunces', Georgia, serif; font-weight: 500; }
.mono { font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ember); display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--ember); display: block; }
.eyebrow.light { color: var(--bone); }
.eyebrow.light::before { background: var(--bone); }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 6vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
h4 { font-family: 'Inter', sans-serif; font-size: 20px; line-height: 1.3; font-weight: 600; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px; transition: all 180ms var(--ease); border: 1px solid transparent;
}
.btn-primary { background: var(--ember); color: var(--bone); }
.btn-primary:hover { background: var(--ember-deep); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(199,91,18,0.4); }
.btn-secondary { background: var(--ink); color: var(--bone); }
.btn-secondary:hover { background: var(--graphite); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn-ghost.light { border-color: var(--bone); color: var(--bone); }
.btn-ghost.light:hover { background: var(--bone); color: var(--ink); }
.btn .arrow { transition: transform 240ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* NAVIGATION */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; background: rgba(14,15,18,0.96);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { color: var(--bone); display: flex; align-items: center; gap: 14px; }
.nav-brand-mono { width: 40px; height: 40px; flex-shrink: 0; }
.nav-brand-mark { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; letter-spacing: 0.06em; line-height: 1; }
.nav-brand-sub { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244,241,234,0.6); margin-top: 4px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--bone); font-size: 14px; font-weight: 500; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { background: var(--ember); color: var(--bone); padding: 10px 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-cta:hover { background: var(--ember-deep); }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 0; position: relative; z-index: 1002; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--bone); margin: 5px auto; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0; width: min(82vw, 320px); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--ink); padding: 92px 28px 32px; z-index: 1000;
    transform: translateX(100%); transition: transform .3s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.45); overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.nav-cta) { display: block; font-size: 18px; padding: 16px 0; border-bottom: 1px solid rgba(244,241,234,0.1); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links a.nav-cta { margin-top: 22px; text-align: center; padding: 14px 20px; }
}

/* SECTION HERO (inner pages) */
.page-hero { background: var(--ink); color: var(--bone); padding: 160px 0 96px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(199,91,18,0.15) 0%, transparent 50%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 80px);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin: 24px 0 24px; max-width: 920px; }
.page-hero h1 .accent { color: var(--ember); font-style: italic; font-weight: 400; }
.page-hero-lead { color: rgba(244,241,234,0.75); font-size: 19px; line-height: 1.6; max-width: 620px; margin-bottom: 32px; }

/* FOOTER */
.footer { background: var(--graphite); color: var(--bone); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(244,241,234,0.1); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand-mark { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; letter-spacing: 0.06em; }
.footer-brand-sub { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244,241,234,0.5); margin-top: 4px; }
.footer-brand-desc { color: rgba(244,241,234,0.65); font-size: 14px; line-height: 1.6; max-width: 320px; margin-top: 24px; }
.footer-col h6 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,241,234,0.5); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: rgba(244,241,234,0.85); font-size: 14px; transition: color 180ms; }
.footer-col a:hover { color: var(--ember); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(244,241,234,0.45); }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* SHARED NAV / FOOTER SVG LOGO */
.brand-mono-svg { width: 40px; height: 40px; flex-shrink: 0; }
