/* ================================================================
   BEYOND LINCS — Common Styles
   Shared across all website pages: variables, reset, layout,
   typography, topbar, nav, buttons, heroes, sections, forms,
   footer, CTA band, and responsive base.
   ================================================================ */

/* ----------------------------------------------------------------
   Custom Properties
   ---------------------------------------------------------------- */
:root {
  --ink: #1e2528;
  --ink-soft: #405157;
  --muted: #566a71;
  --line: #d9e2e4;
  --soft: #f3f7f7;
  --teal: #0f7873;
  --teal-hover: #0b5f5b;
  --teal-light: #e7f2f1;
  --green: #6c8b36;
  --green-light: #eef3e6;
  --coral: #c65d4d;
  --coral-hover: #b04a3b;
  --gold: #b4862d;
  --gold-light: #f7efdf;
  --deep: #26383b;
  --deep-dark: #172326;
  --white: #ffffff;
  --off-white: #fbfcfc;
  --shadow-sm: 0 4px 12px rgba(18, 35, 38, 0.06);
  --shadow: 0 10px 24px rgba(18, 35, 38, 0.08);
  --shadow-lg: 0 18px 44px rgba(18, 35, 38, 0.12);
  --shadow-xl: 0 24px 56px rgba(18, 35, 38, 0.16);
  --radius: 8px;
  --radius-sm: 6px;
  --transition: 0.2s ease;
  --container: min(1180px, calc(100% - 40px));
}

/* ----------------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  padding: 12px 18px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  border-radius: 0 0 var(--radius-sm) 0;
  transform: translateY(-110%);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--white);
  outline-offset: -4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(15, 120, 115, 0.15);
  color: var(--ink);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

h1, h2, h3, p {
  margin-top: 0;
}

/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */
.section-inner,
.topbar-inner,
.nav {
  width: var(--container);
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   Typography
   ---------------------------------------------------------------- */
h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  font-weight: 800;
}

h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  font-weight: 800;
}

h3 {
  font-weight: 800;
}

/* ----------------------------------------------------------------
   Topbar
   ---------------------------------------------------------------- */
.topbar {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 7px 0;
  flex-wrap: wrap;
}

.topbar-contacts {
  display: flex;
  gap: 24px;
  align-items: center;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.topbar-link:hover {
  color: var(--white);
}

.topbar-link svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.topbar-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ----------------------------------------------------------------
   Navigation
   ---------------------------------------------------------------- */
.nav-wrap {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  transition: opacity var(--transition);
}

.brand:hover {
  opacity: 0.85;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
}

.nav-links a:hover {
  color: var(--teal);
  background: var(--teal-light);
}

/* --- Mobile hamburger menu (CSS only) --- */
.nav-toggle {
  display: none;
}

.nav-toggle:focus-visible ~ .nav .nav-hamburger {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger:hover {
  background: var(--soft);
}

.nav-hamburger span,
.nav-hamburger span::before,
.nav-hamburger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  position: relative;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger span::before,
.nav-hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
}

.nav-hamburger span::before {
  top: -6px;
}

.nav-hamburger span::after {
  top: 6px;
}

/* Animate to X when open */
.nav-toggle:checked ~ .nav .nav-hamburger span {
  background: transparent;
}

.nav-toggle:checked ~ .nav .nav-hamburger span::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--teal);
}

.nav-toggle:checked ~ .nav .nav-hamburger span::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--teal);
}

/* Show mobile menu when toggle is checked */
.nav-toggle:checked ~ .nav .nav-links {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hide mobile CTA on desktop */
.nav-cta-mobile {
  display: none;
}

/* Nav CTA — compact, doesn't dominate */
.nav-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ----------------------------------------------------------------
   Simple Header (Policy / Referral pages)
   ---------------------------------------------------------------- */
.simple-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.simple-header .brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
}

.simple-header nav {
  display: flex;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.simple-header nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
}

