/* PhoenixIAM site styles, shared by Home and /drainrisk.
   Rules up to "Additions" are the original single-page styles, unchanged. */

:root {
  --maroon: #560A17;
  --red: #9A121E;
  --white: #FFFFFF;
  --black: #000000;
  --light-grey: #f4f2f2;
  --maroon-tint: #f7eef0;
  --border-grey: #e3dede;
  --text-muted: #4a4446;
  --header-h: 68px;
  --maxw: 1120px;
  --font: Arial, "Helvetica Neue", Helvetica, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--maroon);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 6px;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Section 1: Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--maroon);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; display: block; }
.nav-contact {
  font-weight: 700;
  text-decoration: none;
  color: var(--maroon);
  letter-spacing: .02em;
  padding: 8px 4px;
  position: relative;
}
.nav-contact::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav-contact:hover::after, .nav-contact:focus-visible::after { transform: scaleX(1); }

/* ---------- Section 2: Hero ---------- */
.hero {
  position: relative;
  background: var(--maroon);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 460px);
  aspect-ratio: 380 / 466;
  background: url("/assets/mark-white.webp") no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 9vw, 104px);
  padding-bottom: clamp(56px, 9vw, 104px);
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 800;
  max-width: 16ch;
  letter-spacing: -0.01em;
}
.hero .subhead {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  font-weight: 400;
  color: #f3e9eb;
  max-width: 60ch;
}
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 30px;
  border: 2px solid var(--red);
  border-radius: 6px;
  cursor: pointer;
  transition: background .18s ease, transform .08s ease, box-shadow .18s ease;
}
.btn:hover { background: #b8141f; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.btn:active { transform: translateY(1px); }
.hero .btn { margin-top: 34px; }

/* ---------- Section 3: What we do ---------- */
.what { background: var(--light-grey); padding-block: clamp(56px, 8vw, 96px); }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}
.what h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--maroon); margin-bottom: 44px; }
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 52px);
}
.col .mark {
  width: 48px; height: 48px;
  color: var(--maroon);
  margin-bottom: 18px;
}
.col .mark svg { width: 100%; height: 100%; display: block; }
.col h3 { font-size: 1.45rem; color: var(--maroon); margin-bottom: 12px; }
.col p { color: var(--black); font-size: 1.02rem; }

/* ---------- How it works ---------- */
.how { background: var(--white); padding-block: clamp(56px, 8vw, 96px); }
.how h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--maroon); margin-bottom: 40px; }
.how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.how-card {
  /* Blush fill: reuse the proof-point section's --maroon-tint (#f7eef0) so
     the two sections read as visually connected. Text keeps AA+ contrast on
     this fill (verified): black body ~18:1, maroon headings ~13:1, red
     numbers ~7:1. Cards sit on the white --how section background. */
  background: var(--maroon-tint);
  border: 1px solid var(--maroon);
  border-radius: 8px;
  padding: 24px 20px;
}
.how-card .num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.how-card h3 { font-size: 1.05rem; color: var(--maroon); margin-bottom: 10px; line-height: 1.3; }
.how-card p { font-size: .92rem; color: var(--black); line-height: 1.55; }
@media (max-width: 1000px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .how-grid { grid-template-columns: 1fr; } }
/* Mobile only: number + heading share one line ("01 Asset Register"); body stays below */
@media (max-width: 440px) {
  .how-card .num { display: inline; }
  .how-card h3 { display: inline; }
  .how-card p { margin-top: 12px; }
}

/* ---------- Section 4: Proof point ---------- */
.proof {
  background: var(--maroon-tint);
  border-top: 1px solid var(--border-grey);
  border-bottom: 1px solid var(--border-grey);
  padding-block: clamp(56px, 8vw, 96px);
  text-align: center;
}
.proof .inner { max-width: 920px; margin-inline: auto; }
.proof h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 800;
  color: var(--maroon);
  letter-spacing: -0.01em;
}
.proof .accent { color: var(--red); }
.proof .disclosure {
  margin-top: 26px;
  font-style: italic;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 820px;
  margin-inline: auto;
}

