/*
Theme Name: Safety Direct America
Theme URI: https://safetydirectamerica.com
Author: Safety Direct America
Description: Safety Direct America Homepage Theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: safetydirectamerica
*/

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary:        #1b3a6b;
  --accent:         #0060bf;
  --secondary:      #eaf1fb;
  --bg:             #f8f9fb;
  --fg:             #1a2332;
  --muted-fg:       #5a6a7e;
  --border:         rgba(0, 0, 0, 0.1);
  --topbar-bg:      #122a52;
  --footer-bg:      #0f2040;
  --link-color:     #557fae;
  --yellow:         #fbbf24;
  --red-yt:         #ff0000;
  --white:          #ffffff;
  --gray-100:       #f3f4f6;
  --gray-200:       #e5e7eb;
  --gray-300:       #d1d5db;
  --gray-400:       #9ca3af;
  --gray-500:       #6b7280;
  --gray-600:       #4b5563;
  --gray-700:       #374151;

  --font-sans:  'Inter', sans-serif;
  --font-serif: 'Merriweather', serif;

  --max-w:        80rem;   /* 1280px — max-w-7xl */
  --max-w-narrow: 64rem;   /* 1024px — max-w-5xl */
  --px:           1rem;

  --shadow-sm:  0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);

  --transition: 150ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Old style.css sets body{font-size:1.3em} assuming html=62.5% (10px).
     Since we now set html=16px, 1.3em would compute to 20.8px — too large.
     Lock body at 1rem (16px) to normalise all pages. */
  font-size: 1rem;
}

img { max-width: 100%; height: auto; }

a { text-decoration: none; color: inherit; }

/* Safety net: legacy <div align="center"> wrappers inside WYSIWYG content
   inherit body font-size. Pin to 1rem so they match <p> elements. */
.fc-wysiwyg div,
.inner-page-content div {
  font-size: 1rem;
}

ul, ol { list-style: none; }

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

iframe { border: 0; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.serif  { font-family: var(--font-serif); }
.link   { color: var(--link-color); text-decoration: underline; }
.link:hover { opacity: .8; }
.text--bold    { font-weight: 700; }
.text--primary { color: var(--primary); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.container-narrow {
  max-width: var(--max-w-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

/* ============================================================
   ICONS
   ============================================================ */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon--xs  { width: .75rem;  height: .75rem;  }
.icon--sm  { width: .9375rem; height: .9375rem; }
.icon--md  { width: 1.25rem; height: 1.25rem; }
.icon--hamburger { width: 1.375rem; height: 1.375rem; }

/* Header Logo */
img.header-logo {
  max-height: 75px !important;
  width: auto !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 10px 20px;
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.429;
  text-align: center;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
/* Kill underline on all button states — global */
.btn:hover, .btn:focus, .btn:active, a.btn:hover, a.btn:focus {
  text-decoration: none !important;
}
/* Accent (blue solid) */
.btn--accent { background-color: var(--accent); color: #ffffff !important; box-shadow: var(--shadow-lg); }
.btn--accent:hover { background-color: #004fa0; color: #ffffff !important; box-shadow: var(--shadow-xl); }
/* Buttons embedded inside ACF wysiwyg / inner-page content — force block display & centering */
.inner-page-content .btn--accent,
.fc-wysiwyg .btn--accent {
  display: block;
  width: fit-content;
  margin: 1.25rem auto;
  white-space: normal;
  text-align: center;
}
/* Primary (navy) */
.btn--primary { background-color: var(--primary); color: var(--white); }
.btn--primary:hover { background-color: var(--accent); color: var(--white); }
/* Ghost (on dark bg) */
.btn--ghost { background-color: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.30); color: var(--white); backdrop-filter: blur(4px); }
.btn--ghost:hover { background-color: rgba(255,255,255,.25); border-color: rgba(255,255,255,.60); color: var(--white); }
/* Outline Primary — fills navy, text flips white */
.btn--outline-primary { background-color: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn--outline-primary:hover { background-color: var(--primary); color: var(--white); }
/* Outline Accent — fills accent blue, text flips white */
.btn--outline-accent { background-color: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn--outline-accent:hover { background-color: var(--accent); color: var(--white); }
.btn--block { width: 100%; display: flex; }

/* ============================================================
   VIDEO EMBED (responsive iframe)
   ============================================================ */
.video-embed { position: relative; width: 100%; padding-bottom: 56.25%; overflow: hidden; border-radius: 2px; box-shadow: var(--shadow-lg); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-embed--portrait { padding-bottom: 177.78%; }

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */
.section--white        { background-color: var(--white); }
.section--secondary    { background-color: var(--secondary); }
.section--bg           { background-color: var(--bg); }
.section--bordered     { border-bottom: 1px solid var(--border); }
.section--bordered-top { border-top: 1px solid var(--border); }

.section-heading {
  font-family: var(--font-serif) !important;
  font-size: 2.0rem;
  font-weight: 700 !important;
  color: var(--primary) !important;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-align: center;
}
.section-heading--accent  { color: var(--accent); }
.section-heading--center  { text-align: center; }

.bullet-list {
  list-style: disc;
  padding-left: 1.25rem;
  text-align: left;
  max-width: 48rem;
  margin: 0 auto;
}
.bullet-list li {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: .5rem;
}

.banner-block {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.banner-block p { font-size: .875rem; color: var(--fg); line-height: 1.7; }
.banner-link:hover img { opacity: .8; }
.banner-link img { transition: opacity var(--transition); }

/* ============================================================
   SITE HEADER
   ============================================================ */
.figma-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-md);
}

/* — Top bar — */
.top-bar {
  background-color: var(--topbar-bg);
  color: var(--white);
  font-size: .75rem;
  padding: .375rem 0;
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;  /* mobile: center (just phone) */
  gap: .5rem;
  flex-wrap: wrap;
}
.top-bar__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.top-bar__email { display: none; } /* hidden on mobile */
.top-bar__right { display: none; } /* hidden on mobile */

.top-bar__link {
  display: flex;
  align-items: center;
  gap: .375rem;
  color: var(--white);
  transition: color var(--transition);
}
.top-bar__link:hover { color: var(--yellow); }

.top-bar__icon-link {
  padding: .25rem .75rem;
  color: #93c5fd;
}
.top-bar__cart { position: relative; }
.cart-badge {
  position: absolute;
  top: -.125rem;
  left: 1.25rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--yellow);
  color: #0f2040;
  font-size: .625rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* — Logo row — */
.logo-row {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: .75rem 0;
}
.logo-row__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Logo link: overflow:hidden clips the img; min-width:0 allows flex shrinking */
.logo-link { overflow: hidden; min-width: 0; flex: 1 1 auto; }
/* Logo image: constrained to its container; height fixed so it scales naturally */
.site-logo { height: 48px; width: auto; max-width: 100%; display: block; }

.logo-row__actions { display: none; } /* hidden on mobile, shown on desktop */

.header-phone { text-align: right; }
.header-phone__label { font-size: .75rem; color: var(--muted-fg); }
.header-phone__number {
  display: flex;
  align-items: center;
  gap: .375rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.125rem;
  transition: color var(--transition);
}
.header-phone__number:hover { color: var(--primary); }

/* — Hamburger — keep flex-shrink:0 so it never gets squeezed off-screen */
.hamburger-btn {
  color: var(--primary);
  padding: .25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hamburger-btn:hover { opacity: .7; }

/* — Desktop main nav — */
.main-nav {
  background-color: var(--primary);
  display: none; /* hidden on mobile */
}
.nav-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: .125rem;
  padding: .625rem .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--yellow); }
.nav-link--home { padding: .625rem .75rem; }
.nav-link--home svg { vertical-align: middle; }
.icon--chevron {
  width: .6875rem;
  height: .6875rem;
  margin-top: .125rem;
  opacity: .7;
  transition: transform var(--transition);
}
.nav-item--has-dropdown:hover .icon--chevron { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 15rem;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  z-index: 50;
  padding: .25rem 0;
  border-radius: 0 0 2px 2px;
}
.nav-item--has-dropdown:hover .nav-dropdown { display: block; }

.nav-dropdown__link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  font-size: .875rem;
  color: var(--gray-700);
  transition: background-color var(--transition), color var(--transition);
}
.nav-dropdown__link:hover {
  background-color: var(--secondary);
  color: var(--accent);
}
.nav-dropdown__link .icon--xs { color: var(--accent); opacity: .6; }
.nav-link--home svg { vertical-align: middle; }

/* ── Active / current page highlight ──────────────────── */
.nav-list > li.current-menu-item > a,
.nav-list > li.current-menu-ancestor > a,
.nav-list > li.current-page-ancestor > a {
  color: var(--yellow) !important;
}

/* ── WP nav_menu class bridge ──────────────────────────
   wp_nav_menu() outputs .menu-item on <li> and bare <a> children.
   We bridge those to look exactly like our custom .nav-item / .nav-link.
   ─────────────────────────────────────────────────────── */
.nav-list > li.menu-item {
  position: relative;
}
.nav-list > li.menu-item > a {
  display: flex;
  align-items: center;
  gap: .125rem;
  padding: .625rem .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--white) !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color var(--transition);
}
.nav-list > li.menu-item > a:hover {
  color: var(--yellow) !important;
}

/* ── CSS-only dropdown for WP sub-menu ─────────────────
   Shown on parent hover. Styled to match .nav-dropdown.
   ─────────────────────────────────────────────────────── */
/* Position parent so absolute submenu anchors correctly */
.nav-list > li.menu-item { position: relative; }

.nav-list > li.menu-item > ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 200;
  padding: .375rem 0;
  border-radius: 0 0 4px 4px;
  list-style: none;
  margin: 0;
}
.nav-list > li.menu-item:hover > ul.sub-menu { display: block; }
.nav-list > li.menu-item > ul.sub-menu li.menu-item {
  display: block;
  position: relative;
}
.nav-list > li.menu-item > ul.sub-menu li.menu-item a {
  display: block;
  padding: .6rem 1.25rem;
  font-size: .85rem;
  font-weight: 400;
  color: var(--gray-700) !important;
  white-space: normal;
  transition: background-color var(--transition), color var(--transition);
  text-decoration: none !important;
  border-left: 3px solid transparent;
}
.nav-list > li.menu-item > ul.sub-menu li.menu-item a:hover {
  background-color: var(--secondary);
  color: var(--accent) !important;
  border-left-color: var(--accent);
}

/* Chevron indicator on items with children */
.nav-list > li.menu-item.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: .3rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,.7);
  transition: transform var(--transition);
}
.nav-list > li.menu-item.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* ── WP nav_menu sub-menu (menu-item-has-children) ────────────
   wp_nav_menu with depth=2 generates .menu-item-has-children
   with a nested .sub-menu ul. These rules make it appear on hover.
   ─────────────────────────────────────────────────────────────── */
.nav-list > li.menu-item { position: relative; }

.nav-list > li.menu-item-has-children > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 200;
  padding: .375rem 0;
  border-radius: 0 0 4px 4px;
  list-style: none;
  margin: 0;
}
.nav-list > li.menu-item-has-children:hover > .sub-menu {
  display: block;
}
.nav-list > li.menu-item-has-children > .sub-menu > li { position: relative; display: block; }
.nav-list > li.menu-item-has-children > .sub-menu > li > a {
  display: block;
  padding: .6rem 1.25rem;
  font-size: .85rem;
  font-weight: 400;
  color: var(--gray-700) !important;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
  text-decoration: none !important;
  border-left: 3px solid transparent;
}
.nav-list > li.menu-item-has-children > .sub-menu > li > a:hover {
  background-color: var(--secondary);
  color: var(--accent) !important;
  border-left-color: var(--accent);
}

/* ── Level 3 (tertiary) flyout sub-menu ────────────────────────
   Opens to the RIGHT of the level-2 item on hover.
   ─────────────────────────────────────────────────────────────── */

/* Arrow indicator on level-2 items that have level-3 children */
.nav-list > li.menu-item-has-children > .sub-menu > li.menu-item-has-children > a::after {
  content: '›';
  float: right;
  margin-left: .5rem;
  opacity: .6;
  font-size: 1rem;
  line-height: 1;
}

/* The level-3 sub-menu panel */
.nav-list > li.menu-item-has-children > .sub-menu > li.menu-item-has-children > .sub-menu {
  display: none;
  position: absolute;
  top: -3px;          /* align with parent item's top border */
  left: 100%;
  min-width: 16rem;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--accent);
  box-shadow: 4px 8px 24px rgba(0,0,0,.15);
  z-index: 300;
  padding: .375rem 0;
  border-radius: 0 4px 4px 4px;
  list-style: none;
  margin: 0;
}

