/*
Theme Name: NextAir Systems
Theme URI: https://www.nextairsystems.com
Author: NextAir Systems
Author URI: https://www.nextairsystems.com
Description: Custom industrial B2B theme for NextAir Systems — industrial desiccant dehumidifiers, dry odor control systems, and air quality engineering. Fully editable header, footer, and sidebar via the WordPress Customizer, Menus, and Widgets.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nextair
*/

/* ============================================================
   NextAir Systems — Site Stylesheet
   Design tokens:
   Color:  Ink #16232E · Steel #2C5470 · Amber #D68A1F ·
           Base #F7F7F5 · Line #DADFE2 · Muted-green #4C7A5D
   Type:   Archivo (headings) / Inter (body)
   Layout: Left-aligned, content-first, restrained accents
   ============================================================ */

/* Google Fonts are enqueued properly via functions.php (wp_enqueue_style),
   not @import, for better performance. See inc/enqueue.php */

:root {
  --ink: #16232E;
  --steel: #2C5470;
  --steel-dark: #1D3B50;
  --amber: #D68A1F;
  --amber-dark: #B7740F;
  --base: #F7F7F5;
  --white: #FFFFFF;
  --line: #DADFE2;
  --muted-green: #4C7A5D;
  --text-muted: #4E5C67;
  --max-width: 1180px;
  --radius: 4px;
  --font-head: 'Archivo', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--base);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--steel-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 48px; }
h3 { font-size: 20px; margin-top: 28px; }
p { margin: 0 0 16px; max-width: 72ch; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  background: var(--ink);
  color: #C9D3D9;
  font-size: 13px;
}
.header-top .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.header-top a { color: #E7ECEF; font-weight: 500; }
.header-top .phone-link { color: var(--amber); font-weight: 700; }
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo-mark { flex-shrink: 0; transition: transform 0.25s ease; }
.logo:hover .logo-mark { transform: translateX(2px); }
.logo-text { white-space: nowrap; }
.logo .accent, .logo span.accent { color: var(--steel); }
.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 15px;
}
.main-nav a { color: var(--ink); margin-right: 24px; position: relative; }
.main-nav a:last-child { margin-right: 0; }
.main-nav > a::after,
.main-nav .dropdown > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav > a:hover::after,
.main-nav .dropdown:hover > a::after,
.main-nav .dropdown:focus-within > a::after { transform: scaleX(1); }
.main-nav .dropdown { position: relative; margin-right: 24px; }
.main-nav .dropdown > a { margin-right: 0; }
.main-nav .dropdown:last-child { margin-right: 0; }
.main-nav .dropdown-panel {
  display: block;
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  box-shadow: 0 16px 40px rgba(22,35,46,0.16);
  min-width: 280px;
  padding: 14px 0;
  z-index: 50;
  border-radius: 0 0 6px 6px;
  /* Hidden by default via opacity/transform, not display:none, so the
     fade+rise transition below can actually animate. A transparent
     padding "bridge" above closes the hover gap between the nav link
     and the panel so the menu doesn't flicker shut while moving the
     mouse down into it. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  margin-top: 14px;
}
.main-nav .dropdown-panel::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.main-nav .dropdown:hover .dropdown-panel,
.main-nav .dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}
.dropdown-panel a {
  display: block;
  padding: 9px 22px;
  font-weight: 500;
  color: var(--ink);
  margin-right: 0;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
}
.dropdown-panel a::after { display: none; }
.dropdown-panel a:hover {
  background: var(--base);
  border-left-color: var(--amber);
  padding-left: 26px;
  text-decoration: none;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.header-phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone svg { vertical-align: -3px; margin-right: 6px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  background-image:
    radial-gradient(circle at 88% 15%, rgba(214,138,31,0.10) 0%, transparent 45%),
    radial-gradient(circle at 95% 55%, rgba(44,84,112,0.35) 0%, transparent 40%);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -40px;
  width: 420px; height: 420px;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 2px, transparent 2px, transparent 34px);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container { max-width: var(--max-width); }
.hero-eyebrow {
  color: #9FB4C2;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}
.hero h1 { color: var(--white); max-width: 32ch; }
.hero p.lead {
  color: #CBD5DB;
  font-size: 19px;
  max-width: 62ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: #4C6577; color: var(--white); }
.hero-actions .btn-outline:hover { background: var(--white); color: var(--ink); }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 68ch; margin-bottom: 32px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* ---------- Card grids (flexbox-based for broad rendering compatibility) ---------- */
.grid {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}
.grid > * { margin: 10px; }
.grid-3 > * { flex: 1 1 300px; }
.grid-4 > * { flex: 1 1 240px; }

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--steel);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-left-color: var(--amber); transform: translateY(-2px); }
.product-card .card-icon { margin-bottom: 14px; color: var(--steel); }
.product-card h3 { margin-top: 0; }
.product-card p { color: var(--text-muted); font-size: 15px; }
.product-card a.card-link { font-weight: 700; color: var(--steel-dark); }

