/* ==========================================================================
   home.css — styles for index.html only (hero, services, products, about,
   contact, toast). Shared tokens/header/footer are in site.css.
   ========================================================================== */

section { overflow: hidden; }

/* ── Shared section typography ─────────────────────────────────────────── */
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .8rem;
}
h2.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy-dark);
  margin-bottom: .5rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.7;
  max-width: 580px;
  margin-top: .5rem;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 4px;
  font-size: .95rem;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-primary { background: var(--white); color: var(--navy-dark); font-weight: 600; border: 2px solid var(--white); }
.btn-primary:hover { background: #e8eef5; border-color: #e8eef5; }
.btn-secondary { background: transparent; color: var(--white); font-weight: 500; border: 2px solid rgba(255, 255, 255, .55); }
.btn-secondary:hover { border-color: var(--white); background: rgba(255, 255, 255, .07); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #071a38 0%, #102f5c 66%, #173b68 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-bg-lines {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255, 255, 255, .7) 80px);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: var(--nav-height) 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.2rem;
}
.hero-label::before { content: ''; display: inline-block; width: 32px; height: 2px; background: var(--accent-light); }
.hero-born {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  padding: .35rem 1rem .35rem .5rem;
  margin-bottom: 1.4rem;
}
.hero-born-dot {
  width: 7px; height: 7px; min-width: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s ease-in-out infinite;
}
.hero-born-text { font-size: .78rem; color: var(--light-blue); letter-spacing: .03em; }
.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--white);
  text-shadow: 0 10px 30px rgba(0, 16, 52, .18);
  margin-bottom: 1.6rem;
}
.hero-h1 em { color: var(--accent-light); font-style: normal; }
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--light-blue);
  max-width: 480px;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-stat-row { display: grid; grid-template-columns: 1fr; max-width: 280px; gap: 1rem; margin: 1.5rem 0; }
.hero-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
}
.hero-stat .num { display: block; font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.hero-stat .lbl {
  display: block;
  margin-top: .25rem;
  font-size: .7rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-pillars { display: flex; flex-direction: column; gap: .75rem; }
.hero-pillar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.2rem;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  transition: all .3s ease;
}
.hero-pillar:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.hero-pillar-icon {
  width: 38px; height: 38px; min-width: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  color: var(--light-blue);
}
.hero-pillar-icon svg { width: 18px; height: 18px; }
.hero-pillar-text { display: flex; flex-direction: column; gap: .15rem; }
.hero-pillar-text strong { font-size: .9rem; font-weight: 600; color: var(--white); }
.hero-pillar-text span { font-size: .75rem; color: #9eb2c8; }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255, 255, 255, .3);
  border-bottom: 2px solid rgba(255, 255, 255, .3);
  transform: rotate(45deg);
}

/* ── Services ──────────────────────────────────────────────────────────── */
#services { padding: 7rem 2rem; background: var(--off-white); }
/* Three pillar blocks: Advisory · Solutions · Capability Building */
.pillars { display: flex; flex-direction: column; gap: 1.5rem; }
.pillar {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}
.pillar-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.pillar-head .service-icon { margin-bottom: 0; flex-shrink: 0; }
.pillar h3 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy-dark); margin-bottom: .3rem; }
.pillar-tag { font-size: .95rem; color: var(--slate); line-height: 1.6; }
.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-left: 64px;
}
.pillar-list li { position: relative; padding-left: 1.1rem; font-size: .9rem; line-height: 1.6; color: var(--text-body); }
.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.pillar-text { padding-left: 64px; font-size: .9rem; line-height: 1.6; color: var(--text-body); }
.pillar-text + .pillar-text { margin-top: .75rem; }
#fractional .pillar-text { max-width: 900px; }  /* 64 px indent + ~836 px text: readable line length */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-left: 64px; }
.sol-card { padding: 1.25rem; background: var(--off-white); border: 1px solid var(--line); border-radius: 8px; }
.sol-card h4 { font-size: .95rem; font-weight: 600; color: var(--navy-dark); margin-bottom: .45rem; }
/* Outcome line: what the client gains, read first; topics below stay secondary */
.sol-outcome { margin-bottom: .65rem; font-size: .88rem; font-weight: 500; line-height: 1.45; color: var(--accent-ink); }
.sol-list { list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.sol-list li { position: relative; padding-left: .9rem; font-size: .82rem; line-height: 1.5; color: var(--slate); }
.sol-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .6em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--navy);
}

