/*
  Homepage styles (design "E7": wave hero, clarity strip, product cards,
  numbers band, footer). Loaded after styles.css on index.html only, so the
  other pages are unchanged. Every rule is scoped under body.home.
  Decision record: docs/decisions/adr-001-homepage-e7.md
*/

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Brand tokens (Brand Foundation Document v1.0) */
body.home {
  --his-blue: #123a5a;        /* Deep Atlantic Blue */
  --his-blue-dark: #0b2740;
  --his-teal: #2f6f73;        /* Slate Teal */
  --his-gold: #f2a93b;        /* Beacon Gold */
  --his-gold-text: #8a5a0b;   /* gold dark enough for text on white */
  --his-link-gold: #9a6510;
  --his-charcoal: #1e2933;
  --his-mist: #f4f7f8;
  --his-line: #e3e9ed;
  --his-body: #3d5166;
  --his-on-blue: #d3dee7;
  --his-on-dark: #c5ced6;
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-tagline: Georgia, "Times New Roman", serif;

  font-family: var(--font-body);
  color: var(--his-charcoal);
  background: #ffffff;
}

body.home section { padding: 0; background: none; }
body.home h1, body.home h2, body.home h3 { text-align: left; }

.home-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Buttons */
.home-btn {
  display: inline-block;
  padding: 15px 26px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.home-btn--solid { background: var(--his-gold); color: var(--his-charcoal); }
.home-btn--solid:hover { background: #e39a2a; }
.home-btn--outline { border: 1.5px solid var(--his-gold); color: var(--his-gold); }
.home-btn--outline:hover { background: var(--his-gold); color: var(--his-charcoal); }
.home-btn:focus-visible,
.home-nav a:focus-visible,
.home-card a:focus-visible,
.home-footer a:focus-visible {
  outline: 3px solid var(--his-gold);
  outline-offset: 3px;
}

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  min-height: 680px;
  background: #ffffff;
}
.home-hero-brand {
  position: relative;
  z-index: 2;
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 48px 160px;
}
.home-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.home-nav a { color: var(--his-blue); text-decoration: none; }
.home-nav a:hover { color: var(--his-blue-dark); text-decoration: underline; text-underline-offset: 4px; }

.home-wordmark-wrap { flex: 1 1 auto; display: flex; align-items: center; padding: 48px 0; }
.home-wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 10px solid var(--his-gold);
  padding-left: 28px;
  text-decoration: none;
}
.home-wordmark-line {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--his-blue);
}
.home-wordmark-tagline {
  margin-top: 16px;
  font-family: var(--font-tagline);
  font-style: italic;
  font-size: 20px;
  color: var(--his-gold-text);
}

.home-hero-panel {
  flex: 1.25 1 560px;
  min-width: 0;
  background: var(--his-blue);
  color: #ffffff;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px 180px 140px;
}
.home-hero-copy { position: relative; z-index: 2; }
.home-hero-copy h1 {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  color: #ffffff;
}
.home-hero-copy p {
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--his-on-blue);
  max-width: 500px;
}
.home-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Waves: three layered SVG bands drifting sideways at different speeds */
.home-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  pointer-events: none;
  z-index: 1;
}
.home-swell { position: absolute; inset: 0; animation: home-swell 9s ease-in-out infinite; }
.home-wave { position: absolute; left: 0; bottom: 0; width: 200%; display: flex; }
.home-wave svg { display: block; width: 50%; max-width: none; height: 100%; flex: 0 0 50%; }
.home-wave--1 { height: 220px; animation: home-drift 38s linear infinite; }
.home-wave--2 { height: 180px; animation: home-drift 26s linear infinite reverse; }
.home-wave--3 { height: 130px; animation: home-drift 18s linear infinite; }
@keyframes home-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes home-swell { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Clarity strip */
.home-clarity {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--his-line);
}
.home-clarity h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--his-blue);
}
.home-clarity ul { display: contents; list-style: none; }
.home-clarity li { font-size: 16px; color: var(--his-body); }
.home-clarity strong { color: var(--his-blue); }

