/*
Theme Name: Barrett Limited
Theme URI: https://barrettlimited.com/
Author: Barrett Limited
Author URI: https://barrettlimited.com/
Description: A mobile-first, SEO-ready WordPress theme for Barrett Limited's glass sourcing, engineering, and logistics website.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barrett-limited
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, accessibility-ready, block-styles, wide-blocks
*/

:root {
  --bl-ink: #10212d;
  --bl-ink-soft: #4d6273;
  --bl-navy: #082f49;
  --bl-blue: #116184;
  --bl-teal: #1d9a9a;
  --bl-red: #c9272d;
  --bl-amber: #e8a634;
  --bl-surface: #f5f8fb;
  --bl-surface-strong: #e7eef4;
  --bl-white: #ffffff;
  --bl-border: #d8e3eb;
  --bl-shadow: 0 18px 42px rgba(8, 47, 73, 0.14);
  --bl-radius: 8px;
  --bl-container: 1180px;
}

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

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

body {
  margin: 0;
  color: var(--bl-ink);
  background: var(--bl-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: var(--bl-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--bl-red);
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.65rem;
  color: var(--bl-ink);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.7rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.15rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  color: var(--bl-white);
  background: var(--bl-red);
  border-radius: var(--bl-radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--bl-container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 227, 235, 0.82);
  backdrop-filter: blur(16px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 76px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.site-logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo img,
.custom-logo {
  display: block;
  width: auto;
  max-width: min(260px, 62vw);
  max-height: 58px;
}

.site-title {
  margin: 0;
  font-size: 1.1rem;
}

.site-title a {
  color: var(--bl-ink);
  text-decoration: none;
}

.nav-toggle {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--bl-ink);
  background: var(--bl-surface);
  border: 1px solid var(--bl-border);
  border-radius: 50%;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-navigation {
  grid-column: 1 / -1;
  display: none;
  padding: 0 0 1rem;
}

.site-navigation.is-open {
  display: block;
}

.primary-menu,
.primary-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: grid;
  gap: 0.15rem;
}

.primary-menu a {
  display: block;
  padding: 0.72rem 0;
  color: var(--bl-ink);
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: var(--bl-red);
}

.primary-menu .sub-menu {
  margin-left: 1rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--bl-surface-strong);
}

.header-actions {
  display: none;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  color: var(--bl-white);
  background: var(--bl-red);
  border: 1px solid var(--bl-red);
  border-radius: var(--bl-radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
button:hover,
input[type="submit"]:hover {
  color: var(--bl-white);
  background: #a91f25;
  box-shadow: 0 12px 24px rgba(201, 39, 45, 0.2);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--bl-white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.48);
}

.button.secondary:hover,
.button.secondary:focus {
  background: rgba(255, 255, 255, 0.24);
}

.button.ghost {
  color: var(--bl-navy);
  background: var(--bl-white);
  border-color: var(--bl-border);
}

.button.ghost:hover,
.button.ghost:focus {
  color: var(--bl-red);
  background: var(--bl-surface);
  box-shadow: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 690px;
  display: grid;
  align-items: end;
  padding: 7rem 0 3.5rem;
  overflow: hidden;
  color: var(--bl-white);
  background-color: var(--bl-navy);
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 22, 36, 0.91) 0%, rgba(3, 22, 36, 0.74) 48%, rgba(3, 22, 36, 0.32) 100%),
    linear-gradient(180deg, rgba(3, 22, 36, 0.08), rgba(3, 22, 36, 0.78));
  content: "";
}

.hero-copy {
  max-width: 780px;
}

.hero h1,
.hero h2,
.hero p {
  color: var(--bl-white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
  color: #dff7f7;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 3px;
  background: var(--bl-amber);
  content: "";
}

.hero .lead {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 3rem;
}

.proof-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--bl-radius);
}

.proof-item strong {
  display: block;
  color: var(--bl-white);
  font-size: 1.1rem;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section.tight {
  padding: clamp(2.7rem, 5vw, 4.6rem) 0;
}

.section-band {
  background: var(--bl-surface);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--bl-ink-soft);
  font-size: 1.08rem;
}

.kicker {
  margin-bottom: 0.45rem;
  color: var(--bl-red);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two,
.grid.three,
.grid.four {
  grid-template-columns: 1fr;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem;
  background: var(--bl-white);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius);
  box-shadow: 0 1px 0 rgba(8, 47, 73, 0.04);
}

.card.media-card {
  padding: 0;
  overflow: hidden;
}

.card.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card-body {
  padding: 1.2rem;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--bl-ink-soft);
}

.card a.more-link {
  margin-top: auto;
  color: var(--bl-red);
  font-weight: 800;
  text-decoration: none;
}

.icon-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  color: var(--bl-white);
  background: var(--bl-blue);
  border-radius: 50%;
  font-weight: 900;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split-visual {
  position: relative;
}

.split-visual img {
  width: 100%;
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
}

.metric-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.metric-list li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--bl-teal);
}

