/*
Theme Name: Dronehab
Theme URI: https://dronehab.com.au
Author: Dronehab
Author URI: https://dronehab.com.au
Description: Industrial-aerospace ecommerce theme for Dronehab — drone services and equipment for Australian mining and agriculture. Slate-and-teal dark aesthetic with Inter + Outfit typography. WooCommerce-ready.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
License URI: https://dronehab.com.au
Text Domain: dronehab
Tags: e-commerce, dark, two-columns, custom-header, custom-menu, custom-logo, footer-widgets, full-width-template, theme-options, threaded-comments
WC requires at least: 8.0
WC tested up to: 9.5
*/

/* =====================================================================
   DRONEHAB THEME — v1.0
   Locked design system (v9 brand spec)
   ===================================================================== */

:root {
  /* Slate — dark surfaces */
  --ink: #0F172A;             /* slate-900 — page background */
  --ink-2: #1E293B;           /* slate-800 — raised cards */
  --ink-3: #334155;           /* slate-700 — borders / sub-surfaces */

  --paper: #0F172A;
  --paper-2: #1E293B;
  --paper-3: #334155;

  /* Teal — single brand accent */
  --signal: #2DD4BF;          /* teal-400 — headings, links, focus */
  --signal-2: #14B8A6;        /* teal-500 — primary buttons */
  --signal-3: #0D9488;        /* teal-600 — pressed states */

  /* Text hierarchy */
  --steel: #CBD5E1;           /* slate-300 — primary body */
  --steel-2: #94A3B8;         /* slate-400 — secondary */
  --steel-3: #CBD5E1;         /* LEGIBILITY BUMP: was #64748B (slate-500), now slate-300 for dark-slate readability */

  --fg-strong: #F1F5F9;       /* slate-100 — strongest text */
  --fg: #CBD5E1;              /* slate-300 — body */
  --fg-muted: #CBD5E1;        /* LEGIBILITY BUMP: was #94A3B8 (slate-400), now slate-300 */
  --fg-meta: #94A3B8;         /* LEGIBILITY BUMP: was #64748B (slate-500), now slate-400 — still subordinate but visible */ /* slate-500 */

  /* Borders */
  --line: rgba(203, 213, 225, 0.10);
  --line-2: rgba(203, 213, 225, 0.06);
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-dark-2: rgba(255, 255, 255, 0.14);

  /* Status */
  --ok: #4ADE80;
  --emerald: #10B981;
  --warn: #FBBF24;
  --bad: #F87171;

  /* Radii */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Type */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --container-max: 1440px;
  --container-narrow: 960px;
  --header-h: 72px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
}

/* =====================================================================
   RESET + BASE
   ===================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--ink);
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--signal);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--signal-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(45, 212, 191, 0.4);
}

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

p {
  margin: 0 0 var(--space-4);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  color: var(--fg-strong);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; }

ul, ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--space-12) 0;
}

code, pre, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
}

code {
  background: var(--ink-2);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

pre {
  background: var(--ink-2);
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 var(--space-6);
}

th, td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg-strong);
  background: var(--ink-2);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

blockquote {
  margin: 0 0 var(--space-6);
  padding: var(--space-4) var(--space-6);
  border-left: 3px solid var(--signal);
  background: var(--ink-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--fg);
  font-style: italic;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

/* =====================================================================
   ACCESSIBILITY
   ===================================================================== */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--ink);
  border: 2px solid var(--signal);
  border-radius: var(--radius-sm);
  clip: auto !important;
  clip-path: none;
  color: var(--signal);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: var(--space-4);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  top: var(--space-4);
  width: auto;
  z-index: 100000;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   LAYOUT — SITE FRAME
   ===================================================================== */

.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .site-container {
    padding: 0 var(--space-8);
  }
}

@media (min-width: 1280px) {
  .site-container {
    padding: 0 var(--space-12);
  }
}

.site-content {
  min-height: calc(100vh - var(--header-h));
  padding-top: var(--header-h);
}

main {
  display: block;
}

/* =====================================================================
   HEADER
   ===================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--duration) var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--fg-strong);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.site-title a:hover {
  color: var(--fg-strong);
  text-decoration: none;
}

.site-title__mark {
  color: var(--signal);
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted); /* LEGIBILITY 1.2.7: slate-300, was --fg-meta (slate-400) */
  margin: 0;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: none;
}

