/* ============================================================
   GUARDIAN LIFE — landing page stylesheet
   Palette + system per SPEC.md §6. No frameworks, no deps.
   ============================================================ */

:root {
  --ink: #0B1B4D;
  --brand-blue: #1B3A94;
  --brand-red: #E0232E;
  --red-deep: #B8223A;
  --ivory: #F2F0E9;
  --bone: #E9E7DC;
  --card: #FFFFFF;
  --slate: #4E5875;
  --line: #D8D4C8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;

  --radius-card: 20px;
  --shadow-soft: 0 10px 30px rgba(11, 27, 77, 0.08);
  --shadow-hover: 0 18px 44px rgba(11, 27, 77, 0.14);
  --container: 1200px;
  --section-pad: clamp(72px, 10vw, 140px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain overlay — atmosphere, not noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.35rem; letter-spacing: 0; }

p { margin: 0 0 1em; }

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--red-deep); }

img, svg { max-width: 100%; display: block; }

::selection { background: var(--ink); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 18px;
  border-radius: 999px;
}
.skip-link:focus { left: 12px; color: var(--ivory); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

section { padding-block: var(--section-pad); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand-red);
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { color: var(--slate); font-size: 1.125rem; max-width: 56ch; }

.accent-i { font-style: italic; font-weight: 500; color: var(--brand-blue); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
              background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 8px 22px rgba(11, 27, 77, 0.22);
}
.btn-primary:hover { background: var(--brand-blue); color: var(--ivory); box-shadow: 0 14px 30px rgba(27, 58, 148, 0.3); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

.btn-whatsapp {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(224, 35, 46, 0.28);
}
.btn-whatsapp:hover { background: var(--red-deep); color: #fff; }

.btn-ghost-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(242, 240, 233, 0.55);
}
.btn-ghost-light:hover { background: var(--ivory); color: var(--ink); }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
  padding-block: 18px;
}
.site-header.scrolled {
  background: rgba(242, 240, 233, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand-name .brand-accent { color: var(--brand-red); font-style: italic; }
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15.5px;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--brand-red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { padding: 11px 22px; font-size: 15px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 88% 8%, rgba(27, 58, 148, 0.1), transparent 62%),
    radial-gradient(700px 500px at 4% 96%, rgba(224, 35, 46, 0.06), transparent 60%),
    var(--ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 { margin-bottom: 24px; max-width: 13ch; }
.hero h1 .accent-i { color: var(--red-deep); }

.hero .sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--slate);
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.micro-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--slate);
  font-size: 14.5px;
  font-weight: 500;
}
.micro-trust li { display: inline-flex; align-items: center; gap: 7px; }
.micro-trust svg { width: 15px; height: 15px; color: var(--brand-red); flex: none; }

/* Hero visual — layered brand composition */
.hero-visual { position: relative; aspect-ratio: 4 / 4.6; }
.hero-visual .panel {
  position: absolute;
  border-radius: 24px;
}
.panel-navy {
  inset: 8% 14% 14% 0;
  background: linear-gradient(155deg, var(--brand-blue), var(--ink) 72%);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.panel-navy .wing {
  position: absolute;
  right: -14%;
  bottom: -10%;
  width: 78%;
  opacity: 0.18;
}
.panel-navy .halo {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 240, 233, 0.22), transparent 65%);
}
.panel-red {
  right: 0;
  top: 0;
  width: 34%;
  aspect-ratio: 1;
  background: linear-gradient(150deg, var(--brand-red), var(--red-deep));
  box-shadow: var(--shadow-soft);
}
.hero-card {
  position: absolute;
  left: -6%;
  bottom: 2%;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 300px;
}
.hero-card .dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(27, 58, 148, 0.1);
  display: grid;
  place-items: center;
  color: var(--brand-blue);
  flex: none;
}
.hero-card .dot svg { width: 22px; height: 22px; }
.hero-card strong { display: block; font-size: 15px; }
.hero-card span { font-size: 13.5px; color: var(--slate); }