.process {
  counter-reset: process;
}

.process .card {
  position: relative;
  padding-top: 4rem;
}

.process .card::before {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--bl-white);
  background: var(--bl-red);
  border-radius: 50%;
  counter-increment: process;
  content: counter(process);
  font-weight: 850;
}

.cta-band {
  color: var(--bl-white);
  background: linear-gradient(135deg, var(--bl-navy), #0c4a5f 62%, #70323a);
}

.cta-band h2,
.cta-band p {
  color: var(--bl-white);
}

.cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.page-header {
  padding: clamp(4rem, 8vw, 6.5rem) 0 3rem;
  color: var(--bl-white);
  background:
    linear-gradient(110deg, rgba(8, 47, 73, 0.94), rgba(17, 97, 132, 0.88)),
    url("assets/images/barrett-hero.jpg") center / cover;
}

.page-header h1,
.page-header p {
  color: var(--bl-white);
}

.breadcrumbs {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--bl-white);
}

.content-area {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.layout {
  display: grid;
  gap: 2rem;
}

.entry-content > * {
  max-width: 780px;
}

.entry-content > .alignwide {
  max-width: var(--bl-container);
}

.entry-content img {
  border-radius: var(--bl-radius);
}

.entry-meta {
  color: var(--bl-ink-soft);
  font-size: 0.93rem;
}

.post-card {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--bl-border);
}

.post-card h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.sidebar,
.widget-area {
  padding: 1.2rem;
  background: var(--bl-surface);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius);
}

.widget {
  margin-bottom: 1.5rem;
}

.widget:last-child {
  margin-bottom: 0;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  color: var(--bl-ink);
  background: var(--bl-white);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius);
}

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

.barrett-contact-form {
  display: grid;
  gap: 1rem;
}

.barrett-contact-form .field-row {
  display: grid;
  gap: 1rem;
}

.barrett-contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--bl-ink);
  font-weight: 750;
}

.form-message {
  padding: 1rem;
  border-radius: var(--bl-radius);
}

.form-message.success {
  color: #0d4f3c;
  background: #e7f8ef;
}

.form-message.error {
  color: #7d1d22;
  background: #fdecef;
}

.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: #071c2b;
}

.footer-main {
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-logo img {
  max-width: 260px;
  margin-bottom: 1rem;
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: var(--bl-white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

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

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.footer-bottom {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.9rem;
}

.footer-bottom-inner {
  display: grid;
  gap: 0.75rem;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-numbers,
.post-page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  color: var(--bl-ink);
  background: var(--bl-white);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius);
  text-decoration: none;
}

.page-numbers.current,
.post-page-numbers.current,
.nav-links a:hover,
.nav-links a:focus {
  color: var(--bl-white);
  background: var(--bl-red);
  border-color: var(--bl-red);
}

.compact-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-pagination .dots {
  min-width: auto;
  padding-inline: 4px;
  color: #6b7a90;
  background: transparent;
  border-color: transparent;
}

.compact-pagination .prev,
.compact-pagination .next {
  padding-inline: 14px;
}

.not-found-search {
  max-width: 640px;
}

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

.screen-reader-text:focus {
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  color: var(--bl-white);
  background: var(--bl-red);
}

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

  .barrett-contact-form .field-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

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

  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  }

  .cta-inner {
    grid-template-columns: 1fr auto;
  }

  .layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .footer-grid {
    grid-template-columns: 1.35fr repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 88px;
  }

  .nav-toggle {
    display: none;
  }

  .site-navigation {
    grid-column: auto;
    display: block;
    padding: 0;
  }

  .primary-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
  }

  .primary-menu li {
    position: relative;
  }

  .primary-menu a {
    padding: 0.7rem 0.78rem;
  }

  .primary-menu .sub-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 20;
    display: none;
    width: 230px;
    margin: 0;
    padding: 0.65rem;
    background: var(--bl-white);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    box-shadow: var(--bl-shadow);
  }

  .primary-menu li:hover > .sub-menu,
  .primary-menu li:focus-within > .sub-menu {
    display: block;
  }

  .primary-menu .sub-menu a {
    padding: 0.55rem 0.65rem;
  }

  .primary-menu .sub-menu .sub-menu {
    top: 0;
    left: calc(100% + 0.35rem);
  }

  .header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
  }

  .header-phone {
    color: var(--bl-ink);
    font-weight: 850;
    text-decoration: none;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }

  .hero {
    min-height: 650px;
    padding-top: 5rem;
  }

  .search-form {
    flex-direction: column;
  }
}

/* Barrett Limited Step 1 structure alignment */
.barrett-site-header {
  background: rgba(7, 20, 36, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.barrett-main-nav .primary-menu a,
.barrett-site-header .header-phone {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.42);
}

.barrett-main-nav .primary-menu a:hover,
.barrett-main-nav .primary-menu a:focus,
.barrett-site-header .header-phone:hover,
.barrett-site-header .header-phone:focus {
  color: #7dd3fc;
}

.barrett-whatsapp-btn,
.barrett-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: var(--bl-radius);
  font-weight: 850;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
}

