/* RockTech Solutions — HouseCanary design language
   Palette, type scale, components extracted from housecanary.com (see
   /var/lib/jarvis/projects/prompts/rocktech-redesign-brief.md, 2026-09-23). */

:root {
  --navy: #20203f;
  --navy-2: #20213d;
  --blue: #0c62ff;
  --blue-deep: #004ee1;
  --blue-light: #6fa3ff;
  --blue-pale: #f2f7ff;
  --blue-hover: #1358d6;
  --yellow: #f7d56f;
  --grey: #979797;
  --grey-text: #4c5458;
  --grey-text-2: #808c91;
  --border: #e6e9f1;
  --line-soft: #c9dcff;
  --neutral: #f0f2f3;
  --white: #fff;

  /* Crest facets, clockwise from the top (rocktech-pfp-diamond-crest.svg) */
  --facet-green: #39984a;
  --facet-green-deep: #2e7c3d;
  --facet-gold: #fdd17c;
  --facet-amber: #f49e19;
  --facet-red: #e05535;
  --facet-slate: #a2a0a4;
  --facet-purple: #7e6390;
  --facet-blue: #1076b2;
  --facet-stops:
    var(--facet-green) 0 12.5%, var(--facet-green-deep) 0 25%,
    var(--facet-gold) 0 37.5%, var(--facet-amber) 0 50%,
    var(--facet-red) 0 62.5%, var(--facet-slate) 0 75%,
    var(--facet-purple) 0 87.5%, var(--facet-blue) 0 100%;

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Poppins", Arial, sans-serif;

  --shadow-card: 0 2px 7px #14142b17;
  --shadow-card-hover: 0 8px 30px #0000001a;
  --shadow-image: 0 7px 14px rgba(32, 32, 63, .10), 0 26px 26px rgba(32, 32, 63, .09), 0 59px 36px rgba(32, 32, 63, .07);
  --ease-card: cubic-bezier(.25, .46, .45, .94);

  --nav-height: 80px;
  --container-wide: 1400px;
  --container: 1000px;
  --section-padding: 100px;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/space-grotesk-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/space-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

section { scroll-margin-top: calc(var(--nav-height) + 16px); }

/* ---------- Headings (Webflow-class scale from HC) ---------- */

.h1, h1 { font-family: var(--font-heading); font-weight: 600; font-size: 3em; line-height: 1.25em; color: var(--navy); }
.h2, h2 { font-family: var(--font-heading); font-weight: 600; font-size: 2.4em; line-height: 1.25em; color: var(--navy); }
.h3, h3 { font-family: var(--font-heading); font-weight: 600; font-size: 1.8em; line-height: 1.4em; color: var(--navy); }
.h4, h4 { font-family: var(--font-heading); font-weight: 600; font-size: 1.5em; line-height: 1.25em; color: var(--navy); }
.h5, .eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1em;
  line-height: 1.5em;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
}
.h6 { font-family: var(--font-heading); font-weight: 500; font-size: 1em; line-height: 1.25em; letter-spacing: .5px; color: var(--grey-text-2); }

.paragraph { font-family: var(--font-body); font-weight: 400; font-size: 1.05rem; line-height: 1.9; color: var(--navy); }
.paragraph-white, .paragraph.white { color: rgba(255, 255, 255, .92); }

/* ---------- Layout ---------- */

.container { max-width: var(--container); margin: 0 auto; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 40px; }

.section { padding: var(--section-padding) 40px; }
.section-blue-bg { background: var(--blue-pale); }

.section-sub { font-size: 1.1rem; color: var(--grey-text-2); max-width: 720px; margin-top: 12px; }

.section-intro { max-width: 860px; margin-top: 28px; display: grid; gap: 20px; }

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--blue-pale);
  transition: box-shadow .3s ease;
}
.navbar.is-scrolled { box-shadow: 0 2px 14px rgba(32, 32, 63, .08); }

