/*
Theme Name: AI Tools Nest
Theme URI: https://aitoolsnest.com
Author: AI Tools Nest
Author URI: https://aitoolsnest.com
Description: Modern, lightning-fast editorial and review theme for AI tools, benchmarks, workflows, and tech publications with dark/light mode, mobile drawer navigation with submenus, dynamic reviews, and contact form.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-tools-nest
Tags: blog, news, editorial, modern, clean, custom-menu, featured-images, theme-options
*/

:root {
  --bg: #FFFFFF;
  --ink: #070B1E;
  --ink-2: #475467;
  --line: #EAECF0;
  --soft: #F0F4FF;
  --accent: #1A4BFF;
  --accent-cyan: #00B2FE;
  --accent-purple: #7A28FF;
  --cta: #070B1E;
  --cta-card: #0F172A;
  --cta-line: #1E293B;
  --t1: #F9DAD4; --t2: #D9E4FB; --t3: #E7E5DF; --t4: #DAEEDC; --t5: #FAE9C2; --t6: #E5DCF6;
  --f: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070B1E;
    --ink: #F2F4F7;
    --ink-2: #98A2B3;
    --line: #1E293B;
    --soft: #0F172A;
    --accent: #00B2FE;
    --cta: #0A0F26;
    --cta-card: #070B1E;
    --cta-line: #1E293B;
    --t1: #3A2724; --t2: #202A44; --t3: #2A2B29; --t4: #1F3224; --t5: #3A3220; --t6: #2E2742;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #070B1E;
  --ink: #F2F4F7;
  --ink-2: #98A2B3;
  --line: #1E293B;
  --soft: #0F172A;
  --accent: #00B2FE;
  --cta: #0A0F26;
  --cta-card: #070B1E;
  --cta-line: #1E293B;
  --t1: #3A2724; --t2: #202A44; --t3: #2A2B29; --t4: #1F3224; --t5: #3A3220; --t6: #2E2742;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-size: 1rem;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 24px;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1216px; margin: 0 auto; width: 100%; }

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 0;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo {
  height: 44px;
  width: auto;
  max-width: 195px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.site-logo:hover { transform: scale(1.02); }

:root[data-theme="dark"] .site-header .site-logo,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header .site-logo {
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }
}

/* Desktop Menu */
.desktop-nav {
  display: flex;
  align-items: center;
}
.primary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
}
.primary-menu > li {
  position: relative;
}
.primary-menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all 0.18s ease;
}
.primary-menu a:hover,
.primary-menu li.current-menu-item > a,
.primary-menu li.current-menu-ancestor > a {
  color: var(--ink);
  background: var(--soft);
}

/* Submenu Dropdown (Desktop) */
.primary-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s ease;
}
.primary-menu .menu-item-has-children:hover > a::after {
  transform: rotate(-135deg);
}

.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 150;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  display: flex;
}
.primary-menu .sub-menu a {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  width: 100%;
}
.primary-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 0.25rem;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header Action buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.iconbtn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.iconbtn:hover { background: var(--soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg) !important;
  font-weight: 600;
  font-size: 0.875rem;
  border: 0;
  cursor: pointer;
  line-height: 1.4;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  color: #fff !important;
}

/* Mobile Menu Toggle Button */
.mobile-toggle-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  color: var(--ink);
  z-index: 250;
}
.mobile-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.mobile-toggle-btn.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-toggle-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle-btn.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Slide-Out Drawer Navigation */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 180;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-drawer-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--line);
  z-index: 190;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 2.5rem;
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer.is-open {
  transform: translateX(-320px);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mobile-menu-list li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu-list a {
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  flex: 1;
}
.mobile-menu-list a:hover {
  background: var(--soft);
}
.mobile-submenu-toggle {
  width: 36px;
  height: 36px;
  background: var(--soft);
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.2s ease;
}
.mobile-submenu-toggle.is-expanded {
  transform: rotate(180deg);
}

.mobile-menu-list .sub-menu {
  flex-basis: 100%;
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 2px solid var(--line);
  display: none;
  flex-direction: column;
  gap: 0.2rem;
}
.mobile-menu-list .sub-menu.is-open {
  display: flex;
}
.mobile-menu-list .sub-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  min-height: 480px;
  color: #fff !important;
  text-decoration: none;
  isolation: isolate;
  background: #070B1E;
  margin-top: 1rem;
  box-shadow: var(--shadow-md);
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero:hover .hero-img-wrap img {
  transform: scale(1.03);
}
.hero-art-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 11, 30, 0.96), rgba(7, 11, 30, 0.6) 42%, rgba(7, 11, 30, 0.1) 75%);
}
.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.75rem 6rem 2.75rem 2.75rem;
  max-width: 58rem;
}
.hero .feat {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: rgba(0, 178, 254, 0.2);
  border: 1px solid rgba(0, 178, 254, 0.4);
  color: #00B2FE;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.hero h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: #ffffff;
}
.hero p {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
  color: #E2E8F0;
}
.hero .arrow {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.hero:hover .arrow {
  transform: translateX(5px);
  background: var(--accent-cyan);
}

/* --- SECTION HEADER & GRID --- */
.sec-h {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 4rem 0 1.75rem;
}
.sec-h h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 1.75rem;
}
.card {
  display: flex;
  flex-direction: column;
  color: inherit;
  min-width: 0;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
}
.thumb {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: var(--soft);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover .thumb img {
  transform: scale(1.04);
}
.thumb svg {
  display: block;
  width: 100%;
  height: 100%;
}
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.card:hover h3 {
  color: var(--accent);
}
.card p {
  margin: 0 0 1.25rem;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.6;
}
.who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  font-weight: 500;
}
.av {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--t2);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}
.pagination a, .pagination span {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
}
.pagination span.current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* --- SINGLE ARTICLE / REVIEW PAGE --- */
.article {
  max-width: 46rem;
  margin: 0 auto;
  padding-top: 2rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--accent); }