.hero-quote {
  position: absolute;
  right: -2%;
  top: 42%;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15.5px;
  max-width: 240px;
  line-height: 1.4;
}
.hero-quote .who {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 240, 233, 0.7);
  margin-top: 8px;
}

/* ---------- Trust strip ---------- */

.strip {
  background: var(--bone);
  border-block: 1px solid var(--line);
  padding-block: clamp(36px, 4vw, 52px);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.stat .num .unit { color: var(--brand-red); }
.stat .label {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--slate);
  font-weight: 500;
}

/* ---------- Solutions ---------- */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.sol-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.sol-card.featured {
  grid-column: span 6;
  border-top: 3px solid var(--brand-red);
}
.sol-card.standard { grid-column: span 6; }

@media (min-width: 901px) {
  .sol-card.standard { grid-column: span 6; }
}

.sol-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-deep);
  background: rgba(224, 35, 46, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
}

.sol-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(27, 58, 148, 0.08);
  color: var(--brand-blue);
}
.sol-icon svg { width: 28px; height: 28px; }
.featured .sol-icon { background: var(--ink); color: var(--ivory); }

.sol-card h3 { font-size: 1.6rem; margin: 0; }
.featured h3 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); }
.sol-card .blurb { color: var(--slate); margin: 0; }
.featured .blurb { font-size: 1.06rem; }

.sol-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 15px;
  color: var(--ink);
}
.sol-points li { display: flex; gap: 10px; align-items: baseline; }
.sol-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  flex: none;
  transform: translateY(-1px);
}

.sol-cta {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.sol-cta svg { width: 17px; height: 17px; transition: transform 0.2s var(--ease-out); }
.sol-cta:hover { color: var(--red-deep); }
.sol-cta:hover svg { transform: translateX(4px); }

/* ---------- Why choose ---------- */

.why { background: var(--bone); border-block: 1px solid var(--line); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(224, 35, 46, 0.08);
  color: var(--red-deep);
  margin-bottom: 16px;
}
.why-icon svg { width: 23px; height: 23px; }
.why-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why-card p { color: var(--slate); font-size: 15.5px; margin: 0; }

/* ---------- Process ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
  position: relative;
  margin-bottom: 48px;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: var(--line);
}
.process-steps::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 4%;
  right: 96%;
  height: 2px;
  background: var(--brand-red);
  transition: right 1.4s var(--ease-out);
}
.process-steps.drawn::after { right: 4%; }

.step { position: relative; padding-top: 76px; }
.step .node {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  z-index: 1;
}
.step:first-child .node,
.step.lit .node { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--slate); font-size: 14.5px; margin: 0; }

.process .center-cta { text-align: center; }

/* ---------- Consultant ---------- */

.consultant { background: var(--bone); border-block: 1px solid var(--line); }
.consultant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 3.4fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.portrait {
  aspect-ratio: 4 / 4.4;
  max-width: 340px;
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, var(--brand-blue), var(--ink));
  box-shadow: var(--shadow-hover);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
/* Real photo fills the frame; falls back to the initials panel if absent */
.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 1;
}
/* Navy grade keeps a photo sitting inside the brand — only when one is loaded,
   so it never tints the placeholder panel underneath */
.portrait:has(.portrait-photo)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 27, 77, 0) 48%, rgba(11, 27, 77, 0.5));
}
/* Once a photo loads, drop the placeholder furniture */
.portrait:has(.portrait-photo) .wing,
.portrait:has(.portrait-photo) .portrait-note { display: none; }