.simple-header nav a:hover {
  color: var(--teal);
  background: var(--teal-light);
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

.button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.button-primary {
  background: var(--teal);
  color: var(--white);
}

.button-primary:hover {
  background: var(--teal-hover);
}

.button-secondary {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--white);
}

.button-secondary:hover {
  background: var(--teal-light);
  border-color: var(--teal-hover);
  color: var(--teal-hover);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ----------------------------------------------------------------
   Page Heroes
   ---------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(15, 120, 115, 0.34), rgba(15, 120, 115, 0) 36%),
    linear-gradient(90deg, rgba(18, 35, 38, 0.96), rgba(38, 56, 59, 0.92)),
    var(--deep);
  color: var(--white);
  padding: 100px 0;
}

.page-hero .eyebrow {
  color: #bfe7e3;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
}

.page-hero .hero-subtitle {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.35;
}

.page-hero .hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.6875rem;
  line-height: 1;
  opacity: 0.65;
}

/* ----------------------------------------------------------------
   Sections & Headings
   ---------------------------------------------------------------- */
section {
  padding: 88px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-heading p {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ----------------------------------------------------------------
   Forms
   ---------------------------------------------------------------- */
label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #6b7b81;
  border-radius: var(--radius-sm);
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 120, 115, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #5f7177;
  opacity: 1;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.footer {
  background: var(--deep-dark);
  color: #c8d7d9;
  padding: 30px 0;
  font-size: 14px;
}

.footer .section-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: #c8d7d9;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--white);
}

.policy-footer {
  background: var(--deep-dark);
  color: #c8d7d9;
  padding: 28px max(20px, calc((100vw - 1180px) / 2));
  font-size: 14px;
}

.policy-footer a {
  color: #c8d7d9;
  transition: color var(--transition);
}

.policy-footer a:hover {
  color: var(--white);
}

/* ----------------------------------------------------------------
   CTA Band (shared across pages)
   ---------------------------------------------------------------- */
.cta {
  background: var(--deep);
  color: var(--white);
}

.cta .section-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.cta h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  max-width: 720px;
}

/* ----------------------------------------------------------------
   Source notes (shared)
   ---------------------------------------------------------------- */
.source-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.source-note a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
  transition: color var(--transition);
}

.source-note a:hover {
  color: var(--teal-hover);
}

/* ----------------------------------------------------------------
   Responsive — shared breakpoints
   ---------------------------------------------------------------- */
@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    padding: 18px 0;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    gap: 2px;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  @media (prefers-reduced-motion: reduce) {
    .nav-links {
      transition: none;
    }
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--ink);
  }

  .nav-links a:hover {
    background: var(--teal-light);
    color: var(--teal);
  }

  .nav-links a[aria-current="page"] {
    background: var(--soft);
    color: var(--teal);
  }

  .nav-wrap {
    position: relative;
  }

  .nav > .nav-cta {
    display: none;
  }

  .nav-links .nav-cta-mobile {
    display: block;
    margin-top: 8px;
    padding: 14px 16px;
    background: var(--teal);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
  }

  .nav-links .nav-cta-mobile:hover {
    background: var(--teal-hover);
    color: var(--white);
  }

  .topbar-badge {
    display: none;
  }

  .simple-header {
    align-items: flex-start;
    padding: 18px 0;
  }

  .simple-header nav {
    display: none;
  }

  .page-hero {
    padding: 72px 0;
  }

  section {
    padding: 64px 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------
   Small screens (phones < 640px)
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  section {
    padding: 44px 0;
  }

  .page-hero {
    padding: 48px 0;
  }

  .page-hero h1 {
    font-size: 24px;
  }

  .page-hero .hero-subtitle {
    font-size: 16px;
  }

  .button {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
    white-space: normal;
  }

  .nav-cta {
    font-size: 12px;
    padding: 6px 12px;
    white-space: normal;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .contact-panel,
  .referral-panel,
  .contact-info-panel,
  .contact-form-panel,
  .support-panel,
  .ah-panel {
    padding: 22px 18px;
  }

  .cta .section-inner {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .cta h2 {
    font-size: 22px;
  }

  .footer .section-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