.service-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  border-radius: 6px;
  background: var(--navy);
}
.service-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── How we work: four steps (Assess · Prioritize · Pilot · Scale) ─────── */
#how-we-work { padding: 5rem 2rem; background: var(--white); }
#how-we-work .section-header { margin-bottom: 2.5rem; }
.hww-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hww-step {
  padding: 1.5rem 1.25rem;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 8px;
}
.hww-num {
  display: block;
  margin-bottom: .75rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.hww-step h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy-dark); margin-bottom: .4rem; }
.hww-step p { font-size: .9rem; line-height: 1.55; color: var(--text-body); }
.hww-link {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  transition: color var(--transition), border-color var(--transition);
}
.hww-link:hover { color: var(--accent-ink); border-color: var(--accent); }

/* ── Products ──────────────────────────────────────────────────────────── */
#products { padding: 4.5rem 2rem; background: var(--off-white); }
#products .section-header { margin-bottom: 2rem; }
#products .section-subtitle { max-width: 600px; }  /* 50% of the 1200 px content width */
.product-compact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 2.25rem 2.5rem;
  background: var(--navy);
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(7, 26, 56, .14);
  overflow: hidden;
}
.product-compact-copy { position: relative; z-index: 1; max-width: 760px; }
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
  padding: .35rem .9rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  color: var(--light-blue);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s ease-in-out infinite;
}
.product-compact h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: .55rem;
}
.product-compact p { font-size: .95rem; color: var(--light-blue); line-height: 1.7; }
.product-compact .btn-primary,
.product-compact .btn-primary:hover { position: relative; z-index: 1; white-space: nowrap; background: var(--white); border-color: var(--white); }

.product-list { display: flex; flex-direction: column; gap: 1.5rem; }
.product-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 2.25rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.product-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--navy-dark);
  margin-bottom: .55rem;
}
.product-card p { font-size: .95rem; color: var(--slate); line-height: 1.7; }
.btn-navy {
  display: inline-flex;
  align-items: center;
  padding: .85rem 2rem;
  border: 2px solid var(--navy);
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

/* ── About ─────────────────────────────────────────────────────────────── */
#about { padding: 7rem 2rem; background: var(--navy-dark); position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text .section-title { color: var(--white); }
.about-text p { font-size: .95rem; color: rgba(255, 255, 255, .7); line-height: 1.8; margin-top: 1.2rem; }
.about-text .section-subtitle { color: var(--light-blue); }
.values-list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.value-item { display: flex; align-items: flex-start; gap: 1rem; }
.value-num {
  min-width: 2rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-light);
  opacity: .5;
}
.value-body h3 { font-size: .95rem; font-weight: 600; color: var(--white); margin-bottom: .25rem; }
.about-text .value-body p { font-size: .85rem; color: rgba(255, 255, 255, .5); line-height: 1.6; }
.about-visual-col { display: flex; flex-direction: column; gap: 1.2rem; }
.kpi-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  transition: all var(--transition);
}
.kpi-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.kpi-num { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--accent-light); }
.kpi-label {
  margin-top: .35rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .45);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.kpi-sub { margin-top: .4rem; font-size: .85rem; line-height: 1.5; color: rgba(255, 255, 255, .6); }

/* Why we exist — Purpose · Vision · Mission (own section right after #about,
   in --navy so it reads as a separate section from the darker About) */