.portrait .initials {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  color: rgba(242, 240, 233, 0.9);
  font-style: italic;
}
.portrait .wing {
  position: absolute;
  bottom: -8%;
  right: -12%;
  width: 70%;
  opacity: 0.16;
}
.portrait-note {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(242, 240, 233, 0.92);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--slate);
  text-align: center;
}
.consultant blockquote {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.consultant .sig strong { display: block; font-size: 1.05rem; }
.consultant .sig span { color: var(--slate); font-size: 14.5px; }
.consultant .btn { margin-top: 26px; }

/* ---------- Why it matters (dark band) ---------- */

.matters {
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(27, 58, 148, 0.5), transparent 60%),
    var(--ink);
  color: var(--ivory);
}
.matters .eyebrow { color: #ff8d95; }
.matters .eyebrow::before { background: var(--brand-red); }
.matters .section-head .lead { color: rgba(242, 240, 233, 0.75); }

.matters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.matter-tile {
  border: 1px solid rgba(242, 240, 233, 0.16);
  border-radius: var(--radius-card);
  padding: 34px 30px;
  background: rgba(242, 240, 233, 0.03);
}
.matter-tile .big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ivory);
}
.matter-tile .big .u { color: #ff6b74; }
.matter-tile p { margin: 14px 0 0; color: rgba(242, 240, 233, 0.78); font-size: 15.5px; }

.matters .assurance {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  max-width: 30ch;
  line-height: 1.4;
  margin-bottom: 34px;
}
.matters .assurance em { color: #ff8d95; font-style: inherit; }

/* ---------- Testimonials ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.t-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.t-stars { display: flex; gap: 3px; color: var(--brand-red); }
.t-stars svg { width: 17px; height: 17px; }
.t-quote {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.65;
}
.t-person { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.t-avatar {
  position: relative;
  overflow: hidden;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-blue), var(--ink));
  color: var(--ivory);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-display);
  flex: none;
}
/* Photo covers the initials when one exists; removed on error so they show */
.t-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t-person strong { display: block; font-size: 15px; }
.t-person span { color: var(--slate); font-size: 13.5px; }

.sample-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--slate);
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq { background: var(--bone); border-block: 1px solid var(--line); }
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.faq-q .chev {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--red-deep);
  transition: transform 0.3s var(--ease-out);
}
.faq-item[data-open] .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.faq-item[data-open] .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  margin: 0;
  padding: 0 26px 24px;
  color: var(--slate);
  font-size: 15.5px;
}

/* ---------- Contact / final CTA ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy h2 { max-width: 14ch; }
.contact-copy .lead { color: var(--slate); font-size: 1.1rem; max-width: 44ch; }
.contact-copy .btn { margin-top: 10px; }

.contact-alt {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  font-size: 15.5px;
  color: var(--slate);
}
.contact-alt a { font-weight: 600; }
.contact-alt li { display: flex; gap: 10px; align-items: center; list-style: none; }
.contact-alt ul { margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-alt svg { width: 17px; height: 17px; color: var(--red-deep); flex: none; }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 3.4vw, 44px);
}
.form-card h3 { margin-bottom: 6px; }
.form-card .form-sub { color: var(--slate); font-size: 15px; margin-bottom: 26px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field label .req { color: var(--red-deep); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(27, 58, 148, 0.12);
}
.field textarea { resize: vertical; min-height: 96px; }
.field .error-msg {
  display: none;
  color: var(--red-deep);
  font-size: 13.5px;
  margin-top: 6px;
}
.field.invalid input, .field.invalid select { border-color: var(--red-deep); }
.field.invalid .error-msg { display: block; }

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--slate);
  margin-bottom: 24px;
}
.consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand-blue);
  flex: none;
}

.form-card .btn { width: 100%; }

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success .tick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(27, 58, 148, 0.1);
  color: var(--brand-blue);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.form-success .tick svg { width: 30px; height: 30px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--slate); font-size: 15.5px; margin-bottom: 22px; }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(242, 240, 233, 0.8);
  padding-block: 72px 40px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 52px;
}
.site-footer .brand { color: var(--ivory); margin-bottom: 16px; }
.site-footer .brand-sub { color: rgba(242, 240, 233, 0.55); }
.footer-tag { max-width: 34ch; color: rgba(242, 240, 233, 0.7); }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 240, 233, 0.5);
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { color: rgba(242, 240, 233, 0.82); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; align-items: center; }
.footer-contact svg { width: 16px; height: 16px; color: var(--brand-red); flex: none; }

.footer-legal {
  border-top: 1px solid rgba(242, 240, 233, 0.14);
  padding-top: 28px;
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: rgba(242, 240, 233, 0.55);
}
.footer-legal .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-legal a { color: rgba(242, 240, 233, 0.7); }

/* ---------- Sticky mobile bar ---------- */