.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo { display: block; height: 48px; width: auto; }
.brand-footer .brand-logo { height: 56px; }

.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  /* 75% of the original full-viewport hero (was 100vh - nav, capped at 900px) */
  min-height: calc((100vh - var(--nav-height)) * .75);
  max-height: 675px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 72px 40px 64px;
}

.hero-bg { position: absolute; inset: 0; background: linear-gradient(155deg, #171730 0%, var(--navy) 45%, #0d1e4a 100%); }

/* Background photo, desaturated then tinted brand blue. Swap the file, keep the treatment. */
.hero-photo {
  position: absolute; inset: 0;
  background: url("../img/hero-bg.webp") center / cover no-repeat;
  filter: grayscale(1) contrast(1.1) brightness(.9);
}
.hero-tint {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, var(--blue-deep) 0%, var(--blue) 55%, #0d1e4a 100%);
  mix-blend-mode: multiply;
  opacity: .92;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(111, 163, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 163, 255, .055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.hero-glow-a { width: 640px; height: 640px; left: -180px; top: -160px; background: radial-gradient(circle, rgba(12, 98, 255, .34) 0%, transparent 65%); }
.hero-glow-b { width: 760px; height: 760px; right: -220px; bottom: -280px; background: radial-gradient(circle, rgba(0, 78, 225, .30) 0%, transparent 65%); }

.hero-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 23, 48, .82) 0%, rgba(32, 32, 63, .55) 45%, rgba(32, 32, 63, .15) 100%); }

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.hero-content { text-align: left; }

.hero-logo { display: flex; justify-content: center; }
.hero-logo img {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(5, 10, 40, .55));
}

/* 8-facet strip in crest order: hero base and footer top */
.facet-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  z-index: 2;
  background: linear-gradient(90deg, var(--facet-stops));
}
.facet-bar-top { top: 0; bottom: auto; }

.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 3.6em;
  line-height: 1.15em;
  color: var(--white);
  max-width: 14em;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .88);
  max-width: 34em;
  margin-top: 24px;
}

.hero-trust {
  margin-top: 48px;
  font-size: .8rem;
  letter-spacing: .5px;
  color: var(--blue-light);
}

/* ---------- Buttons (HC .button spec) ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 8px 22px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 25px;
  text-decoration: none;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.button:hover { background: var(--blue-hover); color: var(--white); }

.button-small { min-height: 40px; padding: 6px 16px; font-size: 13.5px; }

.button-white { background: transparent; border-color: rgba(255, 255, 255, .85); color: var(--white); }
.button-white:hover { background: var(--white); color: var(--navy); }

.button-bg-white { background: var(--white); color: var(--blue); }
.button-bg-white:hover { background: var(--blue-pale); color: var(--blue-hover); }

.button-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.button-outline:hover { background: var(--navy); color: var(--white); }

.button-wrapper { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

/* ---------- Cards ---------- */

.grid { display: grid; margin-top: 60px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 40px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease-card), box-shadow .3s var(--ease-card);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

/* Crest above each section heading */
.section-crest { display: block; width: 56px; height: 56px; margin-bottom: 22px; filter: drop-shadow(0 6px 12px rgba(32, 32, 63, .18)); }
.section-blue-bg .card { background: var(--white); }

.card-icon { width: 34px; height: 34px; stroke: var(--blue); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }

.card-text { font-size: .92rem; line-height: 1.85; color: var(--grey-text); margin-top: 12px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1em;
  color: var(--blue);
  text-decoration: none;
}
.arrow-link .arrow { transition: transform .25s var(--ease-card); }
.arrow-link:hover .arrow { transform: translateX(5px); }
.arrow-link:hover { color: var(--blue-hover); }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(180deg, var(--blue-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding-top: 110px;
  padding-bottom: 110px;
}

.cta-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; }

.cta-title { color: var(--white); }

.cta-heading { color: var(--white); margin-top: 36px; }

.cta-copy .paragraph { margin-top: 20px; }

