/* =========================================================================
   expertwitnessforpoliceandsecurity.com
   Source of truth: reference/screenshots/live/*
   Reset of prior CSS — rebuild is driven by pixel parity, not by the
   original firbrigs theme CSS (which was heavily overridden by Elementor).
   ========================================================================= */

:root {
  /* Elementor kit (post-8.css) */
  --color-primary: #6EC1E4;        /* cyan — H2/eyebrow headings, icon circles */
  --color-secondary: #54595F;      /* slate — secondary text, dark-ish UI */
  --color-text: #7A7A7A;           /* body copy */
  --color-button: #3140DA;         /* home hero CTA button */

  /* Hero (post-5.css) */
  --color-navy: #151562;           /* H1 inside the home hero gradient box */
  --color-navy-deep: #171D41;      /* dark navy band */
  --hero-gradient: linear-gradient(180deg, #0D36B5 0%, #D0CFD3 100%);
  --band-gradient: linear-gradient(180deg, #243BC9 0%, #171D41 100%);

  /* Neutrals */
  --color-bg: #ffffff;
  --color-input-bg: #f5f0f0;
  --color-on-dark: #E4E8ED;
  --color-footer-bg: #151562;      /* inline dynamic CSS on live footer */

  --font-body: "Titillium Web", system-ui, -apple-system, Segoe UI, sans-serif;

  --container-max: 1140px;          /* Elementor kit-8 section-boxed width */
}

/* ---------- Reset ---------- */

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

html, body, h1, h2, h3, h4, h5, h6, p, blockquote, figure, ul, ol, dl, dd, pre {
  margin: 0;
  padding: 0;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
}

button { cursor: pointer; }

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

ul, ol { list-style: none; }

/* ---------- Base ---------- */

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

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: inherit;
  font-weight: 600;
  line-height: 1.25;
}

p { margin: 0 0 1em; }

a { transition: color 200ms ease; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 15px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background: var(--color-button);
  transition: background 200ms ease;
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-navy-deep);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  background: #fff;
  padding: 15px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.site-header__logo img {
  height: 50px;
  width: auto;
}

.nav-primary {
  margin-left: auto;
}

.nav-primary ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-primary a {
  display: inline-block;
  color: var(--color-secondary);
  font-size: 15px;
  font-weight: 400;
  padding-block: 8px;
}

.nav-primary a:hover,
.nav-primary a:focus-visible,
.nav-primary li.is-active > a {
  color: var(--color-primary);
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.site-header__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--color-navy);
  color: #fff;
}

.site-header__phone-icon svg {
  width: 20px;
  height: 20px;
}

.site-header__phone-number {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-secondary);
}

.site-header__phone:hover .site-header__phone-number,
.site-header__phone:focus-visible .site-header__phone-number {
  color: var(--color-primary);
}

.nav-toggle { display: none; }

@media (max-width: 991px) {
  .nav-primary { display: none; }
  .site-header__inner { gap: 14px; }
  .site-header__phone { margin-left: auto; gap: 10px; }
  .nav-toggle {
    order: 3;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
  }
  .nav-toggle__bar {
    display: block;
    height: 2px;
    background: var(--color-secondary);
  }
}

@media (max-width: 575px) {
  .site-header__logo img { height: 36px; }
  .site-header__phone { gap: 8px; }
  .site-header__phone-icon { width: 34px; height: 34px; }
  .site-header__phone-icon svg { width: 16px; height: 16px; }
  .site-header__phone-number { font-size: 13px; }
}

/* ---------- Mobile drawer ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease;
}

.mobile-menu[data-open] {
  pointer-events: auto;
  opacity: 1;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.mobile-menu__nav {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: min(320px, 85vw);
  background: #fff;
  padding: 20px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 250ms ease;
}

.mobile-menu[data-open] .mobile-menu__nav {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mobile-menu__logo {
  flex: 1;
  min-width: 0;
  display: block;
}

.mobile-menu__logo img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.mobile-menu__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 150ms ease;
}

.mobile-menu__close:hover,
.mobile-menu__close:focus-visible { background: var(--color-primary); }

.mobile-menu__close svg { width: 18px; height: 18px; }

.mobile-menu__list a {
  display: block;
  padding: 10px 0;
  color: var(--color-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 15px;
}

.mobile-menu__list li.is-active > a { color: var(--color-primary); }

.mobile-menu__contact h4 {
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 16px;
}

.mobile-menu__contact ul li {
  padding: 4px 0;
  font-size: 15px;
  color: var(--color-text);
}

.mobile-menu__social { display: flex; gap: 12px; }

.mobile-menu__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
}

.mobile-menu__social svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 18px 0;
}

.site-footer a {
  color: inherit;
  transition: color 200ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__copy {
  margin: 0;
  font-size: 14px;
}

.site-footer__social { display: flex; gap: 8px; }

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  background: var(--color-primary);
}

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

.scroll-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 40px; height: 40px;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.scroll-top[hidden] { display: none; }

@media (max-width: 575px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Home ---------- */

