/* =========================================================
   AMTAG Base Styles (tidied)
   - Design tokens
   - Base + utilities
   - Header / Nav
   - Hero (global + small + duo)
   - Sections/components (cards, grids, CTA)
   - Page-specific: Calibration, PM, Repair
   - Fixes: stepper 4-cols, consistent titles, blue badges
   ========================================================= */

/* ============ Design Tokens ============ */
:root{
  --brand: #2563eb;          /* AMTAG blue */
  --text:  #111827;          /* near-black */
  --muted: #6b7280;          /* gray */
  --bg:    #ffffff;          /* page bg */
  --section:#f8fafc;         /* light section bg */
  --radius: 16px;            /* default radius */
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --container: 1100px;

  /* Type scale */
  --h1: 42px;
  --h2: 32px;
  --h3: 22px;
  --body: 16px;
  --lead: 18px;
}

/* ============ Base ============ */
html,body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: var(--body);
  line-height: 1.6;
  margin: 0;
}

*,
*::before,
*::after{ box-sizing: border-box; }

img{ max-width:100%; height:auto; display:block; }
a{ color: var(--brand); text-decoration: none; }
a:hover{ opacity:.85; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1,h2,h3,h4,h5,h6{
  margin: 0 0 .5em;
  line-height: 1.15;
  color: var(--text);
  font-weight: 700;
}
h1{ font-size: var(--h1); }
h2{ font-size: var(--h2); }
h3{ font-size: var(--h3); }

/* Utilities */
.btn{
  display:inline-block; border-radius:9999px; padding:12px 20px; font-weight:600;
  border:1px solid transparent; transition:.2s ease;
}
.btn-primary{ background:var(--brand); color:#fff; }
.btn-primary:hover{ filter:brightness(0.95); }
.btn-secondary{ background:#fff; border-color:#d1d5db; color:var(--text); }
.rule{ width:80px; height:3px; background:var(--brand); margin:10px 0 18px; border-radius:2px; }

/* Eyebrow label (used in hero + CTA) */
.eyebrow{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color: var(--brand);
  background:#eef2ff;
  padding:6px 10px;
  border-radius:999px;
  margin-bottom:10px;
}

/* ============ Header / Nav ============ */
#fh5co-header{
  position: sticky; top:0; z-index:1000; background:#fff;
  border-bottom:1px solid #eee;
}
#fh5co-header .container{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:16px 20px;
}
#fh5co-logo img{ height:100px; }

#fh5co-main-nav ul{ list-style:none; margin:0; padding:0; display:flex; gap:18px; align-items:center; }
#fh5co-main-nav li{ position:relative; }
#fh5co-main-nav a{ display:block; padding:14px 10px; color:#111; font-weight:500; font-size:20px; }
#fh5co-main-nav li.active > a,
#fh5co-main-nav a:hover{ color: var(--brand); }

/* simple hover dropdown (keeps your structure) */
#fh5co-main-nav .dropdown-menu-wrap{
  position:absolute; top:100%; left:50%; transform:translateX(-50%);
  width:190px; padding:12px; background:#fff; border:1px solid #eee; border-radius:10px;
  box-shadow:var(--shadow);
  opacity:0; visibility:hidden; transition:.15s ease; margin-top:8px;
}
#fh5co-main-nav li.has-sub:hover .dropdown-menu-wrap{ opacity:1; visibility:visible; }
#fh5co-main-nav .dropdown-menu-wrap ul{flex-direction: column; gap: 0; margin:0; padding:0; list-style:none; }
#fh5co-main-nav .dropdown-menu-wrap li a{ padding:8px 10px; color:#111; }
#fh5co-main-nav .dropdown-menu-wrap li a:hover{ color:var(--brand); background:#f9fafb; border-radius:8px; }
#fh5co-main-nav .dropdown-menu-wrap li {display: block !important;}
#fh5co-main-nav .dropdown-menu-wrap li a {
  text-align: center;
  white-space: normal; /* allow wrapping */
  line-height: 1.4;
}

