/* ==========================================================================
   LuminoraBright — site styles
   Palette and type are fixed by the brand assets; see planning/PRD.
   Michroma is display-only (wordmark + headings); Manrope carries everything else.
   ========================================================================== */

:root {
  --navy:        #0E3A5C;
  --navy-deep:   #082741;
  --navy-soft:   #16496F;
  --blue-light:  #7FC4E8;
  --gold:        #F5A623;
  --gold-light:  #FFD84D;

  --ink:         #0E3A5C;
  --ink-soft:    #4A6B84;
  --ink-faint:   #7A93A7;
  --surface:     #FFFFFF;
  --surface-alt: #F3F8FB;
  --line:        #DBE7F0;

  --wrap:  1120px;
  --pad:   clamp(20px, 5vw, 40px);
  --r:     14px;
  --r-lg:  20px;

  --font-display: 'Michroma', 'Arial Narrow', Impact, sans-serif;
  --font-body:    'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(15px, 0.4vw + 14px, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 8px; transform: translate(-50%, -200%);
  z-index: 200; background: var(--gold); color: var(--navy);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- wordmark ---------------------------------------------------- */

.brand-word, .hero-title, .footer-word {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand-word em, .hero-title em, .footer-word em { font-style: normal; color: var(--gold); }

/* ---------- header ------------------------------------------------------ */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(8, 39, 65, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 28px rgba(8, 39, 65, .28);
  padding-block: 9px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark { width: 34px; height: auto; flex: none; }
.brand-word { font-size: 13px; color: #fff; white-space: nowrap; }

.site-nav ul {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.82); text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.site-nav a.is-active { color: var(--gold-light); }
.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  box-shadow: 0 6px 18px rgba(245,166,35,.3);
}
.nav-cta:hover { background: var(--gold-light) !important; }

.nav-toggle { display: none; }
.no-js .site-nav ul { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- hero -------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px var(--pad) 72px;
  background:
    radial-gradient(120% 90% at 50% 8%, var(--navy-soft) 0%, var(--navy) 42%, var(--navy-deep) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 -1px 0; height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.10));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero-mark { display: flex; justify-content: center; margin-bottom: 6px; }
.lb-mark { width: clamp(150px, 30vw, 232px); height: auto; overflow: visible; }

.hero-eyebrow {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--blue-light);
}
.hero-title {
  margin: 0 0 22px;
  /* Floor chosen so all 14 characters fit on one line at 320px. Michroma is
     an unusually wide face — never let the company name break mid-word. */
  font-size: clamp(15px, 4.8vw, 52px);
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  letter-spacing: .02em;
}
.hero-lede {
  margin: 0 auto 32px; max-width: 33em;
  font-size: clamp(16px, 1vw + 14px, 20px);
  color: rgba(255,255,255,.84);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- logo mark animation ---------------------------------------- */

.lb-ray {
  opacity: .5;
  animation: lb-pulse 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.225s);
}
@keyframes lb-pulse { 0%, 100% { opacity: .38; } 50% { opacity: 1; } }

.lb-filament { animation: lb-glow 3.6s ease-in-out infinite; }
@keyframes lb-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(245,166,35,.5)); }
  50%      { filter: drop-shadow(0 0 10px rgba(255,216,77,.95)); }
}

.lb-glow { transform-origin: 220px 220px; animation: lb-breathe 3.6s ease-in-out infinite; }
@keyframes lb-breathe {
  0%, 100% { transform: scale(.9); opacity: .75; }
  50%      { transform: scale(1.12); opacity: 1; }
}

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 10px 26px rgba(245,166,35,.32); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.34); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ---------- sections ---------------------------------------------------- */

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-about { background: var(--surface); }
.section-services { background: var(--surface-alt); border-block: 1px solid var(--line); }
.section-contact { background: var(--surface); }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: .01em;
  font-size: clamp(22px, 3.1vw, 36px); line-height: 1.25;
  margin: 0 0 20px; color: var(--navy);
}
.section-lede { margin: 0 0 44px; max-width: 46em; font-size: clamp(16px, .6vw + 15px, 18px); color: var(--ink-soft); }

/* ---------- about ------------------------------------------------------- */

.about-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-bottom: 48px; }
.about-lead { margin: 0; font-size: clamp(18px, 1.5vw + 14px, 24px); font-weight: 600; line-height: 1.45; color: var(--navy); }
.about-body { margin: 0; color: var(--ink-soft); }