/* Hero: contained gradient box on the live site, not full-bleed */
.page--home .hero {
  padding: 40px 0;
}

.page--home .hero .container {
  background: var(--hero-gradient);
  padding: 60px 40px;
}

.page--home .hero h1 {
  text-align: center;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0;
}

/* Portrait + bullets: white section under the hero box */
.page--home .intro-grid {
  padding: 50px 0 30px;
}

.page--home .intro-grid__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.page--home .intro-grid__image {
  margin: 0;
}

.page--home .intro-grid__image img {
  max-width: 370px;
  width: 100%;
  height: auto;
}

.page--home .check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page--home .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--color-navy);
  font-size: 16px;
  line-height: 1.4;
}

.page--home .check-list__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  margin-top: 4px;
}

@media (max-width: 767px) {
  .page--home .intro-grid__row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page--home .intro-grid__image img {
    margin-inline: auto;
  }
}

/* "Mr. Madison has unique..." — navy centered heading on white */
.page--home .experience-heading {
  text-align: center;
  padding: 30px 0;
}

.page--home .experience-heading h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--color-navy);
  font-weight: 700;
  margin: 0;
}

/* Full-bleed blue band with arrow list + Learn More button */
.page--home .experience-band {
  background: var(--band-gradient);
  padding: 40px 0 50px;
  color: var(--color-on-dark);
}

.page--home .arrow-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page--home .arrow-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-on-dark);
  font-size: 15px;
  line-height: 1.4;
}

.page--home .arrow-list__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--color-on-dark);
}

@media (max-width: 767px) {
  .page--home .arrow-list {
    grid-template-columns: 1fr;
  }
}

.page--home .experience-band__cta {
  text-align: center;
}

.page--home .experience-band__cta .btn {
  background: var(--color-navy-deep);
  padding: 14px 28px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page--home .experience-band__cta .btn:hover {
  background: var(--color-button);
}

/* Accreditation logos: white band with two centered logos */
.page--home .accreditation {
  padding: 50px 0;
  background: #fff;
}

.page--home .accreditation__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.page--home .accreditation__logo {
  margin: 0;
}

.page--home .accreditation__logo img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
}

@media (max-width: 767px) {
  .page--home .accreditation__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Testimonials — centered quote + name below, two stacked */
.page--home .testimonial {
  padding: 20px 0 30px;
}

.page--home .testimonial__quote {
  max-width: 780px;
  margin: 0 auto 16px;
  padding: 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  text-align: center;
}

.page--home .testimonial__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page--home .testimonial__image img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.page--home .testimonial__name {
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-secondary);
}

.page--home a.testimonial__name { color: var(--color-secondary); }
.page--home a.testimonial__name:hover { color: var(--color-primary); }

/* ---------- Bio ---------- */

.page--bio {
  padding: 50px 0 80px;
}

.page--bio .bio-intro__text::after {
  content: "";
  display: block;
  clear: both;
}

.page--bio .bio-intro__heading {
  font-size: clamp(24px, 2.5vw, 32px);
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.page--bio .bio-intro__divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.page--bio .bio-intro__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

.page--bio .bio-intro__text p { margin: 0 0 1em; }

.page--bio .bio-intro__text img.alignleft {
  float: left;
  margin: 5px 20px 10px 0;
  max-width: 40%;
  height: auto;
}

@media (max-width: 575px) {
  .page--bio .bio-intro__text img.alignleft {
    float: none;
    display: block;
    margin: 0 auto 16px;
    max-width: 100%;
  }
}

/* ---------- Interior page-header banner (testimonials + contact) ---------- */

.page-banner {
  position: relative;
  padding: 50px 0 225px;
  color: #fff;
  background-color: #2d2727;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 39, 39, 0.7);
  z-index: 0;
}

.page-banner::before,
.page-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 166px;
  background: #fff;
  z-index: 2;
}

.page-banner::before {
  left: 0;
  width: 50%;
  clip-path: polygon(0% 50%, 100% 0%, 100% 100%, 0% 100%, 0% 0%);
}