/* Show on hover of the level-2 item */
.nav-list > li.menu-item-has-children > .sub-menu > li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* Level-3 link styles — match level-2 */
.nav-list > li.menu-item-has-children > .sub-menu > li.menu-item-has-children > .sub-menu > li { display: block; }
.nav-list > li.menu-item-has-children > .sub-menu > li.menu-item-has-children > .sub-menu > li > a {
  display: block;
  padding: .6rem 1.25rem;
  font-size: .85rem;
  font-weight: 400;
  color: var(--gray-700) !important;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
  text-decoration: none !important;
  border-left: 3px solid transparent;
}
.nav-list > li.menu-item-has-children > .sub-menu > li.menu-item-has-children > .sub-menu > li > a:hover {
  background-color: var(--secondary);
  color: var(--accent) !important;
  border-left-color: var(--accent);
}


/* Legacy custom-class nav items (homepage hardcoded nav) */
.icon--chevron {
  width: .6875rem;
  height: .6875rem;
  margin-top: .125rem;
  opacity: .7;
  transition: transform var(--transition);
}
.nav-item--has-dropdown:hover .icon--chevron { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 15rem;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  z-index: 50;
  padding: .25rem 0;
  border-radius: 0 0 2px 2px;
}
.nav-item--has-dropdown:hover .nav-dropdown { display: block; }

/* ── Homepage hardcoded nav — .nav-item sub-menu ───────
   header-home.php uses .nav-item (not .menu-item), so we
   need separate rules to hide/show .sub-menu on hover.
   ─────────────────────────────────────────────────────── */
.nav-list > li.nav-item { position: relative; }

.nav-list > li.nav-item > ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 200;
  padding: .375rem 0;
  border-radius: 0 0 4px 4px;
  list-style: none;
  margin: 0;
}
.nav-list > li.nav-item:hover > ul.sub-menu {
  display: block;
}
.nav-list > li.nav-item > ul.sub-menu li {
  display: block;
  position: relative;
}
.nav-list > li.nav-item > ul.sub-menu li a {
  display: block;
  padding: .6rem 1.25rem;
  font-size: .85rem;
  font-weight: 400;
  color: var(--gray-700) !important;
  white-space: normal;
  transition: background-color var(--transition), color var(--transition);
  text-decoration: none !important;
  border-left: 3px solid transparent;
}
.nav-list > li.nav-item > ul.sub-menu li a:hover {
  background-color: var(--secondary);
  color: var(--accent) !important;
  border-left-color: var(--accent);
}

.nav-dropdown__link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  font-size: .875rem;
  color: var(--gray-700);
  transition: background-color var(--transition), color var(--transition);
}
.nav-dropdown__link:hover {
  background-color: var(--secondary);
  color: var(--accent);
}
.nav-dropdown__link .icon--xs { color: var(--accent); opacity: .6; }

/* — Mobile nav — */
.mobile-nav {
  display: none;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  max-height: 80vh;
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }

.mobile-nav__link {
  display: block;
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: background-color var(--transition), color var(--transition);
}
.mobile-nav__link:hover {
  background-color: var(--secondary);
  color: var(--accent);
}
.mobile-nav__link--icon {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.mobile-nav__divider {
  border-top: 2px solid var(--gray-300);
  margin-top: .5rem;
  padding-top: .5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #1f2937;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(27,58,107,.95),
    rgba(27,58,107,.80),
    rgba(27,58,107,.40)
  );
}
.hero__inner {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero__content { /* full width on mobile */ }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background-color: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  color: var(--white);
  font-size: .75rem;
  font-weight: 500;
  padding: .375rem .75rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}
.hero__badge .icon--sm { color: var(--yellow); }

.hero__title {
  font-family: var(--font-serif) !important;
  font-size: 1.875rem !important;  /* mobile-first — 768px+ restores 3rem */
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  margin-bottom: 1.5rem;
}

