
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #182438;
  --muted: #526175;
  --line: #e2e8f0;
  --bg: #f7f9fc;
  --white: #ffffff;
  --radius: 14px;
}

/* =========================================
   GLOBAL STYLES
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 system-ui, -apple-system,
    "Segoe UI", Arial, sans-serif;
}

a {
  color: var(--blue-dark);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.container {
  max-width: 1140px;
  margin: auto;
  padding: 0 20px;
}

/* =========================================
   HEADER
========================================= */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-container {
  max-width: 1140px;
  margin: auto;
  min-height: 74px;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;

  color: var(--ink);
  text-decoration: none;

  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.brand-logo svg {
  flex: none;
  margin-right: 9px;
  color: var(--blue);
}

.tld {
  color: var(--blue);
}

/* =========================================
   DESKTOP NAVIGATION
========================================= */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-menu a {
  text-decoration: none;
  color: #334155;

  font-weight: 600;
  font-size: 14px;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--blue-dark);
}

.nav-menu .nav-cta {
  background: var(--blue);
  color: white;

  border-radius: 9px;
  padding: 9px 16px;
}

.nav-menu .nav-cta:hover {
  background: var(--blue-dark);
  color: white;
}

.mobile-toggle {
  display: none;

  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;

  width: 42px;
  height: 42px;

  align-items: center;
  justify-content: center;

  color: var(--ink);
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
  background: white;
  border-bottom: 1px solid var(--line);

  padding: 66px 0 60px;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;

  letter-spacing: 1px;
  text-transform: uppercase;

  color: var(--blue-dark);
  margin: 0 0 13px;
}

.hero h1 {
  max-width: 830px;
  margin: 0 auto 18px;

  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: -1.4px;
}

.hero p {
  max-width: 690px;
  margin: 0 auto 28px;

  color: var(--muted);
  font-size: 17px;
}

/* =========================================
   SEARCH BOX
========================================= */

.search-wrap {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.search-wrap svg {
  position: absolute;
  top: 50%;
  left: 18px;

  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.search-wrap input {
  display: block;
  width: 100%;
  height: 58px;

  border: 1px solid #b8c6d8;
  border-radius: 12px;

  padding: 0 20px 0 52px;

  background: white;
  color: var(--ink);

  box-shadow: 0 3px 12px #0f172a0a;
}

.search-wrap input:focus {
  border-color: var(--blue);
  outline: 3px solid #bfdbfe;
}

.hero-note {
  font-size: 12px !important;
  margin-top: 13px !important;
  color: #64748b !important;
}

/* =========================================
   CALCULATOR DIRECTORY
========================================= */

.main-area {
  padding: 43px 0 56px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 14px;
  margin: 0 0 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.5px;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}

/* =========================================
   CATEGORY FILTER BUTTONS
========================================= */

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-bottom: 24px;
}

.category-tab {
  border: 1px solid #cbd5e1;
  background: white;
  color: #334155;

  border-radius: 9px;
  padding: 9px 14px;

  font-size: 13px;
  font-weight: 650;
}

.category-tab:hover {
  border-color: #93a9c7;
}

.category-tab[aria-pressed="true"] {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* =========================================
   CALCULATOR GRID
========================================= */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

/* =========================================
   CALCULATOR CARDS
========================================= */

.tool-card {
  min-width: 0;

  display: flex;
  flex-direction: column;

  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);

  padding: 21px;
  box-shadow: 0 3px 12px #0f172a06;
}

.tool-card:hover {
  border-color: #cbd5e1;
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;
  margin-bottom: 17px;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 43px;
  height: 43px;

  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;

  font-weight: 800;
  font-size: 19px;
}

/* =========================================
   TOOL AVAILABILITY BADGES
========================================= */

.tool-status {
  font-size: 11px;
  color: #64748b;

  border: 1px solid #e2e8f0;
  background: #f8fafc;

  padding: 3px 8px;
  border-radius: 30px;

  white-space: nowrap;
}

.tool-status.available {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

/* =========================================
   TOOL CONTENT
========================================= */

.tool-card h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 9px;
}

.tool-card p {
  color: var(--muted);
  font-size: 13px;

  margin: 0 0 18px;
  flex: 1;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-weight: 750;
  text-decoration: none;
  font-size: 13px;
}

.tool-link:hover {
  text-decoration: underline;
}

.tool-unavailable {
  font-size: 12px;
  font-weight: 650;
  color: #64748b;
}

/* =========================================
   NO SEARCH RESULTS
========================================= */

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;

  text-align: center;
  padding: 35px;

  color: var(--muted);
  background: white;
}

/* =========================================
   SEO CONTENT SECTION
========================================= */

.seo-content {
  background: white;
  border-top: 1px solid var(--line);
  padding: 50px 0 65px;
}

.prose {
  max-width: 850px;
  margin: auto;
  color: #475569;
}

.prose h2 {
  font-size: 25px;
  line-height: 1.35;
  color: var(--ink);

  margin: 0 0 16px;
}

.prose h3 {
  font-size: 18px;
  color: var(--ink);

  margin: 28px 0 8px;
}

.prose p {
  margin: 0 0 15px;
}

.prose strong {
  color: var(--ink);
}

.prose ul {
  padding-left: 23px;
}

.prose li {
  margin-bottom: 8px;
}

/* =========================================
   FAQ SECTION
========================================= */

.faq {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}

.faq h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.faq p {
  margin: 0;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  background: #172235;
  color: #e2e8f0;
  padding: 45px 0 0;
}

.footer-container {
  max-width: 1140px;
  margin: auto;

  padding: 0 20px 38px;

  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 35px;
}

.footer-col h3,
.footer-col h4 {
  margin: 0 0 14px;
  color: white;
}

.footer-col h3 {
  font-size: 19px;
}

.footer-col h4 {
  font-size: 14px;
}

.footer-col p {
  color: #cbd5e1;
  font-size: 13px;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 8px 0;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
}

.footer-col a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #334155;
  text-align: center;

  padding: 16px 20px;

  color: #cbd5e1;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

/* =========================================
   ACCESSIBILITY & UTILITIES
========================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
  border: 0;
}

.tool-card[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -70px;

  background: white;
  padding: 10px;
  z-index: 99;
}

.skip-link:focus {
  top: 8px;
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 850px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-menu {
    gap: 15px;
  }
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 650px) {
  .header-container {
    min-height: 66px;
    flex-wrap: wrap;
    gap: 0;
  }

  .brand-logo {
    font-size: 18px;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    width: 100%;

    flex-direction: column;
    align-items: stretch;

    gap: 0;
    padding: 9px 0 16px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 10px 6px;
  }

  .nav-menu .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    padding: 47px 0 44px;
  }

  .hero h1 {
    letter-spacing: -0.7px;
  }

  .hero p {
    font-size: 15px;
  }

  .main-area {
    padding: 32px 0 42px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 19px;
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 7px;
  }

  .category-tab {
    white-space: nowrap;
    flex: none;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .footer-container .brand-col {
    grid-column: 1 / -1;
  }

  .seo-content {
    padding: 38px 0 45px;
  }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