.link-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}
.link-list a {
  display: block;
  width: 280px;
  max-width: calc(33.333% - 24px);
  margin: 0 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink);
}
@media (max-width: 720px) { .link-list a { max-width: calc(50% - 24px); } }
@media (max-width: 480px) { .link-list a { max-width: calc(100% - 24px); } }
.link-list a:hover { color: var(--steel-dark); text-decoration: none; }

/* region grouping for locations */
.region-group { margin-bottom: 32px; }
.region-group h3 {
  font-size: 16px;
  color: var(--steel);
  border-bottom: 2px solid var(--steel);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid #2B3E4C;
  margin-top: 32px;
  margin-left: -16px;
  margin-right: -16px;
}
.stat { min-width: 200px; margin: 0 16px 16px; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--amber); }
.stat .label { font-size: 14px; color: #B7C5CC; }

/* ---------- Certs badges ---------- */
.cert-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cert-badge {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--steel-dark);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  padding: 14px 0;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs .sep { margin: 0 6px; color: #B7C0C6; }

/* ---------- Article/content page ---------- */
.page-content { background: var(--white); }
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}
.article-wrap h1 { margin-bottom: 8px; }
.article-wrap .lede { color: var(--text-muted); font-size: 18px; margin-bottom: 32px; }
.article-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 15px;
}
.article-wrap th, .article-wrap td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.article-wrap th { background: var(--base); font-family: var(--font-head); font-weight: 700; }
.article-wrap hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.article-wrap .cta-box {
  background: var(--base);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  padding: 22px 24px;
  margin: 32px 0;
}
.article-wrap .cta-box h3 { margin-top: 0; }

.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item p:last-child { margin-bottom: 0; }

.related-block {
  background: var(--base);
  padding: 32px 0 8px;
}
.related-block h2 { margin-top: 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -24px;
  align-items: flex-start;
}
.contact-grid > * { flex: 1 1 380px; margin: 24px; }
.contact-info-card {
  background: var(--ink);
  color: var(--white);
  padding: 32px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card a { color: var(--amber); font-weight: 700; }
.contact-info-card .info-row { margin-bottom: 20px; }
.contact-info-card .info-label { font-size: 13px; color: #9FB4C2; margin-bottom: 4px; }
.contact-info-card .info-value { font-size: 17px; font-weight: 600; }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-row-2 { display: flex; flex-wrap: wrap; margin: -8px; }
.form-row-2 > * { flex: 1 1 220px; margin: 8px; }
.form-note { font-size: 13px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D3D9; padding: 56px 0 24px; margin-top: 40px; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -16px;
  padding-bottom: 32px;
  border-bottom: 1px solid #2B3E4C;
}
.footer-grid > * { flex: 1 1 200px; margin: 16px; }
.footer-brand { flex-basis: 280px; }
.footer-grid h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer-grid a { color: #B7C5CC; display: block; margin-bottom: 8px; font-size: 14px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand .logo { color: var(--white); }
.footer-brand .logo .accent { color: var(--amber); }
.footer-brand p { color: #9FB0BB; font-size: 14px; margin-top: 12px; }
.footer-certs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.footer-certs span {
  border: 1px solid #3A4E5C;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #C9D3D9;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: #8FA0AB;
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--amber);
  z-index: 200;
}
.mobile-call-bar a {
  display: block;
  text-align: center;
  padding: 14px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
}
@media (max-width: 720px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 52px; }
  .main-nav { display: none; }
}

.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li { border-bottom: 1px solid var(--line); }
.simple-list a { display: block; padding: 14px 4px; font-weight: 600; }

.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 300;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============================================================
   WordPress-specific additions: sidebar layout, widgets,
   required core classes, admin bar offset
   ============================================================ */

/* Admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Required WordPress core classes */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.sticky { }
.gallery { display: flex; flex-wrap: wrap; margin: -6px; }
.gallery-item { margin: 6px; }

/* ---------- Content + Sidebar layout ---------- */
.content-with-sidebar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 72px;
  gap: 48px;
}
.content-with-sidebar .main-content { flex: 1 1 600px; min-width: 0; }
.content-with-sidebar .main-content .article-wrap { padding: 0; max-width: none; }
.content-with-sidebar .site-sidebar { flex: 0 1 300px; }

/* ---------- Widget styling ---------- */
.widget { margin-bottom: 32px; }
.widget-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--steel);
}
.site-sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.site-sidebar .widget li { border-bottom: 1px solid var(--line); padding: 8px 0; margin-bottom: 0; }
.site-sidebar .widget a { color: var(--ink); font-weight: 500; }
.site-sidebar .widget_search input[type="search"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
}
.site-sidebar .widget_text img { max-width: 100%; }