.pillars { display: grid; gap: 18px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.pillars li {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-alt);
  border-top: 3px solid var(--gold);
}
.pillars strong {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 8px;
}
.pillars span { color: var(--ink-soft); font-size: 15px; }

/* ---------- services ---------------------------------------------------- */

.service-groups { display: grid; gap: 22px; grid-template-columns: 1fr; }
.service-group {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-group:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(14,58,92,.09); }
.service-group-title {
  margin: 0 0 22px; padding-bottom: 14px; border-bottom: 2px solid var(--gold);
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(13px, 1vw + 10px, 16px); letter-spacing: .05em;
  color: var(--navy);
}
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.service-list h4 {
  margin: 0 0 5px; font-size: 16px; font-weight: 700; color: var(--navy);
  display: flex; gap: 10px; align-items: baseline;
}
.service-list h4::before {
  content: ''; flex: none; width: 7px; height: 7px; border-radius: 2px;
  background: var(--blue-light); transform: translateY(-2px);
}
.service-list p { margin: 0 0 0 17px; font-size: 15px; color: var(--ink-soft); }

/* ---------- contact ----------------------------------------------------- */

.contact-wrap { display: grid; gap: clamp(36px, 5vw, 60px); grid-template-columns: 1fr; }
.contact-note {
  margin: 28px 0 0; max-width: 26em;
  font-size: clamp(15px, .6vw + 14px, 17px); font-weight: 600;
  color: var(--ink-soft);
}

.contact-form {
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 38px);
  display: grid; gap: 18px; align-content: start;
}
.field { display: grid; gap: 7px; }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy); }
.req { color: var(--gold); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:hover, .field textarea:hover { border-color: var(--blue-light); }
.field input:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.28); outline: none;
}
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C2401F; }
.field-error { margin: 0; font-size: 13px; font-weight: 600; color: #C2401F; }

/* Honeypot — off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { width: 100%; margin-top: 4px; }
.form-status { margin: 0; font-size: 14px; font-weight: 600; min-height: 1.2em; }
.form-status.is-ok { color: #1B7A4B; }
.form-status.is-error { color: #C2401F; }
.form-note { margin: 0; font-size: 13px; color: var(--ink-faint); }

/* ---------- footer ------------------------------------------------------ */

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 56px 0 40px; text-align: center; }
.footer-inner { display: grid; gap: 10px; justify-items: center; }
.footer-word { margin: 0; font-size: clamp(15px, 2.6vw, 20px); color: #fff; }
.footer-tag { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); }
.footer-legal { margin: 18px 0 0; font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- reveal ------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.service-group.reveal { transition-delay: calc(var(--g) * .08s); }

/* ---------- responsive -------------------------------------------------- */

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .pillars   { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .service-groups { grid-template-columns: 1fr 1fr; }
  .about-grid     { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .contact-wrap   { grid-template-columns: 1fr 1.05fr; align-items: start; }
}

/* Mobile nav: collapse links behind a toggle. */
@media (max-width: 720px) {
  .brand-word { font-size: 11px; }
  .brand-mark { width: 28px; }

  .has-js .nav-toggle {
    display: grid; place-items: center; width: 42px; height: 42px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px; cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: ''; display: block; width: 18px; height: 2px;
    background: #fff; border-radius: 2px; transition: transform .22s var(--ease), opacity .22s var(--ease);
  }
  .nav-toggle-bar::before { transform: translateY(-6px); }
  .nav-toggle-bar::after  { transform: translateY(4px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: rotate(-45deg) translateY(1px); }

  .has-js .site-nav ul {
    position: absolute; top: calc(100% + 8px); right: var(--pad);
    flex-direction: column; align-items: stretch; gap: 4px;
    min-width: 208px; padding: 10px;
    background: rgba(8,39,65,.97); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--r);
    box-shadow: 0 20px 48px rgba(0,0,0,.4);
  }
  .has-js .site-nav ul[hidden] { display: none; }
  .site-nav a { text-align: center; }
}

@media (min-width: 721px) {
  .site-nav ul[hidden] { display: flex; }
}

/* ---------- reduced motion (NFR-5) -------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .lb-ray { opacity: .85; }
  .lb-glow { transform: scale(1); opacity: .9; }
}