@media (min-width: 1024px) {
  .site-tagline {
    display: block;
    margin-left: var(--space-3);
    padding-left: var(--space-3);
    border-left: 1px solid var(--line-dark);
  }
}

/* Primary nav */
.primary-nav {
  flex: 1;
  display: none;
}

@media (min-width: 1024px) {
  .primary-nav {
    display: block;
  }
}

.primary-nav__list {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.primary-nav__item {
  margin: 0;
  position: relative;
}

.primary-nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--fg);
  padding: var(--space-2) 0;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}

.primary-nav__link:hover {
  color: var(--fg-strong);
  text-decoration: none;
}

.primary-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration) var(--ease);
}

.primary-nav__link:hover::after,
.current-menu-item > .primary-nav__link::after {
  transform: scaleX(1);
}

/* Header actions (cart, menu toggle) */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--fg);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  text-decoration: none;
}

.header-icon-btn:hover {
  border-color: var(--signal);
  color: var(--signal);
  text-decoration: none;
}

.header-icon-btn svg {
  width: 18px;
  height: 18px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--signal-2);
  color: var(--ink);
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-body);
}

/* Mobile nav toggle */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  gap: 4px;
  transition: border-color var(--duration) var(--ease);
}

.menu-toggle:hover {
  border-color: var(--signal);
}

.menu-toggle__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  transition: all var(--duration) var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: var(--space-6);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 300ms var(--ease);
  z-index: 99;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav__list .menu-item {
  border-bottom: 1px solid var(--line-2);
}

.mobile-nav__list a {
  display: block;
  padding: var(--space-4) 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}

.mobile-nav__list a:hover {
  color: var(--signal);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

/* =====================================================================
   STAGING NOTICE BAR (visible until removed in functions.php)
   ===================================================================== */

.staging-notice {
  background: var(--warn);
  color: var(--ink);
  padding: var(--space-2) var(--space-4);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staging-notice + .site-header {
  top: 28px;
}

.staging-notice + .site-header + .site-content {
  padding-top: calc(var(--header-h) + 28px);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */

.btn,
button.btn,
.button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  line-height: 1.2;
  white-space: nowrap;
}

.btn--primary,
button[type="submit"],
input[type="submit"] {
  background: var(--signal-2);
  color: var(--ink);
  border-color: var(--signal-2);
}

.btn--primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.25);
}

.btn--secondary {
  background: transparent;
  color: var(--fg-strong);
  border-color: var(--line-dark-2);
}

.btn--secondary:hover {
  border-color: var(--signal);
  color: var(--signal);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--signal);
  border-color: transparent;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.btn--ghost:hover {
  color: var(--signal);
  background: rgba(45, 212, 191, 0.08);
  text-decoration: none;
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.75rem;
}

/* =====================================================================
   FORMS
   ===================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--ink-2);
  color: var(--fg-strong);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--signal);
  background: var(--ink-2);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-meta);
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--fg-strong);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: var(--space-24);
  padding: var(--space-16) 0 var(--space-8);
  color: var(--fg-muted);
  font-size: 0.875rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

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

.footer-brand h3 {
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-strong);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  color: var(--fg-muted);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: var(--signal);
  text-decoration: none;
}

.site-footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  font-size: 0.75rem;
  color: var(--fg-meta);
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.credential-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.credential-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

/* =====================================================================
   HOMEPAGE — HERO
   ===================================================================== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(45, 212, 191, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.05), transparent 50%),
    var(--ink);
  overflow: hidden;
  padding: var(--space-20) 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: var(--radius-pill);
  color: var(--signal);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.hero__eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: normal;
  color: var(--signal);
}

.hero__lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--fg);
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(45, 212, 191, 0.15), transparent 60%);
}

/* Hero variant: full-bleed background image */
.hero--image {
  position: relative;
  background: var(--ink);
  min-height: min(78vh, 720px);
  padding: var(--space-24) 0 var(--space-20);
}

.hero--image::before {
  display: none;
}

.hero--image .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero--image .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

