/* =====================================================================
   Gainsys Website — Global Stylesheet
   Source of truth: docs/old_web/design-tokens.json (OD-5 RESOLVED —
   dark theme + electric-orange accent, confirmed final from the
   client's own legacy build). This file starts with the shared
   foundation (variables, reset, typography, buttons) plus the two
   sitewide partials built so far (Header/Nav, Footer). Per the token
   file's own note, this is a baseline to EXTEND — later Phase 3 tasks
   add component styles here as each page template is built, nothing
   in this file gets removed to do it.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Design tokens (CSS custom properties)
   --------------------------------------------------------------------- */
:root {
  /* Background */
  --bg-dark: #090d16;
  --bg-alt: #0e1422;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(26, 35, 53, 0.85);
  --footer-bg: #05080e;

  /* Accent */
  --orange: #f97316;
  --orange-deep: #ea580c;
  --gradient-accent: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --glow: rgba(249, 115, 22, 0.15);
  --border-glow: rgba(249, 115, 22, 0.35);

  /* Text */
  --text-primary: #f8fafc;
  --text-mid: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;
  --text-white: #ffffff;

  /* Border */
  --border-default: rgba(255, 255, 255, 0.08);

  /* Utility */
  --whatsapp-green: #25d366;
  --whatsapp-green-deep: #1ebd5a;

  /* Layout */
  --section-padding: 80px 48px;
  --section-padding-mobile: 56px 20px;
  --container-max-width: 1200px;
  --radius-default: 14px;
  --radius-small: 10px;
  --radius-xs: 8px;

  /* Fonts */
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient orange glow — two soft fixed radial gradients over the dark base */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  opacity: 0.06;
}

body::after {
  bottom: -15%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  opacity: 0.05;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ---------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------- */
.section-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-white);
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-small);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--text-white);
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-default);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glow);
}

.btn-cta {
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  font-size: 14px;
}

.btn-white {
  background: var(--text-white);
  color: var(--orange-deep);
  box-shadow: none;
}

.btn-white:hover {
  transform: translateY(-2px);
  background: var(--bg-dark);
  color: var(--text-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-white);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: var(--text-white);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  background: var(--whatsapp-green-deep);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* =======================================================================
   Header / Nav (component_spec.json position 10)
   ======================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 48px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: var(--border-glow);
}

.site-header__inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
}

/* Logo image sits on the header's own background — no forced fill
   behind it, so a transparent PNG shows the header color through it
   as expected instead of a boxed-in white/colored square. */
.site-header__logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.site-header__logo-text em {
  font-style: normal;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Admin-only controls (never rendered to logged-out visitors — see
   includes/admin_edit.php's admin_edit_mode_active() gate). Small and
   out of the way of the real header, since these are configuration
   affordances (upload the logo image / pick both-image-text display
   mode), not part of the public design. */
.site-header__logo-admin {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header__logo-admin-btn {
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-white);
  cursor: pointer;
  white-space: nowrap;
}

.site-header__logo-admin-btn:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li {
  position: relative;
}

.nav-links__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links__link:hover,
.nav-links__link.is-active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links__link:hover {
  color: var(--orange);
  background: var(--glow);
}

.nav-links__link.is-active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown panel — desktop hover, mobile tap-accordion */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: rgba(14, 20, 34, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-links > li:hover .nav-dropdown,
.nav-links > li.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text-mid);
}

.nav-dropdown__item:hover {
  color: var(--orange);
  background: var(--glow);
}

/* Cart trigger + CTA button — lives as the last nav-links item so it
   rides along with the nav row on desktop and drops to the bottom of
   the expanded panel on mobile (see @media (max-width: 768px) below). */
.nav-links__mobile-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 8px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Enquiry cart trigger — icon only here; drawer/modal contents are a
   later widget (component_spec.json global_widgets.enquiry-cart), not
   part of T-030's scope. */
.enquiry-cart-trigger {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-default);
  color: var(--text-white);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.enquiry-cart-trigger:hover {
  background: var(--glow);
  border-color: var(--border-glow);
}

/* Text label — hidden on desktop (icon-only circle button there);
   shown on mobile where the trigger becomes a full-width text pill.
   See @media (max-width: 768px) below. */
.enquiry-cart-trigger__label {
  display: none;
}

.enquiry-cart-trigger__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gradient-accent);
  color: var(--text-white);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Enquiry Cart drawer (T-039) — component_spec.json global_widgets.
   enquiry-cart. Entire markup is built by assets/js/cart.js at runtime
   (client-side only, per spec — not a Layout/position-driven section),
   appended once to <body>. Hidden by default via width/opacity so it
   doesn't reflow the page before JS attaches; .is-open (added by cart.js)
   slides the panel in. ---- */
body.cart-open {
  overflow: hidden;
}

.enquiry-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.enquiry-cart-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.enquiry-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.7);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.enquiry-cart-drawer.is-open .enquiry-cart-drawer__backdrop {
  opacity: 1;
}

