/* ==========================================================================
   Live Oak Security Group — design system
   Understated / institutional: deep navy, warm oak accent, serif headlines.
   ========================================================================== */

:root {
  /* Color */
  --navy-900: #0E1A26;
  --navy-800: #142433;
  --navy-700: #1D3244;
  --navy-600: #2A465C;
  --oak-600:  #A2712F;
  --oak-500:  #B98442;
  --oak-100:  #F0E5D6;
  --paper:    #FBF9F6;
  --paper-alt:#F3F0EA;
  --ink:      #16202B;
  --muted:    #5C6875;
  --rule:     #E1DCD3;
  --white:    #FFFFFF;

  /* Type */
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing / layout */
  --measure: 68ch;
  --wrap: 1180px;
  --wrap-narrow: 860px;
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;

  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 38, .06), 0 4px 12px rgba(14, 26, 38, .05);
  --shadow-md: 0 2px 4px rgba(14, 26, 38, .07), 0 12px 32px rgba(14, 26, 38, .09);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oak-600); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.011em;
  color: var(--navy-900);
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.5rem + 3.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .5vw, 1.42rem); }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 var(--s-3); max-width: var(--measure); text-wrap: pretty; }
ul, ol { max-width: var(--measure); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-5) 0; }

::selection { background: var(--oak-100); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--oak-600);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-900); color: var(--white);
  padding: .75rem 1.25rem; font-size: .9rem;
}
.skip-link:focus { left: var(--s-2); top: var(--s-2); color: var(--white); }

/* ------------------------------------------------------------- Layout --- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(3.5rem, 7vw, var(--s-7)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--s-6)); }
.section--alt { background: var(--paper-alt); }
.section--ink { background: var(--navy-900); color: #D6DDE4; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: #B9C4CE; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, var(--s-4)); }
/* Explicit column counts rather than auto-fit: a 4-card set must land 2x2,
   not 3+1, and auto-fit decides that for us based on available width. */
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.split { display: grid; gap: clamp(2rem, 5vw, var(--s-6)); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 0.85fr 1.15fr; } }

/* --------------------------------------------------------- Typography --- */
.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oak-600);
  margin: 0 0 var(--s-2);
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::after { content: ""; flex: 0 0 34px; height: 1px; background: var(--oak-500); opacity: .55; }
.section--ink .eyebrow { color: var(--oak-500); }
.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); line-height: 1.6; color: var(--muted); }
.section--ink .lede { color: #C3CDD7; }
.small { font-size: .875rem; color: var(--muted); }

/* ------------------------------------------------------------ Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  letter-spacing: .01em;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy-900); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); color: var(--white); }
.btn--oak { background: var(--oak-600); color: var(--white); }
.btn--oak:hover { background: var(--oak-500); color: var(--white); }
.btn--ghost { border-color: var(--navy-600); color: var(--navy-800); background: transparent; }
.btn--ghost:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
/* Ghost buttons sitting on any dark ground need the inverted treatment. */
.section--ink .btn--ghost,
.hero .btn--ghost,
.page-head .btn--ghost,
.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, .38);
  color: var(--white);
  background: transparent;
}
.section--ink .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-head .btn--ghost:hover,
.cta-band .btn--ghost:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: var(--s-4); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  color: var(--navy-800);
}
.arrow-link span { transition: transform .18s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }

/* ------------------------------------------------------------- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 246, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600;
  color: var(--navy-900); letter-spacing: -.01em;
}
.brand__sub {
  font-size: .62rem; font-weight: 600; letter-spacing: .19em;
  text-transform: uppercase; color: var(--oak-600); margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
/* :not(.btn) so the nav's CTA keeps its own button colors — a bare `.nav a`
   rule outranks `.btn--primary` on specificity and turns the text navy. */
.nav a:not(.btn) {
  font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--navy-800);
  padding: .3rem 0; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--oak-600); transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy-900); font-weight: 600; }
.nav .btn { padding: .6rem 1.15rem; font-size: .86rem; }
.nav .btn::after { display: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  border-radius: var(--radius); padding: .5rem .7rem; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--navy-900); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: var(--s-2) clamp(1.25rem, 4vw, 2.5rem) var(--s-4);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: var(--s-3); justify-content: center; border-bottom: 0; padding: .85rem 1.2rem; }
}

