/* CFLnet site styles. Page sections carry their own inline styles from the design;
   this file holds the shared chrome, blog styles and responsive fixes. */
:root {
  --navy: #0F1B2D;
  --navy-deep: #0A1422;
  --red: #C2312C;
  --red-dark: #A3271F;
  --red-light: #F28B82;
  --gray-bg: #F3F5F7;
  --line: #D9DEE5;
  --text: #0F1B2D;
  --muted: #4A5568;
  --body: #33404F;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gray-bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red-light); outline-offset: 2px; }
[id] { scroll-margin-top: 24px; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 17px; line-height: 1.2;
  padding: 16px 26px; border-radius: 8px; text-decoration: none; min-height: 44px;
}
.btn-primary { background: var(--red); color: #FFFFFF; }
.btn-primary:hover { background: var(--red-dark); color: #FFFFFF; }
.btn-ghost { color: #FFFFFF; border: 1px solid #3A4B63; padding: 15px 25px; }
.btn-ghost:hover { color: #FFFFFF; border-color: #8A9AB0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Utility bar */
.utility { background: var(--navy-deep); color: #C3CCD8; font-size: 14px; }
.utility-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.utility-links { display: flex; gap: 20px; flex-wrap: wrap; }
.utility a { color: #C3CCD8; text-decoration: none; }
.utility a.utility-ticket { color: #FFFFFF; font-weight: 500; }
.utility a:hover { color: #FFFFFF; text-decoration: underline; }

/* Header */
.site-header { background: var(--navy); color: #FFFFFF; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; position: relative; }
.logo img { display: block; height: 52px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 16px; }
.nav-link { color: #E4E9F0; text-decoration: none; }
.nav-link:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 6px; }
.nav-link.is-active { color: #FFFFFF; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.nav-phone { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.nav-phone:hover { color: #FFFFFF; text-decoration: underline; }
.nav-cta { font-size: 16px; padding: 12px 20px; }

.menu { display: none; }
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu { display: block; }
  .menu > summary {
    display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
    color: #FFFFFF; font-weight: 600; padding: 10px 14px; border: 1px solid #3A4B63; border-radius: 8px; min-height: 44px;
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu[open] > summary { background: #16243A; }
  .nav-mobile {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-top: 1px solid #2A3A52; padding: 8px 24px 20px;
  }
  .nav-mobile .nav-link, .nav-mobile .nav-phone { padding: 14px 0; border-bottom: 1px solid #1F2D42; font-size: 18px; }
  .nav-mobile .nav-cta { margin-top: 16px; }
  .utility-area { display: none; }
  .logo img { height: 44px; }
}

/* Generic sections used by blog and simple pages */
.hero { background: var(--navy); color: #FFFFFF; }
.hero-small .wrap { padding-top: 64px; padding-bottom: 72px; }
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-light); margin-bottom: 18px; }
.eyebrow-sm { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.h1 { font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; }
.h2 { font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.02em; }
.lead { font-size: 19px; color: #C3CCD8; margin: 0; max-width: 680px; }
.section { padding: 72px 0; }
.section-white { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.band-dark { background: var(--navy); color: #FFFFFF; padding: 80px 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }

/* Blog index */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 28px; color: var(--text); transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: #9AA6B6; transform: translateY(-2px); color: var(--text); }
.post-card-title { font-family: Archivo, sans-serif; font-weight: 700; font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
.post-card-excerpt { color: var(--muted); font-size: 16px; margin: 0 0 18px; flex-grow: 1; }
.post-card-more { font-weight: 600; font-size: 15px; color: var(--red-dark); }

/* Blog post */
.crumbs { font-size: 14px; color: #A9B4C4; margin-bottom: 18px; }
.crumbs a { color: #C3CCD8; }
.crumbs a:hover { color: #FFFFFF; }
.post-title { font-size: clamp(32px, 4vw, 48px); }
.post-meta { color: #A9B4C4; margin: 0; font-size: 15px; }
.prose { color: var(--body); font-size: 18px; line-height: 1.7; }
.prose h2, .prose h3, .prose h4 { font-family: Archivo, sans-serif; color: var(--text); line-height: 1.25; letter-spacing: -0.01em; margin: 1.8em 0 0.6em; }
.prose h2 { font-size: 28px; font-weight: 800; }
.prose h3 { font-size: 22px; font-weight: 700; }
.prose h4 { font-size: 19px; font-weight: 700; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: 0.35em 0; }
.prose a { color: var(--red-dark); }
.prose img { border-radius: 10px; display: block; margin: 1.5em auto; }
.prose figure { margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); color: var(--text); }
.post-nav { padding: 40px 0; }
.post-nav-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.post-nav-link { flex: 1 1 280px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; text-decoration: none; font-weight: 600; color: var(--text); }
.post-nav-link span { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.post-nav-older { text-align: right; }

/* Forms */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.req { color: var(--red-dark); }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
form input:focus, form select:focus, form textarea:focus { outline: 3px solid var(--red-light); outline-offset: 1px; border-color: var(--navy) !important; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #A9B4C4; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer-logo { height: 44px; width: auto; display: block; margin-bottom: 14px; }
.site-footer p { margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h2 { color: #FFFFFF; font-weight: 600; font-size: 15px; margin: 0 0 4px; font-family: inherit; }
.footer-col a { color: #A9B4C4; text-decoration: none; }
.footer-col a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-base { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid #1F2D42; font-size: 14px; }

/* Small-screen tidy-ups for the design's inline layouts */
@media (max-width: 600px) {
  body { font-size: 16px; }
  section[style*="padding: 104px"], section[style*="padding: 96px"], section[style*="padding: 88px"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  form[style*="padding: 40px"], form[style*="padding: 36px"] { padding: 24px !important; }
  div[style*="minmax(330px"] { grid-template-columns: 1fr !important; }
  .post-grid { grid-template-columns: 1fr; }
  .post-nav-older { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card { transition: none; }
}