#fh5co-main-nav li.has-sub > .drop-down-menu > a::after {
  content:"▼"; font-size:12px; margin-left:6px; color:#6b7280;
}
#fh5co-main-nav li.has-sub:hover > .drop-down-menu > a::after { color: var(--brand); }

/* mobile */
@media (max-width: 768px){
  #fh5co-main-nav ul{ flex-wrap:wrap; justify-content:center; }
}

/* ============ Hero Slider (Owl) ============ */
.hero-slider{ position:relative; }
.hero-carousel .slide{ position:relative; height: 75vh; min-height:420px; }
.hero-carousel .slide img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.hero-carousel .slide::before{
  content:""; position:absolute; inset:0; background:rgba(0,0,0,.38); z-index:1;
}
.slide-caption{
  position:relative; z-index:2; height:100%;
  display:grid; place-content:center; text-align:center; padding:0 24px;
}
.slide-caption h1, .slide-caption h2{
  color:#fff; font-size:var(--h1); text-shadow:0 3px 12px rgba(0,0,0,.7); margin:0 0 10px;
}
.slide-caption p{
  color:#fff; font-size:var(--lead); text-shadow:0 2px 10px rgba(0,0,0,.7); margin:0 0 18px;
}
.hero-carousel .owl-nav{ position:absolute; top:50%; left:0; right:0; transform:translateY(-50%); display:flex; justify-content:space-between; padding:0 10px; }
.hero-carousel .owl-nav button{ background:#ffffffcc !important; border-radius:999px; width:38px; height:38px; line-height:38px; font-size:20px !important; }
.hero-carousel .owl-dots{ position:absolute; left:0; right:0; bottom:12px; display:flex; justify-content:center; gap:8px; }
.hero-carousel .owl-dot span{ width:10px; height:10px; background:#d1d5db; border-radius:999px; display:block; }
.hero-carousel .owl-dot.active span{ background:var(--brand); }
@media (max-width:768px){
  .slide-caption h1, .slide-caption h2{ font-size:28px; }
}

/* ============ Hero (Global + Small + Duo) ============ */
.page-hero{
  position:relative; padding:110px 0 120px; color:#fff; text-align:center; overflow:hidden;
}
.page-hero .hero-inner{ position:relative; z-index:1; }
.page-hero h1{ color:#fff; text-shadow:0 2px 6px rgba(0,0,0,0.6); }
.page-hero p { color:#f3f4f6; text-shadow:0 2px 5px rgba(0,0,0,0.5); }

.page-hero.small{
  --hero: url('images/preventive-hero.jpg');
  position: relative;
  min-height: 260px;
  display:flex; align-items:center; justify-content:center;
  text-align:center; color:#fff;
  background: var(--hero) center 40% / cover no-repeat;
}
.page-hero.small::before{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,.35)),
    linear-gradient(rgba(37,99,235,.18),rgba(37,99,235,.18));
  mix-blend-mode: multiply;
}
.page-hero.small::after{
  content:""; position:absolute; inset:0;
  mask: linear-gradient(#0000, #000 15% 85%, #0000);
  -webkit-mask: linear-gradient(#0000, #000 15% 85%, #0000);
  background:#000; opacity:.25; pointer-events:none;
}
.page-hero.small .hero-inner{
  max-width:820px; padding:12px 18px;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(2px);
  border-radius:14px;
  display:inline-block;
}
.page-hero.small .eyebrow{ background:#fff; color:var(--brand); padding:4px 12px; border-radius:999px; font-weight:700; margin-bottom:8px; }

/* explicit typography (wins over earlier global rules) */
.page-hero.small h1{
  font-size: var(--h1);
  font-weight: 700;
  margin: 0 0 10px;
}
.page-hero.small p{
  font-size: var(--lead);
}
@media (max-width:768px){
  .page-hero.small{ min-height: 200px; background-position:center 35%; }
}

/* Duo hero */
.page-hero.small.duo{
  min-height: 320px;
  display: flex; align-items: center;
  text-align:left;
  background-size: cover; background-position: center 40%; background-repeat: no-repeat;
}
.page-hero.small.duo::before{ content:""; position:absolute; inset:0; background: rgba(37,99,235,0.25); }
.page-hero.small.duo .hero-inner{
  width:100%; max-width:1100px; margin:0 auto; padding:18px 20px;
  display:grid; grid-template-columns: 1.1fr .9fr; gap:28px; align-items:center;
}
.page-hero.small.duo .hero-copy{
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(2px);
  padding:12px 18px; border-radius:12px;
}
.hero-inset{
  margin:0; justify-self:end;
  background: rgba(255,255,255,.06);
  border-radius:16px; padding:8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.hero-inset img{ width: 340px; max-width: 100%; border-radius:10px; }
@media (max-width: 900px){
  .page-hero.small.duo .hero-inner{ grid-template-columns:1fr; gap:16px; }
  .hero-inset{ justify-self:center; }
}
@media (max-width: 640px){
  .hero-inset{ display:none; }
}

/* Make Services eyebrow always blue on white */
.page-hero .eyebrow {
  color: var(--brand) !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ============ Alternating Feature Sections ============ */
.section-feature{ padding:50px 0; background:#fff; }
.feature.alt{
  display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:center; margin-bottom:80px;
}
.feature.alt .media img{
  width:100%; height:380px; object-fit:cover; border-radius:12px; transition:transform .4s ease;
  box-shadow: var(--shadow);
}
.feature.alt .media img:hover{ transform:scale(1.03); }
.feature.alt .content.card{
  background:#fff; padding:32px; border-radius:16px; box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.feature.alt .label{
  display:inline-block; font-size:14px; font-weight:700; color:var(--brand);
  text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px;
}
.feature.alt h2{ font-size:var(--h2); margin-bottom:8px; }
.feature.alt .rule{ width:80px; height:3px; background:var(--brand); margin-bottom:16px; }
.feature.alt:nth-child(even) .media{ order:2; }
.feature.alt:nth-child(even) .content{ order:1; }
@media (max-width:992px){
  .feature.alt{ grid-template-columns:1fr; gap:28px; margin-bottom:64px; }
  .feature.alt .media img{ height:300px; }
}

/* ============ Projects Gallery ============ */
.projects{ padding:70px 0; background:#fff; text-align:center; }
.projects .section-title{ font-size:40px; margin-bottom:30px; font-weight:700; color:#111; }
.project-gallery{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:18px;
}
.project-photo{ border-radius:12px; overflow:hidden; box-shadow:0 6px 18px rgba(0,0,0,.08); background:#000; }
.project-photo img{ width:100%; height:420px; object-fit:cover; transition:transform .3s ease; opacity:.96; }
.project-photo:hover img{ transform:scale(1.04); opacity:1; }

/* ============ Partners ============ */
.partners{ padding:56px 0; background:#fff; text-align:center; }
.partners h2{ font-size:40px; margin-bottom:20px; }
.partners-logos{ display:flex; gap:36px; justify-content:center; align-items:center; flex-wrap:wrap; }
.partners-logos img{ height: 250px; transition: .2s; filter: grayscale(0); }
.partners-logos img:hover{ transform: translateY(-2px); }

/* ============ Footer ============ */
#fh5co-footer{
  background:#fafafa; border-top:1px solid #eee; padding:24px 0; text-align:center;
  color:#6b7280; font-size:14px;
}

/* ============ Common Section Helpers ============ */
.page-intro{ padding: 32px 0 8px; }
.page-intro .container.narrow{ max-width: 800px; }
.page-intro p{ color: var(--muted); }
.section-title{
  font-size: var(--h2);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 20px;
}

/* Simple grid cards */
.task-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px; margin-top:12px; }
.task-card{
  background:#fff; border-radius:14px; padding:22px 20px; text-align:center;
  box-shadow:0 6px 20px rgba(0,0,0,.08); transition:.2s ease;
}
.task-card:hover{ transform:translateY(-6px); box-shadow:0 12px 28px rgba(0,0,0,.12); }
.task-card h3{ margin:6px 0 6px; font-size:18px; font-weight:700; color:#111; }
.task-card p{ margin:0; color:#555; }

/* Lightbox max size */
@media (min-width: 1024px){
  .lb-image{ max-width: 88vw !important; max-height: 88vh !important; }
}

/* Kill the giant offcanvas ghost div */
#fh5co-offcanvas { display:none !important; height:0 !important; margin:0 !important; padding:0 !important; overflow:hidden !important; }

/* ============ CTA Band ============ */
.cta-band { background:#f8fafc; padding:40px 0; }
.cta-band .band-inner{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  background:#fff; border-radius:16px; padding:22px 24px; box-shadow: var(--shadow);
}
.cta-band .muted{ color: var(--muted); margin:6px 0 0; }
@media (max-width: 768px){ .cta-band .band-inner{ flex-direction:column; text-align:center; } }

/* ============ Calibration page bits ============ */
.tasks-calibration{ margin-top:20px; }
.tasks-calibration .task-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; margin-top:20px; }
@media (max-width:900px){ .tasks-calibration .task-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .tasks-calibration .task-grid{ grid-template-columns: 1fr; } }
.tasks-calibration .task-card{ background:#fff; border-radius:16px; padding:22px 20px; text-align:center; box-shadow: var(--shadow); }
.tasks-calibration .task-card i{
  font-size:20px; color:#fff; background: var(--brand);
  width:48px; height:48px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; margin:0 auto 14px; box-shadow:0 3px 8px rgba(37,99,235,.25);
}

/* PM page: Covers grid + Benefits */
.covers{ padding:36px 0 8px; }
.covers .task-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:28px; margin-top:24px;
  max-width:800px; margin-left:auto; margin-right:auto;
}
.covers .task-card i{
  font-size:20px; color:#fff; background:var(--brand);
  width:48px; height:48px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; margin:0 auto 14px; box-shadow:0 3px 8px rgba(37,99,235,.25);
}

.benefits{ padding:36px 0 12px; }
.benefit-card{
  display:grid; grid-template-columns: 2fr 1fr; gap:24px;
  background:#fff; border-radius:16px; box-shadow: var(--shadow); padding:24px;
}
.benefit-list{ margin:12px 0 0; padding-left:18px; }
.benefit-list li{ margin:6px 0; color:#374151; }
.benefit-side .mini{
  background:#f9fafb; border:1px solid #eef2f7; border-radius:12px; padding:14px 16px; margin-bottom:12px;
}
@media (max-width:992px){ .benefit-card{ grid-template-columns:1fr; } }
.list-check{ margin:0 0 14px; padding-left:0; list-style:none; }
.list-check li{ position:relative; padding-left:28px; margin:8px 0; color:#374151; }
.list-check li::before{ content:"✔"; position:absolute; left:0; top:0; line-height:1.2; font-weight:700; color:var(--brand); }

/* ============ Steps / FAQ spacing ============ */
.steps, .faq { padding: 36px 0 8px; }
.faq .task-card { padding:20px 18px; }
.benefit-list li i { margin-right:8px; color: var(--brand); }

/* ============ Horizontal Stepper (modular) ============ */
.flow-stepper{ padding:48px 0 16px; margin:20px 0 64px; }

/* shared base */
.stepper{
  display:grid;
  gap:24px;
  position:relative;
  max-width:980px;
  margin:24px auto 0;
}

/* the connecting line (bubble is 64px → center is 32px) */
.stepper::before{
  content:"";
  position:absolute;
  top:32px;
  height:2px;
  background:#e5e7eb;
  z-index:0;
  left:0; right:0; /* will be narrowed by the modifiers below */
}

/* 3-step variant (Calibration) */
.stepper--3{ grid-template-columns: repeat(3, 1fr); }
.stepper--3::before{ left:16.6667%; right:16.6667%; }

/* 4-step variant (Repair) */
.stepper--4{ grid-template-columns: repeat(4, 1fr); }
.stepper--4::before{ left:12.5%; right:12.5%; }

/* cells */
.step{ text-align:center; padding:0 10px; }
.bubble{
  position:relative; z-index:1; margin:0 auto 14px;
  width:64px; height:64px; border-radius:50%;
  background:var(--brand); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 3px 8px rgba(37,99,235,.25);
}
.bubble i{ font-size:22px; }
.step h4{ margin:6px 0 6px; font-size:18px; font-weight:700; }
.step p{ margin:0; color:var(--muted); font-size:15px; }

/* responsive */
@media (max-width:700px){
  .stepper{ grid-template-columns:1fr; }
  .stepper::before{ display:none; }
}


/* ============ Repair page: Capabilities grid badges ============ */
.tasks .task-card i{
  font-size:20px; color:#fff; background:var(--brand);
  width:48px; height:48px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; margin:0 auto 14px; box-shadow:0 3px 8px rgba(37,99,235,.25);
}

/* ============ Misc ============ */
.page-image{ padding:44px 0 64px; background:#fff; }
.page-image .wide-img{ border-radius:12px; box-shadow: var(--shadow); max-height:520px; object-fit:cover; width:100%; }

.bizsafe-logo {
  display: block;
  margin: 8px auto 0; /* top spacing + center horizontally */
  max-height: 100px;   /* keep it responsive */
}



/* =========================
   Liveliness / About blocks
   ========================= */

.about-section { padding: 64px 0; position: relative; }
.about-section--contrast {
  /* keep one definition only */
  background: repeating-linear-gradient(
    135deg,
    #f8fafc, #f8fafc 12px,
    #ffffff 12px, #ffffff 24px
  );
}

/* Section titles with accent underline */
.section-title {
  font-size: var(--h2);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--brand);
  border-radius: 999px;
  margin: 10px auto 0;
}

/* Plain card */
.card-plain {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-plain:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,.06);
  border-color: rgba(37,99,235,.25);
}

/* Fancy bullets */
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding-left: 28px;
  line-height: 1.7;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0 30%, transparent 31%), var(--brand);
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

/* Subtle grids */
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(260px,1fr)); gap: 22px; }
.about-grid.thirds { grid-template-columns: repeat(3, minmax(220px, 1fr)); }

.principle { position: relative; padding: 16px 14px; border-radius: var(--radius); }
.principle::after {
  content: "";
  position: absolute; right: 12px; top: 12px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--brand); opacity: .3;
}

/* Stats */
.stats-row {
  display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 20px; justify-items: center; align-items: stretch; margin: 4px 0 26px;
}
.stat-item {
  text-align: center;
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 999px;
  padding: 16px 22px;
  transition: transform .18s ease, background .18s ease;
}
.stat-item:hover { transform: translateY(-2px); background: rgba(37,99,235,.09); }
.stat { font-size: 28px; font-weight: 800; line-height: 1; color: var(--brand); }
.stat + p { margin-top: 6px; color: var(--muted); }

/* Micro spacing */
.card-plain h4, .principle h4 { margin: 0 0 6px; }
.principle p { margin: 0; }
.how-we-work { margin-top: 8px; }

/* Mobile tweaks */
@media (max-width: 768px) {
  .about-grid, .about-grid.thirds { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* H4 hover underline (single definition) */
h4 { position: relative; display: inline-block; padding-bottom: 4px; }
h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--brand); transition: width .25s ease;
}
h4:hover::after { width: 100%; }

/* Reveal on scroll */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.active { animation: fadeInUp .6s ease-out forwards; }

/* Image helpers */
.model-card img {
  width: 100%; height: 160px; object-fit: cover; border-radius: 8px;
}

/* BizSAFE logo sizing */
.bizsafe-logo { display:block; margin: 8px auto 0; max-height: 100px; }

/* Gun page spacing */
.gun-support-section { padding-top: 20px; }

/* =========================
   Contact page hero (keep)
   ========================= */
.contact-hero {
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  padding: 60px 0 40px;
}
.contact-hero h1,
.contact-hero p { color: #fff; }

/* =========================
   Nav active states (global)
   ========================= */
#fh5co-main-nav a,
#fh5co-main-nav a:visited { color:#111827; text-decoration:none; }

#fh5co-main-nav a:hover { color: var(--brand); }

#fh5co-main-nav li.active > a,
#fh5co-main-nav li.has-sub.active > .drop-down-menu > a {
  color: var(--brand);
  font-weight: 600;
}

#fh5co-main-nav .dropdown-menu-wrap li.active > a {
  color: var(--brand);
  font-weight: 600;
}

.partners-logos .partner{
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.partners-logos .partner figcaption{
  margin-top:8px; font-size:14px; color:var(--muted);
}

.support-img {
  max-width: 400px;   /* adjust this until the cap is visible */
  height: auto;       /* keeps proportions */
  object-fit: contain;
  margin-left: 60px;
}

/* ======== Mobile header + hamburger ======== */
.nav-toggle{
  display:none;           /* hidden on desktop */
  width:40px; height:40px;
  border:0; background:#fff; padding:8px; border-radius:8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  cursor:pointer;
}
.nav-toggle span{
  display:block; height:2px; margin:5px 0; background:#111827;
  transition: transform .2s ease, opacity .2s ease, width .2s ease;
}
/* X state */
.nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity:0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile layout */
@media (max-width:768px){
  /* show button, shrink logo */
  .nav-toggle{ display:block; }
  #fh5co-logo img{ max-height:56px; height:auto; width:auto; }

  /* slide-in panel nav */
  #fh5co-main-nav{
    position: fixed; top:0; right:-280px;   /* hidden off-canvas */
    width:260px; height:100vh; z-index:1100;
    background:#fff; box-shadow: -8px 0 30px rgba(0,0,0,.12);
    padding:80px 16px 16px; transition:right .25s ease;
  }
  #fh5co-main-nav.is-open{ right:0; }

  /* stack links */
  #fh5co-main-nav ul{ flex-direction:column; align-items:flex-start; gap:8px; }
  #fh5co-main-nav a{ padding:10px 4px; font-size:18px; }

  /* dropdowns become accordions */
  #fh5co-main-nav .dropdown-menu-wrap{
    position: static; transform:none; width:100%;
    margin: 4px 0 8px; padding:6px 0;
    border:0; box-shadow:none; opacity:1; visibility:visible;
    display:none;             /* start closed; JS toggles this */
  }
  #fh5co-main-nav .dropdown-menu-wrap li a{
    padding:8px 6px; width:100%; text-align:left;
  }

  }

@media (max-width:768px){
  #fh5co-main-nav{ pointer-events:auto; }
}

@media (max-width:768px){
  /* keep the dim background visual, but don't capture taps */
  body.nav-open::after{
    pointer-events: none;
  }
  /* ensure the panel wins all hit-tests */
  #fh5co-main-nav{
    z-index: 1100;      /* higher than overlay */
    pointer-events: auto;
  }
}
@media (max-width:768px){
  /* visual dim only; allow clicks to pass through */
  body.nav-open::after{ pointer-events: none; }

  /* the slide-in panel must be on top and clickable */
  #fh5co-main-nav{
    z-index:1100;
    pointer-events:auto;
  }
}
/* --- Kill accidental horizontal scrolling on mobile --- */
html, body, #wrap, #fh5co-page {
  max-width: 100%;
  overflow-x: hidden;
}

/* Safety: never let sections push wider than the viewport */
section, header, footer, .container {
  overflow-x: hidden;
}

/* If any image or element has a fixed margin that can push it sideways,
   zero it out on small screens (harmless if not present). */
@media (max-width:768px){
  .support-img { margin-left: 0; max-width: 100%; height: auto; }
}

/* === FINAL FIX: remove any inner scrollbar from the header on desktop === */
@media (min-width: 769px) {
  #fh5co-header {
    position: sticky;
    top: 0;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  #fh5co-header .container,
  #fh5co-main-nav,
  #fh5co-main-nav ul {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  /* revert nav layout to normal desktop flex alignment */
  #fh5co-header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    padding: 16px 20px !important;
  }

  /* make sure hamburger is hidden on desktop */
  .nav-toggle {
    display: none !important;
  }

  /* reset any mobile transition states */
  #fh5co-main-nav {
    position: static !important;
    right: auto !important;
    left: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