/* Footer widget areas reuse .footer-grid > * styling already defined above */
.footer-widget-area .widget { margin-bottom: 20px; }
.footer-widget-area .widget-title { color: var(--white); border-bottom-color: #3A4E5C; font-size: 14px; }
.footer-widget-area .widget a { color: #B7C5CC; }
.footer-widget-area .widget a:hover { color: var(--white); }
.footer-widget-area .widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget-area .widget li { margin-bottom: 8px; }

/* Comments (required minimal support even though this is a business site) */
.comments-area { max-width: 800px; margin: 40px auto 0; padding: 0 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { border-bottom: 1px solid var(--line); padding: 16px 0; }

/* ============================================================
   Block Editor Style Variations (used by registered patterns)
   ============================================================ */
.nextair-section { padding: 56px 0; max-width: var(--max-width); margin: 0 auto; }
.wp-block-group.is-style-nextair-hero.hero { padding: 64px 24px 56px; max-width: none; }
.wp-block-group.is-style-nextair-card.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--steel);
  padding: 26px;
  height: 100%;
}
.wp-block-group.is-style-nextair-card.product-card h3 { margin-top: 0; }

.wp-block-button.is-style-nextair-primary .wp-block-button__link {
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 4px;
}
.wp-block-button.is-style-nextair-primary .wp-block-button__link:hover { background: var(--amber-dark); }

.wp-block-button.is-style-nextair-outline .wp-block-button__link {
  background: transparent;
  color: var(--white);
  border: 2px solid #4C6577;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 4px;
}
.wp-block-button.is-style-nextair-outline .wp-block-button__link:hover { background: var(--white); color: var(--ink); }

/* Outline buttons used as plain "tag" links outside the dark hero (e.g. industries list) need dark text for contrast */
.nextair-section .wp-block-button.is-style-nextair-outline .wp-block-button__link {
  color: var(--ink);
  border-color: var(--line);
  font-weight: 600;
}
.nextair-section .wp-block-button.is-style-nextair-outline .wp-block-button__link:hover {
  background: var(--base);
  color: var(--steel-dark);
  border-color: var(--steel);
}

/* Ensure Gutenberg's native columns behave like the original card grid on mobile */
@media (max-width: 782px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap !important; }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
    margin-left: 0 !important;
  }
}