.barrett-whatsapp-btn {
  color: #7dd3fc;
  background: rgba(7, 20, 36, 0.64);
  border: 1px solid #7dd3fc;
}

.barrett-whatsapp-btn:hover,
.barrett-whatsapp-btn:focus {
  color: #071424;
  background: #7dd3fc;
}

.barrett-quote-btn {
  color: #071424;
  background: #7dd3fc;
  border-color: #7dd3fc;
  box-shadow: 0 14px 30px rgba(125, 211, 252, 0.24);
}

.barrett-quote-btn:hover,
.barrett-quote-btn:focus {
  color: #071424;
  background: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 979px) {
  .barrett-site-header .nav-toggle {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
  }

  .barrett-main-nav {
    background: rgba(7, 20, 36, 0.96);
  }

  .barrett-main-nav .primary-menu a {
    color: #ffffff;
  }
}

@media (min-width: 980px) {
  .barrett-main-nav .primary-menu .sub-menu {
    background: #071424;
    border-color: rgba(255, 255, 255, 0.16);
  }
}

/* Step 2: Products / Applications / News management module templates */
.module-hero {
	background: linear-gradient(135deg, #071424 0%, #0b1f36 58%, #12324f 100%);
	color: #fff;
	padding: clamp(64px, 9vw, 112px) 0 clamp(44px, 7vw, 80px);
}

.module-hero .eyebrow,
.module-card__term {
	letter-spacing: .12em;
	text-transform: uppercase;
	font-size: .78rem;
	font-weight: 800;
	color: #7dd3fc;
}

.module-hero h1 {
	max-width: 900px;
	margin: 10px 0 16px;
	font-size: clamp(2.2rem, 5vw, 4.6rem);
	line-height: 1.04;
	color: #fff;
}

.module-hero p {
	max-width: 760px;
	color: #dbeafe;
	font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.module-section {
	padding: clamp(44px, 7vw, 84px) 0;
	background: #f5f9fc;
}

.module-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.module-filter a,
.module-term-list a {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(11, 31, 54, .14);
	border-radius: 999px;
	background: #fff;
	color: #0b1f36;
	padding: 8px 14px;
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
}

.module-filter a:hover,
.module-term-list a:hover {
	background: #071424;
	border-color: #071424;
	color: #fff;
}

.module-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.module-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(11, 31, 54, .10);
	border-radius: 22px;
	box-shadow: 0 18px 48px rgba(7, 20, 36, .08);
}

.module-card__image,
.module-card__placeholder {
	display: block;
	min-height: 220px;
	background: linear-gradient(135deg, rgba(7, 20, 36, .95), rgba(56, 189, 248, .28));
}

.module-card__image img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.module-card__body {
	padding: 22px;
}

.module-card h2 {
	margin: 8px 0 10px;
	font-size: 1.25rem;
	line-height: 1.24;
}

.module-card h2 a {
	color: #071424;
	text-decoration: none;
}

.module-card p {
	color: #52657b;
	margin: 0 0 16px;
}

.text-link {
	font-weight: 800;
	color: #0369a1;
	text-decoration: none;
}

.module-pagination {
	margin-top: 34px;
}

.module-pagination .page-numbers,
.module-pagination a,
.module-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	margin-right: 6px;
	border-radius: 999px;
	background: #fff;
	color: #0b1f36;
	border: 1px solid rgba(11, 31, 54, .14);
	text-decoration: none;
	font-weight: 700;
}

.module-pagination .current {
	background: #071424;
	color: #fff;
}

.module-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(24px, 5vw, 54px);
	align-items: start;
}

.module-content {
	background: #fff;
	border: 1px solid rgba(11, 31, 54, .10);
	border-radius: 24px;
	padding: clamp(24px, 5vw, 48px);
	box-shadow: 0 18px 48px rgba(7, 20, 36, .08);
}

.module-content h2,
.module-content h3 {
	color: #071424;
}

.module-content p,
.module-content li {
	color: #34465c;
}

.module-featured-image {
	margin: 0 0 28px;
}

.module-featured-image img {
	width: 100%;
	height: auto;
	border-radius: 18px;
}

.module-sidebar {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 18px;
}

.module-sidebar-card {
	background: #071424;
	color: #fff;
	border-radius: 22px;
	padding: 24px;
	box-shadow: 0 18px 48px rgba(7, 20, 36, .15);
}

.module-sidebar-card h2 {
	color: #fff;
	font-size: 1.2rem;
	margin-top: 0;
}

.module-sidebar-card p {
	color: #dbeafe;
}

.module-sidebar-card .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	background: #7dd3fc;
	color: #071424;
	font-weight: 900;
	text-decoration: none;
}