.enquiry-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--bg-alt);
  border-left: 1px solid var(--border-default);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.enquiry-cart-drawer.is-open .enquiry-cart-drawer__panel {
  transform: translateX(0);
}

.enquiry-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.enquiry-cart-drawer__header h2 {
  font-size: 18px;
}

.enquiry-cart-drawer__close {
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.enquiry-cart-drawer__close:hover {
  color: var(--text-white);
}

.enquiry-cart-drawer__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.enquiry-cart-drawer__empty {
  font-size: 14px;
}

.enquiry-cart-drawer__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
}

.enquiry-cart-drawer__item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.enquiry-cart-drawer__item-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}

.enquiry-cart-drawer__item-name {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enquiry-cart-drawer__item-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.enquiry-cart-drawer__item-remove:hover {
  color: var(--orange);
}

.enquiry-cart-drawer__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
}

.enquiry-cart-drawer__footer .btn {
  width: 100%;
}

.enquiry-cart-drawer__footer .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.enquiry-cart-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.enquiry-cart-checkout-form__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.enquiry-cart-checkout-form__actions .btn {
  width: 100%;
}

.enquiry-cart-checkout-form__error {
  color: var(--orange);
  font-size: 13px;
}

.enquiry-cart-drawer__success {
  margin: 40px 0 24px;
  text-align: center;
  color: var(--text-mid);
}

.enquiry-cart-drawer__view[hidden] {
  display: none;
}

.lang-toggle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.5px;
}

/* T-052: lang-toggle's two links (previously static "&#20013; / EN" text) */
.lang-toggle__link {
  color: var(--text-mid);
  text-decoration: none;
}

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

.lang-toggle__link.is-active {
  color: var(--orange);
  font-weight: 700;
}

/* Mobile menu toggle button (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 13, 22, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-default);
    padding: 12px;
  }

  .site-header.is-nav-open .nav-links {
    display: flex;
  }

  .nav-links__link {
    border-radius: var(--radius-xs);
    width: 100%;
    justify-content: space-between;
  }

  /* Mobile: dropdown becomes a tap-to-expand accordion under the tab,
     not a floating panel (design-tokens.json flagged no mobile nav
     precedent existed in the legacy source — this is new work). */
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 4px;
  }

  .nav-links > li.is-open .nav-dropdown {
    display: block;
  }

  /* Push the hamburger to the far right of the top bar. .site-header__inner
     is a flex row in DOM order (logo, admin-logo?, nav-toggle, nav, actions);
     without this, nav-toggle would render to the LEFT of the lang-toggle
     actions block since flex only adds spacing, it doesn't reorder. Giving
     actions a lower order and nav-toggle the highest puts the hamburger
     flush against the right edge regardless of source order. */
  .site-header__actions {
    order: 3;
  }

  .nav-toggle {
    display: flex;
    order: 4;
  }

  /* Cart trigger + CTA button: dropped from the top bar into the bottom of
     the expanded mobile nav panel (it's the last <li> in ul.nav-links, which
     switches to flex-direction: column when the panel is open — see
     .nav-links above). Divider sets it apart from the nav links; stacked
     with a visible gap (rather than side-by-side) keeps cart and CTA from
     reading as one clump. */
  .nav-links__mobile-actions {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    margin-top: 8px;
    padding-top: 20px;
    gap: 20px;
    border-top: 1px solid var(--border-default);
  }

  .nav-links__mobile-actions .btn-cta {
    width: 100%;
    text-align: center;
  }

  /* Cart trigger goes text-based on mobile (icon swapped for a label),
     full width like the CTA below it, but darker/flatter so the two
     read as distinct actions rather than a matched pair. */
  .nav-links__mobile-actions .enquiry-cart-trigger {
    width: 100%;
    height: auto;
    border-radius: var(--radius-default);
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.35);
    border-color: var(--border-default);
  }

  .nav-links__mobile-actions .enquiry-cart-trigger:hover {
    background: rgba(0, 0, 0, 0.5);
  }

  .nav-links__mobile-actions .enquiry-cart-trigger svg {
    display: none;
  }

  .nav-links__mobile-actions .enquiry-cart-trigger__label {
    display: inline;
    font-size: 14px;
    font-weight: 600;
  }

  .nav-links__mobile-actions .enquiry-cart-trigger__badge {
    position: static;
  }
}

/* =======================================================================
   Footer (component_spec.json position 90)
   ======================================================================= */
.site-footer {
  background: var(--footer-bg);
  padding: 64px 48px 0;
  position: relative;
  z-index: 1;
}

