/*
Theme Name: Kotha Lab
Theme URI: https://github.com/logicwahid/kotha-lab
Author: Md. Wahid
Author URI: https://huggingface.co/logicwahid
Description: Global enterprise-grade AI research lab WordPress theme for Kotha Lab. Built with semantic HTML5, restrained modern CSS, Space Grotesk, and SolaimanLipi typography.
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kotha-lab
Tags: custom, clean, research, bilingual, bangla, ai, responsive, minimal, enterprise
*/

/* ==========================================================================
   1. Design Tokens & Reset
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.maateen.me/solaiman-lipi/font.css');

:root {
  /* Neutral Surfaces - Clean, warm paper aesthetic without grid lines */
  --bg-primary: #F4F2EB;        /* Warm, elegant research surface */
  --bg-surface: #FFFFFF;        /* Crisp card surface */
  --bg-subtle: #ECE9DF;         /* Alternating section background */

  /* Primary brand delta green & accents */
  --brand-green: #0B8137;       /* Primary delta green */
  --brand-green-dark: #005A32;  /* Deep forest green for hover & accents */
  --brand-red: #FE2B24;         /* Rising sun red */

  /* Typography & Technical Borders */
  --text-primary: #141A16;      /* Charcoal text */
  --text-muted: #4B554E;        /* Readable high-contrast secondary text */
  --border-color: #D6D2C4;      /* Crisp 1px technical border */
  --border-color-dark: #B6B09E;
  --code-bg: #111613;           /* Dark terminal background for code blocks */
  --code-text: #E6EDF3;         /* Code font color */

  /* Typography Stacks */
  --font-primary: 'Space Grotesk', 'SolaimanLipi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-bangla: 'SolaimanLipi', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout - Spacious Enterprise Width */
  --max-width: 1360px;
  --container-padding: clamp(20px, 4vw, 48px);
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  background-image: none !important;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1.05rem;
  line-height: 1.68;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#content {
  flex: 1 0 auto;
}

/* ==========================================================================
   2. Typography & Globals
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.24;
  margin-top: 0;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--brand-green-dark);
}

code, pre {
  font-family: var(--font-mono);
}

img {
  max-width: 100%;
  height: auto;
}

.site-container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
}

/* ==========================================================================
   3. Buttons & Component UI
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-green);
  color: #FFFFFF !important;
  border-color: var(--brand-green);
}

.btn-primary:hover {
  background-color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  color: #FFFFFF !important;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary) !important;
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary) !important;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

/* WordPress Admin Bar Compatibility */
@media screen and (min-width: 783px) {
  body.admin-bar .site-header {
    top: 32px;
  }
  body.admin-bar .offcanvas-drawer {
    top: 32px;
    height: calc(100vh - 32px);
  }
}

@media screen and (min-width: 601px) and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
  body.admin-bar .offcanvas-drawer {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0;
  }
  body.admin-bar .offcanvas-drawer {
    top: 0;
    height: 100vh;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.header-brand-wrap {
  flex-shrink: 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-logo {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(10px, 1.4vw, 20px);
  white-space: nowrap;
}

.nav-links a {
  color: var(--text-primary);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--brand-green);
}

/* ==========================================================================
   Language Switching Rules & Switcher UI (Default: EN)
   ========================================================================== */
html[data-lang="en"] .lang-bn {
  display: none !important;
}

html[data-lang="bn"] .lang-en {
  display: none !important;
}

.lang-block {
  display: block;
}

html[data-lang="en"] .lang-block.lang-en {
  display: block !important;
}

html[data-lang="bn"] .lang-block.lang-bn {
  display: block !important;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 2px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 8px;
  line-height: 1;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background-color: var(--brand-green);
  color: #FFFFFF !important;
}

.lang-divider {
  color: var(--border-color-dark);
  font-size: 0.8rem;
  line-height: 1;
  user-select: none;
}

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.offcanvas-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
}

.offcanvas-lang-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-nav-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
  line-height: 0;
  transition: var(--transition);
}

.mobile-nav-toggle:hover {
  border-color: var(--text-primary);
}

/* ==========================================================================
   Off-Canvas Mobile Navigation Drawer
   ========================================================================== */
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 26, 22, 0.55);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.offcanvas-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.offcanvas-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.offcanvas-drawer.is-open {
  transform: translateX(0);
}

body.offcanvas-lock {
  overflow: hidden;
}

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

.offcanvas-close {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.offcanvas-close:hover {
  background: var(--bg-primary);
  border-color: var(--text-primary);
}

.offcanvas-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  overflow-y: auto;
}

.offcanvas-nav {
  margin-bottom: 32px;
}

.offcanvas-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offcanvas-links a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(214, 210, 196, 0.3);
  transition: var(--transition);
}

.offcanvas-links a:hover {
  color: var(--brand-green);
  padding-left: 6px;
}

.offcanvas-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.offcanvas-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   5. Dedicated /models Catalog Page (`page-models.php`)
   ========================================================================== */
.models-page-wrapper {
  padding: 56px 0 96px 0;
}

.page-header-wrap {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 28px;
}

.page-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.page-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 860px;
  line-height: 1.7;
  margin: 0;
}

.models-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

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

.filter-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #FFFFFF;
}

.catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.catalog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 16px;
  flex-wrap: wrap;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.meta-family {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-green);
}

