/* ============================================================
   AIandRealtors.com - Complete Stylesheet
   AI Tools Directory for Real Estate Agents
   ============================================================ */

/* ------------------------------------------------------------
   CSS Variables
   ------------------------------------------------------------ */
:root {
  --teal: #1D9E75;
  --teal-dark: #0F6E56;
  --teal-light: #E1F5EE;
  --amber: #F59E0B;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --surface: #F8F7F4;
  --border: #E5E3DC;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ------------------------------------------------------------
   CSS Reset & Base Styles
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--surface);
  min-width: 320px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover {
  color: var(--teal-dark);
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Selection */
::selection {
  background-color: var(--teal);
  color: var(--white);
}

/* ------------------------------------------------------------
   Typography Scale
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

p:last-child {
  margin-bottom: 0;
}

small,
.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-muted {
  color: var(--text-muted);
}

.text-teal {
  color: var(--teal);
}

.text-white {
  color: var(--white);
}

.text-center {
  text-align: center;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.125rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }
}

/* ------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.container-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .container-narrow {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Flex */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 16px;
}

.gap-lg {
  gap: 24px;
}

.gap-xl {
  gap: 32px;
}

/* Spacing */
.section {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.section-sm {
  padding-top: 32px;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  .section-sm {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

.mb-sm {
  margin-bottom: 8px;
}

.mb-md {
  margin-bottom: 16px;
}

.mb-lg {
  margin-bottom: 24px;
}

.mb-xl {
  margin-bottom: 32px;
}

.mb-2xl {
  margin-bottom: 48px;
}

.mt-lg {
  margin-top: 24px;
}

.mt-xl {
  margin-top: 32px;
}

/* Backgrounds */
.bg-white {
  background-color: var(--white);
}

.bg-surface {
  background-color: var(--surface);
}

.bg-teal-light {
  background-color: var(--teal-light);
}

/* ------------------------------------------------------------
   Header & Navigation
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--teal-dark);
}

.logo img {
  height: 32px;
  width: auto;
}

/* Desktop nav */
.nav-main {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-main a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color 200ms ease;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--teal);
}

.nav-main a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--teal);
  border-radius: 1px;
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-main {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color 200ms ease;
}

.hamburger:hover {
  background-color: var(--surface);
}

.hamburger svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

.hamburger .icon-close {
  display: none;
}

.hamburger.is-active .icon-menu {
  display: none;
}

.hamburger.is-active .icon-close {
  display: block;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px;
  z-index: 999;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background-color 200ms ease, color 200ms ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background-color: var(--teal-light);
  color: var(--teal);
}

.nav-mobile .btn {
  display: block;
  text-align: center;
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .nav-mobile {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--teal);
  border-color: var(--teal);
}

.btn-secondary:hover {
  background-color: var(--teal-light);
  color: var(--teal-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--teal);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--surface);
}

.btn-amber {
  background-color: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}

.btn-amber:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: var(--white);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.0625rem;
  border-radius: var(--radius);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------ */
.hero {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/aiandrealtors_header.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero::before,
.hero::after {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 600px;
}

.hero-lg {
  padding: 64px 0;
}

.hero-centered {
  text-align: center;
}

.hero-centered p {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero {
    padding: 64px 0;
  }

  .hero-lg {
    padding: 80px 0;
  }

  .hero p {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-lg {
    padding: 96px 0;
  }
}

/* Hero search bar */
.hero-search {
  display: flex;
  max-width: 560px;
  margin-top: 24px;
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-centered .hero-search {
  margin-left: auto;
  margin-right: auto;
}

.hero-search input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  min-width: 0;
}

.hero-search input::placeholder {
  color: var(--text-muted);
}

.hero-search input:focus {
  outline: none;
}

.hero-search button {
  padding: 14px 24px;
  background-color: var(--teal);
  color: var(--white);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease;
  white-space: nowrap;
}

.hero-search button:hover {
  background-color: var(--teal-dark);
}

/* ------------------------------------------------------------
   Stats Bar
   ------------------------------------------------------------ */
.stats-bar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.stats-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  white-space: nowrap;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .stats-bar-inner {
    gap: 48px;
  }
}

@media (min-width: 768px) {
  .stat-item {
    flex-direction: column;
    gap: 4px;
  }

  .stat-number {
    font-size: 1.75rem;
  }
}

/* Stats bar - hero embedded variant */
.stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-inline .stat-item {
  color: var(--white);
}

.stats-inline .stat-number {
  color: var(--white);
  font-size: 1.25rem;
}

.stats-inline .stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .stats-inline {
    gap: 40px;
  }
}