.site-footer__grid {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

@media (max-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 48px 20px 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.site-footer__brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.site-footer__description {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.site-footer__column-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 16px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__links a {
  color: var(--text-mid);
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--orange);
}

/* Social Media column — an auto-updating list sourced from the owner's
   Footer.Social.Item Content group, same "just another footer column"
   treatment as Services/Products/Blog above rather than a separate
   bottom-bar icon row. Each link gets a small inline platform icon
   ahead of its label. */
.site-footer__links--social a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: color 0.2s ease;
}

.site-footer__social-icon svg {
  width: 14px;
  height: 14px;
}

.site-footer__links--social a:hover .site-footer__social-icon {
  color: var(--orange);
}

.site-footer__bottom {
  max-width: var(--container-max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-default);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}

/* =======================================================================
   Floating buttons — WhatsApp + back-to-top
   (design-tokens.json component_style_notes.floating_buttons)
   ======================================================================= */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.floating-buttons__whatsapp,
.floating-buttons__top {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-buttons__whatsapp {
  background: var(--whatsapp-green);
  color: var(--text-white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.floating-buttons__whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}

.floating-buttons__top {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-default);
  color: var(--text-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}

.floating-buttons__top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-buttons__top:hover {
  background: var(--orange);
  border-color: var(--orange);
}
/* =======================================================================
   Home page (T-031) — Hero, Stats Bar, Services/Products/Blog cards,
   Why Us Grid, About Teaser, Values Grid, Contact Teaser, CTA strip.
   ======================================================================= */

/* ---- Shared section heading / card-grid utilities (reused sitewide) ---- */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-heading .section-title {
  margin-top: 4px;
}

.section-subtitle {
  color: var(--text-mid);
}

.section-heading__action {
  text-align: center;
  margin-top: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

@media (max-width: 900px) {
  .card-grid,
  .card-grid--4,
  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid,
  .card-grid--4,
  .card-grid--3 {
    grid-template-columns: 1fr;
  }
}

.text-muted {
  color: var(--text-mid);
  text-align: center;
  grid-column: 1 / -1;
}

section[class] {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  section[class] {
    padding: var(--section-padding-mobile);
  }
}

/* ---- Hero ---- */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: var(--bg-dark);
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.55) 0%, var(--bg-dark) 92%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glow);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  padding: 6px 14px;
  width: fit-content;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  flex-shrink: 0;
}

.hero__title {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.12;
}

/* Owner-controlled highlight: the part of ANY title wrapped in **..**
   (render_title(), dispatcher.php) renders as an <em>, styled here in
   the accent-orange focus color — matches gainsys.zip's <em>
   convention, but which phrase gets highlighted is admin-editable
   rather than fixed to the last word.
   Originally scoped to .hero__title only (session-48); broadened
   (session-51) to every heading class in the codebase via this
   "class name contains 'title'" attribute selector, so Hero titles,
   section titles, card titles, CTA-strip titles, Content Block titles,
   etc. all pick up the highlight automatically -- including any new
   *-title / *__title class added later, with no CSS change needed. */
[class*="title"] em,
[class*="Title"] em {
  color: var(--orange);
  font-style: normal;
}

.hero__paragraph {
  color: var(--text-mid);
  font-size: 17px;
  line-height: 1.8;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero { padding-top: 110px; }
  .hero__title { font-size: 32px; }
}

/* ---- Hero — Home variant: two-column split with image slideshow
   (session-46 design review: restored from gainsys.zip's original
   #hero/.hero-right/.slide pattern, identified as stronger than the
   full-bleed single-background variant every other Hero page uses).
   Reuses .hero for shared page-level spacing/background but overrides
   the layout to a left-text/right-visual split; every other Hero
   variant above/below is untouched. ---- */
.hero--home {
  background-image: none;
}

.hero--home__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero--home .hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-right {
  position: relative;
  height: 100%;
  min-height: 460px;
  border-radius: var(--radius-default);
  overflow: hidden;
  border: 1px solid var(--border-default);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  background: var(--bg-alt);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.2) 0%, rgba(9, 13, 22, 0.85) 100%);
}

.hero-slide--empty {
  background: var(--bg-card);
}

.hero-slide-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(9, 13, 22, 0.6);
  padding: 8px 16px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-default);
}

.hero-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-slide-dot.active {
  background: var(--orange);
  width: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px var(--orange);
}

@media (max-width: 900px) {
  .hero--home__inner {
    grid-template-columns: 1fr;
  }
  .hero-right {
    min-height: 320px;
  }
}

/* ---- Hero — Service Detail variant (T-035, component_spec.json position 70) ---- */
.hero--service__badge {
  display: inline-block;
  background: var(--glow);
  color: var(--orange);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ---- Stats Bar ---- */
.stats-bar {
  padding: 40px 48px;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-alt);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-bar__number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
}

.stats-bar__label {
  color: var(--text-mid);
  font-size: 13px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .stats-bar__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- Services Grid / Service Card ---- */
.service-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

/* Live-service card (T-039): restructured from a single wrapping <a> to
   a <div> with an inner link + a separate actions row, so an "Add to
   Cart" <button> can sit next to the detail link without nesting
   interactive elements inside an <a> — same reasoning as .product-card
   below (T-038). Coming-soon cards are unaffected — no .service-card__link
   wrapper, and STILL a plain <div>, unchanged since T-034. */
.service-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.service-card__cta,
.service-card__add-cart {
  padding: 10px 18px;
  font-size: 14px;
}

.service-card--coming-soon {
  opacity: 0.55;
  cursor: default;
}

.service-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.service-card__title {
  font-size: 18px;
  margin-bottom: 8px;
}

.service-card__desc {
  color: var(--text-mid);
  font-size: 14px;
}

.service-card__phone-fallback {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-mid);
}