/* ---------- Hero slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  outline: none;
}
.hero-slider:focus-visible { box-shadow: inset 0 0 0 3px var(--amber); }
.hero-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider-track { transition: none; }
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 64px 0 56px;
  position: relative;
  color: var(--white);
}
.hero-slide[aria-hidden="true"] { pointer-events: none; }
.hero-slide .container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.hero-slide-1 {
  background-image:
    radial-gradient(circle at 88% 15%, rgba(214,138,31,0.14) 0%, transparent 45%),
    radial-gradient(circle at 95% 55%, rgba(44,84,112,0.40) 0%, transparent 40%);
}
.hero-slide-2 {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(214,138,31,0.16) 0%, transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(44,84,112,0.35) 0%, transparent 45%);
}
.hero-slide-3 {
  background-image:
    radial-gradient(circle at 85% 75%, rgba(76,122,93,0.22) 0%, transparent 45%),
    radial-gradient(circle at 15% 25%, rgba(44,84,112,0.35) 0%, transparent 42%);
}
.hero-slide-4 {
  background-image:
    radial-gradient(circle at 90% 20%, rgba(44,84,112,0.45) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(214,138,31,0.12) 0%, transparent 42%);
}
.hero-slide-5 {
  background-image:
    radial-gradient(circle at 50% 15%, rgba(214,138,31,0.14) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(44,84,112,0.40) 0%, transparent 45%);
}
.hero-slide-eyebrow { color: #9FB4C2; font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.hero-slide-title {
  color: var(--white);
  max-width: 18ch;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.12;
  margin: 0 0 16px;
}
.hero-slide-lead { color: #CBD5DB; font-size: 19px; max-width: 62ch; margin: 0 0 28px; }
.hero-slide-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-slide-actions .btn-outline { border-color: #4C6577; color: var(--white); }
.hero-slide-actions .btn-outline:hover { background: var(--white); color: var(--ink); }

.hero-slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
.hero-slider-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hero-slider-dot.is-active { background: var(--amber); border-color: var(--amber); }
.hero-slider-dot:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(22,35,46,0.55);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slider-arrow:hover { background: rgba(22,35,46,0.85); border-color: var(--amber); }
.hero-slider-arrow:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.hero-slider-arrow.prev { left: 18px; }
.hero-slider-arrow.next { right: 18px; }

@media (max-width: 720px) {
  .hero-slide-title { font-size: 30px; max-width: 100%; }
  .hero-slide-lead { font-size: 17px; }
  .hero-slider-arrow { width: 34px; height: 34px; font-size: 17px; }
  .hero-slider-arrow.prev { left: 8px; }
  .hero-slider-arrow.next { right: 8px; }
}


/* ============================================================
   MOBILE NAVIGATION — hamburger toggle + slide-down panel
   Add this block anywhere in style.css (end of file is fine).
   Fixes: .main-nav was being hidden at 720px with nothing built
   to replace it, leaving mobile visitors with no way to navigate.
   ============================================================ */

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.mobile-nav-toggle .hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 720px) {
  .mobile-nav-toggle {
    display: flex;
  }

  /* .main-nav already has "display: none;" set above at this same
     breakpoint (existing rule, unchanged) -- this adds what happens
     when the toggle button opens it. */
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    z-index: 200;
  }

  /* Stack links vertically; full-width tap targets */
  .main-nav.is-open a {
    display: block;
    margin-right: 0;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open a:last-child { border-bottom: none; }

  /* Desktop hover-dropdown doesn't apply on touch. On mobile, a
     dropdown parent (e.g. "Products") expands its children in place
     when tapped, via a small script -- see the .dropdown.is-open
     rules below. Closed by default; the desktop :hover/:focus-within
     opacity rules are overridden here so nothing shows until the
     .is-open class is actually added by the tap handler. */
  .main-nav.is-open .dropdown-panel {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
    margin-top: 0;
    padding: 4px 0 4px 16px;
  }
  .main-nav.is-open .dropdown.is-open .dropdown-panel {
    display: block;
  }
  .main-nav.is-open .dropdown > a {
    border-bottom: 1px solid var(--line);
  }
  .dropdown-panel a { padding: 10px 4px; }

  /* .header-main needs relative positioning for the absolute panel
     above to anchor correctly. Checked your actual file: it has no
     position property set currently, so this is safe to add. */
  .header-main { position: relative; }
}

/* ============================================================
   MOBILE NAV: open menu stays on screen and scrolls.
   header.php sets the exact max-height; the values below are a
   fallback. The shadows appear at the bottom edge while more
   items are hidden below, and at the top once you have scrolled.
   ============================================================ */
@media (max-width: 720px) {
  .main-nav.is-open {
    max-height: calc(100vh - 270px);
    max-height: calc(100dvh - 270px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background-color: var(--white);
    background-image:
      linear-gradient(var(--white) 30%, rgba(255,255,255,0)),
      linear-gradient(rgba(255,255,255,0), var(--white) 70%),
      radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.22), rgba(0,0,0,0)),
      radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.22), rgba(0,0,0,0));
    background-position: center top, center bottom, center top, center bottom;
    background-repeat: no-repeat;
    background-size: 100% 36px, 100% 36px, 100% 12px, 100% 12px;
    background-attachment: local, local, scroll, scroll;
  }
}

/* ============================================================
   Hide the email/phone top bar on phones only (<= 720px).
   Frees about 33px of header height, which gives the open menu
   more room. The phone number is still in the header row and in
   the fixed "Call Now" bar; the email stays on the Contact page.
   Desktop and tablet (wider than 720px) are unchanged.
   Add at the very END of style.css.
   ============================================================ */
@media (max-width: 720px) {
  .header-top { display: none; }
}