/* --------------------------------------------------------------- Hero --- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #D6DDE4;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 8rem);
}
.hero::before {
  /* subtle oak-canopy texture, drawn in CSS so there are no image dependencies */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(185, 132, 66, .22), transparent 62%),
    radial-gradient(760px 460px at 8% 108%, rgba(42, 70, 92, .55), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 22ch; }
.hero .lede { color: #BDC8D2; max-width: 56ch; }
.hero__rule { width: 56px; height: 2px; background: var(--oak-500); margin-bottom: var(--s-4); }

.page-head {
  background: var(--navy-900);
  color: #C3CDD7;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 85% 0%, rgba(185,132,66,.18), transparent 62%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: var(--white); margin-bottom: var(--s-2); }
.page-head p { color: #B9C4CE; max-width: 60ch; margin-bottom: 0; }

/* -------------------------------------------------------------- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex; flex-direction: column;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #D2CBBF; }
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .96rem; color: var(--muted); margin-bottom: var(--s-3); }
.card p:last-of-type { margin-bottom: 0; }
.card__icon { width: 34px; height: 34px; margin-bottom: var(--s-3); stroke: var(--oak-600); }
.card__foot { margin-top: auto; padding-top: var(--s-3); }

.stat-row { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%,200px), 1fr)); }
.stat { border-left: 2px solid var(--oak-500); padding-left: var(--s-3); }
.stat__num { font-family: var(--serif); font-size: 2.35rem; line-height: 1; color: var(--navy-900); }
.section--ink .stat__num { color: var(--white); }
.stat__label { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.section--ink .stat__label { color: #A9B5C0; }

/* Numbered process steps */
.steps { counter-reset: step; display: grid; gap: var(--s-4); }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-3); align-items: start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.15rem; color: var(--oak-600);
  border-top: 2px solid var(--oak-500); padding-top: .6rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

/* Checklists */
.ticks { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.ticks li {
  position: relative; padding-left: 1.6rem; margin-bottom: .6rem;
  font-size: .96rem; color: var(--muted);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--oak-500);
}

/* ---------------------------------------------------------------- CTA --- */
.cta-band {
  background: var(--navy-800);
  color: var(--white);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 3px solid var(--oak-600);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #BDC8D2; }

/* --------------------------------------------------------------- Form --- */
.form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy-800); letter-spacing: .01em; }
.field .req { color: var(--oak-600); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--oak-600);
  box-shadow: 0 0 0 3px rgba(162, 113, 47, .14);
}
.field-row { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%,220px), 1fr)); }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; }

/* Reserve the widget's height so the form doesn't jump when Turnstile loads. */
.turnstile-holder { min-height: 65px; }
.form-status { font-size: .9rem; padding: .8rem 1rem; border-radius: var(--radius); display: none; }
.form-status[data-state="ok"]  { display: block; background: var(--oak-100); color: #6B4A1C; border: 1px solid #E0CDAF; }
.form-status[data-state="err"] { display: block; background: #FBE9E7; color: #7F2C21; border: 1px solid #F0C4BD; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-600); margin-bottom: .3rem; display: block; }
.contact-list a { font-weight: 500; }

/* ------------------------------------------------------------- Footer --- */
.site-footer {
  background: var(--navy-900);
  color: #9FADBA;
  padding-block: var(--s-6) var(--s-4);
  font-size: .9rem;
}
.site-footer h4 {
  color: var(--white); font-family: var(--sans); font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: var(--s-2);
}
.site-footer a { color: #C3CDD7; text-decoration: none; }
.site-footer a:hover { color: var(--oak-500); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%,200px), 1fr)); }
.footer-grid > div:first-child { grid-column: span 1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand .brand__name { color: var(--white); }
.footer-brand p { color: #8C9AA8; font-size: .875rem; max-width: 32ch; margin-top: var(--s-2); }
.footer-bottom {
  margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3);
  justify-content: space-between; align-items: center;
  font-size: .82rem; color: #7E8C9A;
}

/* ------------------------------------------------------- Motion / a11y --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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

@media print {
  .site-header, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; }
}