.service-card__phone-fallback a {
  color: var(--orange);
}

/* ---- Why Us Grid ---- */
.why-us__card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 28px 24px;
}

.why-us__number {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.why-us__title {
  font-size: 17px;
  margin-bottom: 8px;
}

.why-us__desc {
  color: var(--text-mid);
  font-size: 14px;
}

/* ---- About Teaser (Company Positioning, limited view) ---- */
.about-teaser__mission-vision {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.about-teaser__block {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 24px;
}

.about-teaser__block h3 {
  font-size: 15px;
  color: var(--orange);
  margin-bottom: 10px;
}

.about-teaser__block p {
  color: var(--text-mid);
  font-size: 14px;
}

@media (max-width: 600px) {
  .about-teaser__mission-vision { grid-template-columns: 1fr; }
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 24px;
}

.value-card--gain .value-card__letter {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.value-card__title {
  font-size: 16px;
  margin-bottom: 8px;
}

.value-card__desc {
  color: var(--text-mid);
  font-size: 14px;
}

/* ---- Products Teaser / Product Card ---- */
.product-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.product-card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.product-card__image--placeholder {
  background: linear-gradient(135deg, var(--bg-alt), var(--bg-card));
}

.product-card__title {
  font-size: 16px;
  margin: 16px 20px 6px;
}

.product-card__desc {
  color: var(--text-mid);
  font-size: 13px;
  margin: 0 20px 20px;
}

/* ---- Product Card Grid (Products page, T-038) ---- */
.product-card-grid {
  padding: 64px 0;
}

/* Products page cards are plain <div>s (not a single wrapping <a>, unlike
   the Home teaser above) since a card can carry multiple independent
   links (resource links + an optional Learn More CTA) rather than one
   click target — reuses .product-card/__image/__title/__desc as-is. */
.product-card__resources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 20px 16px;
}

.product-card__resource-link {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.product-card__resource-link:hover {
  text-decoration: underline;
}

.product-card__cta {
  display: inline-block;
}

/* Wraps Learn More (when detail_link is set) + Add to Cart (T-039) so
   both sit on one row without each carrying its own margin. */
.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 20px 20px;
}

.product-card__add-cart {
  padding: 10px 18px;
  font-size: 14px;
}

/* ---- Blog Teaser / Blog Card ---- */
.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.blog-card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-card__image--placeholder {
  background: linear-gradient(135deg, var(--bg-alt), var(--bg-card));
}

.blog-card__category {
  display: inline-block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  margin: 16px 20px 0;
}

.blog-card__title {
  font-size: 16px;
  margin: 10px 20px 6px;
}

.blog-card__excerpt {
  color: var(--text-mid);
  font-size: 13px;
  margin: 0 20px 12px;
}

.blog-card__readtime {
  display: block;
  color: var(--text-mid);
  font-size: 12px;
  margin: 0 20px 20px;
}

/* ---- Blog Card Grid (Blog Index, T-036) ---- */
.blog-card-grid {
  padding: 64px 0;
}

/* =======================================================================
   Article Card System — shared redesign for Services / Products / Blog
   card grids, on both Home teasers and the full index pages. A "featured"
   card (first item by Layout.sequence — no dedicated DB flag, same
   sequence-driven convention already used sitewide) renders full-width
   and horizontal; the rest render as a standard grid of vertical cards.
   Deliberately reuses the sitewide --bg-card/--border-default/--orange
   tokens rather than introducing new ones.
   ======================================================================= */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.article-card.is-live:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow);
}

.article-card--coming-soon {
  opacity: 0.6;
  cursor: default;
}

/* ---- Featured (full width, horizontal) ---- */
.article-featured {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 360px;
}

.article-featured .card-visual {
  flex: 1;
  border-right: 1px solid var(--border-default);
}

.article-featured .card-content {
  flex: 1.2;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- Standard (vertical) ---- */
.article-standard {
  flex-direction: column;
}

.article-standard .card-visual {
  height: 200px;
  border-bottom: 1px solid var(--border-default);
}

.article-standard .card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---- Visual panel (image if present, gradient fallback otherwise —
   image slot is future-addable for Services, already used by
   Products/Blog) ---- */
.card-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: linear-gradient(135deg, var(--glow) 0%, rgba(9, 13, 22, 0.8) 100%);
  overflow: hidden;
}

.card-visual__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.card-visual > *:not(.card-visual__image) {
  position: relative;
  z-index: 1;
}

.card-visual__eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.card-visual__badge {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.card-visual__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.article-featured .card-visual__title {
  font-size: 26px;
}

.article-standard .card-visual__title {
  font-size: 20px;
}

.card-visual__title em {
  color: var(--orange);
  font-style: normal;
}

.card-visual__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* ---- Content column ---- */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  background: var(--glow);
  border: 1px solid var(--border-glow);
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  width: fit-content;
}