.sticky-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 55;
  display: none;
  gap: 10px;
  padding: 10px;
  background: rgba(242, 240, 233, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-hover);
  transform: translateY(130%);
  transition: transform 0.35s var(--ease-out);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar .btn { flex: 1; padding: 13px 10px; font-size: 15px; }
.sticky-bar .btn-whatsapp { flex: 0 0 auto; width: 52px; padding: 13px; }

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}
[data-reveal].in { opacity: 1; transform: none; }

.count-up { font-variant-numeric: tabular-nums; }

/* ---------- Scroll motion layer ---------- */

/* Thin brand progress line along the top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  background: linear-gradient(90deg, var(--brand-red), var(--red-deep));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Word-mask headline reveals (split by JS; skipped under reduced motion) */
.w {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.08em;
  vertical-align: bottom;
}
.wi {
  display: inline-block;
  transform: translateY(120%);
  transition: transform 0.75s var(--ease-out);
  transition-delay: min(calc(var(--wi, 0) * 55ms + var(--d, 0) * 80ms), 850ms);
  will-change: transform;
}
[data-reveal].words-ready {
  opacity: 1;
  transform: none;
  transition: none;
}
[data-reveal].in .wi { transform: translateY(0); }

/* Parallax elements (JS drives transform) */
[data-parallax] { will-change: transform; }

/* Idle float on the hero badge */
@keyframes floaty {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}
.hero-card { animation: floaty 5s ease-in-out infinite alternate; }

/* Giant wing watermark drifting behind the dark band */
.matters { overflow: hidden; }
.matters > .container { position: relative; z-index: 1; }
.matters-wing {
  position: absolute;
  z-index: 0;
  right: -6%;
  top: 4%;
  width: min(560px, 58vw);
  opacity: 0.05;
  pointer-events: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .hero-quote { right: 0; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    font-size: 1.2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    z-index: 49;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.25rem; }
  .nav-toggle { display: block; position: relative; z-index: 51; }

  .hero { padding-top: 120px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }

  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }

  .solutions-grid { grid-template-columns: 1fr; }
  .sol-card.featured, .sol-card.standard { grid-column: auto; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .process-steps { grid-template-columns: 1fr; gap: 34px; }
  .process-steps::before,
  .process-steps::after { display: none; }
  .step { padding-top: 0; padding-left: 76px; }
  .step .node { top: -2px; }

  .consultant-grid { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 300px); margin-inline: auto; }

  .matters-grid { grid-template-columns: 1fr; }

  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }

  .sticky-bar { display: flex; }
  body { padding-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .hero-card { position: static; margin-top: 18px; max-width: none; }
  .hero-quote { display: none; }
  .hero-visual { aspect-ratio: auto; }
  .panel-navy { position: relative; inset: auto; aspect-ratio: 4/3; }
  .panel-red { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .process-steps::after { right: 4%; }
  .wi { transform: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ---------- Utility pages (privacy / terms) ---------- */

.legal-page { padding-top: 160px; max-width: 760px; }
.legal-page h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.legal-page h2 { font-size: 1.4rem; margin-top: 2em; }
.legal-page p, .legal-page li { color: var(--slate); }
.legal-page .back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 30px; }