/* ------------------------------------------------------------
   Category Grid Cards
   ------------------------------------------------------------ */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  transition: all 200ms ease;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-icon {
  font-size: 40px;
  line-height: 1;
  transition: transform 200ms ease;
}

.category-card h3,
.category-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.category-card p,
.category-card-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* ------------------------------------------------------------
   Tool Cards
   ------------------------------------------------------------ */
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 200ms ease;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--surface);
}

.tool-card-info {
  flex: 1;
  min-width: 0;
}

.tool-card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.tool-card-name a {
  color: var(--text);
  text-decoration: none;
}

.tool-card-name a:hover {
  color: var(--teal);
}

.tool-card-category {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.tool-card-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tool-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--amber);
  font-weight: 600;
}

/* Featured badge */
.badge-featured {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--amber);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 0 var(--radius) 0 var(--radius-sm);
  z-index: 2;
}

/* Tool card featured state */
.tool-card.is-featured {
  border-color: var(--amber);
}

.tool-card.is-featured:hover {
  border-color: var(--amber);
}

/* ------------------------------------------------------------
   Badges & Pills
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  white-space: nowrap;
  line-height: 1.4;
}

.badge-teal {
  background-color: var(--teal-light);
  color: var(--teal-dark);
}

.badge-amber-pill {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-surface {
  background-color: var(--surface);
  color: var(--text-muted);
}

.badge-white {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Pricing badges */
.badge-free {
  background-color: var(--teal-light);
  color: var(--teal-dark);
}

.badge-freemium {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.badge-paid {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-trial {
  background-color: #F3E8FF;
  color: #6B21A8;
}

/* Category pill */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
  background-color: var(--teal-light);
  color: var(--teal-dark);
  text-decoration: none;
  transition: all 200ms ease;
}

.pill:hover {
  background-color: var(--teal);
  color: var(--white);
}

/* ------------------------------------------------------------
   Filter Bar
   ------------------------------------------------------------ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}

.filter-bar-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-pill.is-active {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.filter-pill.is-active:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
}

/* Filter select dropdown */
.filter-select {
  padding: 8px 32px 8px 12px;
  font-size: 0.875rem;
  color: var(--text);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B6B' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 200ms ease;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--teal);
}

/* Sorting and results count */
.filter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.results-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sort-select {
  padding: 6px 28px 6px 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B6B' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* ------------------------------------------------------------
   Blog Cards
   ------------------------------------------------------------ */
.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 200ms ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--surface);
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-tag {
  display: inline-block;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--text);
}

.blog-card-title a {
  color: var(--text);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--teal);
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.blog-card-author {
  font-weight: 600;
  color: var(--text);
}

/* ------------------------------------------------------------
   Blog Post Article (Full Page)
   ------------------------------------------------------------ */
.article-header {
  margin-bottom: 32px;
}

.article-header .badge {
  margin-bottom: 12px;
}

.article-header h1 {
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  margin-bottom: 16px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.article-content ul,
.article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--teal);
  background-color: var(--teal-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content blockquote p {
  font-style: italic;
  color: var(--teal-dark);
  margin: 0;
}

.article-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.article-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--teal-dark);
}

.article-content code {
  padding: 2px 6px;
  font-size: 0.9em;
  background-color: var(--surface);
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
}

.article-content pre {
  margin: 24px 0;
  padding: 20px;
  background-color: var(--text);
  color: var(--surface);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Article share / tags */
.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

/* Related posts */
.related-posts {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required {
  color: #EF4444;
  margin-left: 2px;
}

.form-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--text);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B6B' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9375rem;
}

.form-checkbox input[type="checkbox"],
.form-checkbox input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
}

/* Form error state */
.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: #EF4444;
}

.form-error {
  font-size: 0.8125rem;
  color: #EF4444;
  margin-top: 4px;
}

/* Form success */
.form-success {
  padding: 16px;
  background-color: var(--teal-light);
  color: var(--teal-dark);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* Inline form row */
.form-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------
   Email Signup Section
   ------------------------------------------------------------ */
.email-signup {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  padding: 48px 0;
}

.email-signup h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.email-signup p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.email-signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.email-signup-centered .email-signup-form {
  margin-left: auto;
  margin-right: auto;
}

.email-signup-form input {
  padding: 14px 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
}

.email-signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.email-signup-form input:focus {
  outline: none;
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.15);
}

.email-signup-form button {
  padding: 14px 24px;
  background-color: var(--white);
  color: var(--teal);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 200ms ease;
}

