/* Reid & Company — site styles */
:root {
  --ink: #0f1a24;
  --ink-2: #2b3a48;
  --muted: #5b6b7a;
  --line: #dfe5ea;
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --steel: #13283a;
  --steel-2: #1c3a52;
  --accent: #e8932e;
  --accent-dark: #c47418;
  --radius: 10px;
  --max: 1160px;
  --head: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--steel-2); }
h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.on-dark .eyebrow { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #1a1205; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  font-family: var(--head); font-weight: 700; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 6px; background: var(--steel);
  color: var(--accent); display: grid; place-items: center; font-size: .72rem; font-weight: 700; letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .97rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-links .btn { padding: 10px 18px; color: #1a1205; }
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: -16px; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15,26,36,.12); padding: 10px; list-style: none; margin: 0;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 6px; }
.dropdown-menu a:hover { background: var(--paper-2); }
.dropdown > a::after { content: " ▾"; font-size: .75em; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(19,40,58,.97), rgba(28,58,82,.92)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.04) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.04) 79px 80px);
  color: #d6e0e8;
  padding: 104px 0 96px;
}
.hero h1 { color: #fff; max-width: 860px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 1.2rem; max-width: 640px; color: #c4d1dc; }
.page-hero { padding: 80px 0 72px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }

/* Stats */
.stats { background: var(--steel); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 36px 24px; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--head); font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { margin-top: 8px; color: #b9c7d3; font-size: .97rem; }

/* Sections */
section { padding: 92px 0; }
.alt { background: var(--paper-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { font-size: 1.08rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,26,36,.08); }
.card-num { font-family: var(--head); font-weight: 700; color: var(--accent-dark); font-size: .9rem; margin-bottom: 14px; }
.card p { color: var(--muted); margin-bottom: 18px; }
.card .more { margin-top: auto; font-family: var(--head); font-weight: 600; color: var(--steel-2); }
.card .more::after { content: " →"; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231a1205' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checks strong { color: var(--ink); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.alt .panel { background: #fff; }

/* CTA */
.cta { background: var(--steel); color: #c4d1dc; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 620px; margin: 0 auto; font-size: 1.1rem; }
.cta .btn-row { justify-content: center; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-family: var(--head); font-weight: 600; font-size: .92rem; color: var(--ink); }
input, select, textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #c8d1d9; border-radius: 6px;
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }
.hidden { position: absolute; left: -9999px; }
.contact-side h3 { margin-top: 28px; }
.contact-side h3:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: #0b141c; color: #8fa1b0; padding: 64px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9c7d3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px; font-size: .88rem; }

/* Responsive */
@media (max-width: 900px) {
  .split, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,26,36,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { display: block; padding: 12px 0; }
  .nav-links .btn { text-align: center; margin-top: 8px; }
  .dropdown > a::after { content: ""; }
  .dropdown-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .dropdown-menu a { padding: 7px 0; color: var(--muted); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat:first-child { border-left: 0; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); }
  .stat:first-child { border-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .card, .panel { padding: 24px; }
}
