/* ===== Credible Security — Zero-cookie, zero-analytics stylesheet ===== */

/*
  REVERT TO LIGHT MODE — restore these values in :root to undo midnight theme:
  --primary: 230, 40%, 16%;
  --background: 0, 0%, 100%;
  --foreground: 225, 25%, 15%;
  --muted: 220, 10%, 45%;
  --secondary: 220, 20%, 95%;
  --border: 220, 15%, 88%;
  --section-dark: 230, 40%, 12%;
*/

:root {
  --primary: 290, 25%, 12%;
  --primary-fg: 0, 0%, 100%;
  --background: 290, 20%, 9%;
  --foreground: 0, 0%, 93%;
  --muted: 290, 6%, 58%;
  --secondary: 290, 18%, 14%;
  --border: 290, 12%, 21%;
  --gold: 38, 90%, 55%;
  --gold-hover: 38, 90%, 48%;
  --section-dark: 290, 22%, 5%;
  --section-dark-fg: 0, 0%, 95%;
  --hero-gradient: linear-gradient(135deg, hsl(250, 45%, 25%) 0%, hsl(330, 60%, 35%) 50%, hsl(10, 85%, 45%) 100%);
  --radius: 0.5rem;
}

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

body {
  font-family: 'Lato', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Lato', sans-serif; line-height: 1.2; }
h1, h2 { font-weight: 900; }
h3 { font-weight: 700; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.section { padding: 5rem 1.5rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.font-semibold { font-weight: 600; }

@media (min-width: 768px) {
  .section { padding: 5rem 3rem; }
}
@media (min-width: 1024px) {
  .section { padding: 5rem 5rem; }
}
@media (min-width: 1280px) {
  .section { padding: 5rem 8rem; }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: hsl(var(--primary));
  box-shadow: 0 1px 0 hsl(var(--primary-fg) / 0.08);
}
@media (min-width: 768px) { .navbar { padding: 1.25rem 3rem; } }
@media (min-width: 1280px) { .navbar { padding: 1.25rem 8rem; } }

.navbar-brand { display: flex; align-items: center; }
.navbar-logo { height: 4rem; width: auto; display: block; }
.navbar-links { display: none; align-items: center; gap: 2rem; }
.navbar-link { color: hsl(var(--primary-fg), 0.9); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.navbar-link:hover { color: hsl(var(--primary-fg)); }
.navbar-toggle { display: block; background: none; border: none; color: hsl(var(--primary-fg)); cursor: pointer; }
.navbar-cta { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.navbar-mobile { display: none; position: absolute; top: 100%; left: 0; right: 0; background: hsl(var(--primary)); padding: 1.5rem; flex-direction: column; gap: 1rem; }
.navbar-mobile.open { display: flex; }

@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .navbar-toggle { display: none; }
  .navbar-mobile { display: none !important; }
}

/* ===== Hero ===== */
.hero {
  background: var(--hero-gradient);
  min-height: 47vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 5rem 1.5rem 3rem;
}
.hero-logo { height: 5rem; width: auto; margin-bottom: 1rem; }
@media (min-width: 768px) { .hero-logo { height: 7rem; } }
.hero-subtitle {
  color: hsl(var(--primary-fg) / 0.85);
  font-size: 1.125rem; margin-top: 1rem; max-width: 42rem; font-weight: 500;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 2rem; }
@media (min-width: 480px) { .hero-cta { flex-direction: row; justify-content: center; } }
.btn-outline-light {
  display: inline-block;
  border: 2px solid hsl(var(--primary-fg) / 0.5); color: hsl(var(--primary-fg));
  font-weight: 600; padding: 0.75rem 2rem; border-radius: var(--radius);
  transition: all 0.2s; font-size: 0.875rem;
}
.btn-outline-light:hover { border-color: hsl(var(--primary-fg)); }

/* ===== Focus indicators ===== */
:focus-visible { outline: 2px solid hsl(var(--gold)); outline-offset: 3px; border-radius: 2px; }
.btn-gold:focus-visible, .btn-outline-gold:focus-visible, .btn-outline-light:focus-visible { outline-offset: 4px; }
.service-card .service-toggle:focus-visible { outline-offset: 2px; }
.navbar-toggle:focus-visible { outline-offset: 4px; }

/* ===== Section helpers ===== */
.section-heading { font-size: 1.875rem; font-weight: 900; margin-bottom: 0.75rem; }
.section-accent-bar { width: 2.5rem; height: 3px; background: hsl(var(--gold)); border-radius: 2px; margin-bottom: 1.25rem; }
.section-intro { color: hsl(var(--muted)); font-size: 1rem; margin-bottom: 2.5rem; max-width: 42rem; }
.section-body { color: hsl(var(--muted)); font-size: 1rem; line-height: 1.8; }
.section-body p + p { margin-top: 1rem; }

@media (min-width: 768px) {
  .section-heading { font-size: 2.25rem; }
  .section-intro, .section-body { font-size: 1.125rem; }
}

.section-dark {
  background: hsl(var(--section-dark));
  color: hsl(var(--section-dark-fg));
}
.section-dark .section-heading { color: hsl(var(--section-dark-fg)); }

.text-gold { color: hsl(var(--gold)); }

/* ===== Buttons ===== */
.btn-gold {
  display: inline-block;
  background: hsl(var(--gold)); color: hsl(var(--primary));
  font-weight: 600; padding: 0.75rem 2rem; border-radius: var(--radius);
  transition: background 0.2s; font-size: 0.875rem;
}
.btn-gold:hover { background: hsl(var(--gold-hover)); }

.btn-outline-gold {
  display: inline-block;
  border: 2px solid hsl(var(--gold)); color: hsl(var(--gold));
  font-weight: 600; padding: 0.75rem 2rem; border-radius: var(--radius);
  transition: all 0.2s; font-size: 0.875rem;
}
.btn-outline-gold:hover { background: hsl(var(--gold)); color: hsl(var(--primary)); }

/* ===== Services ===== */
.services-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .service-card--full { grid-column: 1 / -1; } }

.service-card {
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: 1.5rem; cursor: pointer; transition: border-color 0.2s;
  background: hsl(var(--secondary));
}
.service-card:hover { border-color: hsl(var(--gold)); }

.service-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.service-icon {
  flex-shrink: 0; padding: 0.5rem; border-radius: 0.375rem;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--gold));
}
.service-title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: hsl(var(--foreground)); }
.service-summary { color: hsl(var(--muted)); font-size: 0.875rem; margin-top: 0.375rem; }

