/* ============================================================
   PRINSIUM — Shared Stylesheet
   ============================================================ */

/* ── Self-hosted fonts (no third-party requests, no FOUT) ── */
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --bg:       #FFFFFF;
  --surface:  #F6F6FA;
  --border:   #E6E6EE;
  --black:    #000000;
  --body-c:   #4A4A58;
  --muted:    #8A8A9A;
  --red:      #EC1C24;
  --red-tint: #FDECEC;
  --blue:     #1919F7;
  --blue-tint:#ECECFE;
  --teal:     #1CECE4;
  --teal-tint:#E7FDFC;
  --font-display: 'General Sans', sans-serif;
  --font-body:    'General Sans', sans-serif;
  --nav-h: 84px;
}

body {
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Nav (logo left, links centered) ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-color: var(--border); }

.nav-logo {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.nav-logo img { height: 24px; width: auto; display: block; }

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--black); outline: none; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--black); }
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 2;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--black);
  transition: transform 0.25s, opacity 0.25s;
}
.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); }

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem clamp(1.5rem, 5vw, 3.5rem);
  z-index: 99;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 12px 24px rgba(10,10,16,0.06);
}
.nav-drawer a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--black); }
.nav-drawer.open { display: flex; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover  { background: #C8151C; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover  { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.footer-logo img { height: 20px; width: auto; display: block; }
.footer-tagline {
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.footer-links { display: flex; gap: 2rem; list-style: none; align-items: center; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--black); }
.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  footer { flex-direction: column; }
}

/* ── Scroll reveal (progressive enhancement) ──
   Content is visible by default. Only once the tiny inline
   head-script confirms JS is running does it become eligible
   to animate in on scroll — so a JS failure never hides content. */
.reveal {
  opacity: 1;
  transform: none;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
html.js .reveal.visible { opacity: 1; transform: none; }

/* ── Placeholder page (sub-brand stubs) ── */
.stub-wrap {
  position: relative;
  overflow: hidden;
}
.stub-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 55% 60% at 15% 40%, black 20%, transparent 100%);
  pointer-events: none;
}
.stub-wrap::after {
  content: '';
  position: absolute;
  top: 20%; left: -10%;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, var(--page-accent, var(--red)) 0%, transparent 62%);
  opacity: 0.06;
  pointer-events: none;
}

.stub-hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 5vw, 3.5rem) 6rem;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.stub-crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
  transition: color 0.2s, gap 0.2s;
}
.stub-crumb:hover { color: var(--black); gap: 0.7rem; }
.stub-crumb svg { flex-shrink: 0; }

.stub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.stub-eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--page-accent, var(--red));
  display: inline-block;
}

.stub-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 1.75rem;
  max-width: 700px;
  overflow-wrap: break-word;
}
.stub-body {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--body-c);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.75rem;
}
.stub-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.55rem 1.15rem 0.55rem 0.9rem;
  font-size: 0.78rem;
  color: var(--body-c);
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
}
.stub-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .stub-dot { animation: none; } }