.email-signup-form button:hover {
  background-color: var(--surface);
  transform: translateY(-1px);
}

.email-signup-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

@media (min-width: 640px) {
  .email-signup-form {
    flex-direction: row;
  }

  .email-signup-form input {
    flex: 1;
  }
}

@media (min-width: 768px) {
  .email-signup {
    padding: 64px 0;
  }
}

/* ------------------------------------------------------------
   CTA Banner
   ------------------------------------------------------------ */
.cta-banner {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.cta-banner h2,
.cta-banner h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  margin-top: 4px;
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 48px 40px;
  }
}

/* Full-width CTA variant */
.cta-section {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  font-size: 1.125rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 64px 0;
  }
}

/* ------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 16px 0;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 200ms ease;
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-separator {
  margin: 0 4px;
  color: var(--border);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* Breadcrumb on hero (white text) */
.hero .breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 16px;
}

.hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.hero .breadcrumb a:hover {
  color: var(--white);
}

.hero .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

.hero .breadcrumb-current {
  color: var(--white);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-column h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: all 200ms ease;
}

.footer-social a:hover {
  background-color: var(--teal);
  color: var(--white);
}

/* ------------------------------------------------------------
   About Page Sections
   ------------------------------------------------------------ */
.about-section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .about-section {
    padding: 64px 0;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-content h2 {
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Mission / Values cards */
.value-card {
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.value-card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.value-card h3 {
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Team cards */
.team-card {
  text-align: center;
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.team-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--teal);
  border: 2px solid var(--white);
}

.timeline-item h4 {
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.timeline-date {
  font-size: 0.8125rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ------------------------------------------------------------
   Contact Page
   ------------------------------------------------------------ */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 200ms ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--teal-light);
  color: var(--teal);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 24px;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-card a {
  color: var(--teal);
  font-weight: 500;
}

/* Contact form wrapper */
.contact-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 639px) {
  .contact-form-wrapper {
    padding: 20px;
  }
}

/* ------------------------------------------------------------
   Submit Tool Form
   ------------------------------------------------------------ */
.submit-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 639px) {
  .submit-form-wrapper {
    padding: 20px;
  }
}

.submit-form-wrapper h2 {
  margin-bottom: 8px;
}

.submit-form-wrapper > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* Submit steps indicator */
.submit-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.submit-step {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--surface);
  border-radius: var(--radius-sm);
}

.submit-step.is-active {
  background-color: var(--teal);
  color: var(--white);
}

.submit-step.is-completed {
  background-color: var(--teal-light);
  color: var(--teal-dark);
}

/* ------------------------------------------------------------
   Tool Detail Page
   ------------------------------------------------------------ */
.tool-detail-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .tool-detail-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }
}

.tool-detail-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--surface);
}

.tool-detail-info h1 {
  margin-bottom: 8px;
}

.tool-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tool-detail-description {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.tool-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Tool detail sidebar */
.tool-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .tool-detail-layout {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }
}

.tool-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sidebar-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.sidebar-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-card-row:last-child {
  border-bottom: none;
}

.sidebar-card-label {
  color: var(--text-muted);
}

.sidebar-card-value {
  font-weight: 600;
  color: var(--text);
}

/* Tool screenshots/gallery */
.tool-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .tool-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tool-gallery img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Pros / Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .pros-cons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pros-list,
.cons-list {
  padding: 20px;
  border-radius: var(--radius);
}

.pros-list {
  background-color: var(--teal-light);
}

.cons-list {
  background-color: #FEF2F2;
}

.pros-list h4 {
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.cons-list h4 {
  color: #991B1B;
  margin-bottom: 12px;
}

.pros-list li,
.cons-list li {
  padding: 4px 0;
  font-size: 0.9375rem;
  list-style: none;
  padding-left: 20px;
  position: relative;
}

.pros-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--teal);
}

.cons-list li::before {
  content: '-';
  position: absolute;
  left: 2px;
  font-weight: 700;
  color: #DC2626;
}