.hero__desc {
  color: #dbeafe !important;
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero__ctas {
}

.hero__ctas {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.hero__ctas .btn--ghost {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* Hero CTAs — kill underline on hover, use bg transitions only */
.hero__ctas a.btn,
.hero__ctas a.btn:hover,
.hero__ctas a.btn:focus,
.hero__ctas a.btn:active {
  text-decoration: none !important;
}
.hero__ctas a.btn--accent:hover {
  background-color: #004fa0 !important;
  color: #ffffff !important;
}
.hero__ctas a.btn--ghost:hover {
  background-color: rgba(255,255,255,.25) !important;
  border-color: rgba(255,255,255,.60) !important;
  color: #ffffff !important;
}
/* Hero card buttons — same treatment */
.hero__card-btn,
.hero__card-btn:hover,
.hero__card-btn:focus {
  text-decoration: none !important;
}

/* Hero info card — hidden on mobile */
.hero__card { display: none; }

.hero__card-title {
  font-family: var(--font-serif) !important;
  color: #1b3a6b !important;
  font-weight: 700 !important;
  font-size: 1.125rem;
  line-height: 1.556;
  margin-bottom: 1rem;
}
.hero__card-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.hero__card-item {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: var(--fg);
}
.hero__card-item { gap: 10px; padding: 12px 0 0; }
.hero__card-item:first-child { padding-top: 0; }
.hero__card-item .icon--sm { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.hero__card-item span { font-size: 0.875rem; line-height: 1.429; color: var(--fg); }

.hero__card-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.hero__card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 44px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.hero__card-btn:hover { opacity: 0.9; }
/* Call button — accent blue (matches header Contact Us), white text — easy to read */
.hero__card-btn--solid {
  background-color: var(--accent);  /* #0060BF */
  color: #ffffff;
  border: none;
}
.hero__card-btn--solid:hover {
  background-color: #004fa0;
  color: #ffffff;
  opacity: 1;
}
/* Email Us button — navy fill, white text — solid and legible */
.hero__card-btn--outline {
  background-color: var(--primary);  /* #1B3A6B */
  color: #ffffff;
  border: none;
  height: 46px;
}
.hero__card-btn--outline:hover {
  background-color: #142d56;
  color: #ffffff;
  opacity: 1;
}

/* ============================================================
   INTRO SECTION
   ============================================================ */
/* Match the 48px top/bottom padding used by all other homepage sections */
.intro-section { padding: 48px 0; border-bottom: 1px solid var(--border); }

.intro-section__body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}
.intro-section__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Intro paragraphs — Figma 3:167: Inter Regular 14px / 22.75px / #1A2332 / left */
.intro-section__text p {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #1A2332 !important;
  line-height: 22.75px !important;
  text-align: left;
  margin-bottom: 1rem;
}
/* Links: #557FAE blue, no underline — per Figma ts1 style */
.intro-section__text a { color: #557FAE !important; text-decoration: none !important; }
.intro-section__text a:hover { text-decoration: underline !important; }
/* Semi-bold paragraph — Figma node 3:169: Inter SemiBold 600 / #1B3A6B */
.intro-section__text p.intro-semibold {
  font-weight: 600 !important;
  color: #1B3A6B !important;
  font-size: 14px !important;
  line-height: 20px !important;
}
/* Bold spans within intro text */
.intro-section__text strong,
.intro-section__text p strong { color: #1A2332 !important; font-weight: 700; }
.intro-section__video {
  width: 100%;
  max-width: 13.6rem;
  margin: 0 auto;
  flex-shrink: 0;
}

/* ── Publications Grid ("As Featured In") ─────────────────────────── */
.publications-grid {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.publications-grid__label {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A9BB0 !important;
  margin-bottom: 1rem !important;
  line-height: 1 !important;
}
.publications-grid__items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.publications-grid__item {
  flex: 1 1 160px;
  max-width: 240px;
}
.publications-grid__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-decoration: none !important;
  color: #1A2332 !important;
  transition: opacity 0.2s ease;
}
.publications-grid__link:hover { opacity: 0.75; }
.publications-grid__logo {
  display: block;
  max-width: 160px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s ease;
}
.publications-grid__link:hover .publications-grid__logo {
  filter: grayscale(0%);
}
.publications-grid__title {
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #557FAE !important;
  line-height: 1.4 !important;
}

/* ============================================================
   EXPERT POSITIONING SECTION
   ============================================================ */

.expert-section { padding: 48px 0; border-bottom: 1px solid var(--border); }

/* Expert heading override: Merriweather Bold 30px #1B3A6B centered — Figma style_UPU99L */
.expert-section__heading {
  font-family: var(--font-serif) !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #1B3A6B !important;
  text-align: center;
  line-height: 37.5px;
  max-width: 1248px;
  margin: 0 auto 1.5rem;
}

.expert-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.expert-section__body {
  max-width: 896px;
  margin: 0 auto 1rem;
  text-align: center;
}
/* Expert body paragraphs — Figma 3:182: Inter Regular 14px / 22.75px / #1A2332 / center */
.expert-section__body > p,
.expert-section__body p {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #1A2332 !important;
  line-height: 22.75px !important;
  text-align: center !important;
  margin-bottom: .75rem;
}
/* Expert bullet list — Figma 3:184-190: Inter Regular 14px / 22.75px / #1A2332 / left */
.expert-section__body ul {
  text-align: left !important;
  max-width: 768px;
  margin: 0 auto .75rem;
  padding-left: 1.5rem;
  list-style: disc;
}
.expert-section__body ul li {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #1A2332 !important;
  line-height: 22.75px !important;
  margin-bottom: .25rem;
}
/* Links inside expert body: #557FAE, no underline */
.expert-section__body a,
.expert-section a { color: #557FAE !important; text-decoration: none !important; }
.expert-section__body a:hover,
.expert-section a:hover { text-decoration: underline !important; }

/* Image+caption items — Figma 3:193/198: 300x75px scaleMode FIT */
.expert-section__item {
  max-width: 896px;
  margin: 0 auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.expert-section__img-link { display: block; }
.expert-section__img {
  width: 300px;
  height: 75px;
  object-fit: contain;
  border-radius: 4px;
}
/* Caption: Inter 14px #1A2332, centered — Figma 3:194/199 */
.expert-section__caption {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #1A2332 !important;
  text-align: center;
  line-height: 22.75px;
  max-width: 100%;
}
.expert-section__link { color: #557FAE !important; text-decoration: none !important; }
.expert-section__link:hover { text-decoration: underline !important; }

/* "We supply..." paragraph — appears after images, same styling as body */
.expert-section__body--after {
  max-width: 896px;
  margin: 1rem auto 0;
  text-align: center;
}
.expert-section__body--after p {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #1A2332 !important;
  line-height: 22.75px !important;
  text-align: center !important;
  margin-bottom: 0;
}


/* ============================================================
   AS SEEN ON TV SECTION
   ============================================================ */
.tv-section { padding: 48px 0; border-bottom: 1px solid var(--border); }

/* TV heading inherits standard .section-heading — same as all other H2s */

.tv-section__body {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.tv-section__body > p,
.tv-section__body p {
  font-size: 0.9375rem;
  color: var(--fg);
  line-height: 1.7;
}
/* TV section links: #557FAE, no underline */
.tv-section__body a { color: #557FAE !important; text-decoration: none !important; }
.tv-section__body a:hover { text-decoration: underline !important; }
/* TV videos: 25.6rem (−20% from 32rem) */
.tv-section__video-wrap {
  width: 100%;
  max-width: 25.6rem;
}

/* ============================================================
   THREE SERVICE SECTIONS — Figma node 3:216
   Container: 1024px | gap: 24px | each col: 484px
   Section padding: 48px 0
   ============================================================ */
.services-section {
  padding: 48px 0;
  background-color: #F8F9FB;
}

/* Figma container: width 1024px, padding 0 16px */
.services-section .container-narrow {
  max-width: 1024px;
}

.service-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 48px;
}
.service-block:last-child { margin-bottom: 0; }

.service-block__img-link { display: block; }

/* Image: object-fit contain, bg #F9FAFB, border-radius 6px, box-shadow per Figma effect_MIM7KE */
.service-block__img {
  width: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0px 4px 6px -4px rgba(0,0,0,0.1), 0px 10px 15px -3px rgba(0,0,0,0.1);
  background-color: #F9FAFB;
  display: block;
}

/* H3: Merriweather Bold 24px #1B3A6B lineHeight 32px left-aligned — Figma 3:225 */
.service-block__title {
  font-family: var(--font-serif) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #1B3A6B !important;
  line-height: 32px !important;
  text-align: left !important;
  margin: 0 !important;
}

/* Service block desc — 14px to match other body paragraphs on page */
.service-block__desc,
.service-block__content {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #1A2332 !important;
  line-height: 22.75px !important;
  text-align: left !important;
  margin-top: 16px !important;
  padding-top: 0;
}
/* Also cover if a p tag does exist */
.service-block__desc p,
.service-block__content p {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #1A2332 !important;
  line-height: 22.75px !important;
  text-align: left !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

/* ============================================================
   SOLUTION SUMMARY SECTION
   ============================================================ */
.summary-section { padding: 3rem 0; }


.summary-section__body {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.summary-section__body > p {
  font-size: .875rem;
  color: var(--fg);
  line-height: 1.7;
}
/* Links in summary paragraphs: #557FAE, no underline — excludes .btn elements */
.summary-section__body a:not(.btn),
.summary-section__body p a:not(.btn) {
  color: #557FAE !important;
  text-decoration: none !important;
}
.summary-section__body a:not(.btn):hover,
.summary-section__body p a:not(.btn):hover {
  text-decoration: underline !important;
}
/* CTA buttons inside summary — restore correct colors, kill underline */
.summary-ctas a.btn,
.summary-ctas a.btn:hover,
.summary-ctas a.btn:focus {
  text-decoration: none !important;
}
.summary-ctas .btn--accent {
  background-color: var(--accent) !important;
  color: #ffffff !important;
}
.summary-ctas .btn--accent:hover {
  background-color: #004fa0 !important;
  color: #ffffff !important;
}
.summary-ctas .btn--outline-accent {
  background-color: transparent !important;
  color: var(--accent) !important;
  border: 2px solid var(--accent) !important;
}
.summary-ctas .btn--outline-accent:hover {
  background-color: var(--accent) !important;
  color: #ffffff !important;
}
.summary-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
}
.summary-video {
  padding-top: 1.5rem;
  width: 100%;
  max-width: 24rem;
}
.summary-gif {
  padding-top: 2rem;
  width: 100%;
  max-width: 28rem;
}
.summary-gif__link { display: block; transition: opacity var(--transition); }
.summary-gif__link:hover { opacity: .9; }
.summary-gif__link img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}



/* ============================================================
   FOOTER — Figma node 3:268
   bg: #0F2040 | 3-col: brand | quick-links | contact
   ============================================================ */
.figma-site-footer {
  background-color: #0F2040 !important;
  color: #9ca3af;
  font-family: var(--font-sans);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; }

.footer-logo-wrap {
  display: inline-block;
  background-color: var(--white);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 1rem;
  width: fit-content;
}
.footer-logo { height: 40px; width: auto; }

.footer-tagline {
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: #6A7282 !important;
  line-height: 1.625;
  margin-bottom: 1.25rem;
}

.footer-social { display: flex; gap: 12px; }
.footer-social__link {
  width: 32px;
  height: 32px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  transition: background-color var(--transition), color var(--transition);
  flex-shrink: 0;
}
.footer-social__link:hover { background-color: var(--accent); color: #fff; }
.footer-social__link .icon { width: 15px; height: 15px; }

/* Quick links + Contact headings: Inter SemiBold 600, 18px, UPPERCASE, 5% letter-spacing */
.footer-heading {
  font-family: var(--font-sans) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Quick links 2-col — driven by Footer Quick Links WP menu (SDA_Footer_Link_Walker) */
.footer-links-col { display: flex; flex-direction: column; }
.footer-links__grid {
  columns: 2;
  column-gap: 2rem;
}
.footer-links__grid .footer-link {
  display: flex;   /* each link breaks cleanly across columns */
  break-inside: avoid;
  margin-bottom: 0.625rem;
}
/* Legacy: keep .footer-links__col rule in case any page still uses the old markup */
.footer-links__col { display: flex; flex-direction: column; gap: 0.625rem; }

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: #9ca3af;
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-link:hover { color: #ffffff; }
.footer-link .icon--xs { color: var(--accent); flex-shrink: 0; }

/* Contact column */
.footer-contact-col { display: flex; flex-direction: column; }
.footer-contact__list { list-style: none; margin: 0; padding: 0; }
.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 14px;
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: #9ca3af;
  line-height: 1.5;
}
.footer-contact__item:first-child { padding-top: 0; }
.footer-contact__icon { color: #6a7282; flex-shrink: 0; margin-top: 2px; width: 15px; height: 15px; }
.footer-contact__text { color: #6a7282; }
.footer-contact__text--muted { color: #6a7282; }
.footer-contact__link { color: #99a1af; text-decoration: none; transition: color var(--transition); }
.footer-contact__link:hover { color: #ffffff; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
  padding: 16px;
}
.footer-bottom__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-copyright {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #4A5565;
  line-height: 20px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.footer-legal__link {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #4A5565;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal__link:hover { color: #d1d5db; }

/* ============================================================
   RESPONSIVE — TABLET & DESKTOP (768px+)
   ============================================================ */
@media (min-width: 768px) {

  /* Top bar */
  .top-bar__inner { justify-content: space-between; }
  .top-bar__email { display: flex; }
  .top-bar__right { display: flex; align-items: center; gap: .25rem; }

  /* Logo row */
  .logo-row__actions { display: flex; align-items: center; gap: 1.5rem; }
  .site-logo { height: 64px; }
  .hamburger-btn { display: none; }

  /* Desktop nav */
  .main-nav { display: block; }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 3rem;
    padding-bottom: 3rem;
    align-items: center;
  }
  .hero__title { font-size: 3rem !important; }
  .hero__desc   { font-size: 1.125rem; }
  .hero__ctas   { flex-direction: row; }
  .hero__card { display: block; margin-left: auto; }
  .hero__card-inner {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0px 25px 50px -12px rgba(0,0,0,0.25);
    padding: 28px;
    width: 384px;
    max-width: 100%;
  }

  /* Intro */
  .section-heading { font-size: 2.0rem !important; line-height: 1.2; }
  .intro-section__body { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .intro-section__video { width: 234px; max-width: 234px; margin: 0; padding-left: 0; flex-shrink: 0; }

  /* Services — Figma: row layout, gap 24px, each col 484px */
  .service-block {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
  }
  .service-block--reverse { flex-direction: row-reverse; }
  /* Each column is 484px in a 1024px container */
  .service-block__img-link { width: 484px; flex-shrink: 0; }
  .service-block__content   { flex: 1; }

  /* Footer 3-col grid */
  .footer-grid {
    grid-template-columns: 288px 1fr 288px;
    gap: 3rem;
  }
  .footer-bottom__inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-legal { gap: 1.25rem; }
}

/* ============================================================
   RESPONSIVE — LARGE DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .hero__title { font-size: 3rem !important; }
}

/* ============================================================
   RESPONSIVE — MOBILE ONLY (max 767px)
   ============================================================ */
@media (max-width: 767px) {

  /* ── Top bar ── */
  .top-bar__email { display: none; }
  .top-bar__inner { justify-content: center; gap: 1rem; }

  /* ── Logo row ── */
  .logo-row__phone { display: none; }
  .logo-row__actions .btn { display: none; }

  /* ── Section headings ── */
  .section-heading {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
  }

  /* ── Hero ── */
  .hero__desc { font-size: 1rem; }
  .hero__ctas {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__card { display: none !important; }

  /* ── Intro section ── */
  .intro-section { padding: 2rem 1rem; }
  .intro-section__body {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }
  .intro-section__video {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .intro-section__text { text-align: center; }

  /* ── Services section ── */
  .services-section { padding: 2rem 1rem; }
  .service-block {
    flex-direction: column !important;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  .service-block--reverse { flex-direction: column !important; }
  .service-block__img-link {
    width: 100% !important;
    max-width: 100%;
  }
  .service-block__img { max-height: 220px; object-fit: cover; }
  .service-block__content { width: 100%; }
  .service-block__title { font-size: 1.25rem !important; }

  /* ── Expert section ── */
  .expert-section { padding: 2rem 1rem; }
  .expert-section__body { padding: 0; }
  .expert-section__list { padding-left: 0; }
  .expert-section__item { padding-top: 10px; }
  .expert-section__img {
    max-width: 260px;
    height: auto;
  }

  /* ── TV / AS SEEN ON TV section ── */
  .tv-section { padding: 2rem 1rem; }
  .tv-section__body { gap: 1.25rem; }
  .tv-section__videos {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }
  .tv-section__video {
    width: 100% !important;
    max-width: 100%;
  }

  /* ── Summary section ── */
  .summary-section { padding: 2rem 1rem; }
  .summary-section__body { gap: 0.75rem; }
  .summary-ctas {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    align-items: stretch;
  }
  .summary-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .summary-video { max-width: 100%; }
  .summary-gif { max-width: 100%; }

  /* ── Footer ── */
  .footer-inner { padding: 2rem 1rem 0; }
  .footer-grid { gap: 2rem; }
  .footer-legal { gap: 0.75rem; font-size: 13px; }
}

/* OVERRIDES FOR TWENTYSIXTEEN */
.site-main > article > .entry-content { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
.site { margin: 0 !important; max-width: 100% !important; }
.site-content { padding: 0 !important; }
.site-inner { max-width: 100% !important; }
#page { max-width: 100% !important; }

/* ─────────────────────────────────────────────────────────────────────────────
   OLD STOREFRONT layout.css sets #main { width: 62% } at @min 768px
   This crushes inner page content to 883px at desktop.
   Override with !important inside matching media query.
───────────────────────────────────────────────────────────────────────────── */
#main {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
@media only screen and (min-width: 768px) {
  #main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }
}
.entry-header { display: none !important; }

body { background-image: none !important; background-color: var(--bg) !important; }

/* HARDCORE RESET */
body.home { padding: 0 !important; margin: 0 !important; }
body.home:before { display: none !important; }
.figma-site-header, .figma-site-main, .figma-site-footer { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; }

/* Hide reCAPTCHA badge during development */
.grecaptcha-badge { visibility: hidden !important; }

/* Global heading override — beat TwentySixteen theme for ALL section headings */
.intro-section h2,
.expert-section h2,
.tv-section h2,
.services-section h2,
.services-section h3,
.summary-section h2 {
  font-family: var(--font-serif) !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
}

/* Footer padding reset (reset from hardcore overrides above) */
.figma-site-footer { padding: 0 !important; }

/* ─────────────────────────────────────────────────────────────────────────────
   CRITICAL: WooCommerce layout.css injects margin rules via media queries:
     base:           .twentysixteen .site-main { margin: 7.69% }
     @min 44.375em:  margin-right: 23.0769%
     @min 56.875em no-sidebar: margin: 15% 15%
   Our stylesheet loads AFTER WC, so same-specificity rules with !important win.
   Must EXACTLY match WC's breakpoints to override inside media queries.
───────────────────────────────────────────────────────────────────────────── */

/* Base (all widths) */
.twentysixteen .site-main,
.no-sidebar .twentysixteen .site-main,
body.twentysixteen .site-main {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}

/* Override WC @min 44.375em rule exactly */
@media screen and (min-width: 44.375em) {
  .twentysixteen .site-main,
  .no-sidebar .twentysixteen .site-main,
  body.twentysixteen .site-main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* Override WC @min 56.875em no-sidebar rule exactly */
@media screen and (min-width: 56.875em) {
  .twentysixteen .site-main,
  .no-sidebar .twentysixteen .site-main,
  body.twentysixteen .site-main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* Reset old TwentySixteen body padding and site containers */
body {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.site-inner,
.site-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}










/* ============================================================
   INNER PAGES — Page Hero Banner
   ============================================================ */
.page-hero {
  background: var(--primary) !important;
  background-image: linear-gradient(135deg, #0f2040 0%, #1b3a6b 60%, #1e4d8c 100%) !important;
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--yellow), var(--accent));
}
.page-hero__inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.page-hero__breadcrumb { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; font-size: 0.8rem; }
.page-hero__breadcrumb-link { color: rgba(255,255,255,0.7) !important; text-decoration: none !important; transition: color var(--transition); }
.page-hero__breadcrumb-link:hover { color: #fff !important; }
.page-hero__breadcrumb-sep { color: rgba(255,255,255,0.4) !important; }
.page-hero__breadcrumb-current { color: rgba(255,255,255,0.9) !important; }
.page-hero__title { font-family: var(--font-serif) !important; font-size: clamp(1.5rem, 4vw, 2.5rem) !important; font-weight: 700 !important; color: #fff !important; line-height: 1.2 !important; margin: 0 auto 0.5rem !important; max-width: 900px; text-align: center; }
.page-hero__subtitle { color: rgba(255,255,255,0.8) !important; font-size: 1.05rem !important; margin: 0.5rem auto 0 !important; max-width: 700px; line-height: 1.6; text-align: center; }
.page-hero__meta { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 0.75rem; flex-wrap: wrap; }
.page-hero__meta-date, .page-hero__meta-cat { display: flex; align-items: center; gap: 0.35rem; color: rgba(255,255,255,0.75) !important; font-size: 0.85rem; }
.page-hero__meta-cat { color: var(--yellow) !important; }

/* ============================================================
   INNER PAGES — Content Wrapper + Typography
   ============================================================ */
/* ── Inner page content wrapper ──────────────────────── */
.inner-page-content { padding: 2.5rem 0 3.5rem; background: #ffffff; }
.inner-page-content__wrap { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── WordPress image alignment — inner page content ─────
   Preserve classic WordPress aligncenter / alignleft / alignright
   behaviours for legacy content. Images inside centered paragraphs
   need display:inline-block (not block) to respond to text-align. */
.inner-page-content img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
.inner-page-content .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.inner-page-content p.aligncenter,
.inner-page-content div.aligncenter { text-align: center; }
.inner-page-content p.aligncenter img,
.inner-page-content div.aligncenter img,
.inner-page-content img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.inner-page-content img.alignleft  { display: inline; float: left;  margin: 0 1.5rem 1rem 0; }
.inner-page-content img.alignright { display: inline; float: right; margin: 0 0 1rem 1.5rem; }
.inner-page-content img.alignnone  { display: inline-block; }

/* Clear floats after aligned images */
.inner-page-content p::after { content: ''; display: table; clear: both; }

/* ── Global heading spacing (Phase 3 remediation) ─────────────────────────
   Ensures h2/h3/h4 following any block of content gets breathing room.
   Scoped to .inner-page-content so custom homepage/landing sections
   with manually managed spacing are unaffected. */
.inner-page-content * + h2,
.inner-page-content * + h3,
.inner-page-content * + h4 {
  margin-top: 2.5rem;
}
/* Tighter spacing when a heading directly follows another heading */
.inner-page-content h2 + h3,
.inner-page-content h3 + h4 {
  margin-top: 0.75rem;
}

/* ── Legacy HTML alignment attributes (HTML4 content in WordPress) ──
   WordPress classic editor stored alignment as align="center" on <p>, <div>, <h2> etc.
   These are still valid and must be honoured. */
.inner-page-content p[align="center"],
.inner-page-content div[align="center"],
.inner-page-content h1[align="center"],
.inner-page-content h2[align="center"],
.inner-page-content h3[align="center"],
.inner-page-content h4[align="center"] { text-align: center; }

.inner-page-content p[align="left"],
.inner-page-content div[align="left"]  { text-align: left; }

.inner-page-content p[align="right"],
.inner-page-content div[align="right"] { text-align: right; }

/* Images inside HTML-attribute-centered paragraphs inherit text-align,
   display:inline-block lets them respond to it */
.inner-page-content p[align="center"] img,
.inner-page-content div[align="center"] img { margin-left: auto; margin-right: auto; display: block; }

/* CSS style-attribute alignment (used by Gutenberg classic blocks) */
.site-main--inner div[style*="text-align: center"],
.site-main--inner p[style*="text-align: center"],
.site-main--inner h2[style*="text-align: center"],
.site-main--inner h3[style*="text-align: center"] { text-align: center; }

/* Collapse empty spacer paragraphs/divs (but not ones with content) */
.site-main--inner p:empty { display: none; }

/* ── Typography ───────────────────────────────────────── */
.site-main--inner p,
.site-main--inner li,
.site-main--inner td {
  font-family: var(--font-sans) !important;
  font-size: 1rem !important;
  line-height: 1.75 !important;
  color: var(--fg) !important;
}
/* Strip inline font-size from old content */
.site-main--inner p[style*="font-size"],
.site-main--inner span[style*="font-size"] {
  font-size: 1rem !important;
}

.site-main--inner h1:not(.page-hero__title),
.site-main--inner h2,
.site-main--inner h3,
.site-main--inner h4,
.site-main--inner h5,
.site-main--inner h6 { font-family: var(--font-serif) !important; color: var(--primary) !important; line-height: 1.3 !important; margin: 1.5em 0 0.6em !important; }
.site-main--inner h1:not(.page-hero__title) { font-size: 1.875rem !important; }
.site-main--inner h2 { font-size: 1.5rem !important; }
.site-main--inner h3 { font-size: 1.2rem !important; font-family: var(--font-sans) !important; font-weight: 700 !important; }
.site-main--inner h4 { font-size: 1.05rem !important; font-family: var(--font-sans) !important; font-weight: 600 !important; }
.site-main--inner h5, .site-main--inner h6 { font-size: 1rem !important; font-family: var(--font-sans) !important; font-weight: 600 !important; }

/* Remove underline/text-decoration from h tags wrapped in <strong><span> */
.site-main--inner h2 span[style*="text-decoration"],
.site-main--inner h3 span[style*="text-decoration"] { text-decoration: none !important; }

.site-main--inner a:not(.btn):not(.blog-card__title-link):not(.page-hero__breadcrumb-link) { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: color var(--transition), border-color var(--transition); }
.site-main--inner a:not(.btn):not(.blog-card__title-link):not(.page-hero__breadcrumb-link):hover { color: var(--primary); border-bottom-color: var(--accent); }

.site-main--inner ul:not([class]) { list-style: none; padding-left: 0; margin: 1rem 0 1.5rem; }
.site-main--inner ul:not([class]) li { list-style: none; padding-left: 1.5rem; position: relative; margin-bottom: 0.4rem; }
.site-main--inner ul:not([class]) li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.site-main--inner ol:not([class]) { padding-left: 1.5rem; margin: 1rem 0 1.5rem; }
.site-main--inner ol:not([class]) li { margin-bottom: 0.4rem; }

/* ── Image-to-button: old <a><img> button images ──────── */
/* Any linked image inside inner content that has a button-like alt */
.site-main--inner a > img.wp-image-button,
.site-main--inner .sda-btn-img {
  display: none !important;
}
.site-main--inner a.sda-btn-img-wrap {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary);
  color: var(--white) !important;
  font-family: var(--font-sans) !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  padding: .7rem 1.5rem;
  border-radius: 4px;
  border: none;
  text-decoration: none !important;
  transition: background var(--transition), transform var(--transition);
  margin: 1rem 0;
  cursor: pointer;
  border-bottom: none !important;
}
.site-main--inner a.sda-btn-img-wrap:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* ── Horizontal rules ─────────────────────────────────── */
.site-main--inner hr { border: none; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

.site-main--inner blockquote { border-left: 4px solid var(--accent); margin: 1.75rem 0; padding: 1rem 1.5rem; background: var(--secondary); border-radius: 0 8px 8px 0; }
.site-main--inner blockquote p { font-style: italic; font-size: 1.05rem; color: var(--primary); margin: 0; }
.site-main--inner img:not(.site-logo):not(.footer-logo) { max-width: 100%; height: auto; border-radius: 6px; }

.site-main--inner table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.site-main--inner th { background: var(--primary); color: #fff; padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
.site-main--inner td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--gray-200); }
.site-main--inner tr:nth-child(even) td { background: var(--secondary); }

/* ── Inline-styled tables inside WYSIWYG blocks ───────────────
   The table on the DIY Coatings page uses per-cell inline styles
   (background: #dcdcdc; color from inline). Reset the global
   .site-main--inner th defaults so inline styles win. Also
   ensure th text stays dark on print (browsers strip backgrounds
   by default, making white text invisible on white paper).
   ─────────────────────────────────────────────────────────── */
.fc-wysiwyg th,
.fc-wysiwyg td {
  background: revert !important;
  color: revert !important;
  padding: revert !important;
  text-align: revert !important;
  font-weight: revert !important;
  border-bottom: revert !important;
}

@media print {
  /* Ensure table header text is always visible on print */
  .fc-wysiwyg th,
  .fc-wysiwyg td,
  .site-main--inner th,
  .site-main--inner td {
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.site-main--inner .wp-block-button__link,
.site-main--inner input[type="submit"],
.site-main--inner button[type="submit"] { background: var(--accent) !important; color: #fff !important; border: none !important; border-radius: 6px !important; padding: 0.75rem 1.5rem !important; font-family: var(--font-sans) !important; font-weight: 600 !important; cursor: pointer !important; transition: background var(--transition) !important; }
.site-main--inner .wp-block-button__link:hover,
.site-main--inner input[type="submit"]:hover,
.site-main--inner button[type="submit"]:hover { background: var(--primary) !important; }

/* ============================================================
   FAQ / SP EASY ACCORDION — Modern Redesign
   Based on actual HTML: .sp-easy-accordion > .ea-card.sp-ea-single > h3.ea-header > a
   + .ea-body for the answer panel
   ============================================================ */

/* ── Wrapper ── */
#sp-ea-16607,
.sp-easy-accordion {
  margin: 1.5rem 0 2rem !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ── Individual item card ── */
#sp-ea-16607.sp-easy-accordion > .sp-ea-single,
#sp-ea-16607.sp-easy-accordion > .ea-card {
  border: 1px solid var(--gray-200) !important;
  border-left: 4px solid var(--primary) !important;
  border-radius: 8px !important;
  margin-bottom: 0.5rem !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(27,58,107,0.06) !important;
  background: #fff !important;
  transition: box-shadow 0.2s ease, border-left-color 0.2s ease !important;
}
#sp-ea-16607.sp-easy-accordion > .sp-ea-single:hover {
  box-shadow: 0 4px 16px rgba(27,58,107,0.12) !important;
}
#sp-ea-16607.sp-easy-accordion > .ea-card.ea-expand,
#sp-ea-16607.sp-easy-accordion > .sp-ea-single.ea-expand {
  border-left-color: var(--accent) !important;
  box-shadow: 0 4px 20px rgba(27,58,107,0.14) !important;
}

/* ── Question header (h3.ea-header) ── */
#sp-ea-16607.sp-easy-accordion > .sp-ea-single > .ea-header {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
}

/* ── The clickable link inside the header ── */
#sp-ea-16607.sp-easy-accordion > .sp-ea-single > .ea-header a,
#sp-ea-16607.sp-easy-accordion > .sp-ea-single > .ea-header a.collapsed {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.875rem 1.25rem !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  font-family: var(--font-sans) !important;
  text-decoration: none !important;
  background: #fff !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease, color 0.2s ease !important;
  border-bottom: none !important;
  line-height: 1.4 !important;
}
#sp-ea-16607.sp-easy-accordion > .sp-ea-single > .ea-header a:hover {
  background: var(--secondary) !important;
  color: var(--accent) !important;
}
/* Active/open state */
#sp-ea-16607.sp-easy-accordion > .sp-ea-single.ea-expand > .ea-header a {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ── Hide plugin's own expand icon, replace with CSS chevron ── */
#sp-ea-16607 .ea-header a i,
#sp-ea-16607 .ea-header a i.ea-expand-icon,
#sp-ea-16607 .ea-header a i[class*="eap-icon"],
#sp-ea-16607 .ea-header a i[class*="ea-icon"] {
  display: none !important;
}

/* CSS-only chevron via ::after on the link */
#sp-ea-16607.sp-easy-accordion > .sp-ea-single > .ea-header a::after {
  content: '' !important;
  flex-shrink: 0 !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 5px solid transparent !important;
  border-right: 5px solid transparent !important;
  border-top: 6px solid var(--primary) !important;
  margin-left: 1rem !important;
  transition: transform 0.25s ease, border-top-color 0.2s ease !important;
}
#sp-ea-16607.sp-easy-accordion > .sp-ea-single.ea-expand > .ea-header a::after {
  border-top-color: var(--yellow) !important;
  transform: rotate(180deg) !important;
}

/* ── Answer / body panel ── */
#sp-ea-16607.sp-easy-accordion > .sp-ea-single > .sp-collapse > .ea-body {
  padding: 1rem 1.25rem 1.25rem !important;
  background: #fff !important;
  border-top: 1px solid var(--gray-200) !important;
  color: var(--fg) !important;
}
#sp-ea-16607 .ea-body p,
#sp-ea-16607 .ea-body li {
  font-family: var(--font-sans) !important;
  font-size: 0.9375rem !important;
  line-height: 1.75 !important;
  color: var(--fg) !important;
  margin: 0 0 0.625rem !important;
}
#sp-ea-16607 .ea-body p:last-child,
#sp-ea-16607 .ea-body li:last-child { margin-bottom: 0 !important; }
#sp-ea-16607 .ea-body a {
  color: var(--accent) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(14, 90, 200, 0.3) !important;
}
#sp-ea-16607 .ea-body a:hover {
  border-bottom-color: var(--accent) !important;
}

/* ── Native HTML <details>/<summary> accordion block (ACF) ── */
.accordion-section {
  margin: 2rem 0;
}
.accordion-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.accordion-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(27,58,107,.07);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  border-left: 4px solid var(--primary);
}
.accordion-item[open] {
  box-shadow: 0 4px 20px rgba(27,58,107,.14);
  border-left-color: var(--accent);
}
.accordion-item__summary {
  list-style: none;
  padding: 1rem 3.5rem 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease;
}
.accordion-item__summary::-webkit-details-marker { display: none; }
.accordion-item__summary::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--primary);
  transition: transform 0.25s ease;
}
.accordion-item[open] .accordion-item__summary {
  background: var(--primary);
  color: #fff;
  border-bottom-color: rgba(255,255,255,.15);
}
.accordion-item[open] .accordion-item__summary::after {
  border-top-color: var(--yellow);
  transform: translateY(-50%) rotate(180deg);
}
.accordion-item__summary:hover { background: var(--secondary); color: var(--accent); }
.accordion-item__content {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--fg);
}
.accordion-item__content p { margin: 0 0 0.75rem; font-size: inherit !important; }
.accordion-item__content p:last-child { margin-bottom: 0; }


/* ============================================================
   INNER PAGES — Mobile Nav Drawer
   ============================================================ */
.mobile-nav { position: fixed; top: 0; right: 0; width: min(320px, 85vw); height: 100%; background: #fff; z-index: 9999; transform: translateX(100%); transition: transform 0.3s ease; box-shadow: var(--shadow-2xl); overflow: hidden; }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__inner { padding: 1.5rem; overflow-y: auto; height: 100%; box-sizing: border-box; }
.mobile-nav__close { background: none; border: none; cursor: pointer; padding: 0.4rem; color: #000; position: absolute; top: 0.75rem; right: 0.75rem; line-height: 1; display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; transition: background 0.15s; z-index: 1; }
.mobile-nav__close:hover { background: #f0f0f0; }
.mobile-nav__close svg { width: 1.4rem; height: 1.4rem; display: block; }
.mobile-nav__header { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-200); }
.mobile-nav__logo { display: block; margin-bottom: 0.875rem; text-align: center; }
.mobile-nav__logo img { width: 200px; height: auto; display: inline-block; }
.mobile-nav__list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.mobile-nav__list .menu-item-home { display: none; }
.mobile-nav__list li a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--gray-200); color: var(--primary); font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.mobile-nav__list li a:hover { color: var(--accent); }
.mobile-nav__util { display: flex; gap: 0.5rem; }
.mobile-nav__util a { display: flex; align-items: center; gap: 0.35rem; color: var(--primary); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; text-decoration: none; padding: 0.35rem 0.6rem; border: 1px solid var(--gray-200); border-radius: 4px; flex: 1; justify-content: center; }
.mobile-nav__util a:hover { border-color: var(--accent); color: var(--accent); }
.mobile-nav__util svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; }
.mobile-nav__search { display: flex; align-items: stretch; margin: 0.875rem 0; border: 1px solid var(--gray-300); border-radius: 6px; overflow: hidden; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.mobile-nav__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 96, 191, 0.15); }
.mobile-nav .mobile-nav__search-input { flex: 1; min-width: 0; margin: 0; padding: 0.65rem 0.85rem; border: none; border-radius: 0; background: transparent; box-shadow: none; font-family: var(--font-sans); font-size: 0.9rem; line-height: 1.2; color: var(--fg); outline: none; -webkit-appearance: none; appearance: none; }
.mobile-nav .mobile-nav__search-input::placeholder { color: var(--gray-400, #9ca3af); }
.mobile-nav .mobile-nav__search-input::-webkit-search-decoration,
.mobile-nav .mobile-nav__search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mobile-nav .mobile-nav__search-submit { display: flex; align-items: center; justify-content: center; width: 3rem; margin: 0; padding: 0; border: none; border-radius: 0; background: var(--accent); color: #fff; cursor: pointer; flex-shrink: 0; transition: background 0.15s; }
.mobile-nav .mobile-nav__search-submit:hover { background: var(--primary); }
.mobile-nav .mobile-nav__search-submit svg { display: block; }
.mobile-nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-nav__overlay.is-open { opacity: 1; pointer-events: all; }

/* ============================================================
   INNER PAGES — Blog Archive Card Grid
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.blog-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md); display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.blog-card__img-link { display: block; overflow: hidden; }
.blog-card__img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.blog-card:hover .blog-card__img { transform: scale(1.03); }
.blog-card__img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--secondary), var(--gray-200)); }
.blog-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card__cat { display: inline-block; background: var(--secondary); color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 4px; text-decoration: none; margin-bottom: 0.6rem; width: fit-content; }
.blog-card__cat:hover { background: var(--accent); color: #fff; }
.blog-card__title { font-family: var(--font-serif) !important; font-size: 1rem !important; font-weight: 700 !important; color: var(--primary) !important; line-height: 1.4 !important; margin: 0 0 0.4rem !important; }
.blog-card__title-link { color: inherit !important; text-decoration: none !important; border: none !important; }
.blog-card__title-link:hover { color: var(--accent) !important; }
.blog-card__date { font-size: 0.78rem; color: var(--muted-fg); margin-bottom: 0.75rem; display: block; }
.blog-card__excerpt { font-size: 0.875rem; color: var(--fg); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.blog-card__btn { margin-top: auto; align-self: flex-start; }
.blog-pagination { display: flex; justify-content: center; margin-top: 1rem; }
.blog-pagination .nav-links { display: flex; gap: 0.5rem; align-items: center; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem; border-radius: 6px; font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--primary); background: #fff; border: 1px solid var(--gray-200); transition: all var(--transition); }
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   INNER PAGES — Blog Single Post Layout
   ============================================================ */
.single-post__featured-img-wrap { background: var(--gray-100); padding: 1.5rem 0 0; }
.single-post__featured-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 10px 10px 0 0; display: block; }
.site-main--single .inner-page-content { padding-top: 2rem; }
.single-post__layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.single-post__article { min-width: 0; }
.single-post__body { font-size: 1.05rem; line-height: 1.85; }
.single-post__body p { margin-bottom: 1.25rem; }
.single-post__tags { margin: 2rem 0; padding: 1rem; background: var(--gray-100); border-radius: 6px; font-size: 0.85rem; }
.single-post__tags a { color: var(--accent); text-decoration: none; margin-right: 0.5rem; }
.single-post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 2px solid var(--gray-200); }
.single-post__nav-next { text-align: right; }
.single-post__nav-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 0.25rem; }
.single-post__nav a { font-weight: 600; color: var(--accent) !important; font-size: 0.9rem; text-decoration: none !important; border: none !important; }
.single-post__nav a:hover { color: var(--primary) !important; }
.single-post__sidebar { position: sticky; top: 2rem; }
.sidebar-card { background: #fff; border-radius: 10px; padding: 1.25rem; box-shadow: var(--shadow-md); margin-bottom: 1.5rem; }
.sidebar-card--author { display: flex; gap: 1rem; align-items: flex-start; }
.sidebar-card__avatar-img { width: 60px !important; height: 60px !important; border-radius: 50%; flex-shrink: 0; }
.sidebar-card__name { font-family: var(--font-sans) !important; font-size: 0.95rem !important; font-weight: 700 !important; color: var(--primary) !important; margin: 0 0 0.3rem !important; }
.sidebar-card__bio { font-size: 0.8rem; color: var(--muted-fg); margin: 0; line-height: 1.5; }
.sidebar-card__heading { font-family: var(--font-sans) !important; font-size: 0.9rem !important; font-weight: 700 !important; color: var(--primary) !important; text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 0.75rem !important; padding-bottom: 0.5rem; border-bottom: 2px solid var(--secondary); }
.sidebar-card__text { font-size: 0.85rem; color: var(--muted-fg); margin-bottom: 1rem; }
.sidebar-recent { list-style: none; padding: 0; margin: 0; }
.sidebar-recent__item { padding: 0.6rem 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-recent__item:last-child { border-bottom: none; }
.sidebar-recent__link { font-size: 0.85rem; font-weight: 600; color: var(--primary) !important; text-decoration: none !important; border: none !important; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.4; }
.sidebar-recent__link:hover { color: var(--accent) !important; }
.sidebar-recent__date { font-size: 0.72rem; color: var(--muted-fg); display: block; margin-top: 0.15rem; }

/* ============================================================
   INNER PAGES — WooCommerce Base Styling
   ============================================================ */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit { background: var(--accent) !important; color: #fff !important; border-radius: 6px !important; font-family: var(--font-sans) !important; font-weight: 600 !important; padding: 0.7rem 1.4rem !important; transition: background var(--transition) !important; border: none !important; }
.woocommerce .button:hover,
.woocommerce button.button:hover { background: var(--primary) !important; color: #fff !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-sans) !important; font-size: 1rem !important; color: var(--primary) !important; }
.woocommerce .price, .woocommerce-Price-amount { color: var(--accent) !important; }

/* ============================================================
   INNER PAGES — Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .single-post__layout { grid-template-columns: 1fr; }
  .single-post__sidebar { position: static; }
}
@media (max-width: 767px) {
  .page-hero { background: var(--primary) !important; background-image: linear-gradient(135deg, #0f2040 0%, #1b3a6b 60%, #1e4d8c 100%) !important; padding: 2rem 0 1.75rem; }
  .page-hero__title { font-size: 1.5rem !important; }
  .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .single-post__nav { grid-template-columns: 1fr; }
  .single-post__nav-next { text-align: left; }
  .inner-page-content { padding: 2rem 0 3rem; }
  .blog-card__img, .blog-card__img-placeholder { height: 180px; }
}

/* ============================================================
   HOMEPAGE SECTIONS — page-home.php (native PHP, no ACF)
   ============================================================ */

/* Section utilities */
.section--light  { background: #F8F9FB; }
.section--white  { background: #ffffff; }
.section--primary { background: var(--primary); }
.section-title {
  font-family: var(--font-serif) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-bottom: 2rem !important;
}
.text-center { text-align: center; }

/* ── INTRO SECTION (padding set at line 797) ─────────────────── */
.intro-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
}
.intro-section__text .intro-section__headline {
  font-family: var(--font-serif) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-bottom: 1rem !important;
  line-height: 1.3 !important;
}
.intro-section__text p { font-size: 1rem; color: #3A4A5C; line-height: 1.75; margin-bottom: 1rem; }
.intro-section__media iframe {
  width: 100%; max-width: 420px; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ── SERVICES GRID (padding set at line 985) ────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-top: 3px solid var(--accent);
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.service-card__icon {
  width: 48px; height: 48px;
  background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-card__icon svg { width: 24px; height: 24px; stroke: #fff; }
.service-card__title {
  font-family: var(--font-serif) !important; font-size: 1.2rem !important;
  font-weight: 700 !important; color: var(--primary) !important; margin: 0 !important;
}
.service-card__desc {
  font-size: 0.9375rem; color: #3A4A5C; line-height: 1.7; flex: 1; margin: 0;
}
.service-card__link {
  display: inline-block; color: var(--accent) !important; font-weight: 600;
  font-size: 0.9rem; text-decoration: none !important; margin-top: 0.5rem;
  transition: color 0.2s;
}
.service-card__link:hover { color: var(--primary) !important; text-decoration: none !important; }

/* ── TV BANNER ──────────────────────────────────────────────── */
.tv-banner-section { padding: 3.5rem 0; }
.tv-banner-section__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.tv-badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.35rem 1rem;
  border-radius: 4px; margin-bottom: 1rem;
}
.tv-banner-section__text h2 {
  font-family: var(--font-serif) !important; font-size: 1.75rem !important;
  font-weight: 700 !important; color: var(--primary) !important; margin-bottom: 1rem !important;
}
.tv-banner-section__text p { font-size: 1rem; color: #3A4A5C; line-height: 1.75; }
.tv-banner-section__media iframe {
  width: 100%; max-width: 426px; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ── SUMMARY CTA ─────────────────────────────────────────────── */
.summary-cta { padding: 4rem 0; }
.summary-cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.summary-cta__text h2 {
  font-family: var(--font-serif) !important; font-size: 2rem !important;
  font-weight: 700 !important; color: #fff !important; margin-bottom: 0.75rem !important;
}
.summary-cta__text p { font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 1.6; }
.summary-cta__buttons { display: flex; gap: 1rem; flex-shrink: 0; flex-wrap: wrap; }

/* ── RESPONSIVE — Homepage Sections ─────────────────────────── */
@media (max-width: 900px) {
  .intro-section__inner,
  .tv-banner-section__inner { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .summary-cta__inner { flex-direction: column; text-align: center; }
  .summary-cta__buttons { justify-content: center; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .summary-cta__text h2 { font-size: 1.5rem !important; }
}

/* ============================================================
   SEARCH FLYOUT (header top-bar)
   ============================================================ */
.top-bar__search-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}
.header-search-flyout {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border-radius: 0 0 4px 4px;
  padding: .75rem;
  min-width: 280px;
}
.header-search-flyout.is-open { display: block; }
.header-search-form {
  display: flex;
  gap: .5rem;
}
.header-search-input {
  flex: 1;
  padding: .5rem .75rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: .875rem;
  font-family: var(--font-sans);
  color: var(--fg);
  outline: none;
}
.header-search-input:focus { border-color: var(--accent); }
.header-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.header-search-submit:hover { background: var(--primary); }

/* The top-bar row needs position: relative for the flyout to anchor to */
.top-bar__right { position: relative; }

/* ============================================================
   SUBMENU REINFORCEMENT — ensure submenus always overlay content
   ============================================================ */
/* Prevent the header from clipping submenus */
.figma-site-header { overflow: visible !important; }
.main-nav { overflow: visible !important; position: relative; z-index: 1000; }
.nav-list { overflow: visible !important; }

/* Force submenu above everything */
.nav-list > li.menu-item > ul.sub-menu,
.nav-list > li.nav-item > ul.sub-menu {
  z-index: 9999 !important;
}

/* Search toggle JS hook */

/* ============================================================
   PAGE HERO — Background image support
   ============================================================ */
.page-hero { position: relative; overflow: hidden; }
.page-hero__bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,32,64,0.82) 0%, rgba(27,58,107,0.72) 100%);
  z-index: 1;
}
/* When no image: rely on CSS gradient alone (same visual, just no bg-img div) */
.page-hero:not(.page-hero--has-image) {
  background: linear-gradient(135deg, var(--topbar-bg) 0%, var(--primary) 100%);
}
.page-hero:not(.page-hero--has-image) .page-hero__overlay { display: none; }
.page-hero__inner { position: relative; z-index: 2; }

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.site-main--search .search-results-wrap {
  padding: 3rem 0 4rem;
  background: var(--bg);
  min-height: 50vh;
}

/* Meta bar: result count + search-again form */
.search-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--secondary);
}
.search-results-meta__count {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--muted-fg);
  margin: 0;
}
.search-results-meta__count strong { color: var(--primary); }
.search-results-meta__form {
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #d1d9e6;
  background: #fff;
}
.search-results-meta__input {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.55rem 0.9rem;
  border: none;
  outline: none;
  color: var(--fg);
  min-width: 200px;
  background: transparent;
}
.search-results-meta__btn {
  border-radius: 0 5px 5px 0 !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.85rem !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Result cards */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.search-result-card {
  background: #fff;
  padding: 1.5rem;
  transition: background 0.15s ease;
}
.search-result-card:hover { background: #f8f9fb; }

.search-result-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.search-result-card__type,
.search-result-card__cat {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.search-result-card__type {
  background: var(--secondary);
  color: var(--primary);
}
.search-result-card__cat {
  background: rgba(0,96,191,0.1);
  color: var(--accent);
}
.search-result-card__date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted-fg);
}

.search-result-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}
.search-result-card__title a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.search-result-card__title a:hover { color: var(--accent); }

.search-result-card__excerpt {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}
.search-result-card__link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.15s ease;
}
.search-result-card__link:hover { color: var(--primary); }

/* Pagination */
.search-pagination .nav-links {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.search-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #d1d9e6;
  color: var(--fg);
  text-decoration: none;
  transition: all 0.15s ease;
}
.search-pagination .page-numbers:hover { background: var(--secondary); border-color: var(--accent); color: var(--accent); }
.search-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-pagination .page-numbers.prev,
.search-pagination .page-numbers.next { gap: 0.3rem; display: inline-flex; }

/* No results state */
.search-no-results {
  text-align: center;
  padding: 4rem 1rem;
}
.search-no-results__icon {
  width: 56px;
  height: 56px;
  color: #d1d9e6;
  margin-bottom: 1.25rem;
}
.search-no-results h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.search-no-results p {
  font-family: var(--font-sans);
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}
.search-no-results__form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.search-no-results__input {
  font-family: var(--font-sans);
  border: 1px solid #d1d9e6;
  border-radius: 6px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  min-width: 240px;
}
.search-no-results__links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ============================================================
   INNER PAGE — Video embed handling
   ============================================================
   Rule 1: Gutenberg embed blocks → fully responsive 16:9 wrapper.
   Rule 2: Raw <iframe> in legacy content → respect authored width/height,
           but cap at 100% so they don't overflow on small screens.
           Do NOT force width:100% — that breaks intentionally-small embeds.
   ============================================================ */

/* Gutenberg embed blocks — always responsive */
.inner-page-content .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem auto;
}
.inner-page-content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Legacy raw iframes — cap width, never force expand.
   Do NOT set height:auto — iframes have no intrinsic height,
   so auto collapses them. Let the height="" attribute control height. */
.inner-page-content iframe[src*="youtube"],
.inner-page-content iframe[src*="youtu.be"],
.inner-page-content iframe[src*="vimeo"] {
  max-width: 100%;
  display: block;
  border-radius: 8px;
  margin: 1.5rem auto;
}

/* Video wrapper divs (used in some old themes / page builders) */
.inner-page-content .video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem auto;
}
.inner-page-content .video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   SEARCH — Section headings (Products / Pages / Articles)
   ============================================================ */
.search-section { margin-bottom: 2.5rem; }
.search-section__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}
.search-section__count {
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  margin-left: 0.25rem;
}

/* ── Breakdown text next to result count */
.search-results-meta__breakdown {
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted-fg);
}

/* ── Result card with thumbnail */
.search-result-card--has-thumb {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.search-result-card__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  border: 1px solid #e2e8f0;
}
.search-result-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.2s ease;
}
.search-result-card:hover .search-result-card__thumb img {
  transform: scale(1.05);
}
.search-result-card__body { flex: 1; min-width: 0; }

/* Type badge colour variants */
.search-result-card__type--product { background: #e8f5e9; color: #1b5e20; }
.search-result-card__type--article { background: #e3f2fd; color: #0d47a1; }
.search-result-card__type--page    { background: var(--secondary); color: var(--primary); }

/* ============================================================
   WOOCOMMERCE MOBILE FIXES  (added 2026-06-15)
   ============================================================ */

/* Fix 1: Hide TwentySixteen native .site-header on WooCommerce pages.
   It renders below our custom .figma-site-header causing duplicate/clipped header. */
.woocommerce .site-header,
.woocommerce-page .site-header,
.woocommerce-cart .site-header,
.woocommerce-checkout .site-header,
.woocommerce-account .site-header {
  display: none !important;
}

/* Fix 2: WooCommerce action buttons full-width at mobile (≤480px). */
@media screen and (max-width: 480px) {
  .woocommerce .return-to-shop .button,
  .woocommerce-cart .return-to-shop .button,
  .woocommerce-form-login .button,
  .woocommerce-form-register .button,
  .wc-proceed-to-checkout .checkout-button,
  .woocommerce #payment #place_order {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ============================================================
   GLOBAL RESPONSIVE TABLE FIX  (added 2026-06-15)
   Legacy pages (raw WP content) contain hard-coded tables
   with fixed pixel widths (e.g. 700px) that overflow at 390px.
   Wrapping with overflow-x:auto gives them a horizontal scroll
   zone rather than breaking the entire page layout.
   ============================================================ */

/* Body safety net — catch any remaining horizontal overflow sources */
body { overflow-x: hidden; }

/* Responsive tables: apply a scroll wrapper to any table inside
   WordPress page content or post content. */
.entry-content table,
.inner-page-content table,
.page-content table,
.post-content table,
.wp-block-table,
.site-main table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
  border-collapse: collapse;
  border: none !important;
}

/* Exception: ACF flexible-content tables (inside .fc-wysiwyg) must NOT get
   display:block — it causes a grey gap on the right side when max-width < container.
   Use .fc-section for extra specificity (0,2,1) to win over .site-main table (0,1,1). */
.fc-section .fc-wysiwyg table {
  display: table;
  overflow-x: visible;
  background-color: transparent;
}

/* Ensure table cells don't squish too much on mobile */
.entry-content td,
.entry-content th,
.inner-page-content td,
.inner-page-content th,
.site-main td,
.site-main th {
  word-break: normal;
  min-width: 120px;
}

.news-icon { display: block !important; width: 64px !important; height: auto !important; margin-right: 16px !important; flex-shrink: 0 !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; object-fit: contain !important; }