.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--soft);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.article h1 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.article .dek {
  margin: 0 0 1.75rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.article .who { margin-bottom: 2rem; }
.article .thumb {
  border-radius: 20px;
  margin-bottom: 2.5rem;
}
.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
}
.article-body p { margin: 0 0 1.6rem; }
.article-body h2, .article-body h3 {
  margin: 2.75rem 0 1rem;
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Review Specs & Verdict components */
.spec-box {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 1rem;
  background: var(--bg);
}
.spec-box-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.spec-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) 2.5rem;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.spec-row b { text-align: right; font-variant-numeric: tabular-nums; }
.spec-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--soft);
  overflow: hidden;
}
.spec-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-cyan) 100%);
  border-radius: 4px;
}
.verdict-box {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  border-radius: 18px;
  background: var(--soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  border-left: 4px solid var(--accent);
}
.verdict-box strong {
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.verdict-box span {
  flex: 1 1 16rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.article-nav {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}
.article-nav small {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.85rem;
  display: block;
}
.article-nav a {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.article-nav a:hover { color: var(--accent); }

/* --- FOOTER & CONTACT FORM --- */
.site-footer {
  margin-top: 5rem;
  background: var(--cta);
  border: 1px solid var(--cta-line);
  color: #fff;
  border-radius: 28px;
  padding: 4.5rem 2.5rem 2.5rem;
  box-shadow: var(--shadow-md);
}

/* Contact Form Section (Replaces Subscribe) */
.footer-contact {
  max-width: 48rem;
  margin: 0 auto 4.5rem;
  text-align: center;
}
.footer-contact h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.footer-contact p {
  margin: 0 0 2rem;
  color: #94A3B8;
  font-size: 1.05rem;
}

.contact-card {
  background: var(--cta-card);
  border: 1px solid var(--cta-line);
  border-radius: 20px;
  padding: 2.25rem;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.contact-form .full-col {
  grid-column: 1 / -1;
}
.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: #E2E8F0;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #0B1028;
  border: 1px solid #1E293B;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748B;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 178, 254, 0.2);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form .submit-btn-wrap {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.contact-form .btn-submit {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #00B2FE 0%, #1A4BFF 50%, #7A28FF 100%);
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.contact-form .btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.form-status-msg {
  font-size: 0.9rem;
  font-weight: 500;
}
.form-status-msg.success { color: #4ADE80; }
.form-status-msg.error { color: #F87171; }

/* 2 Footer Menu Columns + Brand Column */
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 2.5rem;
  border-top: 1px solid var(--cta-line);
  padding-top: 3.5rem;
}
.footer-col h4 {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94A3B8;
}
.footer-menu,
.footer-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.footer-menu a,
.footer-cat-list a {
  color: #E2E8F0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-menu a:hover,
.footer-cat-list a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-cat-list .cat-count {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  background: #1E293B;
  border-radius: 999px;
  color: #94A3B8;
}

/* Footer Bottom Bar */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cta-line);
  color: #94A3B8;
  font-size: 0.875rem;
}
.footer-bottom .site-logo {
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .mobile-toggle-btn { display: flex; }
  .site-footer { padding: 3.5rem 1.5rem 2rem; }
  .contact-card { padding: 1.5rem; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 420px; border-radius: 20px; }
  .hero-text { padding: 1.5rem; }
  .hero .arrow { display: none; }
  .sec-h { margin-top: 3rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 6rem minmax(0, 1fr) 2.2rem; }
  .article-body { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