/* Review section on tool detail */
.review-card {
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.review-author {
  font-weight: 600;
}

.review-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.review-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Comparison Table
   ------------------------------------------------------------ */
.comparison-table {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
}

.comparison-table table {
  width: 100%;
  min-width: 600px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.comparison-table th {
  background-color: var(--surface);
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: var(--teal-light);
}

/* ------------------------------------------------------------
   Pagination
   ------------------------------------------------------------ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 200ms ease;
}

.pagination a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.pagination .is-active {
  background-color: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.pagination .pagination-dots {
  border: none;
  background: transparent;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Search Results
   ------------------------------------------------------------ */
.search-results-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.search-results-header h2 {
  margin-bottom: 4px;
}

.search-results-header p {
  color: var(--text-muted);
}

.search-highlight {
  background-color: #FEF3C7;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   Alert / Notice
   ------------------------------------------------------------ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.alert-info {
  background-color: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #93C5FD;
}

.alert-success {
  background-color: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid var(--teal);
}

.alert-warning {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.alert-error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* ------------------------------------------------------------
   FAQ / Accordion
   ------------------------------------------------------------ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background-color: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 200ms ease;
}

.faq-question:hover {
  background-color: var(--surface);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-item.is-open .faq-question::after {
  content: '-';
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ------------------------------------------------------------
   Testimonial Cards
   ------------------------------------------------------------ */
.testimonial-card {
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 16px;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--teal);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Modal / Overlay
   ------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 200ms ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transform: translateY(20px);
  transition: transform 200ms ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  font-size: 1.25rem;
  transition: all 200ms ease;
}

.modal-close:hover {
  background-color: var(--surface);
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* ------------------------------------------------------------
   Skeleton Loading
   ------------------------------------------------------------ */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text-lg {
  height: 24px;
  margin-bottom: 12px;
  width: 60%;
}

.skeleton-card {
  height: 200px;
}

/* ------------------------------------------------------------
   Utility: Visibility & Screen readers
   ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none !important;
}

.visible-mobile {
  display: block;
}

.visible-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .visible-mobile {
    display: none;
  }

  .visible-desktop {
    display: block;
  }
}

/* ------------------------------------------------------------
   Print Styles
   ------------------------------------------------------------ */
@media print {
  .site-header,
  .site-footer,
  .hamburger,
  .nav-mobile,
  .cta-banner,
  .email-signup,
  .filter-bar {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ============================================================
   HTML CLASS BRIDGE — styles matching actual HTML markup
   ============================================================ */

/* ---------- Hero Buttons ---------- */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Stats bar inside hero ---------- */
.hero .stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  border: none;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
}

.hero .stat-number {
  color: var(--white);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero .stat-label {
  color: rgba(255,255,255,0.8);
}

/* ---------- Section title ---------- */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
}

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.category-count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal);
}

.category-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.category-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: auto;
}

.category-card:hover .category-link {
  color: var(--teal-dark);
}

/* ---------- Tools grid ---------- */
.tools-grid,
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .tools-grid,
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tools-grid,
  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-grid-section {
  padding: 40px 0;
}

/* ---------- Tool card inner elements ---------- */
.tool-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px 0;
}

.tool-category-badge,
.category-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  background-color: var(--teal-light);
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.tool-desc,
.tool-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.tool-tags,
.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tool-tag,
.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 100px;
  background-color: var(--surface);
  color: var(--text-muted);
}

.tool-pricing {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.btn-tool,
.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  background-color: var(--teal-light);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 200ms ease;
  cursor: pointer;
  margin-top: auto;
  text-align: center;
  justify-content: center;
}

.btn-tool:hover,
.btn-visit:hover {
  background-color: var(--teal);
  color: var(--white);
}

/* ---------- Featured badge (HTML class) ---------- */
.featured-badge,
.tool-badge-featured {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--amber);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 0 var(--radius) 0 var(--radius-sm);
  z-index: 2;
}

.tool-card.featured {
  border-color: var(--amber);
}

.tool-card.featured:hover {
  border-color: var(--amber);
}

/* ---------- Filter buttons (HTML classes) ---------- */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 200ms ease;
}

.filter-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-btn.active {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.filter-btn.active:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-bar select,
.filter-controls select {
  padding: 8px 32px 8px 12px;
  font-size: 0.875rem;
  color: var(--text);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B6B' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-bar input[type="text"],
.filter-bar input[type="search"],
.filter-controls input[type="text"],
.filter-controls input[type="search"] {
  padding: 8px 14px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 200px;
}

.filter-bar input:focus,
.filter-controls input:focus,
.filter-bar select:focus,
.filter-controls select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.15);
}

/* ---------- Tool count badge ---------- */
.tool-count-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  margin-top: 12px;
}

/* ---------- Category hero ---------- */
.category-hero {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/aiandrealtors_header.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.category-hero::before {
  display: none;
}

.category-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.category-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.0625rem;
  max-width: 600px;
  line-height: 1.6;
}

.category-hero-content .category-icon,
.category-hero .category-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

