/* ============================================================
   Lictor SHELL — site-wide design system
   ============================================================
   Goal: every page feels like the SAME product.
   Defines: container widths, section rhythm, typography scale,
   unified hero pattern, button system, card baseline.
   Load AFTER style.css + components.css, BEFORE page-specific css.
============================================================ */

:root {
  --shell-max:     1100px;   /* widest container */
  --shell-prose:   720px;    /* readable text width */
  --shell-narrow:  580px;    /* hero copy width */
  --shell-pad-x:   clamp(1.25rem, 4vw, 2.5rem);
  --shell-pad-y:   clamp(3rem, 7vh, 5.5rem);
  --shell-gap-sm:  1rem;
  --shell-gap:     1.5rem;
  --shell-gap-lg:  2.5rem;
}

/* ----- BODY rhythm ----- */
body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

main { display: block; }

/* ----- Unified PAGE HERO -----
   Every page's first section should use class="page-hero".
   Bulletproof flex centering, consistent vertical padding,
   readable copy width. */
.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: var(--shell-pad-y) var(--shell-pad-x) calc(var(--shell-pad-y) * 0.7);
  gap: 1.25rem;
}
.page-hero > * { max-width: var(--shell-narrow); }
.page-hero > h1,
.page-hero > .page-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: var(--shell-prose);
}
.page-hero > p,
.page-hero > .page-hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.page-hero .eyebrow { margin: 0; }

/* Hero mark — square logo box, centered via auto margins. Clean & defensive. */
.page-hero__mark {
  width: clamp(140px, 18vw, 220px);
  height: clamp(140px, 18vw, 220px);
  display: block;
  margin: 0 auto;
  position: relative;
  animation: shell-mark-float 6s ease-in-out infinite;
}
.page-hero__mark::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.18), transparent 65%);
  filter: blur(28px);
  z-index: -1;
  animation: shell-mark-pulse 4s ease-in-out infinite;
}
.page-hero__shield,
.page-hero__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(232, 163, 61, 0.35));
}
.page-hero__tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}
@keyframes shell-mark-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes shell-mark-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__mark, .page-hero__mark::before { animation: none; }
}

/* ----- Unified SECTION pattern ----- */
.shell-section {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: var(--shell-pad-y) var(--shell-pad-x);
}
.shell-section--narrow { max-width: var(--shell-prose); }
.shell-section__head {
  text-align: center;
  max-width: var(--shell-prose);
  margin: 0 auto var(--shell-gap-lg);
}
.shell-section__head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.shell-section__head p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ----- Unified GRID ----- */
.shell-grid {
  display: grid;
  gap: var(--shell-gap);
}
.shell-grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.shell-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.shell-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ----- Unified CARD baseline ----- */
.shell-card {
  background: var(--surface, #1A2028);
  border: 1px solid var(--border, #2A323E);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.shell-card:hover {
  border-color: var(--accent, #E8A33D);
  transform: translateY(-2px);
}

/* Stat-card variant — big number on top, label below, centered */
.shell-card--stat { text-align: center; align-items: center; }
.shell-stat__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent, #E8A33D);
  line-height: 1;
}
.shell-stat__label {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ----- Unified BUTTON system ----- */
.shell-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.shell-btn--primary {
  background: var(--accent, #E8A33D);
  color: #0d0e12;
  border-color: var(--accent, #E8A33D);
}
.shell-btn--primary:hover { transform: translateY(-1px); background: var(--accent-hover, #D8B04A); }
.shell-btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light, #3A4250);
}
.shell-btn--ghost:hover { border-color: var(--accent, #E8A33D); color: var(--accent); }

/* ----- Footer baseline ----- */
.shell-footer {
  max-width: var(--shell-max);
  margin: 4rem auto 2rem;
  padding: 2rem var(--shell-pad-x);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Mobile tightening ----- */
@media (max-width: 640px) {
  .page-hero { padding: 3.5rem 1.25rem 2.5rem; }
  .shell-section { padding: 3rem 1.25rem; }
}
