/* SafeLeads — Modern responsive template stylesheet (2026-08-05-9) */

:root {
  --color-primary: #006699;
  --color-primary-dark: #004d73;
  --color-primary-light: #e6f3f9;
  --color-accent: #0ea5e9;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-footer-text: #94a3b8;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --sidebar-width: 320px;
  --layout-gap: 2rem;
  --header-height: 72px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg-alt);
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; color: var(--color-primary-dark); }
h3 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
  text-decoration: none;
}

/* Site header */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: auto;
  box-sizing: border-box;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.site-brand a {
  flex-shrink: 0;
}

.site-brand img {
  height: 48px;
  width: auto;
}

.site-tagline {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--color-text);
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.primary-nav a {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.primary-nav a:hover {
  background: var(--color-primary-light);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-light);
  text-decoration: none;
}

/* Page layout */
.page-wrapper {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--sidebar-width));
  gap: var(--layout-gap);
  align-items: start;
}

#main-content {
  min-width: 0;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.25rem;
  color: var(--color-border);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0077b3 0%, #1a94c4 55%, #4db8e8 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
}

.hero .btn-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.85);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
}

.hero-content h1,
.hero > h1 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e8f6ff;
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Feature highlights */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-primary-dark);
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Content sections */
.content-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-section h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary-light);
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
}

.content-section li {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.content-section li strong {
  color: var(--color-text);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.75rem;
  border: none;
  padding: 0;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--color-primary-dark) !important;
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

.cta-band .btn-primary:hover {
  background: var(--color-primary-light);
}

/* Sidebar — scrolls with page (not sticky) */
.sidebar {
  position: static;
  top: auto;
  align-self: start;
  min-width: 0;
  max-width: 100%;
}

.sidebar-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.sidebar-card-header {
  background: var(--color-bg-alt);
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-card-header h2 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-ad-slot {
  min-height: 250px;
  margin: 1rem 1.25rem 1.25rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  max-width: calc(100% - 2.5rem);
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar-ad-slot .adsbygoogle,
.sidebar-ad-slot ins,
.sidebar-ad-slot iframe {
  display: block;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}

.sidebar-nav a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), padding-left var(--transition);
}

.sidebar-nav a:last-child {
  border-bottom: none;
}

.sidebar-nav a:hover {
  background: var(--color-primary-light);
  padding-left: 1.5rem;
  text-decoration: none;
  color: var(--color-primary-dark);
}

.company-leads {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.company-leads:last-child {
  border-bottom: none;
}

.company-leads img {
  max-width: 140px;
  margin: 0 auto 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.company-leads a {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-footer-text);
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  color: var(--color-footer-text);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8125rem;
  text-align: right;
}

/* Responsive */
@media (min-width: 768px) {
  .site-tagline {
    display: block;
  }
}

@media (max-width: 992px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    top: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .content-section {
    padding: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .sidebar-ad-slot {
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: calc(100% - 2rem);
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }
}

/* Single-column pages (no sidebar) */
.page-wrapper--single {
  grid-template-columns: 1fr;
  max-width: var(--max-width);
}

/* Alpha letter navigation */
.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 1rem 0 1.5rem;
}

.alpha-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.alpha-nav a:hover {
  background: var(--color-primary-light);
  text-decoration: none;
}

/* Company leads listing */
.leads-table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.leads-table-col {
  min-width: 0;
}

.letter-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  padding: 0.75rem 0 0.25rem;
  margin-top: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.leads-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.leads-row a {
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.leads-count {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.category-list a {
  font-size: 1.125rem;
  font-weight: 600;
}

.company-detail-logo {
  max-width: 200px;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* Contact form */
.contact-form {
  max-width: 36rem;
  margin-top: 1.5rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

.form-notice p {
  margin: 0;
}

.form-notice--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-notice--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media (max-width: 768px) {
  .leads-table-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .nav-toggle,
  .sidebar-ad {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .page-wrapper {
    grid-template-columns: 1fr;
  }

  .hero {
    background: none;
    color: var(--color-text);
    box-shadow: none;
    border: 1px solid var(--color-border);
  }

  .hero-content h1,
  .hero-subtitle {
    color: var(--color-text);
  }
}