/* ---------- Featured tools section ---------- */
.featured-tools {
  padding: 60px 0;
  background-color: var(--surface);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb span {
  color: rgba(255,255,255,0.5);
}

.breadcrumb .current {
  color: var(--white);
}

/* ---------- Subscribe / email signup section ---------- */
.subscribe-section,
.email-signup {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.subscribe-section h2,
.email-signup h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.subscribe-section p,
.email-signup p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}

.subscribe-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: none;
  font-size: 1rem;
  min-width: 0;
}

.subscribe-form input[type="email"]:focus {
  outline: none;
}

.subscribe-form button {
  padding: 14px 24px;
  background-color: var(--white);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 200ms ease;
}

.subscribe-form button:hover {
  background-color: var(--surface);
}

.subscribe-section small,
.email-signup small {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--white);
  margin: 40px 0;
}

.cta-banner h2,
.cta-banner h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.cta-banner .btn {
  background-color: var(--white);
  color: var(--teal);
}

.cta-banner .btn:hover {
  background-color: var(--surface);
}

/* ---------- Related categories ---------- */
.related-categories {
  padding: 40px 0;
}

.related-categories h2 {
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Blog card extra classes ---------- */
.blog-card-tag,
.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 100px;
  background-color: var(--teal-light);
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.blog-card-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  margin-top: auto;
}

.blog-card-read-more:hover {
  color: var(--teal-dark);
}

/* ---------- Blog grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- No results message ---------- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.0625rem;
  display: none;
  grid-column: 1 / -1;
}

.no-results.visible {
  display: block;
}

/* ---------- Content sections (about, contact, submit) ---------- */
.content-section {
  padding: 60px 0;
}

.content-section.alt-bg {
  background-color: var(--surface);
}

.content-section h2 {
  margin-bottom: 16px;
}

.content-section p {
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 720px;
}

/* ---------- Contact reason cards ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  padding: 24px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 200ms ease;
}

.contact-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-card h3 {
  color: var(--teal);
  margin-bottom: 8px;
}

/* ---------- Form wrapper ---------- */
.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- Btn outline ---------- */
.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 200ms ease;
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--teal);
}

/* ---------- Comparison table (blog post) ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.875rem;
}

.comparison-table th {
  background-color: var(--teal);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.comparison-table tr:nth-child(even) {
  background-color: var(--surface);
}

.comparison-table a {
  color: var(--teal);
  font-weight: 500;
}

/* ---------- Article / blog post layout ---------- */
.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.author-bio {
  margin-top: 40px;
  padding: 24px;
  background-color: var(--surface);
  border-radius: var(--radius);
}

.author-bio h3 {
  margin-bottom: 8px;
}

.author-bio p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Quick facts box (blog tool sections) ---------- */
.quick-facts {
  background-color: var(--surface);
  border-left: 4px solid var(--teal);
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
}

.quick-facts strong {
  color: var(--text);
}

/* ---------- Blog post read time ---------- */
.read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Categories section padding ---------- */
.categories {
  padding: 60px 0;
  background-color: var(--surface);
}

/* ---------- Blog preview section on homepage ---------- */
.blog-preview {
  padding: 60px 0;
}

/* ---------- Responsive adjustments for hero stat bar ---------- */
@media (max-width: 639px) {
  .hero .stats-bar {
    gap: 16px;
  }
  .stat {
    min-width: 40%;
  }
  .subscribe-form {
    flex-direction: column;
    border-radius: var(--radius-sm);
  }
  .subscribe-form button {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }
}

/* ============================================================
   Header nav fix — .main-nav (HTML) mapped to nav behavior
   ============================================================ */
.main-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color 200ms ease;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: var(--teal);
}

.main-nav a.active::after,
.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--teal);
  border-radius: 1px;
}

.btn-cta-header {
  display: none;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--teal);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms ease;
}

.btn-cta-header:hover {
  background-color: var(--teal-dark);
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
  .btn-cta-header {
    display: inline-flex;
  }
}

.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px;
  z-index: 999;
  gap: 0;
}

.main-nav.is-open a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.main-nav.is-open a:hover {
  background-color: var(--teal-light);
}

/* Hamburger spans (3-line icon) */
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  margin: 3px 0;
  border-radius: 2px;
  transition: all 200ms ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Nav menu (alternate class used by some pages) */
.nav-menu {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  transition: color 200ms ease;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu a[aria-current="page"] {
  color: var(--teal);
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-menu.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px;
  z-index: 999;
  gap: 0;
}

.nav-menu.is-open a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.nav-menu.is-open a:hover {
  background-color: var(--teal-light);
}

@media (max-width: 639px) {
  .hero {
    min-height: 300px;
  }
  .category-hero {
    min-height: 300px;
  }
}