.cta-media img {
  border-radius: 14px;
  box-shadow: var(--shadow-image);
  border: 1px solid rgba(255, 255, 255, .14);
  aspect-ratio: 864 / 1184;
  object-fit: cover;
  width: 100%;
  max-height: 620px;
}

/* ---------- Learn promo ---------- */

.learn-section { background: var(--white); }

.learn-card {
  display: flex;
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .3s var(--ease-card), box-shadow .3s var(--ease-card);
}
.learn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.learn-accent { flex: 0 0 8px; background: linear-gradient(180deg, var(--facet-stops)); }

.learn-body { padding: 56px 60px; }
.learn-body .h3 { margin-bottom: 16px; }
.learn-body .button { margin-top: 32px; }

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

.footer { position: relative; background: var(--blue-pale); border-top: 1px solid #e4ebf3; padding: 80px 40px 40px; }

.footer-content {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr .8fr;
  gap: 70px;
  padding: 0;
}

.footer-tagline { margin-top: 20px; font-size: .95rem; line-height: 1.8; color: var(--grey-text-2); max-width: 34em; }

.footer-heading { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--navy); margin-bottom: 18px; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-link { font-size: 12px; line-height: 1.6; color: var(--navy); text-decoration: none; }
.footer-link:hover { color: rgba(26, 27, 31, .75); }

.footer-bottom { margin-top: 60px; padding: 24px 40px 0; border-top: 1px solid #e4ebf3; }
.footer-legal { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--grey-text-2); }
.footer-crest { width: 28px; height: 28px; flex-shrink: 0; }

/* ---------- Reveal motion (data-w-id equivalent) ---------- */

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s var(--ease-card); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .learn-card { transition: none; }
}

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

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cta-grid { grid-template-columns: 1fr; gap: 56px; }
  .cta-media img { max-width: 440px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px; }

  .h1, h1 { font-size: 38px; line-height: 44px; }
  .h2, h2 { font-size: 32px; line-height: 36px; }
  .h3, h3 { font-size: 24px; line-height: 30px; }
  .h4, h4 { font-size: 18px; line-height: 24px; }

  .hero-title { font-size: 38px; line-height: 44px; }
  .section-crest { width: 44px; height: 44px; margin-bottom: 18px; }
  .brand-logo { height: 40px; }
  .brand-footer .brand-logo { height: 46px; }
  .hero-sub { font-size: 1.05rem; }

  .section, .hero { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; } /* the nav logo is directly above */
  .hero-fade { background: rgba(23, 23, 48, .7); }
  .container-wide, .nav-inner, .footer { padding-left: 24px; padding-right: 24px; }

  .grid { margin-top: 40px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--white);
    border-bottom: 2px solid var(--blue-pale);
    box-shadow: 0 12px 30px rgba(32, 32, 63, .1);
    padding: 24px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav-cta { margin-top: 12px; }

  .footer-content { grid-template-columns: 1fr; gap: 40px; }
  .learn-body { padding: 40px 32px; }
  .learn-accent { flex-basis: 6px; }
  .button-wrapper { margin-top: 32px; }
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */

.legal-body { max-width: 820px; }
.legal-body h1 { margin-bottom: 12px; }
.legal-body h2 { font-size: 1.6em; margin: 48px 0 14px; }
.legal-body h3 { font-size: 1.25em; margin: 32px 0 10px; }
.legal-body p, .legal-body li { font-size: 1rem; line-height: 1.8; color: var(--navy); }
.legal-body p { margin: 0 0 16px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 1.4em; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--blue); }
.legal-body code { font-size: .9em; background: var(--blue-pale); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .95rem; display: block; overflow-x: auto; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e4ebf3; }
.legal-body th { font-family: var(--font-heading); font-weight: 600; background: var(--blue-pale); }

@media (max-width: 768px) {
  .legal-body h2 { font-size: 1.35em; margin-top: 36px; }
  .legal-body th, .legal-body td { padding: 8px; }
}