.article-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.article-featured .article-card__title {
  font-size: 22px;
}

.article-standard .article-card__title {
  font-size: 16px;
}

.article-card__subtitle {
  font-size: 12px;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 10px;
}

.article-card__desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

/* T-096 — optional Quantity/Amount line on a Product card, shown when
   that product's owner toggles (show_quantity / show_amount) are on --
   independent of each other, so either, both, or neither may print. */
.article-card__qty-amount {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.article-card__amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--orange);
}

.article-card__qty {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.article-card__resources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.article-card__resource-link {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.article-card__resource-link:hover {
  text-decoration: underline;
}

.article-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.article-card__phone-fallback {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: auto;
}

.article-card__phone-fallback a {
  color: var(--orange);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: auto;
}

.read-more svg {
  width: 16px;
  height: 16px;
  stroke: var(--orange);
  transition: transform 0.3s ease;
}

.article-card.is-live:hover .read-more svg {
  transform: translateX(6px);
}

@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-featured {
    flex-direction: column;
  }
  .article-featured .card-visual {
    height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border-default);
  }
  .article-featured .card-content {
    padding: 24px;
  }
  .article-standard .card-content {
    padding: 24px;
  }
}

/* ---- Carousel shell — originally built for the Promoted Product
   Carousel (Products Teaser on Home + top of the Products index page),
   now also reused by the Services Teaser and Blog Teaser on Home
   (T-094) via dispatcher.php's shared _render_carousel() helper. Class
   names kept as "product-carousel" rather than renamed to something
   generic — see _render_carousel()'s own docblock for why that's safe.
   Slides = first N items by Layout.sequence (same sequence-driven
   "featured" convention used everywhere else on this site, no
   dedicated DB flag). Vanilla JS, no library — see
   assets/js/product-carousel.js. ---- */
.product-carousel {
  position: relative;
  margin-bottom: 8px;
}

.product-carousel__track-wrap {
  overflow: hidden;
  border-radius: var(--radius-default);
}

.product-carousel__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.product-carousel__slide .article-card {
  border-radius: 0;
  border: none;
}

.product-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.product-carousel__arrow:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.product-carousel__arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--orange);
}

.product-carousel__arrow--prev {
  left: -20px;
}

.product-carousel__arrow--next {
  right: -20px;
}

.product-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.product-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border-default);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-carousel__dot.is-active {
  background: var(--orange);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .product-carousel__arrow {
    display: none;
  }
}

/* ---- Contact Teaser ---- */
.contact-teaser__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact-teaser__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- CTA Strip ---- */
.cta-strip {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(234, 88, 12, 0.1) 100%);
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
  padding: 56px 0;
}

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

.cta-strip__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.cta-strip__desc {
  color: var(--text-mid);
  font-size: 13px;
  margin-top: 6px;
}

.cta-strip .btn-primary {
  background: var(--text-white);
  color: var(--bg-dark);
  padding: 14px 32px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  box-shadow: none;
  white-space: nowrap;
}

.cta-strip .btn-primary:hover {
  transform: none;
  background: var(--orange);
  color: var(--text-white);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
}

@media (max-width: 768px) {
  .cta-strip { padding: 40px 0; }
}

@media (max-width: 600px) {
  .cta-strip__inner { flex-direction: column; text-align: center; }
}

/* =======================================================================
   About Us page (T-032) — Breadcrumb, About Intro (story + stats),
   Company Positioning (full view), Timeline, Team Grid.
   ======================================================================= */

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border-default);
}

.breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
}

.breadcrumb__inner a {
  color: var(--text-mid);
}

.breadcrumb__inner a:hover {
  color: var(--orange);
}

.breadcrumb__sep {
  color: var(--text-faint);
}

.breadcrumb__current {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .breadcrumb { padding: 16px 20px; }
}

/* ---- About Intro (story + stat cards) ---- */
.about-intro__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-intro__story p {
  color: var(--text-mid);
  margin-bottom: 18px;
}

.about-intro__story p:last-child {
  margin-bottom: 0;
}

.about-intro__stats {
  display: grid;
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 20px 24px;
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}

.stat-card__label {
  color: var(--text-mid);
  font-size: 13px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .about-intro__grid { grid-template-columns: 1fr; }
}

/* ---- Company Positioning (full view — About Us only) ---- */
.company-positioning__extra {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .company-positioning__extra { grid-template-columns: 1fr; }
}

/* ---- Timeline ---- */
.timeline__list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  border-left: 2px solid var(--border-glow);
  padding-left: 32px;
  display: grid;
  gap: 36px;
}

.timeline__entry {
  position: relative;
}

.timeline__entry::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 4px var(--glow);
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.timeline__title {
  font-size: 17px;
  margin-bottom: 6px;
}

.timeline__desc {
  color: var(--text-mid);
  font-size: 14px;
}

/* ---- Team Grid ---- */
.team-grid__tier-title {
  font-size: 15px;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 40px 0 20px;
}

.team-grid__tier-title:first-of-type {
  margin-top: 0;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 24px;
  text-align: center;
}