#purpose { padding: 7rem 2rem; background: var(--navy); }
#purpose .eyebrow { color: var(--accent-light); }
.pvm .section-title { color: var(--white); margin-bottom: 2.5rem; }
.pvm-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: baseline;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.pvm-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.pvm-row p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  max-width: 900px;
}
.pvm-row em { font-style: normal; color: var(--accent-light); }

.pvm-row--top { align-items: start; }
.pvm-row--top .pvm-label { padding-top: .5rem; }

/* Certifications row: logos on white boxes (readable on the navy background) + text tags */
.cert-logos, .cert-tags { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; }
.cert-logos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 12px 16px 10px;
  background: var(--white);
  border-radius: 8px;
}
.cert-logos span {
  font-size: .75rem;
  font-weight: 600;
  color: var(--navy-dark);
  text-align: center;
}
.cert-logos img { display: block; height: 72px; width: auto; }
.cert-tags { margin-top: 1rem; }
.cert-tags li {
  padding: .35rem .9rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .85);
}

/* ── Contact ───────────────────────────────────────────────────────────── */
#contact { padding: 7rem 2rem; background: var(--white); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start; }
.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--navy-dark);
  margin-bottom: 1rem;
}
.contact-info p { font-size: .95rem; color: var(--slate); line-height: 1.8; margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; font-size: .9rem; color: var(--text-body); }
.contact-detail svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail img { width: 18px; height: 18px; flex-shrink: 0; }
.contact-link { color: var(--text-body); text-decoration: none; border-bottom: 1px solid var(--accent-light); transition: border-color var(--transition); }
.contact-link:hover { border-color: var(--accent); }
.contact-form {
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(7, 26, 56, .08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--navy-dark); letter-spacing: .03em; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: .75rem 1rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--text-body);
  background: var(--off-white);
  border: 1.5px solid #ced9e5;
  border-radius: 4px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 43, 94, .08); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%;
  padding: .9rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}
.form-submit:hover { background: var(--navy-dark); box-shadow: 0 8px 24px rgba(14, 26, 61, .25); transform: translateY(-1px); }
.form-note { margin-top: .75rem; font-size: .75rem; color: var(--slate); text-align: center; }

/* ── Toast (form feedback) ─────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  padding: 1rem 1.5rem;
  font-size: .9rem;
  color: var(--white);
  background: var(--navy-dark);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  transform: translateY(100px);
  opacity: 0;
  transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.is-error { border-left-color: #ff5f57; }

/* ── Scroll-in animation ───────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: none; }
/* Anchor targets (#advisory, #solutions…) only fade, no slide: a moving target makes
   jumps from the menu/footer land 24 px off. */
.pillar.fade-up { transform: none; }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-born-dot, .product-tag .dot, .scroll-hint { animation: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding-top: 100px; padding-bottom: 2rem; }
  .hero-visual { display: none; }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .product-compact, .product-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillar-list, .pillar-text { padding-left: 0; }
  .sol-grid { grid-template-columns: 1fr; padding-left: 0; }
  .hww-steps { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 4rem 1.25rem; }
  #services, #about, #purpose { padding-left: 1.25rem; padding-right: 1.25rem; }
  #products { padding: 3.75rem 1.25rem; }
  #how-we-work { padding: 3.75rem 1.25rem; }
  .hww-steps { grid-template-columns: 1fr; }
  #contact { padding: 4rem 1.25rem; }
  .product-compact, .product-card { padding: 1.6rem; }
  .pillar { padding: 1.5rem; }
  .contact-wrap { gap: 2rem; }
  .contact-form { padding: 1.5rem; }
  .pvm-row { grid-template-columns: 1fr; gap: .6rem; padding: 1.5rem 0; }
  .pvm-row p { font-size: 1.1rem; }
  .cert-logos li { padding: 10px 12px 8px; }
  .cert-logos img { height: 56px; }
  .form-row { gap: 0; }
  .contact-form input, .contact-form textarea, .contact-form select { width: 100%; max-width: 100%; }
}
