/* ==========================================================================
   TorqMax — B2B Gas Lawn Mower Manufacturer
   Design system: custom theme prototype (WordPress-ready structure)
   ========================================================================== */

:root {
  /* Color system */
  --primary: #1a5b32;
  --primary-dark: #0f3d21;
  --primary-soft: #e8f1eb;
  --accent: #f0761d;
  --accent-dark: #d65f0a;
  --accent-soft: #fdf0e4;
  --dark: #161a17;
  --text: #2b302c;
  --muted: #66706a;
  --bg: #ffffff;
  --bg-soft: #f4f6f4;
  --bg-dark: #0f3d21;
  --border: #e2e6e3;
  --white: #ffffff;

  /* Typography */
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 840px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(22, 26, 23, 0.08);
  --shadow-md: 0 6px 20px rgba(22, 26, 23, 0.1);
  --shadow-lg: 0 16px 40px rgba(22, 26, 23, 0.14);
  --transition: 0.22s ease;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.6em;
}

p {
  margin-bottom: 1em;
}

ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: var(--space-xl);
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.section--dark .eyebrow {
  color: #ffb877;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-lg); }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1.2;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border-color: currentColor;
  color: var(--white);
  background: transparent;
}

.btn--outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--block {
  width: 100%;
}

.btn.is-active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn--lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.logo:hover { color: var(--primary); }

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.nav a {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav a:hover,
.nav a.is-active {
  color: var(--primary);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.nav .btn {
  padding: 0.6rem 1.3rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px auto;
  transition: all var(--transition);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 82vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 96px 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .nav a::after { display: none; }

  .nav .btn {
    margin-top: 1rem;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, #2a7a45 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -30%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 118, 29, 0.28), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 9vw, 7.5rem);
  max-width: 780px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.6em;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-strip {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 1.4rem;
}

.hero-strip-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-strip-item svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.product-card__body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__model {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card__title {
  font-size: 1.1rem;
  margin: 0.3rem 0 0.5rem;
}

.product-card__title a {
  color: var(--dark);
}

.product-card__title a:hover {
  color: var(--primary);
}

.product-card__desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex: 1;
}

.product-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.product-card__specs span {
  font-weight: 600;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Feature blocks
   -------------------------------------------------------------------------- */
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all var(--transition);
  height: 100%;
}

.feature:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature__icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.feature__icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.feature h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5em;
}

.feature p {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  color: var(--white);
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block: 3rem;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.cta-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band .btn {
  background: var(--white);
  color: var(--accent-dark);
}

.cta-band .btn:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Process / steps
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

@media (max-width: 992px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  counter-increment: step;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}

.step p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--dark);
  width: 42%;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact info cards
   -------------------------------------------------------------------------- */
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
}

.contact-card h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-card h3 svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.contact-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-card a {
  font-weight: 600;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(115deg, var(--primary-dark), var(--primary) 65%);
  color: var(--white);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.3em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.breadcrumb li {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Misc components
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary);
}

.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: var(--space-lg);
}

.placeholder-note {
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  color: var(--accent-dark);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--space-lg);
  padding-block: var(--space-xl);
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
  list-style: none;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   WhatsApp floating button
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: whatsapp-float-bounce 2.6s ease-in-out infinite;
}

.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
  animation-play-state: paused;
}

.whatsapp-float svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  animation: whatsapp-ring 2.6s ease-in-out infinite;
}

.whatsapp-float__label {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

/* Floating hint bubble that appears and gently bobs */
.whatsapp-float::before {
  content: "Any questions? Chat with us";
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Bounce (whole button gently floats up & down) */
@keyframes whatsapp-float-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Subtle ring around the icon */
@keyframes whatsapp-ring {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

/* Mobile: icon-only on very narrow screens */
@media (max-width: 480px) {
  .whatsapp-float {
    padding: 0.55rem;
    right: 0.9rem;
    bottom: 0.9rem;
  }
  .whatsapp-float__label {
    display: none;
  }
  .whatsapp-float::before {
    content: "Chat with us";
    right: calc(100% + 8px);
  }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ==========================================================================
   WordPress nav menu adaptation (wp_nav_menu outputs <ul><li> structure)
   ========================================================================== */

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.nav-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.nav-menu > li > a {
  display: inline-block;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
  text-decoration: none;
}

.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a,
.nav-menu > li > a.is-active {
  color: var(--primary);
}

.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current_page_item > a::after {
  width: 100%;
}

/* Dropdown (sub-menu) support */
.nav-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 50;
}

.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li {
  margin: 0;
}

.nav-menu .sub-menu a {
  display: block;
  padding: 0.55rem 1.2rem;
  color: var(--text);
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-menu .sub-menu a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Mobile: hamburger opens the menu as a column */
@media (max-width: 960px) {
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-menu > li > a {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu > li > a::after {
    display: none;
  }

  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0.5rem 1rem;
    min-width: 0;
  }

  .nav-menu .sub-menu a {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
  }
}