.team-card__avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card--sm {
  padding: 18px;
}

.team-card__avatar--sm {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

.team-card__name {
  font-size: 15px;
  margin-bottom: 4px;
}

.team-card__role {
  color: var(--text-mid);
  font-size: 13px;
}

/* =======================================================================
   Contact page (T-033) — Contact Info Column, Contact Form.
   Breadcrumb and (generic) Hero reuse the About Us page's CSS above.
   ======================================================================= */

/* ---- Contact Info Column ---- */
.contact-info__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-info__card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 32px;
  display: grid;
  gap: 24px;
  backdrop-filter: blur(10px);
}

.contact-info__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glow);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xs);
  color: var(--orange);
}

.contact-info__icon svg {
  width: 18px;
  height: 18px;
}

.contact-info__body {
  min-width: 0;
}

.contact-info__row .contact-info__label {
  display: block;
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.contact-info__row p {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}

.contact-info__row a {
  color: var(--text-primary);
}

.contact-info__row a:hover {
  color: var(--orange);
}

.contact-info__cn {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 400 !important;
  margin-top: 4px !important;
}

.contact-info__whatsapp {
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
}

.contact-info__whatsapp .btn {
  width: 100%;
}

.contact-info__map {
  margin-top: 24px;
  border-radius: var(--radius-default);
  overflow: hidden;
  border: 1px solid var(--border-default);
  min-height: 220px;
  line-height: 0;
}

.contact-info__map iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
  filter: contrast(110%) brightness(90%);
}

@media (max-width: 900px) {
  .contact-info__grid { grid-template-columns: 1fr; }
}

/* ---- Contact Form ---- */
.contact-form__inner {
  max-width: 760px;
}

.contact-form__card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 40px;
  backdrop-filter: blur(10px);
}

.contact-form__subtitle {
  color: var(--text-mid);
}

.contact-form__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__field label {
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px var(--glow);
  background: rgba(9, 13, 22, 0.9);
}

.contact-form__field textarea {
  resize: vertical;
}

.contact-form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-heading);
}

@media (max-width: 600px) {
  .contact-form__form { grid-template-columns: 1fr; }
  .contact-form__card { padding: 28px; }
}

/* Success/error states for contact-form.js's AJAX submission — same
   visual language as .enquiry-cart-checkout-form__error /
   .enquiry-cart-drawer__success (cart.js, T-039) for consistency
   between the site's two Formspree-backed forms. */
.contact-form__error {
  grid-column: 1 / -1;
  color: var(--orange);
  font-size: 13px;
}

.contact-form__success {
  text-align: center;
  padding: 40px 0;
  color: var(--text-mid);
  font-size: 16px;
}

/* ---- Contact Social (Follow Us) ---- */
.contact-social {
  padding: var(--section-padding);
}

.contact-social__subtitle {
  color: var(--text-mid);
  font-size: 15px;
  margin-top: 8px;
}

.contact-social__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.contact-social__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-social__item:hover {
  border-color: var(--border-glow);
  color: var(--orange);
  transform: translateY(-2px);
}

.contact-social__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.contact-social__icon svg {
  width: 18px;
  height: 18px;
}

.contact-social__empty {
  color: var(--text-faint);
  font-size: 14px;
}

@media (max-width: 640px) {
  .contact-social { padding: var(--section-padding-mobile); }
}

/* =======================================================================
   Service Detail page (T-035) — Service Detail Body (intro + feature
   checklist + inline sticky TOC), CTA strip's own two-button variant
   (RESOLVED OD-2). Breadcrumb and Hero's generic base classes are
   shared from About/Home above; hero--service badge styling lives with
   the rest of the Hero rules earlier in this file.
   ======================================================================= */

/* ---- Service Detail Body ---- */
.service-detail-body__grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: start;
}

.service-detail-body__intro {
  color: var(--text-mid);
  font-size: 17px;
  margin-bottom: 32px;
}

.service-checklist {
  display: grid;
  gap: 24px;
}

.service-checklist__item {
  display: flex;
  gap: 16px;
  scroll-margin-top: 100px;
}

.service-checklist__icon {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 2px;
}

.service-checklist__title {
  font-size: 16px;
  margin-bottom: 4px;
}

.service-checklist__desc {
  color: var(--text-mid);
  font-size: 14px;
}

/* ---- Content Blocks (new, session-50) — flexible owner-editable
   sections shared by Service Detail Body and Blog Article Body
   (render_content_blocks(), dispatcher.php). Each block shows only the
   pieces the owner filled in (Title/Image/Content/Link), so this stays
   simple: a heading style, a rounded image, body copy, and an outline
   button — not a rigid per-type layout. ---- */
.content-blocks {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.content-block {
  display: grid;
  gap: 12px;
}

.content-block__title {
  font-size: 20px;
  font-weight: 700;
}

.content-block__image {
  margin: 0;
  border-radius: var(--radius-default);
  overflow: hidden;
  border: 1px solid var(--border-default);
  line-height: 0;
}

.content-block__image img {
  width: 100%;
  height: auto;
  display: block;
}

.content-block__text {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.8;
}

.content-block__text p {
  margin-bottom: 12px;
}

.content-block__link {
  justify-self: start;
}

.content-block__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-default);
  overflow: hidden;
  border: 1px solid var(--border-default);
}