/* ---------- Section 5: About ---------- */
.about { background: var(--white); padding-block: clamp(56px, 8vw, 96px); }
.about .inner { max-width: 600px; margin-inline: auto; text-align: center; }
.about h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--maroon); margin-bottom: 22px; }
.about p { font-size: 1.1rem; color: var(--black); }

/* ---------- Section 6: Contact ---------- */
.contact { background: var(--maroon); color: var(--white); padding-block: clamp(56px, 8vw, 96px); }
.contact h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 8px; }
.contact .lead { color: #f3e9eb; margin-bottom: 44px; max-width: 60ch; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact h3 {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: #e9c9ce;
  margin-bottom: 20px;
  font-weight: 700;
}
.contact-detail { list-style: none; margin: 0; padding: 0; }
.contact-detail li { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-detail .ico { flex: 0 0 22px; width: 22px; height: 22px; color: var(--red); margin-top: 3px; }
.contact-detail .ico svg { width: 100%; height: 100%; display: block; }
.contact-detail .label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #d9b3b8; margin-bottom: 2px; }
.contact-detail a, .contact-detail span.value { color: var(--white); text-decoration: none; font-size: 1.08rem; font-weight: 600; }
.contact-detail a:hover { text-decoration: underline; }

/* Form */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 7px; }
.form-field .req { color: #f0b8bd; }
.form-field input, .form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid #c9bfc1;
  border-radius: 6px;
  padding: 12px 14px;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8a8285; }
.field-error { display: none; color: #ffd0d4; font-size: .85rem; margin-top: 6px; font-weight: 600; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #ffd0d4; outline: 2px solid #ffd0d4; }
.form-field.invalid .field-error { display: block; }
.contact form .btn { width: 100%; margin-top: 6px; }
.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #ffffff; color: var(--maroon); }
.form-status.error { background: #2b0207; color: #ffd0d4; border: 1px solid var(--red); }

/* ---------- Section 7: Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding-block: 30px;
  font-size: .82rem;
}
.site-footer p { margin: 5px 0; color: #cfcfcf; }
.site-footer a { color: var(--white); text-decoration: underline; }
.site-footer a:hover { color: #f0b8bd; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero::after { opacity: 0.05; right: -120px; }
}
@media (max-width: 680px) {
  .cols { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 420px) {
  .brand img { height: 40px; }
}
  

/* ---------- Additions (redesign, Oct 2026) ----------
   Shared type scale for every page (matches the original Home sections):
   section headings clamp(1.6rem, 3.4vw, 2.2rem) maroon; body 1.02rem;
   section padding clamp(56px, 8vw, 96px); Arial throughout. */

/* Primary nav: two links */
.nav { display: flex; gap: 22px; }
.nav-contact[aria-current="page"]::after { transform: scaleX(1); }

/* Standard section + heading (used on /drainrisk, /privacy, 404) */
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--maroon); margin-bottom: 14px; }
.sec .intro { font-size: 1.02rem; max-width: 760px; margin-bottom: 32px; }
.sec p { font-size: 1.02rem; }
.bg-white { background: var(--white); }
.bg-tint { background: var(--maroon-tint); }
.bg-grey { background: var(--light-grey); }

/* Headings where only "DrainRisk:" is bold */
h1.h-split, h2.h-split { font-weight: 400; }
h1.h-split strong, h2.h-split strong { font-weight: 700; }

/* Home section backgrounds: What we do white, DrainRisk tint, About white */
.what { background: var(--white); }
#drainrisk { background: var(--maroon-tint); }
.about { background: var(--white); }

