/*
Theme Name: FireLoop Blog
Theme URI: https://fireloop.ai
Author: FireLoop
Author URI: https://fireloop.ai
Description: A custom WordPress theme for the FireLoop blog — robotics AI infrastructure platform.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fireloop-blog
Tags: blog, dark, custom-menu, featured-images
*/

/* ===== CSS Variables (matching Tailwind theme) ===== */
:root {
  --background: hsl(235, 45%, 6%);
  --foreground: hsl(210, 40%, 98%);
  --card: hsl(235, 40%, 10%);
  --card-foreground: hsl(210, 40%, 98%);
  --primary: hsl(172, 45%, 53%);
  --primary-foreground: hsl(235, 45%, 6%);
  --muted: hsl(235, 30%, 15%);
  --muted-foreground: hsl(215, 20%, 65%);
  --border: hsl(235, 30%, 20%);
  --teal: hsl(172, 45%, 53%);
  --cyan: hsl(197, 67%, 55%);
  --radius: 0.75rem;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

video {
  display: block;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsla(235, 45%, 6%, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid hsla(235, 30%, 20%, 0.5);
}

.header-nav {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 2.5rem;
  transition: transform 0.2s ease;
}

.header-logo:hover img {
  transform: scale(1.05);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.nav-link:hover,
.nav-button:hover {
  color: var(--foreground);
}

.chevron-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.nav-item:hover .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  width: 18rem;
  z-index: 60;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-inner {
  background: hsla(235, 40%, 10%, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dropdown-link {
  display: block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.dropdown-link:hover {
  background-color: var(--muted);
}

.dropdown-link-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.dropdown-link:hover .dropdown-link-title {
  color: var(--primary);
}

.dropdown-link-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(to right, var(--teal), var(--cyan));
  color: var(--primary-foreground);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 0 30px hsla(172, 45%, 53%, 0.5);
}

.btn-demo.footer-btn {
  padding: 0.5rem 1.5rem;
}

.btn-demo svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}

.btn-demo:hover {
  box-shadow: 0 0 30px hsla(172, 45%, 53%, 0.5);
  transform: scale(1.05);
}

.header-cta .btn-demo {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
}

.header-cta .btn-demo:hover {
  box-shadow: 0 0 50px hsla(172, 45%, 53%, 0.7);
}

/* Mobile Menu Toggle */
.mobile-menu-checkbox {
  display: none;
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 0;
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

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

.mobile-menu-checkbox:checked ~ .header-nav .hamburger-icon { display: none; }
.mobile-menu-checkbox:checked ~ .header-nav .close-icon { display: block; }

.mobile-menu {
  display: none;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.mobile-menu-checkbox:checked ~ .mobile-menu {
  display: block;
}

.mobile-menu-inner {
  padding: 1.5rem;
}

.mobile-menu-inner > * + * {
  margin-top: 1rem;
}

.mobile-nav-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: block;
}

a.mobile-nav-label:hover {
  color: var(--primary);
}

.mobile-subnav {
  padding-left: 1rem;
}

.mobile-subnav > * + * {
  margin-top: 0.5rem;
}

.mobile-subnav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: block;
  transition: color 0.2s ease;
}

.mobile-subnav a:hover {
  color: var(--primary);
}

.mobile-cta {
  margin-top: 1rem;
}

.mobile-cta .btn-demo {
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
}

.mobile-cta .btn-demo:hover {
  box-shadow: 0 0 50px hsla(172, 45%, 53%, 0.7);
}

/* ===== Main Content ===== */
main {
  padding-top: 5rem;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(235, 45%, 6%, 0.9), hsla(235, 45%, 6%, 0.8), hsla(235, 45%, 6%, 0.6));
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, hsla(235, 30%, 20%, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, hsla(235, 30%, 20%, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-label {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.75;
}

/* ===== Article Content Section ===== */
.article-section {
  padding: 4rem 0;
  border-top: 1px solid hsla(235, 30%, 20%, 0.6);
  background-color: hsla(235, 30%, 15%, 0.3);
}

.article-content {
  max-width: 72rem;
  margin: 0 auto;
}

.article-content > * + * {
  margin-top: 1rem;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h2 strong,
.article-content h2 b {
  font-weight: inherit;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content h3 strong,
.article-content h3 b {
  font-weight: inherit;
}

.article-content p + p {
  margin-top: 1rem;
}

.article-content ul,
.article-content ol {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.article-content li {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.625;
  margin-bottom: 0.5rem;
}

.article-content li strong,
.article-content li b {
  color: var(--foreground);
  font-weight: 500;
}

.article-content strong,
.article-content b {
  color: var(--foreground);
  font-weight: 600;
}

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted-foreground);
  font-style: italic;
}

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

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

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

/* WordPress Gutenberg block overrides */
.article-content .wp-block-heading {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article-content .wp-block-heading:first-child {
  margin-top: 0;
}

.article-content h3.wp-block-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content .wp-block-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.article-content .wp-block-list li {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.625;
  margin-bottom: 0.5rem;
}

.article-content .wp-block-list li strong {
  color: var(--foreground);
  font-weight: 500;
}

.content-block p + p { margin-top: 1rem; }
.para-md { margin-bottom: 1rem; }
.para-lg { margin-bottom: 1.5rem; }

.sub-section { margin-top: 0.75rem; }
.sub-section > * + * { margin-top: 0.75rem; }
.sub-section h3 { margin-top: 0; }
.sub-section-spaced { margin-top: 1rem; }

.feature-list { list-style: disc; padding-left: 1.25rem; }
.feature-list > * + * { margin-top: 0.5rem; }
.feature-list li { color: var(--muted-foreground); font-size: 1rem; line-height: 1.625; }
.feature-list .label { color: var(--foreground); font-weight: 500; }

.text-emphasis { color: var(--foreground); font-weight: 500; }

/* ===== Video Section ===== */
.video-section { padding: 0.5rem 0; }
.video-wrapper { max-width: 48rem; margin: 0 auto; }
.video-container { position: relative; width: 100%; overflow: hidden; border-radius: 1rem; background: #000; aspect-ratio: 16 / 9; }
.video-container video { width: 100%; height: 100%; object-fit: cover; }

/* WordPress embeds */
.wp-block-embed,
.article-content .wp-block-video {
  margin: 1.5rem auto;
  max-width: 48rem;
}

.article-content iframe {
  border-radius: 1rem;
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* ===== References Section ===== */
.references-section {
  padding: 4rem 0;
  border-top: 1px solid hsla(235, 30%, 20%, 0.6);
  background-color: hsla(235, 30%, 15%, 0.3);
}

.references-inner { max-width: 72rem; margin: 0 auto; }

.references-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.references-intro {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.625;
}

.references-scroll-area {
  position: relative;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}

.scroll-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: hsla(235, 45%, 6%, 0.9);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  z-index: 10;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.scroll-arrow:hover { border-color: hsla(172, 45%, 53%, 0.6); background: var(--background); }
.scroll-arrow svg { width: 1rem; height: 1rem; }
.scroll-arrow-left { left: 0; transform: translateY(-50%) translateX(-0.5rem); }
.scroll-arrow-right { right: 0; transform: translateY(-50%) translateX(0.5rem); }

.references-track-wrapper {
  padding: 0 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  scrollbar-color: var(--teal) hsla(235, 30%, 20%, 0.3);
}

.references-track-wrapper::-webkit-scrollbar { height: 8px; }
.references-track-wrapper::-webkit-scrollbar-track { background: hsla(235, 30%, 20%, 0.3); border-radius: 4px; }
.references-track-wrapper::-webkit-scrollbar-thumb { background: linear-gradient(to right, var(--teal), var(--cyan)); border-radius: 4px; }

.references-track { display: flex; gap: 1rem; padding: 0.5rem 0; scroll-snap-type: x mandatory; }

.ref-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: hsla(235, 40%, 10%, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid hsla(235, 30%, 20%, 0.5);
  transition: all 0.3s ease;
  padding: 1.25rem;
  min-width: 260px;
  max-width: 20rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  flex-shrink: 0;
}

.ref-card:hover { border-color: hsla(172, 45%, 53%, 0.5); box-shadow: 0 0 30px hsla(172, 45%, 53%, 0.4); }

.ref-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.2s ease;
  margin-bottom: 0.5rem;
  display: block;
}

.ref-card-title:hover { color: var(--primary); }
.ref-card-desc { color: var(--muted-foreground); font-size: 0.875rem; margin-bottom: 1rem; line-height: 1.5; }
.ref-card-meta { margin-top: auto; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }
.ref-card-link { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--primary); font-weight: 500; }
.ref-card-link:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  background-color: hsla(235, 40%, 10%, 0.5);
  border-top: 1px solid var(--border);
}

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.footer-inner { padding-top: 4rem; padding-bottom: 4rem; }
.footer-brand img { height: 2.5rem; margin-bottom: 1.9rem; }
.footer-brand p { color: var(--muted-foreground); max-width: 24rem; margin-bottom: 1.5rem; font-size: .875rem; line-height: 1.25rem; }

.footer-links-col h4 { font-family: var(--font-display); font-weight: 600; color: var(--foreground); margin-bottom: 1rem; font-size: 1rem; }
.footer-links-col ul > * + * { margin-top: 0.75rem; }
.footer-links-col a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s ease; }
.footer-links-col a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copyright { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-legal { display: flex; align-items: center; gap: 1.5rem; }
.footer-legal a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--primary); }

/* ===== Blog Listing Page ===== */
.blog-listing-hero { padding: 4rem 0 3rem; }
.blog-listing-hero .hero-subtitle { max-width: 40rem; }

.blog-listing-section {
  padding: 3rem 0 5rem;
  border-top: 1px solid hsla(235, 30%, 20%, 0.6);
  background-color: hsla(235, 30%, 15%, 0.3);
}

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: hsla(235, 40%, 10%, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid hsla(235, 30%, 20%, 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover { border-color: hsla(172, 45%, 53%, 0.4); box-shadow: 0 0 40px hsla(172, 45%, 53%, 0.15); transform: translateY(-4px); }

.blog-card__image { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card__image img { transform: scale(1.05); }

.blog-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }

.blog-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }

.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: hsla(172, 45%, 53%, 0.1);
  border: 1px solid hsla(172, 45%, 53%, 0.2);
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card__title { color: var(--primary); }

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid hsla(235, 30%, 20%, 0.5);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.blog-card__read-time { position: relative; padding-left: 1rem; }
.blog-card__read-time::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-foreground);
}

/* ===== Pagination ===== */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.blog-pagination a:hover {
  border-color: hsla(172, 45%, 53%, 0.5);
  color: var(--foreground);
}

.blog-pagination .current {
  background: linear-gradient(to right, var(--teal), var(--cyan));
  color: var(--primary-foreground);
  border-color: transparent;
  font-weight: 600;
}

/* ===== 404 Page ===== */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 4rem 1.5rem;
}

.page-404 h1 {
  font-size: 6rem;
  background: linear-gradient(to right, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 28rem;
}

/* ===== Responsive Breakpoints ===== */

/* md: 768px */
@media (min-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.25rem; }

  .article-content p,
  .article-content li { font-size: 1.125rem; }
  .article-content h2,
  .article-content h2.wp-block-heading { font-size: 1.875rem; }
  .article-content h3,
  .article-content h3.wp-block-heading { font-size: 1.5rem; }

  .references-section h2 { font-size: 1.875rem; }
  .references-intro { font-size: 1rem; }
  .scroll-arrow { display: flex; }
  .references-track { gap: 1.5rem; padding: 1.5rem 0; }
  .ref-card { padding: 1.5rem; min-width: 300px; }
  .ref-card-title { font-size: 1.125rem; }
  .ref-card-desc { font-size: 1rem; }
  .ref-card-meta { font-size: 0.875rem; }

  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .blog-card__body { padding: 1.5rem; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; line-height: 1; }

  .desktop-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-menu { display: none !important; }

  .references-track { padding: 2rem 0; }
  .ref-card { min-width: 340px; }

  .blog-listing-hero { padding: 6rem 0 4rem; }
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .blog-card__title { font-size: 1.25rem; }
  .blog-card__excerpt { font-size: 0.9375rem; }

  .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1fr; }
}