.status-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.status-badge.available,
.status-badge.green {
  background-color: rgba(11, 129, 55, 0.1);
  color: var(--brand-green, #0B8137);
  border: 1px solid rgba(11, 129, 55, 0.25);
}

.status-badge.training,
.status-badge.amber,
.status-badge.orange {
  background-color: rgba(217, 119, 6, 0.1);
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.28);
}

.status-badge.preview,
.status-badge.blue {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.status-badge.instruct,
.status-badge.purple {
  background-color: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.28);
}

.status-badge.planning,
.status-badge.gray {
  background-color: rgba(85, 94, 87, 0.08);
  color: var(--text-muted, #555E57);
  border: 1px solid rgba(85, 94, 87, 0.2);
}

.status-badge.archive,
.status-badge.red {
  background-color: rgba(220, 38, 38, 0.1);
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.28);
}

.license-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.card-model-name {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0;
}

.card-model-name a {
  color: var(--text-primary);
}

.card-model-name a:hover {
  color: var(--brand-green);
}

.card-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-desc p {
  margin-bottom: 0.8rem;
}

.card-specs-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
  margin-bottom: 24px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
}

.spec-key {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.spec-val {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.card-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

/* Citation & BibTeX Guide Styling */
.models-citation-wrap {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.subsection-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.citation-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.65;
  margin: 0 0 24px 0;
}

.terminal-window {
  background-color: var(--code-bg, #111613);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 4px);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 100%;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background-color: #1A211D;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: #8C9990;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-green);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm, 4px);
  color: #E6EDF3;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  line-height: 1;
  transition: var(--transition);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.copy-btn.copied {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: #FFFFFF;
}

.terminal-body {
  margin: 0;
  padding: 18px 20px;
  background-color: var(--code-bg, #111613);
  color: var(--code-text, #E6EDF3);
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.4vw, 0.92rem);
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.terminal-body code {
  font-family: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
  border: none;
}

/* ==========================================================================
   6. Alternating Zigzag Layout (Section Grid)
   ========================================================================== */
.zigzag-section {
  padding: clamp(64px, 8vw, 104px) 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.zigzag-section.alt-surface {
  background-color: #ECE9DF;
}

.zigzag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  width: 100%;
}

.zigzag-col-text {
  display: flex;
  flex-direction: column;
}

.section-badge {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-green);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.zigzag-col-title {
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

.zigzag-col-desc {
  font-size: clamp(1.06rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 28px 0;
}

.zigzag-feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-green);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-line strong {
  display: block;
  font-size: 1.04rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-line span {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.zigzag-actions-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.zigzag-col-image {
  width: 100%;
}

.zigzag-image-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 8px 30px rgba(20, 26, 22, 0.06);
  line-height: 0;
}

.zigzag-responsive-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.zigzag-image-container:hover .zigzag-responsive-img {
  transform: scale(1.02);
}

/* ==========================================================================
   7. Four-Box Grid Section
   ========================================================================== */
.four-box-section {
  padding: clamp(72px, 8vw, 108px) 0;
  border-top: 1px solid var(--border-color);
  background-color: #ECE9DF;
}

.section-heading-block-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(40px, 5vw, 60px) auto;
}

.section-heading-block-center h2 {
  font-size: clamp(2.3rem, 4.2vw, 3.2rem);
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.section-heading-block-center p {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.four-box-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.feature-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-box-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-color-dark);
}

.feature-box-num {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.feature-box-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  line-height: 1.35;
}

.feature-box-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   8. FAQ Accordion Section
   ========================================================================== */
.faq-section {
  padding: clamp(72px, 8vw, 110px) 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.faq-container {
  max-width: 980px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.faq-header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.faq-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item:hover {
  border-color: var(--border-color-dark);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color 0.15s ease;
}

.faq-question:hover {
  color: var(--brand-green);
}

.faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-green);
}

.faq-answer {
  display: none;
  padding: 0 28px 24px 28px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-top: 1px solid rgba(214, 210, 196, 0.4);
  padding-top: 18px;
}

.faq-answer.is-active {
  display: block;
}

/* ==========================================================================
   9. Generous Call To Action (CTA) Section
   ========================================================================== */
.final-cta-section {
  padding: clamp(72px, 8vw, 110px) 0 clamp(84px, 10vw, 120px) 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.cta-banner-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(60px, 8vw, 96px) clamp(24px, 6vw, 72px);
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 4px 24px rgba(20, 26, 22, 0.04);
}

.cta-banner-title {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 18px 0;
  color: var(--text-primary);
}

.cta-banner-desc {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 auto clamp(32px, 4vw, 44px) auto;
  line-height: 1.7;
}

.cta-banner-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==========================================================================
   10. Footer (`footer.php`)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  padding: 38px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo {
  height: 30px;
  width: auto;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--brand-green);
}

/* ==========================================================================
   11. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .four-box-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 1160px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-header-actions {
    display: flex;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .zigzag-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* On mobile screens, always present text first, then image */
  .zigzag-grid .zigzag-col-text {
    order: 1;
  }

  .zigzag-grid .zigzag-col-image {
    order: 2;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --container-padding: 20px;
  }

  .four-box-grid-container {
    grid-template-columns: 1fr;
  }

  .card-specs-table {
    grid-template-columns: 1fr;
  }

  .cta-banner-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner-buttons .btn {
    width: 100%;
  }
}