/* =========================================================
   Lastborn Protection Group
   ========================================================= */

:root {
  /* Brand palette, sampled from the shield logo */
  --black: #070908;
  --bg: #0b0f0c;
  --bg-2: #111712;
  --green-900: #0f1c14;
  --green-800: #162a1e;
  --green-700: #1f3a29;
  --gold: #d2ac5b;
  --gold-light: #f0d68f;
  --gold-dark: #a07c2e;
  --gold-ink: #7a5d1b;          /* gold for text on light backgrounds */
  --gold-grad: linear-gradient(135deg, #f3dc97 0%, #d2ac5b 45%, #a07c2e 100%);

  --cream: #f7f4ec;
  --ink: #141a16;
  --ink-soft: #4a544d;
  --text: #ece7dc;
  --text-soft: #a9b0a8;

  --line-dark: rgba(255, 255, 255, 0.08);
  --line-light: rgba(20, 26, 22, 0.1);

  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.75rem); line-height: 1.04; margin-top: 20px; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); line-height: 1.1; margin-top: 16px; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.section-light :focus-visible { outline-color: var(--gold-ink); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section-light .eyebrow { color: var(--gold-ink); }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s, color 0.2s, background-color 0.2s;
}
.btn .icon { width: 18px; height: 18px; }

.btn-gold {
  background: var(--gold-grad);
  color: #15110a;
  box-shadow: 0 6px 20px -6px rgba(210, 172, 91, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px rgba(210, 172, 91, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(11, 15, 12, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(210, 172, 91, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.brand-sub {
  margin-top: 2px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.header-call .icon { width: 18px; height: 18px; color: var(--gold); }
.header-call:hover { color: var(--gold-light); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}
.nav-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 960px) {
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .header-cta, .header-call-num { display: none; }
  .header-call {
    width: 44px;
    height: 44px;
    justify-content: center;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
  }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    padding: 12px var(--gutter) 24px;
    background: rgba(11, 15, 12, 0.98);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; color: var(--text); }
  .nav-cta-mobile { display: block; margin-top: 12px; }
}

@media (max-width: 380px) {
  .brand { gap: 10px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { letter-spacing: 0.14em; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(55% 65% at 75% 50%, rgba(42, 76, 55, 0.35), transparent 70%),
    radial-gradient(45% 55% at 0% 0%, rgba(210, 172, 91, 0.07), transparent 70%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }

.lead {
  max-width: 34em;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--text-soft);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
}
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust .icon { width: 18px; height: 18px; color: var(--gold); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-visual::before { width: 125%; border: 1px solid rgba(210, 172, 91, 0.12); }
.hero-visual::after  { width: 92%;  border: 1px solid rgba(210, 172, 91, 0.08); }

.hero-logo {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: auto;
  /* Lets the logo's black background melt into the page. Keep animations on this
     element, not its parent: an animated parent isolates the blend. */
  mix-blend-mode: lighten;
  animation: fade 1.2s var(--ease) 0.2s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; width: 180px; margin-inline: auto; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 9vw, 128px); }
.section-light { background: var(--cream); color: var(--ink); }
.section-dark { background: var(--bg); }
.section-green {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(210, 172, 91, 0.08), transparent 60%),
    var(--green-900);
}

.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > p:not(.eyebrow) { margin-top: 18px; font-size: 1.075rem; color: var(--ink-soft); }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--green-800);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(210, 172, 91, 0.25);
}
.icon-badge .icon { width: 24px; height: 24px; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 18px 40px -18px rgba(20, 26, 22, 0.28);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card h3 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}
.service-card p { margin-top: 10px; color: var(--ink-soft); }

.services-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 32px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.services-note a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--gold-ink);
}
.services-note .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.services-note a:hover .icon { transform: translateX(3px); }

@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Why us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}
.why-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.why-intro > p:not(.eyebrow) { max-width: 30em; margin-top: 20px; font-size: 1.075rem; color: var(--text-soft); }
.why-intro .btn { margin-top: 32px; }

.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-item {
  padding: 28px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(210, 172, 91, 0.14);
  border-radius: var(--radius-lg);
}
.why-item .icon-badge { background: rgba(210, 172, 91, 0.1); }
.why-item h3 { margin-top: 20px; color: var(--text); }
.why-item p { margin-top: 8px; font-size: 0.95rem; color: var(--text-soft); }

@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
}
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }

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

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--gold-grad);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-ink);
}
.step h3 { margin-top: 20px; font-size: 1.25rem; }
.step p { max-width: 26em; margin-top: 10px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { padding-bottom: 16px; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.contact-intro > p:not(.eyebrow) { max-width: 30em; margin-top: 20px; font-size: 1.075rem; color: var(--text-soft); }

.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.2s;
}
a.contact-item:hover { border-color: rgba(210, 172, 91, 0.45); background: rgba(210, 172, 91, 0.05); }
.contact-item .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.contact-item .icon-badge .icon { width: 20px; height: 20px; }
.contact-item small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.contact-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: break-word;
}
.contact-text { min-width: 0; }
.contact-go {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--gold);
  opacity: 0.6;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
a.contact-item:hover .contact-go { opacity: 1; transform: translateX(3px); }

@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

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

.site-footer {
  padding-top: 56px;
  background: var(--black);
  border-top: 1px solid var(--line-dark);
  font-size: 0.92rem;
  color: var(--text-soft);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand { display: inline-flex; margin: 0; }
.footer-tagline { max-width: 28em; margin-top: 16px; }
.footer-heading {
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-links li + li { margin-top: 10px; }
.footer-links a { transition: color 0.2s; overflow-wrap: break-word; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Simple pages (404) ---------- */

.simple-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(42, 76, 55, 0.4), transparent 70%),
    var(--bg);
}
.simple-card { max-width: 520px; text-align: center; }
.simple-card .brand-mark { width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 16px; }
.simple-card h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); margin-top: 16px; }
.simple-card p:not(.eyebrow) { margin-top: 16px; color: var(--text-soft); font-size: 1.05rem; }
.simple-card p a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.simple-card .btn { margin-top: 32px; }

/* ---------- Scroll reveal (enabled by JS) ---------- */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

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

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