.service-details {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.service-card.expanded .service-details {
  max-height: 80rem; opacity: 1;
}
.service-details p {
  color: hsl(var(--muted)); font-size: 0.875rem; line-height: 1.7;
  padding-top: 0.75rem; border-top: 1px solid hsl(var(--border));
}
.service-list {
  list-style: none; padding: 0; margin: 0;
  padding-top: 0.75rem; border-top: 1px solid hsl(var(--border));
}
.service-list li {
  color: hsl(var(--muted)); font-size: 0.875rem; line-height: 1.7;
  padding: 0.5rem 0; border-bottom: 1px solid hsl(var(--border) / 0.4);
}
.service-list li:last-child { border-bottom: none; }
.service-list li strong { color: hsl(var(--foreground)); }

.service-toggle { font-size: 0.75rem; color: hsl(var(--gold)); margin-top: 0.75rem; display: block; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }
.service-card:hover .service-toggle { text-decoration: underline; }

/* ===== About ===== */
.about-inner { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .about-inner { grid-template-columns: 5fr 7fr; align-items: start; gap: 4rem; } }

/* ===== Approach ===== */
.pain-list { list-style: none; }
.pain-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: hsl(var(--muted)); margin-bottom: 0.5rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: hsl(var(--gold)); flex-shrink: 0; margin-top: 0.55rem; }

.value-box {
  background: hsl(var(--secondary)); border-radius: 0.75rem; padding: 2rem;
}
.value-box-heading { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.value-list { list-style: none; }
.value-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; color: hsl(var(--foreground)); }
.check-icon { flex-shrink: 0; color: hsl(var(--gold)); margin-top: 0.125rem; }

/* ===== Outcomes ===== */
.outcomes-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .outcomes-grid { grid-template-columns: repeat(3, 1fr); } }

