/* Legacy Protection Advisors LLC — one-page site
   Colors from the LPA shield and current educational graphics. */
:root {
  --navy: #123066;
  --navy-ink: #0e234c;
  --crimson: #ae1334;
  --gold: #c5a059;
  --cream: #faf6ec;
  --paper: #ffffff;
  --mist: #f3f5f8;
  --text: #1c2434;
  --muted: #4b5568;
  --line: #d8deea;
  --lyf: #0057c2;
  --focus: #0b57d0;
  --max: 68rem;
  --space: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(2.75rem, 7vw, 5rem);
}

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

html { scroll-behavior: smooth; }

#about, #leadership, #service-lines, #lyf, #licensing, #education, #ohs, #contact,
#contact-lyf, #contact-ohs {
  scroll-margin-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

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

a {
  color: var(--lyf);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.7rem 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-lockup img {
  width: 48px;
  height: 50px;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-name span:first-child { font-size: 0.95rem; }
.brand-name span:last-child {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover,
.nav a:focus-visible { text-decoration: underline; }

/* Hero */
.hero {
  padding: var(--section) 0 calc(var(--section) - 0.5rem);
  background:
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.hero-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.25rem;
  margin-bottom: 1.75rem;
}

.hero-logos .lpa-mark {
  width: 96px;
  height: auto;
}

.hero-logos .lyf-mark {
  width: min(100%, 22rem);
  height: auto;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.6rem;
}

h1, h2, h3 {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.65rem;
}

.lede {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--navy-ink);
  max-width: 40rem;
  margin: 0 0 0.85rem;
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
}

.hero-meta {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  border: 2px solid var(--navy);
}
.btn:hover,
.btn:focus-visible {
  background: var(--navy-ink);
  color: #fff;
}

/* Sections */
section { padding: var(--section) 0; }
section.alt { background: var(--mist); }

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.3rem;
  margin: 0 0 0.55rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.rule {
  width: 3rem;
  height: 3px;
  background: var(--crimson);
  border: 0;
  margin: 0 0 1.25rem;
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.35rem 1.5rem;
  height: 100%;
}

.card-logo {
  width: 72px;
  height: auto;
  margin-bottom: 0.9rem;
  object-fit: contain;
}

.card-logo.lyf-icon {
  width: 64px;
  border-radius: 14px;
}

.card p { color: var(--text); }

/* Licensing */
.license {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
}

.license dl {
  margin: 0 0 1rem;
}
.license dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
}
.license dt:first-child { margin-top: 0; }
.license dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--navy);
}

.dba {
  margin: 1rem 0 0;
  font-size: 0.98rem;
}

/* Education links */
.link-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem 1.25rem;
}

@media (min-width: 640px) {
  .link-list { grid-template-columns: 1fr 1fr; }
}

.link-list a {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}
.link-list a:hover,
.link-list a:focus-visible {
  border-color: var(--navy);
  text-decoration: underline;
}
.link-list a span {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Contact */
.contact-block address {
  font-style: normal;
}

.contact-block p,
.contact-block a { font-size: 1.05rem; }

.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0 0.2rem;
}

/* Footer */
.site-footer {
  background: var(--navy-ink);
  color: #e6eaf1;
  padding: 1.75rem 0 2.1rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.site-footer p { margin: 0 0 0.5rem; }
.site-footer p:last-child { margin-bottom: 0; color: #c5ccd8; }
.site-footer strong { color: #fff; font-weight: 600; }

@media (max-width: 720px) {
  .nav { gap: 0.2rem 0.55rem; }
  .nav a { font-size: 0.82rem; }
  .hero-logos { justify-content: center; }
  .hero-logos .lpa-mark { width: 84px; }
  .header-inner { padding: 0.55rem 0 0.45rem; }
  .hero .wrap { text-align: center; }
  .hero .lede, .hero .hero-meta { margin-inline: auto; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}
.hero-actions .btn { margin: 0; }

.btn-secondary {
  background: #fff;
  color: var(--navy);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--mist);
  color: var(--navy-ink);
}

.service-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 720px) {
  .service-list { grid-template-columns: 1fr 1fr; }
}
.service-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
}

.ohs-note {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

#ohs h3 { margin-top: 1.35rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.25rem 1.4rem;
}
.contact-card address { font-style: normal; }
.cta-line {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.contact-email { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .hero-actions { justify-content: center; }
}

.nav-short { display: none; }
@media (max-width: 720px) {
  .nav-short { display: inline; }
  .nav-long { display: none; }
}

#lyf h3 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
}
#leadership p { max-width: 46rem; }
#about p { max-width: 46rem; }