/* Gradient overlay: dark on the left for text legibility, fading to clear on the right */
.hero--image .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(15, 23, 42, 0.92) 0%,
      rgba(15, 23, 42, 0.75) 30%,
      rgba(15, 23, 42, 0.35) 65%,
      rgba(15, 23, 42, 0.10) 100%),
    linear-gradient(0deg,
      rgba(15, 23, 42, 0.55) 0%,
      transparent 40%);
  pointer-events: none;
}

.hero--image .site-container {
  position: relative;
  z-index: 1;
}

/* Override the side-by-side grid for the image variant — we want single column with text floating on the dark side */
.hero--image .hero__inner {
  display: block;
  max-width: 720px;
}

@media (min-width: 1024px) {
  .hero--image .hero__inner {
    grid-template-columns: none;
    max-width: 720px;
  }
}

/* Mobile — make sure overlay is dark enough across full image */
@media (max-width: 767px) {
  .hero--image .hero__bg::after {
    background:
      linear-gradient(180deg,
        rgba(15, 23, 42, 0.6) 0%,
        rgba(15, 23, 42, 0.85) 60%,
        rgba(15, 23, 42, 0.95) 100%);
  }
  .hero--image .hero__bg img {
    object-position: center 50%;
  }
}

/* =====================================================================
   SECTION SCAFFOLDING
   ===================================================================== */

.section {
  padding: var(--space-20) 0;
}

.section--narrow {
  padding: var(--space-12) 0;
}

.section__head {
  margin-bottom: var(--space-12);
  max-width: 760px;
}

.section__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-4);
}

.section__lede {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.6;
}

/* =====================================================================
   CARD GRIDS (services, industries, featured products)
   ===================================================================== */

.card-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.4), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

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

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(45, 212, 191, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--signal);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.card__desc {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-4);
  flex: 1;
}

.card__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
}

.card__link::after {
  content: '→';
  transition: transform var(--duration) var(--ease);
}

.card:hover .card__link::after {
  transform: translateX(4px);
}

/* =====================================================================
   TRUST BAR
   ===================================================================== */

.trust-bar {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-8) 0;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .trust-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  text-align: center;
}

.trust-item__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--signal);
  display: block;
  margin-bottom: var(--space-1);
  line-height: 1;
}

.trust-item__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =====================================================================
   PAGE TITLES (non-home)
   ===================================================================== */

.page-hero {
  background:
    radial-gradient(circle at 30% 50%, rgba(45, 212, 191, 0.06), transparent 50%),
    var(--ink);
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid var(--line);
}

.page-hero__title {
  margin-bottom: var(--space-3);
}

.page-hero__sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 720px;
}

.breadcrumbs {
  font-size: 0.8125rem;
  color: var(--fg-meta);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.breadcrumbs a {
  color: var(--fg-muted);
}

.breadcrumbs a:hover {
  color: var(--signal);
  text-decoration: none;
}

.breadcrumbs__sep {
  margin: 0 var(--space-2);
  color: var(--fg-meta);
}

/* =====================================================================
   POST / PAGE CONTENT
   ===================================================================== */

.entry-content {
  max-width: 760px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.entry-content > * + * {
  margin-top: var(--space-4);
}

.entry-content h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.entry-content h3 {
  margin-top: var(--space-8);
}

.entry-content img {
  border-radius: var(--radius);
  margin: var(--space-6) 0;
}

.entry-meta {
  font-size: 0.8125rem;
  color: var(--fg-meta);
  margin-bottom: var(--space-6);
}

.entry-meta a {
  color: var(--fg-muted);
}

/* =====================================================================
   POST LIST (blog index, archive)
   ===================================================================== */

.post-list {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration) var(--ease);
}

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

.post-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.post-card__title a {
  color: var(--fg-strong);
}

.post-card__title a:hover {
  color: var(--signal);
  text-decoration: none;
}

.post-card__excerpt {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
}

/* =====================================================================
   PAGINATION
   ===================================================================== */

.pagination {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-12);
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

.pagination .page-numbers:hover {
  border-color: var(--signal);
  color: var(--signal);
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: var(--signal-2);
  border-color: var(--signal-2);
  color: var(--ink);
}

/* =====================================================================
   ALIGNMENTS (WP block alignments)
   ===================================================================== */

.alignleft {
  float: left;
  margin-right: var(--space-6);
  margin-bottom: var(--space-4);
}

.alignright {
  float: right;
  margin-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-4);
}