.page-banner::after {
  right: 0;
  width: calc(50% + 1px);
  clip-path: polygon(0% 0%, 200% 100%, 100% 100%, 0% 100%, 0% 0%);
}

.page-banner__pattern {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 166px;
  z-index: 3;
  pointer-events: none;
}

.page-banner__pattern::before,
.page-banner__pattern::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 166px;
  background: var(--color-navy);
}

.page-banner__pattern::before {
  left: 0;
  clip-path: polygon(0% 40%, 100% 0%, 100% 0%, 0% 100%, 0% 0%);
}

.page-banner__pattern::after {
  right: 0;
  clip-path: polygon(0% 0%, 100% 40%, 100% 100%, 100% 100%, 0% 0%);
}

.page-banner .container {
  position: relative;
  z-index: 4;
}

.page-banner h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  color: #fff;
  font-weight: 700;
  margin: 0 0 8px;
}

.page-banner__crumbs {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.page-banner__crumbs a { color: inherit; }
.page-banner__crumbs a:hover { color: var(--color-primary); }


/* ---------- Testimonials page ---------- */

.page--testimonials .testimonial-list {
  padding: 50px 0 80px;
  text-align: center;
}

.page--testimonials .testimonial-list__heading {
  font-size: clamp(26px, 3vw, 38px);
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 40px;
}

.page--testimonials .testimonial-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
}

.page--testimonials .testimonial-card {
  padding: 0 20px 36px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page--testimonials .testimonial-card:last-child { border-bottom: 0; }

.page--testimonials .testimonial-card__quote {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  font-style: italic;
}

.page--testimonials .testimonial-card__quote p { margin: 0 0 0.75em; }
.page--testimonials .testimonial-card__quote p:last-child { margin: 0; }

.page--testimonials .testimonial-card__attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page--testimonials .testimonial-card__name {
  font-style: normal;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 15px;
}

.page--testimonials .testimonial-card__job {
  color: var(--color-text);
  font-size: 14px;
}

/* ---------- Contact page ---------- */

.page--contact .contact-section {
  padding: 50px 0 80px;
}

.page--contact .contact-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .page--contact .contact-section__grid {
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
  }
}

.page--contact .contact-section__heading {
  font-size: clamp(24px, 2.5vw, 32px);
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 24px;
}

.contact-info-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.contact-info-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}

.contact-info-box__icon svg { width: 22px; height: 22px; }

.contact-info-box__body {
  margin: 0;
  color: var(--color-secondary);
  font-size: 15px;
}

.contact-info-box__body a { color: var(--color-primary); }
.contact-info-box__body a:hover { color: var(--color-navy); }

.page--contact .contact-section__divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0;
}

.page--contact .contact-section__social {
  display: flex;
  gap: 10px;
  padding: 16px 0;
}

.page--contact .contact-section__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
}

.page--contact .contact-section__social a:hover { background: var(--color-primary); }
.page--contact .contact-section__social svg { width: 14px; height: 14px; }

/* Form */
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 576px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.contact-form__field { margin: 0 0 20px; }

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-input-bg);
  border: 1px solid transparent;
  color: var(--color-secondary);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 200ms ease, background 200ms ease;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: #9a8f8f;
  opacity: 1;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form__submit { margin: 4px 0 0; }

.contact-form__submit .btn {
  background: var(--color-navy);
  padding: 14px 36px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form__submit .btn:hover { background: var(--color-primary); }

.contact-form__alerts { margin-top: 16px; }

.contact-form__error {
  padding: 12px 16px;
  background: rgba(220, 53, 69, 0.08);
  color: #a3243b;
  border-left: 4px solid #dc3545;
  font-size: 14px;
}

.contact-form__success {
  padding: 14px 18px;
  background: rgba(110, 193, 228, 0.12);
  color: var(--color-secondary);
  border-left: 4px solid var(--color-primary);
  font-size: 15px;
}

.contact-form .form-control--invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.contact-form__honeypot { position: absolute; left: -9999px; }

/* ---------- Mobile tap-to-call bar ---------- */

.mobile-call-bar { display: none; }

@media (max-width: 767px) {
  .mobile-call-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-navy);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
  }
  .mobile-call-bar svg { width: 20px; height: 20px; }
  .mobile-call-bar:hover,
  .mobile-call-bar:focus-visible { background: var(--color-primary); color: #fff; }
  body { padding-bottom: 56px; }
}