.content-block__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Feature Card grid (new) — numbered, icon-led cards (Icon + "NN /
   TAG" badge + Title + Subtitle + Description), owner request to match
   a reference design. See render_feature_card_grid() in dispatcher.php.
   Two-column on desktop, single column on mobile (media query below). ---- */
.feature-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-default);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  overflow: hidden;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-alt);
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.feature-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.feature-card__icon {
  color: var(--orange);
  display: inline-flex;
  width: 28px;
  height: 28px;
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__badge {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-white);
}

.feature-card__subtitle {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
}

.feature-card__desc {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .feature-card-grid {
    grid-template-columns: 1fr;
  }
}

.service-detail-body__toc {
  position: sticky;
  top: 100px;
  /* display:flex + gap so the ToC box and the .sidebar-cta box below it
     (Service/Product Detail's Add to Cart CTA) space out evenly even
     when the ToC itself is absent (product/service with no Feature
     Checklist items yet) — same layout Blog's own aside already gets
     via .blog-article-body__toc's identical rule. */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 20px;
}

.service-toc__label {
  display: block;
  color: var(--text-mid);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.service-toc ol {
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-toc a {
  color: var(--text-mid);
  font-size: 14px;
}

.service-toc a:hover {
  color: var(--orange);
}

@media (max-width: 900px) {
  .service-detail-body__grid { grid-template-columns: 1fr; }
  .service-detail-body__toc { position: static; order: -1; }
}

/* ---- CTA Strip — Service Detail's own two-button variant (RESOLVED OD-2) ---- */
.cta-strip--service__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-strip--service__desc {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  max-width: 480px;
}

.cta-strip--service__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cta-strip--service__inner { flex-direction: column; text-align: center; }
  .cta-strip--service__actions { justify-content: center; }
}

/* =======================================================================
   Blog Article page (T-037) — Article Body (position 41: category tag,
   title, cover image, richtext content) and Sidebar (position 42:
   auto-derived Table of Contents + Quick Contact CTA).
   RESTRUCTURED (session — sticky ToC): now a single two-column grid,
   reusing Service/Product Detail's own .service-detail-body__grid /
   __main / __toc + .service-toc box styling, so the ToC sits beside the
   article and stays in view (position: sticky) while scrolling instead
   of stacking full-width below it. See render_blog_article_body()'s own
   docblock (dispatcher.php) for the render-side half of this change.
   ======================================================================= */

/* ---- Blog Article Body ---- */
.blog-article-body__main {
  max-width: 760px;
}

.blog-article-body__toc {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-article-body__category {
  display: inline-block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-article-body__title {
  margin-bottom: 12px;
}

.blog-article-body__readtime {
  display: block;
  color: var(--text-mid);
  font-size: 14px;
  margin-bottom: 24px;
}

.blog-article-body__cover {
  width: 100%;
  border-radius: var(--radius-default);
  margin-bottom: 32px;
}

.blog-article-body__content {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.75;
}

.blog-article-body__content h2,
.blog-article-body__content h3 {
  color: var(--text-primary);
  scroll-margin-top: 100px;
  margin: 32px 0 12px;
}

.blog-article-body__content p {
  margin-bottom: 16px;
}

.blog-article-body__content ul,
.blog-article-body__content ol {
  margin: 0 0 16px 20px;
}

.blog-article-body__content img {
  max-width: 100%;
  border-radius: var(--radius-small);
}

/* ---- Blog Body shortcodes (T-045) ---- */
/* [compare]: two-column comparison grid (e.g. Analogue vs IP Camera). */
.blog-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 600px) {
  .blog-compare {
    grid-template-columns: 1fr;
  }
}

.blog-compare__col {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 20px;
}

.blog-compare__col-title {
  color: var(--orange);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.blog-compare__col-body {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.6;
}

.blog-compare__col-body ul {
  margin: 0 0 0 18px;
}

/* [chat]: simulated WhatsApp-style conversation. */
.blog-chat {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 20px;
  margin: 24px 0;
  display: grid;
  gap: 12px;
  max-width: 480px;
}

.blog-chat__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-chat__row--bot {
  align-items: flex-start;
}

.blog-chat__row--customer {
  align-items: flex-end;
}

.blog-chat__label {
  color: var(--text-mid);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 4px;
}

.blog-chat__bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-default);
  font-size: 14px;
  line-height: 1.5;
}

.blog-chat__bubble--bot {
  background: var(--bg-elevated, var(--bg-card));
  border: 1px solid var(--border-default);
  color: var(--text-mid);
  border-bottom-left-radius: 4px;
}

.blog-chat__bubble--customer {
  background: var(--orange);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* [checklist]: numbered steps with a custom circular marker, replacing
   the legacy site's absolute-positioned marker CSS with a plain
   responsive list. */
.blog-checklist {
  list-style: none;
  counter-reset: blog-checklist-counter;
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 0;
}

.blog-checklist__item {
  counter-increment: blog-checklist-counter;
  position: relative;
  padding-left: 44px;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.6;
}

.blog-checklist__item::before {
  content: counter(blog-checklist-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Blog Sidebar ----
   .blog-sidebar__inner and the box/label/list rules that used to live
   here (.blog-toc, .blog-toc__label, .blog-toc ol) are gone — the ToC
   box now reuses .service-toc directly, including its own a/a:hover
   color rules (see the restructure note above Blog Article Body).
   Only .blog-toc__item--h3's heading-level indent remains Blog-specific;
   the Quick Contact CTA box itself moved to .sidebar-cta below since
   Service/Product Detail now reuse the same box shape for their own
   Add to Cart CTA (owner request: same "box under the ToC" pattern
   Blog already had, moved there from Service/Product Detail's main
   column). */
.blog-toc__item--h3 {
  margin-left: 16px;
}

/* Shared "box below the ToC" shape — Blog Article's Quick Contact CTA,
   and Service/Product Detail's Add to Cart CTA (see their own asides
   in render_service_detail_body()/render_product_detail_body(),
   dispatcher.php). Renamed from .blog-sidebar__cta now that it's used
   on three pages, not just Blog. */
.sidebar-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 24px;
  text-align: center;
}

.sidebar-cta h3 {
  margin-bottom: 16px;
}

/* =====================================================================
   Admin Panel (T-060) — generic Content field editor. Deliberately
   minimal/utilitarian (this is an internal tool for the single site
   owner, not a public-facing page) but reuses the same dark-theme
   tokens as the rest of the site rather than introducing a second
   palette.
   ===================================================================== */
.admin-body {
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: 80px;
}

.admin-shell__header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-alt);
}

.admin-shell__header h1 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0;
}