@media (max-width: 900px) {
	.module-grid,
	.module-layout {
		grid-template-columns: 1fr;
	}

	.module-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.module-section {
		padding: 34px 0;
	}

	.module-filter {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 6px;
	}

	.module-filter a {
		white-space: nowrap;
	}

	.module-card__image,
	.module-card__placeholder,
	.module-card__image img {
		height: 190px;
		min-height: 190px;
	}
}

@media (min-width: 1100px) {
  .footer-grid.footer-grid--expanded {
    grid-template-columns: 1.4fr repeat(5, minmax(120px, 1fr));
  }
}

.primary-menu > li > a,
.primary-menu .sub-menu a,
.header-cta .button,
.button {
  text-decoration: none;
}

/* Step 5B: News landing page refinements */
.section-actions {
	margin-top: 28px;
	text-align: center;
}

.resources-subheading {
	margin-top: 56px;
}

.module-page--resources .module-filter {
	margin-bottom: 42px;
}


/* Step 5C: Header spacing and CTA alignment fix
   Goal: keep logo, main navigation, WhatsApp and Request a Quote on one clean line without overlap. */
@media (min-width: 1180px) {
  .barrett-site-header .container,
  .barrett-site-header .header-inner,
  .barrett-header-inner {
    width: min(100% - 3rem, 1560px);
  }

  .barrett-header-inner {
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(1.5rem, 2.2vw, 2.8rem);
    min-height: 98px;
  }

  .barrett-site-header .site-branding {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .barrett-site-header .site-logo,
  .barrett-site-header .custom-logo-link {
    width: 100%;
    max-width: 300px;
    overflow: hidden;
  }

  .barrett-site-header .site-logo img,
  .barrett-site-header .custom-logo {
    width: 100%;
    max-width: 300px;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
  }

  .barrett-main-nav {
    justify-self: center;
    width: 100%;
    min-width: 0;
  }

  .barrett-main-nav .primary-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.12rem, 0.42vw, 0.45rem);
  }

  .barrett-main-nav .primary-menu > li > a {
    white-space: nowrap;
    line-height: 1.15;
    padding: 0.72rem clamp(0.35rem, 0.62vw, 0.78rem);
    font-size: clamp(0.9rem, 0.78vw, 1rem);
  }

  .barrett-header-actions {
    justify-self: end;
    flex-shrink: 0;
    gap: 0.75rem;
    white-space: nowrap;
  }

  .barrett-site-header .header-phone {
    display: none;
  }

  .barrett-whatsapp-btn,
  .barrett-quote-btn {
    min-height: 52px;
    padding: 0.82rem 1.05rem;
    font-size: clamp(0.9rem, 0.78vw, 1rem);
    line-height: 1;
  }

  .barrett-whatsapp-btn {
    min-width: 118px;
  }

  .barrett-quote-btn {
    min-width: 170px;
  }
}