/* Product cards */
.home-products { padding: 80px 0 !important; }
.home-products h2 {
  margin: 0 0 36px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 30px;
  color: var(--his-blue);
}
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; list-style: none; }
.home-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--his-line);
  border-top: 4px solid var(--his-blue);
  padding: 28px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(18, 58, 90, 0.16); }
.home-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--his-blue);
}
.home-card p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--his-body); flex: 1 1 auto; }
.home-card-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--his-gold-text);
  background: #fcefd8;
}
.home-card a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--his-link-gold);
  text-decoration: none;
}
.home-card a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Venture services */
.home-venture { padding: 80px 0 !important; background: #f4f6f8; }
.home-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--his-gold-text);
}
.home-venture h2 {
  margin: 0 0 14px;
  max-width: 820px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.25;
  color: var(--his-blue);
}
.home-venture-intro { margin: 0 0 36px; max-width: 680px; font-size: 17px; line-height: 1.6; color: var(--his-body); }
.home-venture .home-card { border-top-color: var(--his-gold); }
.home-venture .home-card p { margin-bottom: 0; }
.home-venture-cta { margin-top: 36px; }

/* Numbers band */
.home-numbers {
  background: var(--his-blue) !important;
  color: #ffffff;
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
}
.home-numbers ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
  list-style: none;
}
.home-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.2;
  color: var(--his-gold);
}
.home-number-label { display: block; margin-top: 4px; font-size: 16px; color: var(--his-on-blue); }

/* Footer */
.home-footer { background: var(--his-charcoal); color: #ffffff; }
.home-footer-main {
  padding-top: 56px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}
.home-footer-title { margin: 0 0 8px; font-family: var(--font-heading); font-weight: 600; font-size: 22px; }
.home-footer-sub { margin: 0; font-size: 15px; color: var(--his-on-dark); }
.home-footer-legal {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--his-on-dark);
}
.home-footer-legal a { color: var(--his-on-dark); }
.home-footer-legal a:hover { color: #ffffff; }

/* Tablet and phone */
@media (max-width: 1060px) {
  .home-hero-brand { padding-bottom: 40px; }
  .home-hero-panel { clip-path: none; padding: 56px 40px 200px; }
}
@media (max-width: 600px) {
  .home-wrap { padding-left: 20px; padding-right: 20px; }
  .home-hero { min-height: 0; }
  .home-hero-brand { padding: 20px 20px 32px; }
  .home-wordmark-wrap { padding: 32px 0 8px; }
  .home-wordmark { border-left-width: 8px; padding-left: 18px; }
  .home-wordmark-line { font-size: 40px; }
  .home-wordmark-tagline { font-size: 18px; }
  .home-hero-panel { padding: 44px 20px 170px; }
  .home-hero-copy h1 { font-size: 28px; }
  .home-hero-copy p { font-size: 16px; }
  .home-waves { height: 170px; }
  .home-wave--1 { height: 150px; }
  .home-wave--2 { height: 120px; }
  .home-wave--3 { height: 90px; }
  .home-clarity { padding: 40px 20px !important; gap: 12px; flex-direction: column; align-items: flex-start; }
  .home-products { padding: 56px 0 !important; }
  .home-products h2 { font-size: 26px; margin-bottom: 24px; }
  .home-venture { padding: 56px 0 !important; }
  .home-venture h2 { font-size: 24px; }
  .home-cards { grid-template-columns: 1fr; }
  .home-numbers { clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); }
  .home-numbers ul { padding: 80px 20px 56px; gap: 32px; }
  .home-number { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-swell, .home-wave--1, .home-wave--2, .home-wave--3 { animation: none; }
  .home-card, .home-btn { transition: none; }
  .home-card:hover { transform: none; }
}