.admin-shell__nav {
  display: flex;
  gap: 16px;
  margin-right: auto;
}

.admin-shell__nav a {
  color: var(--text-mid);
  font-size: 14px;
}

.admin-shell__nav a:hover {
  color: var(--orange);
}

.admin-shell__header form button,
.admin-save-btn,
.admin-field-group__remove {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-small);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
}

.admin-save-btn {
  background: var(--gradient-accent);
  border: none;
  color: var(--text-white);
  font-weight: 600;
  margin-top: 16px;
}

.admin-field-group__remove {
  color: var(--orange);
  font-size: 13px;
  margin-top: 8px;
}

.admin-shell__main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.admin-hint {
  color: var(--text-mid);
  font-size: 14px;
  margin-bottom: 24px;
}

.admin-hint code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 13px;
}

.admin-flash {
  padding: 12px 16px;
  border-radius: var(--radius-small);
  margin-bottom: 20px;
  font-size: 14px;
}

.admin-flash--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.admin-flash--error {
  background: var(--glow);
  border: 1px solid var(--border-glow);
  color: var(--orange);
}

.admin-page-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.admin-page-list a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-small);
  padding: 14px 18px;
  color: var(--text-primary);
}

.admin-page-list a:hover {
  border-color: var(--border-glow);
  color: var(--orange);
}

.admin-field-group {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  padding: 20px;
  margin-bottom: 16px;
}

.admin-field-group legend {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-mid);
  padding: 0 6px;
}

.admin-field-label {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.admin-field-label textarea,
.admin-field-label input[type="text"] {
  width: 100%;
  margin-top: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}

.admin-field-label textarea:focus,
.admin-field-label input[type="text"]:focus {
  outline: none;
  border-color: var(--orange);
}

.admin-delete-form {
  display: none;
}

.admin-add-field {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-default);
}

.admin-add-field h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------------
   Service CRUD (T-061) — list table, status badges, inline reorder/
   hide forms. Extends the admin-* tokens/patterns above rather than
   introducing new ones.
   --------------------------------------------------------------------- */
.admin-shell__main--wide {
  max-width: 1000px;
}

.admin-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.admin-page-title-row h2 {
  margin: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  overflow: hidden;
}

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

.admin-table th {
  color: var(--text-mid);
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.admin-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.admin-badge--live {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.admin-badge--pending {
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: #facc15;
}

.admin-badge--hidden {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-mid);
}

.admin-table__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-table__actions a {
  color: var(--orange);
  font-size: 13px;
}

.admin-inline-form {
  display: inline-flex;
  gap: 6px;
}

.admin-inline-form button {
  background: var(--bg-alt);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
}

.admin-inline-form button:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}

.admin-inline-form button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* &#9472;&#9472; SCROLL REVEAL (T-046 — ported from the gainsys.zip reference build) &#9472;&#9472;
   Utility class + a matching IntersectionObserver (assets/js/scroll-reveal.js)
   for the fade+slide-up entrance the reference applies to section headings,
   card grids, and stat items sitewide. Pure opacity/transform toggle — a
   page still renders full content with .reveal alone (no .is-visible), just
   static instead of animated in, so nothing breaks if JS fails to load. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}