/* Dashboard section (Home + /drainrisk) */
.drainrisk { padding-block: clamp(56px, 8vw, 96px); }
.drainrisk h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--maroon); margin-bottom: 28px; }
.shot-figure { margin: 0; }
.shot { border: 1px solid var(--border-grey); border-radius: 8px; overflow: hidden; background: #141414; }
.shot img { display: block; width: 100%; height: auto; }
.summary { margin-top: 24px; max-width: 760px; font-size: 1.02rem; color: var(--black); }
.drainrisk .more { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--maroon); }

/* Inner-page title band (maroon, faint phoenix mark like the Home hero) */
.page-hero { position: relative; background: var(--maroon); color: var(--white); overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: min(34vw, 300px); aspect-ratio: 380 / 466;
  background: url("/assets/mark-white.webp") no-repeat center / contain; opacity: 0.06; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(48px, 7vw, 84px); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .subhead { margin-top: 14px; color: #f3e9eb; font-size: clamp(1.02rem, 1.8vw, 1.15rem); max-width: 60ch; }

/* How it works directly after the dashboard section keeps standard spacing */
.how h2 { margin-bottom: 32px; }

/* ---------- /drainrisk: Model Features + Risk Tier Output ---------- */
.model-tables .tiers-heading { margin-top: clamp(44px, 6vw, 64px); }
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cfc6c8; background: var(--white); }
.feature-col + .feature-col { border-left: 1px solid #cfc6c8; }
.feature-col h3 { background: var(--maroon); color: var(--white); font-size: 1rem; text-align: center; padding: 11px 14px; line-height: 1.35; }
.feature-col + .feature-col h3 { border-left: 1px solid rgba(255,255,255,.25); margin-left: -1px; }
.feature-col ul { margin: 0; padding: 16px 18px 18px 36px; }
.feature-col li { margin-bottom: 6px; font-size: 1.02rem; }

.tier-scroll { overflow-x: auto; }
.tier-table { width: 100%; min-width: 520px; border-collapse: collapse; table-layout: fixed; }
.tier-table th, .tier-table td { border: 1px solid #cfc6c8; padding: 14px 16px; vertical-align: top; }
.tier-table thead th { color: var(--white); font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; text-align: center; padding: 11px 8px; }
.t-high { background: var(--red); }
.t-medium { background: #A85A06; }
.t-low { background: #2E6930; }
.tier-table tbody td { background: var(--white); text-align: center; font-size: 1.02rem; line-height: 1.55; }
.table-note { margin-top: 14px; font-size: .9rem !important; color: var(--text-muted); max-width: 820px; }

.tier-cards { display: none; list-style: none; margin: 0; padding: 0; }
.tier-cards li { background: var(--white); border: 1px solid #cfc6c8; margin-bottom: 12px; }
.tier-cards .tc-head { display: block; color: var(--white); font-weight: 700; letter-spacing: .04em; text-align: center; padding: 9px; font-size: 1.05rem; }
.tier-cards p { padding: 12px 14px 14px; line-height: 1.5; }

/* ---------- /drainrisk: Evidence ----------
   Three figures on one pale maroon band, thin dividers, no boxed cards
   (deliberately different from the How it works cards). */
.ev-band { display: grid; grid-template-columns: 1fr 1.35fr 1fr; list-style: none; margin: 0; padding: 0; background: var(--maroon-tint); border-top: 3px solid var(--maroon); }
.ev-band { grid-template-rows: auto auto auto 1fr; }
.ev-item { padding: clamp(24px, 3vw, 36px) clamp(20px, 2.6vw, 32px); grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.ev-item > * { align-self: start; }
.ev-item + .ev-item { border-left: 1px solid #dcc6ca; }
.ev-num { display: block; align-self: end !important; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--maroon); line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ev-label { font-size: 1.05rem; font-weight: 700; color: var(--black); line-height: 1.35; margin-bottom: 6px; }
.ev-cap { font-size: .95rem !important; color: var(--text-muted); line-height: 1.5; }
.ev-bars { list-style: none; margin: 16px 0 0; padding: 0; font-size: .82rem; max-width: 360px; }
.ev-bars li { display: grid; grid-template-columns: 4.6em 1fr 3.4em; align-items: center; gap: 8px; margin-bottom: 6px; }
.ev-bars .bar { height: 8px; background: #e6d7da; border-radius: 4px; overflow: hidden; }
.ev-bars .bar span { display: block; height: 100%; background: var(--red); }
.ev-bars .bg .bar span { background: #8a8285; }
.ev-bars .pct { text-align: right; font-variant-numeric: tabular-nums; }
.ev-bars .bg { color: var(--text-muted); }

/* ---------- /drainrisk: Partner with us (maroon band, like Contact) ---------- */
.partner-band { background: var(--maroon); color: var(--white); padding-block: clamp(56px, 8vw, 96px); }
.partner-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 14px; }
.partner-band p { color: #f3e9eb; max-width: 760px; font-size: 1.02rem; }
.partner-band .btn { margin-top: 26px; }

/* ---------- /privacy ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); color: var(--maroon); margin: 34px 0 10px; line-height: 1.25; }
.prose p, .prose li { font-size: 1.02rem; line-height: 1.65; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--maroon); overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .feature-cols { grid-template-columns: 1fr; }
  .feature-col + .feature-col { border-left: 0; border-top: 1px solid #cfc6c8; }
  .feature-col + .feature-col h3 { border-left: 0; margin-left: 0; }
  .tier-scroll { display: none; }
  .tier-cards { display: block; }
  .ev-band { grid-template-columns: 1fr; }
  .ev-item + .ev-item { border-left: 0; border-top: 1px solid #dcc6ca; }
  .page-hero::after { right: -110px; opacity: 0.05; }
}
/* Very narrow phones (320 px and below): keep logo + two nav links on one line */
@media (max-width: 380px) {
  .brand img { height: 34px; }
  .nav { gap: 10px; }
  .nav-contact { font-size: .95rem; padding-inline: 2px; letter-spacing: 0; }
}
/* Long email address and URLs may wrap rather than push the page wider */
.contact-detail a, .contact-detail .value, .prose a { overflow-wrap: anywhere; }
@media (max-width: 300px) {
  .brand img { height: 30px; }
  .nav { gap: 8px; }
  .nav-contact { font-size: .9rem; }
}
.prose { overflow-wrap: break-word; }

/* How it works: chevron connectors between cards 01 to 05 */
.how-card { position: relative; }
.how-card:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -14px;
  width: 9px; height: 9px; border-top: 2px solid var(--maroon); border-right: 2px solid var(--maroon);
  transform: translateY(-50%) rotate(45deg); pointer-events: none;
}
@media (max-width: 1000px) and (min-width: 681px) { .how-card:nth-child(3n)::after { display: none; } }
@media (max-width: 680px) and (min-width: 441px) { .how-card:nth-child(2n)::after { display: none; } }
@media (max-width: 440px) {
  .how-card:not(:last-child)::after { top: auto; right: auto; left: 50%; bottom: -14px; transform: translateX(-50%) rotate(135deg); }
}

/* Evidence on phones */
@media (max-width: 680px) {
  .ev-band { grid-template-rows: none; }
  .ev-item { grid-row: auto; display: block; }
}

/* /drainrisk: mandatory disclosure as small print under the dashboard paragraph */
.disclosure-note { margin-top: 14px; max-width: 760px; font-size: 13px !important; line-height: 1.55; color: var(--text-muted); }

/* Logo v3 is wider (3.8:1), so phones get a slightly smaller logo; 46 px tall above 480 px as before */
@media (max-width: 480px) { .brand img { height: 36px; } }
@media (max-width: 380px) { .brand img { height: 30px; } }
@media (max-width: 300px) { .brand img { height: 25px; } }