.alignwide {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* =====================================================================
   404
   ===================================================================== */

.error-404 {
  text-align: center;
  padding: var(--space-24) 0;
}

.error-404__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: var(--signal);
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
}


/* ══════════════════════════════════════════
   v1.2.7 — HERO BAND + SHARE ROW (restoring missing v9 rules)
   These rules were absent from style.css. Their absence caused the
   .hero-band element to collapse to height:0, allowing its absolutely
   positioned KV image to escape and overlay the spec table area, which
   visually presented as "missing Aircraft + Spray System headers".
   ══════════════════════════════════════════ */

.hero-band {
  position: relative;
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, #0a0e14 0%, #1a1f2c 100%);
  overflow: hidden;
}
.hero-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
}
.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,.05) 0%, rgba(10,14,20,.45) 100%);
  pointer-events: none;
}
.hero-band-meta {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  letter-spacing: .14em;
  text-transform: uppercase;
  display: flex;
  gap: 24px;
  align-items: center;
}
.hero-band-meta strong { color: var(--signal); font-weight: 700; }
@media (max-width: 760px) {
  .hero-band { height: 260px; }
  .hero-band-meta { bottom: 20px; left: 20px; font-size: 10px; flex-wrap: wrap; gap: 12px; }
}

/* SHARE ROW — was missing entirely; "Share:" label inheriting random body color */
.share-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--fg-muted); /* LEGIBILITY 1.2.7: slate-300 (v9 spec was --steel-2 slate-400) */
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.share-row a {
  color: var(--fg);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.share-row a:hover { color: var(--signal); }

/* === DRONEHAB_MOBILE_FIXES_v148 ============================================
 * Targeted mobile responsiveness fixes from real-device audit, May 12 2026.
 * ========================================================================= */

/* FIX 1: Cookie consent bubble overlapping page content on long-scroll pages. */
@media (max-width: 767px) {
  body { padding-bottom: 70px; }
  .cky-revisit-bottom-left,
  .cky-consent-container,
  .cky-btn-revisit-wrapper {
    z-index: 999 !important;
  }
}

/* FIX 2: Duplicate breadcrumb on shop and category pages. */
.woocommerce-breadcrumb {
  display: none !important;
}

/* FIX 3: Header icons (cart, hamburger) low-contrast on mobile. */
@media (max-width: 767px) {
  .site-header .menu-toggle,
  .site-header .cart-link,
  .site-header [class*="cart"],
  .site-header [class*="menu-toggle"] {
    background: rgba(45, 212, 191, 0.08);
    border-color: rgba(45, 212, 191, 0.4);
  }
  .site-header .menu-toggle:hover,
  .site-header .cart-link:hover {
    background: rgba(45, 212, 191, 0.16);
    border-color: rgba(45, 212, 191, 0.7);
  }
  .site-header .menu-toggle,
  .site-header .cart-link {
    min-width: 44px;
    min-height: 44px;
  }
}

/* FIX 4: Excess vertical space between page H1 and first content row. */
@media (max-width: 767px) {
  .page-header,
  .shop-header,
  .woocommerce-products-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .page-header h1,
  .shop-header h1 {
    margin-bottom: 8px;
  }
  .breadcrumbs,
  .breadcrumb,
  nav[aria-label="breadcrumb"] {
    margin-bottom: 12px;
  }
}

/* FIX 5: Service/industry card padding too generous on small screens. */
@media (max-width: 767px) {
  .service-card,
  .industry-card,
  .card,
  [class*="-card"]:not(.product) {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .service-card,
  .industry-card {
    padding-top: 22px;
    padding-bottom: 22px;
    margin-bottom: 16px;
  }
}

/* END_DRONEHAB_MOBILE_FIXES_v148 =========================================== */

/* === DRONEHAB_POLISH_v149 ==================================================
 * Polish pass: final CTA band, social proof band, deploy icons, hero CTA
 * upgrade, flagship card hover state, richer footer.
 * ========================================================================= */

/* FINAL CTA BAND ----------------------------------------------------------- */
.final-cta {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border-top: 1px solid var(--ink-3);
  padding: 96px 0 88px;
  text-align: center;
  position: relative;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 3px;
  background: var(--signal);
  border-radius: 0 0 4px 4px;
}
.final-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.final-cta .eyebrow {
  display: inline-block;
  color: var(--signal);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.final-cta__title {
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0 0 18px;
}
.final-cta__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 auto 36px;
  max-width: 560px;
}
.final-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.final-cta__actions .btn--lg {
  padding: 18px 32px;
  font-size: 17px;
}
.final-cta__meta {
  font-size: 13px;
  color: var(--fg-meta);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  margin: 0;
}
@media (max-width: 767px) {
  .final-cta { padding: 64px 0 56px; }
  .final-cta__title { font-size: 34px; }
  .final-cta__lede { font-size: 16px; }
  .final-cta__actions .btn--lg { padding: 16px 22px; font-size: 16px; width: 100%; }
}

/* SOCIAL PROOF BAND (named clients) ---------------------------------------- */
.proof-band {
  background: var(--ink);
  padding: 72px 0;
  border-top: 1px solid var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
}
.proof-band__lead {
  text-align: center;
  margin-bottom: 48px;
}
.proof-band__lead .eyebrow {
  color: var(--signal);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.proof-band__title {
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0 0 14px;
}
.proof-band__lede {
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}
.proof-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.proof-item {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: 10px;
  padding: 22px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.proof-item:hover {
  border-color: var(--signal-2);
  transform: translateY(-2px);
}
.proof-item__client {
  font-size: 14px;
  font-weight: 700;
  color: var(--signal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-family: 'Inter', sans-serif;
}
.proof-item__outcome {
  font-size: 16px;
  line-height: 1.45;
  color: var(--fg);
  margin: 0 0 10px;
}
.proof-item__meta {
  font-size: 12px;
  color: var(--fg-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  margin: 0;
}
@media (max-width: 767px) {
  .proof-band { padding: 48px 0; }
  .proof-band__title { font-size: 28px; }
  .proof-list { grid-template-columns: 1fr; gap: 14px; }
}

/* DEPLOY ICONS in "Where we deploy" cards ---------------------------------- */
.service-card__icon,
.deploy-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
  margin-bottom: 18px;
}
.service-card__icon svg,
.deploy-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* FLAGSHIP CARD HOVER STATE ------------------------------------------------ */
.flagship-card,
.product-card,
.woocommerce ul.products li.product {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.flagship-card:hover,
.product-card:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: var(--signal-2) !important;
  box-shadow: 0 16px 40px -16px rgba(45, 212, 191, 0.25);
}

/* RICHER FOOTER ------------------------------------------------------------ */
.footer-contact-block {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
}
.footer-contact-block a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-block a:hover {
  color: var(--signal);
}
.footer-contact-block .footer-contact-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-meta);
  font-family: 'Inter', sans-serif;
  margin-top: 14px;
  margin-bottom: 2px;
}

/* HERO CTA — make secondary button more affordant on dark ------------------ */
.hero__cta .btn--secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--fg-strong);
}
.hero__cta .btn--secondary:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(45, 212, 191, 0.08);
}

/* END_DRONEHAB_POLISH_v149 ================================================= */

/* === DRONEHAB_PROOF_LOGOS_v1 ===============================================
 * Logo treatment for the social proof band cards. Renders the transparent-bg
 * PNGs at a fixed display height, centred at the top of each card.
 * ========================================================================= */
.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.proof-item__logo {
  width: 100%;
  height: 56px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof-item__logo img {
  max-height: 56px;
  max-width: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  opacity: 0.92;
  transition: opacity 0.25s ease;
  filter: drop-shadow(0 0 0 transparent);
}
.proof-item:hover .proof-item__logo img {
  opacity: 1;
}
.proof-item__client {
  /* When logo is present, client name acts as a quiet sub-label rather than the headline */
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-meta);
  text-transform: uppercase;
  margin: 0 0 6px;
}
@media (max-width: 767px) {
  .proof-item__logo { height: 48px; }
  .proof-item__logo img { max-height: 48px; max-width: 65%; }
}
/* END_DRONEHAB_PROOF_LOGOS_v1 ============================================== */