@media (min-width: 980px) and (max-width: 1179px) {
  .barrett-header-inner {
    grid-template-columns: 220px minmax(0, 1fr) auto;
    column-gap: 1rem;
    min-height: 86px;
  }

  .barrett-site-header .site-logo,
  .barrett-site-header .custom-logo-link,
  .barrett-site-header .site-logo img,
  .barrett-site-header .custom-logo {
    max-width: 220px;
    max-height: 58px;
  }

  .barrett-main-nav .primary-menu {
    gap: 0.05rem;
  }

  .barrett-main-nav .primary-menu > li > a {
    white-space: nowrap;
    padding: 0.6rem 0.42rem;
    font-size: 0.88rem;
    line-height: 1.15;
  }

  .barrett-site-header .header-phone {
    display: none;
  }

  .barrett-header-actions {
    gap: 0.5rem;
  }

  .barrett-whatsapp-btn,
  .barrett-quote-btn {
    min-height: 44px;
    padding: 0.65rem 0.72rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 979px) {
  .barrett-site-header .site-logo img,
  .barrett-site-header .custom-logo {
    max-width: min(220px, 62vw);
    max-height: 58px;
  }

  .barrett-header-actions {
    display: none;
  }
}
/* Fix: remove white breadcrumb strip under header on module landing pages */
.site-header + nav.breadcrumbs,
.barrett-site-header + nav.breadcrumbs {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

.module-page,
.module-hero {
	margin-top: 0 !important;
}

.site-header,
.barrett-site-header {
	margin-bottom: 0 !important;
}

/* =========================================================
   Barrett primary dropdown - robust 2s delayed close
   Works with WordPress custom Menus by targeting direct sub-menu children.
========================================================= */
@media (min-width: 980px) {
  .site-header,
  .site-header .header-inner,
  .site-header .site-navigation,
  .site-header .primary-menu,
  .site-header .primary-menu > li {
    overflow: visible !important;
  }

  .site-header {
    z-index: 99990 !important;
  }

  .site-header .site-navigation,
  .site-header .primary-menu {
    position: relative !important;
    z-index: 99991 !important;
  }

  .site-header .primary-menu > li {
    position: relative !important;
  }

  .site-header .primary-menu > li > .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 999999 !important;

    display: block !important;
    min-width: 285px !important;
    width: max-content !important;
    max-width: 390px !important;
    margin: 0 !important;
    padding: 10px !important;

    background: #071424 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34) !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease !important;
  }

  /* CSS hover is kept as a fallback; JS class keeps it open for 2 seconds after mouseleave. */
  .site-header .primary-menu > li:hover > .sub-menu,
  .site-header .primary-menu > li:focus-within > .sub-menu,
  .site-header .primary-menu > li.barrett-dropdown-open > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .site-header .primary-menu > li > .sub-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .primary-menu > li > .sub-menu a {
    display: block !important;
    min-height: auto !important;
    padding: 10px 13px !important;
    color: #ffffff !important;
    background: transparent !important;
    font-size: 0.95rem !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    border-radius: 7px !important;
  }

  .site-header .primary-menu > li > .sub-menu a:hover,
  .site-header .primary-menu > li > .sub-menu a:focus {
    color: #7dd3fc !important;
    background: rgba(125, 211, 252, 0.1) !important;
  }
}

/* =========================================================
   Barrett patch: About / FAQs / Contact page SEO layouts
   and Posts-based Barrett News structure
========================================================= */
.module-page--news .module-filter,
.module-page--resources .module-filter {
  margin-bottom: 42px;
}

.about-page .module-hero,
.faq-page .module-hero,
.contact-page .module-hero,
.module-page--news .module-hero {
  background:
    linear-gradient(110deg, rgba(7, 20, 36, 0.94), rgba(17, 97, 132, 0.82)),
    url("assets/images/glass-architecture.jpg") center / cover;
}

.about-split,
.contact-grid,
.faq-layout {
  display: grid;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.about-copy-card,
.contact-main-card,
.faq-list-card {
  background: #ffffff;
  border: 1px solid rgba(8, 47, 73, 0.11);
  border-radius: 26px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 22px 58px rgba(7, 20, 36, 0.09);
}

.about-copy-card h2,
.contact-main-card h2 {
  max-width: 820px;
}

.about-copy-card p,
.contact-main-card p,
.faq-list-card p {
  color: #34465c;
}

.about-stat-grid,
.capability-grid,
.quote-checklist,
.contact-methods {
  display: grid;
  gap: 16px;
}

.about-stat-grid > div,
.quote-checklist > div,
.contact-method,
.capability-grid article,
.faq-item {
  border: 1px solid rgba(8, 47, 73, 0.12);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(7, 20, 36, 0.06);
}

.about-stat-grid > div {
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #f5f8fb);
}

.about-stat-grid strong,
.quote-checklist strong,
.contact-method strong {
  display: block;
  color: #071424;
  font-size: 1rem;
  line-height: 1.3;
}

.about-stat-grid span,
.quote-checklist span,
.contact-method span {
  display: block;
  margin-top: 6px;
  color: #4d6273;
  font-size: 0.95rem;
}

.about-capabilities-section,
.faq-section,
.contact-section {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
}

.capability-grid {
  grid-template-columns: 1fr;
}

.capability-grid article {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.capability-grid article::after {
  position: absolute;
  right: -36px;
  top: -36px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(29, 154, 154, 0.12);
  content: "";
}

.capability-grid article span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: #ffffff;
  background: #116184;
  border-radius: 999px;
  font-weight: 900;
}

.capability-grid h3 {
  font-size: 1.24rem;
}

.contact-grid {
  grid-template-columns: 1fr;
}

.quote-checklist > div {
  padding: 18px 20px;
}

.contact-side-card,
.faq-side-card {
  position: sticky;
  top: 112px;
  border-radius: 26px;
  padding: clamp(22px, 4vw, 34px);
  color: #ffffff;
  background: linear-gradient(145deg, #071424, #082f49 62%, #0e5d77);
  box-shadow: 0 24px 60px rgba(7, 20, 36, 0.22);
}

.contact-side-card h2,
.contact-side-card h3,
.faq-side-card h2,
.faq-side-card h3,
.contact-side-card p,
.faq-side-card p {
  color: #ffffff;
}

.contact-method {
  display: block;
  padding: 17px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.contact-method:hover,
.contact-method:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.contact-method span {
  color: rgba(255, 255, 255, 0.72);
}

.contact-method strong {
  color: #ffffff;
}

.contact-note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.faq-layout {
  grid-template-columns: 1fr;
}

.faq-editor-content {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(8, 47, 73, 0.1);
}

.faq-item {
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 20px 58px 20px 22px;
  color: #071424;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #116184;
  border-radius: 999px;
  content: "+";
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "–";
  background: #c9272d;
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
}

@media (min-width: 760px) {
  .about-stat-grid,
  .quote-checklist,
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .about-split {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  }

  .contact-grid,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (max-width: 979px) {
  .contact-side-card,
  .faq-side-card {
    position: static;
  }
}

/* =========================================================
   Barrett patch: compact layout, inquiry UX, hover FAQ,
   Contact Info customizer support, restored processing menu.
========================================================= */
body {
  font-size: 15px;
  line-height: 1.58;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.65rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.32rem); }

.hero {
  min-height: 560px;
  padding: 5rem 0 2.75rem;
}

.hero-copy { max-width: 720px; }
.hero .lead { font-size: clamp(0.98rem, 1.6vw, 1.15rem); }
.proof-strip { margin-top: 2rem; }

.section { padding: clamp(2.8rem, 5.6vw, 5rem) 0; }
.section.tight { padding: clamp(2rem, 4vw, 3.4rem) 0; }
.section-heading { margin-bottom: 1.35rem; }
.section-heading p { font-size: 1rem; }

.module-hero {
  padding: clamp(42px, 6vw, 72px) 0 clamp(30px, 4.6vw, 54px);
}

.module-hero h1 {
  max-width: 840px;
  font-size: clamp(1.9rem, 4.2vw, 3.45rem);
  line-height: 1.08;
}

.module-hero p {
  font-size: clamp(0.95rem, 1.35vw, 1.06rem);
}

.module-section { padding: clamp(32px, 5vw, 58px) 0; }
.module-grid { gap: 18px; }
.module-card { border-radius: 16px; }
.module-card__image,
.module-card__placeholder { min-height: 180px; }
.module-card__image img { height: 180px; }
.module-card__body { padding: 18px; }
.module-card h2 { font-size: 1.08rem; }
.module-card p { font-size: 0.94rem; margin-bottom: 12px; }

.module-content {
  border-radius: 18px;
  padding: clamp(20px, 3.6vw, 34px);
}

.card { padding: 1.05rem; }
.card p { font-size: 0.94rem; }

.text-link,
.card a.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  min-height: 38px;
  padding: 0.62rem 1rem;
  color: #ffffff !important;
  background: #c9272d;
  border: 1px solid #c9272d;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.text-link:hover,
.text-link:focus,
.card a.more-link:hover,
.card a.more-link:focus {
  color: #ffffff !important;
  background: #071424;
  border-color: #071424;
}

.about-copy-card,
.contact-main-card,
.faq-list-card {
  border-radius: 18px;
  padding: clamp(20px, 3.6vw, 34px);
}

.about-split--with-image {
  align-items: stretch;
}

.about-image-card {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(8, 47, 73, 0.11);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(7, 20, 36, 0.09);
}

.about-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.about-editor-content {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(8, 47, 73, 0.1);
}

.faq-hover-list {
  display: grid;
  gap: 12px;
}

.faq-hover-item {
  border: 1px solid rgba(8, 47, 73, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(7, 20, 36, 0.05);
  overflow: hidden;
  outline: none;
}

.faq-hover-question {
  position: relative;
  padding: 16px 54px 16px 18px;
  color: #071424;
  font-weight: 850;
  cursor: default;
}

.faq-hover-question::after {
  position: absolute;
  right: 18px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  background: #116184;
  border-radius: 999px;
  content: "+";
  transform: translateY(-50%);
  transition: background-color 160ms ease;
}

.faq-hover-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.faq-hover-answer p {
  margin: 0;
  padding: 0 18px 18px;
  color: #34465c;
}

.faq-hover-item:hover .faq-hover-answer,
.faq-hover-item:focus-within .faq-hover-answer {
  max-height: 260px;
}

.faq-hover-item:hover .faq-hover-question::after,
.faq-hover-item:focus-within .faq-hover-question::after {
  content: "–";
  background: #c9272d;
}

.barrett-inquiry-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.barrett-inquiry-form label {
  display: grid;
  gap: 7px;
  color: #071424;
  font-weight: 800;
}

.barrett-inquiry-form label em {
  color: #c9272d;
  font-style: normal;
}

.barrett-inquiry-form input,
.barrett-inquiry-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: #071424;
  background: #ffffff;
  border: 1px solid rgba(8, 47, 73, 0.18);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(8, 47, 73, 0.03);
}

.barrett-inquiry-form textarea { resize: vertical; }
.barrett-submit-btn { width: fit-content; margin-top: 4px; }

.barrett-form-alert {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.barrett-form-alert--success {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.barrett-form-alert--error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.quote-checklist--compact {
  margin-top: 22px;
}

.barrett-floating-inquiry {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 99980;
  display: grid;
  gap: 9px;
}

.barrett-floating-inquiry a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 42px;
  padding: 0.68rem 0.95rem;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(7, 20, 36, 0.22);
}

.barrett-floating-inquiry__contact { background: #c9272d; }
.barrett-floating-inquiry__whatsapp { background: #128c7e; }

.barrett-floating-inquiry a:hover,
.barrett-floating-inquiry a:focus {
  color: #ffffff;
  transform: translateY(-1px);
}

@media (min-width: 980px) {
  .about-split--with-image { grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 4rem 0 2rem; }
  .module-card__image,
  .module-card__placeholder,
  .module-card__image img { height: 160px; min-height: 160px; }
  .barrett-floating-inquiry { right: 12px; bottom: 14px; }
  .barrett-floating-inquiry a { min-width: 104px; min-height: 38px; font-size: 0.78rem; }
}


/* Barrett patch: category taxonomies are admin-only; term labels on module pages are not public archive links. */
.module-filter .module-filter__pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(11, 31, 54, .12);
  border-radius: 999px;
  background: #fff;
  color: #31445a;
  padding: 7px 13px;
  font-size: .86rem;
  font-weight: 800;
}

.module-filter a {
  padding: 7px 13px;
  font-size: .86rem;
}

.module-hero h1 { font-size: clamp(1.72rem, 3.8vw, 3.05rem); }
.module-hero { padding: clamp(36px, 5vw, 62px) 0 clamp(26px, 4vw, 46px); }

/* Barrett patch: compact module pages, right navigation and no-anchor H2 navigation. */
.module-page .module-section,
.module-single .module-section {
  padding: clamp(34px, 5vw, 58px) 0;
}

.module-content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.module-main-list .module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.module-card__body h2,
.module-card__body h3,
.card h3 {
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.28;
}

.module-card__body p,
.card p,
.module-content p,
.entry-content p {
  font-size: 0.96rem;
  line-height: 1.68;
}

.module-card__image,
.module-card__placeholder,
.module-card__image img {
  height: 190px;
  min-height: 190px;
}

.module-right-nav,
.module-sidebar--sticky {
  position: sticky;
  top: 96px;
  align-self: start;
}

.module-right-nav__inner,
.module-sidebar-card {
  border: 1px solid rgba(11, 31, 54, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(11, 31, 54, 0.08);
  padding: 18px;
}

.module-right-nav__inner h2,
.module-sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.module-right-nav__all,
.module-category-nav__item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  padding: 10px 12px;
  color: #17263b;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.module-right-nav__all,
.module-category-nav__item {
  border: 1px solid rgba(11, 31, 54, 0.08);
  background: #f8fafc;
}

.module-right-nav__all.is-active,
.module-category-nav__item.is-active,
.module-category-nav__item:hover,
.module-category-nav__item:focus-within {
  background: #eef6ff;
  border-color: rgba(20, 89, 157, 0.22);
}

.module-category-nav {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.module-category-nav__item {
  position: relative;
  border-radius: 14px;
}

.module-category-popover {
  position: absolute;
  right: calc(100% + 12px);
  top: 0;
  z-index: 30;
  display: none;
  width: 260px;
  border: 1px solid rgba(11, 31, 54, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(11, 31, 54, 0.16);
  padding: 14px;
}

.module-category-nav__item:hover .module-category-popover,
.module-category-nav__item:focus-within .module-category-popover {
  display: block;
}

.module-category-popover strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.module-category-popover ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-category-popover a {
  color: #25364b;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.module-side-pagination {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 31, 54, 0.1);
}

.module-side-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-side-pagination a,
.module-side-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 10px;
  padding: 0 9px;
  background: #f8fafc;
  color: #17263b;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.module-side-pagination .current {
  background: #0b1f36;
  color: #ffffff;
}

.module-h2-nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-h2-nav button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  color: #25364b;
  padding: 9px 11px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.module-h2-nav button:hover,
.module-h2-nav button:focus {
  background: #eef6ff;
  color: #0b1f36;
}

.module-content h2 {
  scroll-margin-top: 120px;
}

.contact-section {
  padding-top: 34px;
}

.contact-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 24px;
}

.barrett-inquiry-form--compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.barrett-inquiry-form--compact label:first-of-type,
.barrett-inquiry-form--compact label:last-of-type,
.barrett-inquiry-form--compact .barrett-submit-btn {
  grid-column: 1 / -1;
}

.barrett-inquiry-form--compact textarea,
.barrett-inquiry-form--compact input {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.barrett-inquiry-form--compact textarea {
  resize: vertical;
}

.quote-checklist--compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.quote-checklist--compact div {
  padding: 12px;
}

@media (max-width: 1080px) {
  .module-content-with-sidebar,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .module-right-nav,
  .module-sidebar--sticky {
    position: static;
  }

  .module-category-popover {
    position: static;
    display: block;
    width: auto;
    margin: 0 10px 10px;
    box-shadow: none;
  }
}

@media (max-width: 720px) {
  .module-main-list .module-grid,
  .barrett-inquiry-form--compact,
  .quote-checklist--compact {
    grid-template-columns: 1fr;
  }

  .barrett-inquiry-form--compact label:first-of-type,
  .barrett-inquiry-form--compact label:last-of-type,
  .barrett-inquiry-form--compact .barrett-submit-btn {
    grid-column: auto;
  }
}

/* Homepage conversion-focused optimization */
.why-section {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
}

.why-grid {
  align-items: stretch;
}

.why-card {
  position: relative;
  min-height: 210px;
  padding: 1.25rem;
  overflow: hidden;
  background: var(--bl-white);
  border: 1px solid var(--bl-border);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(8, 47, 73, 0.08);
}

.why-card::after {
  position: absolute;
  right: -32px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  background: rgba(17, 97, 132, 0.07);
  border-radius: 999px;
  content: "";
}

.why-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  color: var(--bl-red);
  font-size: 0.82rem;
  font-weight: 850;
  background: rgba(201, 39, 45, 0.08);
  border-radius: 999px;
}

.why-card h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}

.why-card p {
  margin-bottom: 0;
  color: var(--bl-ink-soft);
  font-size: 0.94rem;
  line-height: 1.58;
}

.home .section-heading {
  max-width: 860px;
}

.home .module-card p,
.home .card p {
  display: block;
  min-height: auto;
  overflow: visible;
}

@media (max-width: 760px) {
  .why-card {
    min-height: auto;
  }
}


/* Barrett patch 20260528: clean archives, compact footer, glass reflection hover and richer reading layout. */
.site-footer .footer-main {
  padding: 2rem 0 1.1rem;
}

.site-footer .footer-grid {
  align-items: start;
  gap: clamp(1.1rem, 3vw, 2rem);
}

.site-footer .footer-logo img {
  max-width: 220px;
  margin-bottom: 0.65rem;
}

.site-footer p {
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.site-footer li {
  margin-bottom: 0.38rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 1.04rem;
}

.site-footer .footer-bottom {
  padding: 0.7rem 0;
}

.module-card__image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.module-card__image::after {
  position: absolute;
  inset: -30% auto -30% -45%;
  z-index: 2;
  width: 36%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.08) 28%, rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0.08) 72%, transparent 100%);
  content: "";
  pointer-events: none;
  transform: translateX(-160%) skewX(-14deg);
  transition: transform 1.15s ease;
}

.module-card:hover .module-card__image::after,
.module-card:focus-within .module-card__image::after {
  transform: translateX(420%) skewX(-14deg);
}

@media (hover: none), (pointer: coarse) {
  .module-card__image::after {
    display: none;
  }
}

.module-content {
  position: relative;
}

.module-content h2 {
  margin-top: 2rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(8, 47, 73, 0.1);
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
}

.module-content h2::before {
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 0.62rem;
  background: #c9272d;
  border-radius: 999px;
  content: "";
}

.module-content h3 {
  margin-top: 1.35rem;
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
}

.module-content > p:first-of-type {
  padding: 1rem 1.1rem;
  color: #25364b;
  background: #f8fafc;
  border: 1px solid rgba(8, 47, 73, 0.1);
  border-left: 4px solid #7dd3fc;
  border-radius: 16px;
}

.module-content ul,
.module-content ol {
  padding-left: 1.15rem;
}

.module-content li + li {
  margin-top: 0.42rem;
}

.module-content a:not(.button):not(.text-link) {
  color: #0b5e8e;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.module-content a:not(.button):not(.text-link):hover,
.module-content a:not(.button):not(.text-link):focus {
  color: #c9272d;
}

.module-h2-nav button,
.module-right-nav__all,
.module-category-nav__item > a {
  justify-content: center;
  text-align: center;
}

.module-term-list a,
.module-sidebar-card a:not(.button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.18rem;
  padding: 0.46rem 0.72rem;
  color: #0b1f36;
  background: #f8fafc;
  border: 1px solid rgba(11, 31, 54, 0.1);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.module-faq-accordion {
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0 1.6rem;
}

.module-faq-accordion__item {
  border: 1px solid rgba(8, 47, 73, 0.11);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(7, 20, 36, 0.06);
  overflow: hidden;
}

.module-faq-accordion__item summary {
  position: relative;
  padding: 1rem 3.2rem 1rem 1.1rem;
  color: #071424;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.module-faq-accordion__item summary::-webkit-details-marker {
  display: none;
}

.module-faq-accordion__item summary::after {
  position: absolute;
  right: 1rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  background: #116184;
  border-radius: 999px;
  content: "+";
  transform: translateY(-50%);
}

.module-faq-accordion__item[open] summary::after {
  content: "–";
  background: #c9272d;
}

.module-faq-accordion__item > :not(summary) {
  margin: 0;
  padding: 0 1.1rem 1rem;
}

.about-media-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.about-media-column .about-image-card {
  min-height: auto;
}

.about-media-column .about-image-card img {
  height: 360px;
  min-height: 0;
}

.about-side-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.about-side-points div {
  padding: 0.9rem;
  background: #ffffff;
  border: 1px solid rgba(8, 47, 73, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(7, 20, 36, 0.05);
}

.about-side-points strong,
.about-side-points span {
  display: block;
}

.about-side-points strong {
  margin-bottom: 0.32rem;
  color: #071424;
  font-size: 0.92rem;
}

.about-side-points span {
  color: #52657b;
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 780px) {
  .about-side-points {
    grid-template-columns: 1fr;
  }

  .about-media-column .about-image-card img {
    height: 260px;
  }
}
