/* INSEG — Consultoria em Segurança do Trabalho
   Identidade: navy confiança + verde segurança */

:root {
  --green: #2db84b;
  --green-deep: #1a8f35;
  --green-soft: #e8f8ec;
  --navy: #0b1f33;
  --navy-mid: #14304a;
  --navy-soft: #1e3a56;
  --steel: #5a6d7e;
  --mist: #f2f5f8;
  --line: #d5dee7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.12);
  --radius: 6px;
  --container: min(1120px, calc(100% - 2.5rem));
  --header-h: 84px;
  --font-display: "Sora", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--green);
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  color: var(--navy);
}

.section-head p {
  color: var(--steel);
  font-size: 1.125rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(45, 184, 75, 0.28);
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Sempre legível sobre o hero — não depende do scroll */
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(11, 31, 51, 0.1);
  border-bottom: 1px solid rgba(213, 222, 231, 0.85);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 8px 30px rgba(11, 31, 51, 0.12);
}

.header-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: clamp(48px, 6vw, 62px);
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

@media (min-width: 1100px) {
  .nav {
    gap: 1.55rem;
  }
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--green-deep);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(11, 31, 51, 0.92) 0%, rgba(11, 31, 51, 0.72) 48%, rgba(11, 31, 51, 0.45) 100%),
    linear-gradient(to top, rgba(11, 31, 51, 0.55) 0%, transparent 42%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(45, 184, 75, 0.55) 18px,
    rgba(45, 184, 75, 0.55) 20px
  );
  mask-image: linear-gradient(90deg, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 1.5rem) 0 3rem;
  max-width: 720px;
  margin-right: auto;
  margin-left: max(1.25rem, calc((100% - min(1120px, calc(100% - 2.5rem))) / 2));
}

.hero-brand {
  margin-bottom: 1.25rem;
}

.hero-brand img {
  height: clamp(64px, 9vw, 88px);
  width: auto;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.4rem);
  margin-bottom: 1rem;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero-reveal > * {
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.9s var(--ease) forwards;
}

.hero-reveal > *:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal > *:nth-child(2) { animation-delay: 0.25s; }
.hero-reveal > *:nth-child(3) { animation-delay: 0.4s; }
.hero-reveal > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

/* ——— Trust bar ——— */
.trust-bar {
  background: var(--navy);
  color: var(--white);
  padding: 1.75rem 0;
  border-top: 3px solid var(--green);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.trust-item span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ——— Services ——— */
.services {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(45, 184, 75, 0.08), transparent),
    var(--mist);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-item {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.service-item:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 184, 75, 0.45);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  color: var(--green-deep);
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.service-item p {
  color: var(--steel);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.service-item ul {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.service-item li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--navy-mid);
}

.service-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--green);
}

.link-more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-more::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.link-more:hover::after {
  transform: translateX(4px);
}

/* ——— Split / About teaser ——— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.split-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--navy));
}

.split-content .checklist {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--navy-mid);
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--green);
}

/* ——— Process ——— */
.process {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 184, 75, 0.18), transparent 70%);
  pointer-events: none;
}

.process .section-head h2,
.process .section-head .eyebrow {
  color: var(--white);
}

.process .section-head .eyebrow {
  color: var(--green);
}

.process .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}

.process-step {
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  min-height: 100%;
}

.process-step .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  display: block;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
  margin: 0;
}

/* ——— Why ——— */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--green);
}

.why-item h3 {
  font-size: 1.2rem;
}

.why-item p {
  color: var(--steel);
  margin: 0;
}

/* ——— CTA band ——— */
.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-band-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 31, 51, 0.94), rgba(20, 48, 74, 0.85));
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-inner h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 18ch;
  margin: 0;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 40ch;
  margin: 0.75rem 0 0;
}

/* ——— FAQ ——— */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--white);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green);
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.35rem 1.25rem;
  color: var(--steel);
}

/* ——— Contact page / form ——— */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--green);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 48ch;
  margin: 0;
  font-size: 1.125rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.contact-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.contact-block p,
.contact-block a {
  color: var(--steel);
}

.contact-block a:hover {
  color: var(--green-deep);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.form-card > p {
  color: var(--steel);
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--navy);
  background: var(--mist);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45, 184, 75, 0.15);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
  font-size: 0.95rem;
}

.form-status.is-success {
  display: block;
  background: var(--green-soft);
  color: var(--green-deep);
}

.form-status.is-error {
  display: block;
  background: #fdecea;
  color: #b42318;
}

/* ——— Service detail pages helpers ——— */
.content-block {
  max-width: 720px;
}

.content-block h2 {
  font-size: 1.65rem;
  margin-top: 2.5rem;
}

.content-block ul {
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}

.content-block li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--navy-mid);
}

.content-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--green);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar {
  padding: 1.5rem;
  background: var(--mist);
  border-left: 3px solid var(--green);
}

.pillar h3 {
  font-size: 1.1rem;
}

.pillar p {
  color: var(--steel);
  margin: 0;
  font-size: 0.98rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 58px;
  width: auto;
  margin-bottom: 1rem;
  background: var(--white);
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
}

.footer-brand p {
  max-width: 32ch;
  font-size: 0.98rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer a {
  display: inline-block;
  margin-bottom: 0.45rem;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

/* ——— WhatsApp float ——— */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Utilities ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.section-foot {
  margin-top: 2.25rem;
}

/* ——— Soluções (produtos) ——— */
.solutions {
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--mist);
  border: 1px solid transparent;
  border-left: 3px solid var(--green);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: var(--line);
  border-left-color: var(--green);
  box-shadow: var(--shadow);
}

.product-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.85rem;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.product-card p {
  color: var(--steel);
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  color: var(--navy-mid);
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
}

/* ——— Ebooks ——— */
.ebooks {
  background:
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(45, 184, 75, 0.1), transparent),
    var(--mist);
}

.ebook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ebook-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ebook-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ebook-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 55%, #1a5c32 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
}

.ebook-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 14px,
    rgba(45, 184, 75, 0.12) 14px,
    rgba(45, 184, 75, 0.12) 16px
  );
  pointer-events: none;
}

.ebook-cover .ebook-label {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.55rem;
}

.ebook-cover h3 {
  position: relative;
  font-size: 1.2rem;
  margin: 0;
  max-width: 16ch;
}

.ebook-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ebook-body p {
  color: var(--steel);
  font-size: 0.98rem;
  flex-grow: 1;
  margin-bottom: 1.15rem;
}

.ebook-body .btn {
  align-self: flex-start;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
}

/* ——— Responsive ——— */
@media (min-width: 961px) {
  .header-cta {
    display: inline-flex;
  }

  .nav .btn {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.95rem 0.5rem;
    border-bottom: 1px solid var(--mist);
  }

  .nav a::after {
    display: none;
  }

  .nav .btn {
    margin-top: 0.75rem;
  }

  .trust-grid,
  .services-grid,
  .process-grid,
  .why-grid,
  .footer-grid,
  .pillars,
  .product-grid,
  .ebook-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(100svh, 820px);
  }

  .nav {
    gap: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 72px;
  }

  .trust-grid,
  .services-grid,
  .process-grid,
  .why-grid,
  .footer-grid,
  .form-grid,
  .pillars,
  .product-grid,
  .ebook-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-bottom: 3rem;
  }

  .btn {
    width: 100%;
  }

  .btn-group {
    width: 100%;
  }

  .cta-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