.outcome-card { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.outcome-icon { padding: 0.75rem; border-radius: 0.5rem; background: hsl(var(--gold) / 0.15); color: hsl(var(--gold)); }
.outcome-stat { font-size: 3.5rem; font-weight: 900; color: hsl(var(--gold)); line-height: 1; }
.outcome-label { color: hsl(var(--section-dark-fg) / 0.85); font-size: 0.9375rem; line-height: 1.6; margin-top: 0.5rem; }

/* ===== Testimonial ===== */
.testimonials-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card {
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-top: 3px solid hsl(var(--gold));
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem 2rem;
}
.testimonial-quote {
  font-size: 1.125rem; line-height: 1.7; font-style: italic;
  color: hsl(var(--foreground) / 0.9); margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .testimonial-quote { font-size: 1.25rem; } }
.testimonial-author { color: hsl(var(--foreground) / 0.55); font-weight: 500; margin-bottom: 0.25rem; }
.testimonial-context { font-size: 0.75rem; color: hsl(var(--gold)); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ===== Midwest ===== */
.midwest { position: relative; overflow: hidden; }
.midwest-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 6, 12, 0.25) 0%,
    rgba(10, 6, 12, 0.78) 55%,
    rgba(10, 6, 12, 0.95) 100%
  );
}
.midwest-img { width: 100%; height: 25rem; object-fit: cover; }
@media (min-width: 768px) { .midwest-img { height: 31.25rem; } }
.midwest-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 1.5rem 1.5rem 4rem;
  text-align: center;
}
@media (min-width: 768px) { .midwest-content { padding: 3rem 3rem 4rem; } }
@media (min-width: 1280px) { .midwest-content { padding: 5rem 8rem 4rem; } }
.midwest-heading { color: hsl(var(--primary-fg)); font-size: 1.875rem; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.mi-icon { display: block; height: 3rem; width: auto; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 1rem; }
.midwest-content p { color: hsl(var(--primary-fg) / 0.85); font-size: 1.125rem; font-weight: 500; margin-top: 0.5rem; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
@media (min-width: 768px) { .midwest-heading { font-size: 3rem; } .mi-icon { height: 3.75rem; } .midwest-content p { font-size: 1.25rem; } }

/* ===== Contact ===== */
.contact-buttons { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .contact-buttons { flex-direction: row; justify-content: center; } }

/* ===== Get Started page ===== */
.page-hero {
  background: var(--hero-gradient);
  padding: 10rem 1.5rem 5rem;
  text-align: center;
}
.page-hero-title {
  color: hsl(var(--primary-fg));
  font-size: 2.5rem; font-weight: 900; letter-spacing: -0.02em;
}
.page-hero-subtitle {
  color: hsl(var(--primary-fg), 0.85);
  font-size: 1.125rem; margin-top: 1rem; font-weight: 500;
}
@media (min-width: 768px) {
  .page-hero { padding: 10rem 3rem 5rem; }
  .page-hero-title { font-size: 3rem; }
}

.getstarted-options {
  display: flex; flex-direction: column; gap: 1.5rem; margin-top: 3rem;
}
@media (min-width: 640px) {
  .getstarted-options { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}

.getstarted-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: 2rem; background: hsl(var(--secondary));
  max-width: 22rem; text-align: left;
}
.getstarted-option-icon { color: hsl(var(--gold)); }
.getstarted-option h3 { font-size: 1.125rem; font-weight: 600; }
.getstarted-option p { color: hsl(var(--muted)); font-size: 0.9rem; flex: 1; }

/* ===== Scroll reveal ===== */
.section.will-reveal, .midwest.will-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.section.visible, .midwest.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .section.will-reveal, .midwest.will-reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Footer ===== */
.footer { padding: 4rem 1.5rem 2rem; }
@media (min-width: 768px) { .footer { padding: 4rem 3rem 2rem; } }
@media (min-width: 1280px) { .footer { padding: 4rem 8rem 2rem; } }

.footer-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
}

.footer-logo { height: 3.5rem; width: auto; opacity: 0.85; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.875rem; color: hsl(var(--section-dark-fg) / 0.5); line-height: 1.6; max-width: 20rem; }

.footer-col-heading { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--section-dark-fg) / 0.4); margin-bottom: 1rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { font-size: 0.875rem; color: hsl(var(--section-dark-fg) / 0.7); transition: color 0.2s; }
.footer-nav a:hover { color: hsl(var(--section-dark-fg)); }

.footer-email { font-size: 0.875rem; color: hsl(var(--gold)); display: block; margin-bottom: 1.25rem; transition: opacity 0.2s; }
.footer-email:hover { opacity: 0.8; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: hsl(var(--section-dark-fg) / 0.6); transition: color 0.2s; }
.footer-social a:hover { color: hsl(var(--gold)); }

.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--section-dark-fg) / 0.1);
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-copy { font-size: 0.8rem; color: hsl(var(--section-dark-fg) / 0.65); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: hsl(var(--section-dark-fg) / 0.35); transition: color 0.2s; }
.footer-legal a:hover { color: hsl(var(--section-dark-fg) / 0.7); }
