/* ===================================================================
   BeAconwIse Consulting — styles
   Palette: deep indigo + amber beacon glow, clean neutrals
   =================================================================== */

:root {
  /* Primary ramp (indigo) — accent stays amber */
  --navy-900: #1e1b4b;
  --navy-800: #312e81;
  --navy-700: #4338ca;
  --ink: #1e293b;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-soft: #fff7e6;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 12px 32px rgba(30, 27, 75, .12);
  --shadow-lg: 0 24px 60px rgba(30, 27, 75, .18);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--navy-900); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--navy-700); text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600;
  color: var(--amber); margin: 0 0 .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .82rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  text-align: center; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  color: #3a2400; box-shadow: 0 8px 20px rgba(245, 158, 11, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245, 158, 11, .42); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-700); background: var(--bg-alt); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-logo { display: inline-flex; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; color: var(--navy-900); letter-spacing: -.02em; }
.brand-accent { color: var(--amber); }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { padding: .55rem .85rem; border-radius: 8px; font-weight: 500; color: var(--slate); transition: color .2s, background .2s; }
.nav-menu a:hover { color: var(--navy-900); background: var(--bg-alt); }
.nav-cta {
  background: var(--navy-900) !important; color: #fff !important;
  padding: .6rem 1.2rem !important; border-radius: 999px !important;
}
.nav-cta:hover { background: var(--navy-700) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer; padding: 10px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbfcff, var(--bg-alt)); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, #ffe6a8, transparent 70%); top: -120px; right: -80px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 360px; height: 360px; background: radial-gradient(circle, #cbc9f6, transparent 70%); bottom: -140px; left: -100px; animation: float 18s ease-in-out infinite reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(30,27,75,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(30,27,75,.04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(24px) } }

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.hero h1 { margin-bottom: 1rem; }
/* Reserve two lines so the heading height (and the centered hero card) doesn't shift as the word changes */
.rotator { color: var(--amber); position: relative; display: inline-block; min-height: 2.4em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--slate); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }

.hero-stats { display: flex; gap: clamp(1.2rem, 4vw, 2.6rem); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--navy-900); line-height: 1; }
.hero-stats span { font-size: .82rem; color: var(--muted); margin-top: .3rem; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.beacon-card {
  position: relative; width: min(320px, 80vw); aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-radius: 24px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  overflow: hidden; padding: 2rem;
}
.beacon-network { position: relative; z-index: 1; width: 82%; height: auto; }
.beacon-core { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 12px rgba(251, 191, 36, .7)); animation: beacon-glow 3s ease-in-out infinite; }
.beacon-ring { transform-box: fill-box; transform-origin: center; animation: beacon-pulse 3.2s ease-out infinite; }
.beacon-ring.delay { animation-delay: 1.6s; }
.beacon-node { animation: beacon-tw 4s ease-in-out infinite; }
.beacon-node:nth-of-type(2) { animation-delay: .6s; }
.beacon-node:nth-of-type(3) { animation-delay: 1.2s; }
.beacon-node:nth-of-type(4) { animation-delay: 1.8s; }
.beacon-node:nth-of-type(5) { animation-delay: 2.4s; }
.beacon-node:nth-of-type(6) { animation-delay: 3s; }
@keyframes beacon-pulse { 0% { transform: scale(.55); opacity: .85 } 75% { opacity: 0 } 100% { transform: scale(1.25); opacity: 0 } }
@keyframes beacon-glow { 0%, 100% { opacity: .65 } 50% { opacity: 1 } }
@keyframes beacon-tw { 0%, 100% { opacity: .4 } 50% { opacity: 1 } }
.beacon-tag { position: relative; z-index: 1; color: #cfe0ff; font-size: .9rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 42rem; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-sub { color: var(--slate); font-size: 1.05rem; margin: 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-icon { font-size: 1.9rem; margin-bottom: .8rem; }
.pillar h3 { margin-bottom: .4rem; }
.pillar p { color: var(--slate); font-size: .95rem; margin: 0; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.service-card {
  text-align: left; font: inherit; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7e0f2; }
.service-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.service-top { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.service-emoji {
  font-size: 1.5rem; width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  background: var(--amber-soft); border-radius: 12px;
}
.service-card h3 { margin: 0; }
.service-desc { color: var(--slate); margin: 0; }
.service-detail {
  list-style: none; margin: 0; padding: 0;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s var(--ease), margin .35s, opacity .3s;
}
.service-detail li { padding-left: 1.4rem; position: relative; color: var(--slate); font-size: .93rem; margin: .5rem 0; }
.service-detail li::before { content: "→"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.service-card[aria-expanded="true"] .service-detail { max-height: 420px; opacity: 1; margin-top: .9rem; }
.service-more { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--navy-700); font-size: .9rem; display: inline-flex; gap: .4rem; }
.service-more em { font-style: normal; transition: transform .3s; display: inline-block; }
.service-card[aria-expanded="true"] .service-more em { transform: rotate(45deg); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #3a2400;
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber)); margin-bottom: 1rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- Readiness quiz ---------- */
.readiness {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow);
}
.readiness-quiz fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; }
.readiness-quiz legend { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--navy-900); margin-bottom: .6rem; }
.opt-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt-row label {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font-size: .9rem; color: var(--slate);
  transition: border-color .2s, background .2s, color .2s;
}
.opt-row input { accent-color: var(--amber); }
.opt-row label:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); color: var(--navy-900); }

.readiness-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.readiness-result[hidden] { display: none; }
.gauge { position: relative; width: 140px; height: 140px; }
.gauge svg { transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--line); stroke-width: 12; }
.gauge-fill {
  fill: none; stroke: url(#g) ; stroke: var(--amber); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.1s var(--ease);
}
.gauge-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-label span { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--navy-900); }
.gauge-label small { color: var(--muted); font-size: .8rem; }
.readiness-copy h3 { margin-bottom: .4rem; }
.readiness-copy p { color: var(--slate); }
.readiness-copy .btn { margin: .3rem .25rem 0; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-points { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: .7rem; color: var(--slate); }
.contact-points li { display: flex; align-items: center; gap: .6rem; }
.contact-points li::before {
  content: ""; flex: none; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%23f59e0b'/%3E%3Cpath d='M6 11.5l3.2 3.2L16 7.2' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.contact-alt { color: var(--muted); font-size: .95rem; }
.contact-alt a { color: var(--navy-700); font-weight: 600; }

.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy-900); }
.field label .muted { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); padding: .75rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fcfdff; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}
.field input:invalid:not(:placeholder-shown) { border-color: #e05555; }
.error { color: #c0392b; font-size: .8rem; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: .92rem; font-weight: 500; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #157347; }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #cbd5e1; padding: 2.6rem 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 1.5rem; align-items: center; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #94a3b8; font-size: .9rem; margin: .4rem 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer nav a { color: #cbd5e1; font-size: .92rem; }
.site-footer nav a:hover { color: var(--amber-light); }
.footer-copy { color: #7c8aa3; font-size: .82rem; margin: 0; text-align: right; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-visual { order: -1; }
  .beacon-card { width: min(280px, 70vw); }
  .readiness { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .site-footer nav { justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .6rem 1.1rem 1.1rem; transform: translateY(-140%); transition: transform .35s var(--ease);
    max-height: calc(100vh - 72px); overflow: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { display: block; padding: .85rem .6rem; border-radius: 8px; }
  .nav-cta { display: block; text-align: center; margin-top: .4rem; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}
