/*
Theme Name: No Brainer Containers Clean Rebuild
Theme URI: https://nobrainerai.io/
Author: No Brainer Containers
Description: Production-ready clean rebase for No Brainer Containers with unified templates, commercial photo galleries, calculators, resources, product pages, guides, FAQs, and case studies.
Version: 34.12-product-photo-fix
License: GPL-2.0-or-later
Text Domain: nobrainer-containers
*/

/* =========================================================
   1. Tokens
========================================================= */
:root {
  --bg: #F5F1E8;
  --bg-alt: #F7F3EA;
  --text: #111111;
  --text-2: #171717;
  --muted: #64748B;
  --muted-dark: #475569;
  --accent: #F97316;
  --accent-dark: #EA580C;
  --panel: #EFE7DA;
  --panel-2: #E9E0D2;
  --line: #D6CABB;
  --white: #fffdf8;
  --soft: #6b7280;
  --shadow: 0 22px 60px rgba(17, 17, 17, .12);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

/* =========================================================
   2. Reset & base
========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

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

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

p {
  color: var(--muted-dark);
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  margin: 0 0 .75rem;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -.035em;
}

h1 { font-size: clamp(2.55rem, 7vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.25rem; }

.lead {
  font-size: 1.14rem;
  color: var(--muted-dark);
  max-width: 760px;
}

/* =========================================================
   3. Layout helpers
========================================================= */
.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(calc(100% - 32px), 880px);
  margin-inline: auto;
}

.site-main { overflow: hidden; }

.section { padding: 72px 0; }
.section-tight { padding: 40px 0 60px; }
.section-head { margin-bottom: 28px; }

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 900;
  color: var(--accent-dark);
  margin-bottom: .7rem;
}

/* spacing utilities */
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }

/* =========================================================
   4. Buttons
========================================================= */
.btn,
button.btn,
input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
  background: var(--white);
  color: var(--text);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(17, 17, 17, .12);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-secondary {
  background: var(--white);
  color: var(--text);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* =========================================================
   5. Header & nav
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 241, 232, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  min-width: 170px;
}
.brand-logo,
.custom-logo {
  max-height: 54px;
  width: auto;
  object-fit: contain;
}
.brand-text {
  font-weight: 950;
  font-size: 1.1rem;
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.primary-nav ul,
.nav-menu,
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 850;
  font-size: .94rem;
  color: var(--text);
}
.nav-menu > li > a:hover { background: var(--panel); }
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 265px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted-dark);
  font-weight: 750;
}
.nav-menu .sub-menu a:hover { background: var(--panel); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-call { font-size: .9rem; }
.menu-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
  width: 44px;
  height: 42px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 99px;
}

/* =========================================================
   6. Hero
========================================================= */
.hero { padding: 48px 0 26px; }
.hero-grid-v25 {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: 28px;
  align-items: center;
}
.hero-copy {
  background: linear-gradient(145deg, var(--white), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
  min-height: 520px;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

/* =========================================================
   7. Trust section
========================================================= */
.trust-section {
  width: min(calc(100% - 32px), var(--container));
  margin: 18px auto 34px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(17, 17, 17, .08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.trust-group h3 {
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted-dark);
  margin-bottom: 14px;
}
.trust-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.trust-logos a {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-alt);
  padding: 12px;
  transition: .18s ease;
}
.trust-logos a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(17, 17, 17, .10);
}
.trust-logos img {
  max-height: 42px;
  max-width: 120px;
  object-fit: contain;
}

/* =========================================================
   8. Cards & grids
========================================================= */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.image-card,
.card,
.surface,
.panel,
.tool-card,
.process-card,
.product-card,
.product-ladder-card,
.faq-item,
.article-card,
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 14px 36px rgba(17, 17, 17, .07);
}

.image-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}
.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.image-card .price,
.price,
.price-pill {
  color: var(--accent-dark);
  font-weight: 950;
}

.card-title {
  font-size: 1.5rem;
  margin: 0 0 .5rem;
}
.card-title a { color: var(--text); }

.process-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 950;
  margin-bottom: 16px;
}

/* Card variants used in shortcodes */
.catalog-card,
.guide-card,
.product-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}
.catalog-card img,
.guide-card img,
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.catalog-card:hover,
.guide-card:hover,
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(17, 17, 17, .10);
}
.product-card .price {
  display: inline-block;
  margin: 0 0 .6rem;
}

/* =========================================================
   9. Page header & articles
========================================================= */
.nbc-page-header,
.page-hero {
  padding: 80px 0 34px;
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}
.nbc-page-header h1,
.page-hero h1 { max-width: 920px; }
.nbc-page-header p,
.page-hero p { max-width: 760px; }

.nbc-content,
.nbc-article,
.nbc-article-content {
  width: min(calc(100% - 32px), 920px);
  margin: 0 auto;
}
.nbc-article { padding: 56px 0; }
.nbc-article-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 46px);
  box-shadow: 0 14px 36px rgba(17, 17, 17, .07);
}
.nbc-article-content h2,
.nbc-article-content h3 { margin-top: 1.6em; }
.nbc-article-content ul,
.nbc-article-content ol {
  color: var(--muted-dark);
  padding-left: 1.25rem;
}
.nbc-article-content li { margin: .45rem 0; }

.article-grid,
.case-grid,
.product-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(calc(100% - 32px), var(--container));
  margin: 28px auto 72px;
}
.article-card h3,
.case-card h3,
.product-card h3 { letter-spacing: -.02em; }

.faq-list {
  width: min(calc(100% - 32px), 900px);
  margin: 28px auto 72px;
  display: grid;
  gap: 14px;
}
.faq-item h3 { margin-bottom: 8px; }

/* =========================================================
   10. Products
========================================================= */
.product-hero,
.product-detail,
.category-section {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 56px 0;
}
.product-detail-grid,
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.product-gallery { display: grid; gap: 12px; }
.product-gallery-main img,
.product-detail img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}
.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.product-gallery-thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* =========================================================
   11. Forms, notices & content wrap
========================================================= */
.content-wrap p,
.content-wrap ul,
.content-wrap ol { color: var(--muted-dark); }
.content-wrap h2,
.content-wrap h3 { margin-top: 1.4em; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.form-grid > div { display: grid; gap: 6px; }
.form-grid label {
  font-weight: 850;
  font-size: .92rem;
  color: var(--text);
}

.notice {
  padding: 12px 16px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  margin-bottom: 16px;
  font-weight: 700;
}
.notice.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* =========================================================
   12. Calculators
========================================================= */
.calculator-wrap {
  width: min(calc(100% - 32px), 1000px);
  margin: 0 auto 72px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 36px rgba(17, 17, 17, .07);
}
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.calculator-wrap label {
  display: grid;
  gap: 8px;
  font-weight: 850;
  color: var(--text);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
}
.calc-result {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

/* ROI calculator (page-roi-calculator) */
.nbc-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.calc-summary {
  margin-top: 22px;
  padding: 6px 4px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.calc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.calc-summary-row:last-child { border-bottom: 0; }
.calc-summary-row__label {
  color: var(--muted-dark);
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .08em;
}
.calc-summary-row__value {
  font-size: 1.6rem;
  color: var(--text);
  font-weight: 950;
}
.calc-input-group { margin-bottom: 22px; }
.calc-input-group--tight { margin-bottom: 12px; }
.calc-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--muted);
  margin-top: 6px;
}
.calc-helper {
  font-size: .86rem;
  color: var(--muted);
  margin-top: 20px;
}
.calculator-embed iframe {
  width: 100%;
  height: 760px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

/* =========================================================
   13. NBC blog index, FAQ, about, case studies
========================================================= */
.nbc-resource-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.nbc-resource-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 850;
  font-size: .9rem;
  color: var(--text);
}
.nbc-resource-tabs a:hover { background: var(--panel); }

.nbc-blog-index {
  width: min(calc(100% - 32px), var(--container));
  margin: 28px auto 72px;
}
.nbc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.nbc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 14px 36px rgba(17, 17, 17, .07);
  display: flex;
  flex-direction: column;
}
.nbc-card h2,
.nbc-card h3 {
  font-size: 1.25rem;
  margin: .25rem 0 .5rem;
}
.nbc-card a { color: var(--text); }
.nbc-category {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 900;
  color: var(--accent-dark);
  margin: 0 0 .4rem;
}
.nbc-read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  color: var(--accent-dark);
}
.nbc-read-more::after { content: " →"; }

.nbc-faq-page {
  width: min(calc(100% - 32px), 900px);
  margin: 28px auto 72px;
  display: grid;
  gap: 12px;
}
.nbc-faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .05);
}
.nbc-faq-item summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.nbc-faq-item summary::-webkit-details-marker { display: none; }
.nbc-faq-item summary::after {
  content: "+";
  font-weight: 900;
  color: var(--accent-dark);
}
.nbc-faq-item[open] summary::after { content: "–"; }
.nbc-faq-item p { margin-top: 10px; }

/* About */
.nbc-about-hero {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 80px 0 24px;
}
.nbc-about-hero h1 { max-width: 920px; }
.nbc-about-hero p { max-width: 760px; font-size: 1.1rem; }

.nbc-about-page-grid {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.nbc-about-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 36px rgba(17, 17, 17, .07);
}

.nbc-team-section {
  width: min(calc(100% - 32px), var(--container));
  margin: 24px auto 60px;
}
.nbc-team-section h2 { margin-bottom: 18px; }
.nbc-role {
  font-size: .9rem;
  color: var(--accent-dark);
  font-weight: 900;
  letter-spacing: .04em;
  margin: 0 0 .5rem;
}

.nbc-final-cta {
  width: min(calc(100% - 32px), var(--container));
  margin: 24px auto 80px;
  background: linear-gradient(145deg, var(--white), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow);
  text-align: center;
}
.nbc-final-cta h2 { max-width: 720px; margin: 0 auto .75rem; }
.nbc-final-cta p { max-width: 620px; margin: 0 auto 1.5rem; }
.nbc-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.nbc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-weight: 900;
}
.nbc-button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.nbc-button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* =========================================================
   13b. Article body, tables, guide & process pages
========================================================= */

/* Long-form article body content (h1, p, ul, blockquote, etc.) */
.nbc-article-content h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .65em;
}
.nbc-article-content h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.25;
  margin: 1.8em 0 .55em;
  letter-spacing: -.01em;
}
.nbc-article-content h3 {
  font-size: 1.15rem;
  margin: 1.6em 0 .5em;
}
.nbc-article-content p {
  margin: 0 0 1.05em;
  line-height: 1.65;
  color: var(--muted-dark);
}
.nbc-article-content p strong { color: var(--text); }
.nbc-article-content em { color: var(--muted-dark); }
.nbc-article-content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nbc-article-content a:hover { color: var(--accent); }
.nbc-article-content blockquote {
  margin: 1.4em 0;
  padding: 14px 22px;
  border-left: 4px solid var(--accent);
  background: var(--panel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted-dark);
  font-style: italic;
}
.nbc-article-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

/* Comparison / data tables used inside article and case-study HEREDOC content */
.compare-table,
.nbc-article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.4em 0 1.8em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: .98rem;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .05);
}
.compare-table thead th,
.nbc-article-content table thead th {
  background: var(--panel);
  color: var(--text);
  text-align: left;
  font-weight: 900;
  letter-spacing: .02em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.compare-table th,
.compare-table td,
.nbc-article-content table th,
.nbc-article-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.compare-table tbody tr:nth-child(even) td,
.nbc-article-content table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, .015);
}
.compare-table tbody tr:last-child td,
.nbc-article-content table tbody tr:last-child td {
  border-bottom: 0;
}
.compare-table td:first-child,
.nbc-article-content table td:first-child { font-weight: 700; color: var(--text); }

/* End-of-article CTA row */
.article-cta-row {
  margin-top: 2.2em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}

/* Guide and process pages (Buyer Guide, Investor Guide, How It Works, etc.) */
.nbc-guide-page,
.nbc-process-page {
  width: min(calc(100% - 32px), 920px);
  margin: 0 auto;
  padding: 56px 0 64px;
}
.nbc-guide-page h1,
.nbc-process-page h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
.nbc-guide-page > p:first-of-type,
.nbc-process-page > p:first-of-type {
  font-size: 1.12rem;
  color: var(--muted-dark);
  margin-bottom: 1.4em;
}
.nbc-guide-page h2,
.nbc-process-page h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  margin: 2em 0 .55em;
  letter-spacing: -.01em;
}
.nbc-guide-page p,
.nbc-process-page p {
  margin: 0 0 1.05em;
  line-height: 1.65;
  color: var(--muted-dark);
}
.nbc-guide-page ul,
.nbc-guide-page ol,
.nbc-process-page ul,
.nbc-process-page ol {
  color: var(--muted-dark);
  padding-left: 1.25rem;
  margin: 0 0 1.2em;
}
.nbc-guide-page li,
.nbc-process-page li { margin: .55rem 0; line-height: 1.6; }
.nbc-guide-page strong,
.nbc-process-page strong { color: var(--text); }
.nbc-guide-page .btn-row,
.nbc-process-page .btn-row { margin-top: 1.6em; }

/* =========================================================
   14. Footer
========================================================= */
.site-footer {
  background: #171717;
  color: #fff;
  margin-top: 60px;
  padding: 54px 0 82px;
}
.site-footer p,
.site-footer a { color: rgba(255, 255, 255, .76); }
.site-footer h3 { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-logo {
  max-height: 58px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
.footer-links,
.social-links { display: grid; gap: 8px; }
.footer-global-link { font-weight: 850; }
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.footer-bottom-row p { margin: 0; color: rgba(255, 255, 255, .55); }

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

/* =========================================================
   15. Responsive
========================================================= */
@media (max-width: 980px) {
  .site-header-inner { min-height: 72px; }
  .menu-toggle { display: block; }
  .nav-wrap {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
  }
  .nav-wrap.open { display: flex; }
  .nav-menu { display: grid; gap: 4px; }
  .nav-menu > li > a { justify-content: space-between; }
  .nav-menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    margin: 4px 0 8px;
    background: var(--bg-alt);
  }
  .header-actions { display: grid; }
  .hero-grid-v25,
  .product-detail-grid,
  .category-grid,
  .split-head,
  .footer-bottom-row,
  .nbc-calc-grid,
  .nbc-about-page-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .grid-4,
  .grid-3,
  .article-grid,
  .case-grid,
  .product-grid,
  .tool-grid,
  .nbc-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-section { grid-template-columns: 1fr; }
  .hero-media,
  .hero-media img { min-height: 360px; }
  .mobile-cta-bar {
    position: fixed;
    z-index: 999;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--text);
    border-top: 1px solid rgba(255, 255, 255, .15);
  }
  .mobile-cta-bar a {
    color: #fff;
    text-align: center;
    padding: 13px 10px;
    font-weight: 950;
  }
  .site-footer { padding-bottom: 112px; }
}

@media (max-width: 640px) {
  h1 { font-size: 2.45rem; }
  .section { padding: 50px 0; }
  .hero { padding-top: 24px; }
  .hero-copy { padding: 24px; }
  .grid-2,
  .grid-3,
  .grid-4,
  .article-grid,
  .case-grid,
  .product-grid,
  .tool-grid,
  .calculator-grid,
  .footer-grid,
  .form-grid,
  .nbc-card-grid {
    grid-template-columns: 1fr;
  }
  .trust-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-logo,
  .custom-logo { max-height: 42px; }
  .header-call { display: none; }
  .product-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   Patch 32.1: Header alignment + product table/spec polish
========================================================= */
.site-header .site-header-inner {
  width: min(calc(100% - 32px), 1440px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  gap: 28px;
}
.site-header .brand {
  justify-self: start;
  min-width: 0;
  flex: 0 0 auto;
}
.brand-logo-wrap {
  display: flex;
  align-items: center;
}
.site-header .brand-logo,
.site-header .custom-logo {
  max-height: 56px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
}
.site-header .nav-wrap {
  min-width: 0;
  justify-content: flex-end;
  gap: 14px;
}
.site-header .nav-menu {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}
.site-header .nav-menu > li > a {
  white-space: nowrap;
  font-size: .92rem;
  padding-inline: 9px;
}
.site-header .header-actions {
  flex: 0 0 auto;
  gap: 8px;
}
.site-header .header-actions .btn {
  white-space: nowrap;
  padding-inline: 14px;
}
.site-header .header-call { font-size: .88rem; }

.product-detail-hero {
  width: min(calc(100% - 32px), var(--container));
  margin: 36px auto 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(17, 17, 17, .07);
}
.product-detail-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.product-detail-hero .price {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent-dark);
  font-weight: 950;
}
.spec-grid {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.spec-card {
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(17, 17, 17, .045);
}
.spec-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.spec-card strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.compare-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4em 0 1.8em;
  border-radius: var(--radius-sm);
}
.compare-table-wrap .compare-table {
  min-width: 760px;
  margin: 0;
}
.compare-table,
.nbc-article-content table {
  table-layout: auto;
}
.compare-table th,
.compare-table td,
.nbc-article-content table th,
.nbc-article-content table td {
  overflow-wrap: break-word;
}

@media (max-width: 1100px) {
  .site-header .header-call { display: none; }
  .site-header .nav-menu > li > a { font-size: .88rem; padding-inline: 8px; }
  .site-header .header-actions .btn { padding-inline: 12px; }
}

@media (max-width: 860px) {
  .site-header .site-header-inner {
    min-height: 72px;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .site-header .menu-toggle { display: block; justify-self: end; }
  .site-header .nav-wrap {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
  }
  .site-header .nav-wrap.open { display: flex; }
  .site-header .nav-menu { display: grid; justify-content: stretch; gap: 4px; }
  .site-header .nav-menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    margin: 4px 0 8px;
    background: var(--bg-alt);
  }
  .product-detail-hero { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header .brand-logo,
  .site-header .custom-logo { max-height: 42px; max-width: 190px; }
  .product-detail-hero,
  .spec-grid { width: min(calc(100% - 24px), var(--container)); }
  .product-detail-hero { padding: 16px; }
  .spec-grid { grid-template-columns: 1fr; }
}

@media (min-width: 861px) and (max-width: 980px) {
  .site-header .menu-toggle { display: none; }
  .site-header .nav-wrap {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .site-header .header-actions { display: flex; }
}


/* =========================================================
   v33 Clean Layout Rebase
   Purpose: reset header, product layouts, tables, and responsive behavior
   after older patch blocks duplicated/conflicted with one another.
========================================================= */
.site-header .site-header-inner{width:min(calc(100% - 32px),1440px)!important;max-width:1440px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}.site-header .brand{flex:0 0 auto!important;margin-right:auto!important;min-width:0!important}.site-header .brand-logo-wrap,.site-header .custom-logo-link{display:flex!important;align-items:center!important;justify-content:flex-start!important}.site-header .brand-logo,.site-header .custom-logo{display:block!important;width:auto!important;max-width:238px!important;max-height:54px!important;object-fit:contain!important}.site-header .nav-wrap{flex:1 1 auto!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:14px!important}.site-header .nav-menu{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:4px!important;min-width:0!important}.site-header .nav-menu>li>a{white-space:nowrap!important;min-height:40px;padding:8px 9px!important;font-size:.9rem!important;line-height:1.1}.site-header .header-actions{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:8px!important}.site-header .header-actions .btn{white-space:nowrap!important;min-height:42px!important;padding:10px 13px!important}.site-header .header-call{font-size:0!important;width:42px!important;min-width:42px!important;height:42px!important;padding:0!important;border-radius:999px!important}.site-header .header-call:before{content:"512-277-5037";font-size:.78rem;font-weight:950}@media(max-width:1180px){.site-header .site-header-inner{min-height:72px!important}.site-header .menu-toggle{display:block!important;margin-left:auto!important}.site-header .nav-wrap{position:absolute!important;top:100%!important;left:16px!important;right:16px!important;display:none!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;background:var(--white)!important;border:1px solid var(--line)!important;border-radius:18px!important;padding:14px!important;box-shadow:var(--shadow)!important}.site-header .nav-wrap.open{display:flex!important}.site-header .nav-menu{display:grid!important;justify-content:stretch!important;gap:4px!important}.site-header .nav-menu>li>a{justify-content:space-between!important;min-height:44px!important;padding:10px 12px!important;font-size:.96rem!important}.site-header .nav-menu .sub-menu{position:static!important;display:block!important;min-width:0!important;box-shadow:none!important;margin:4px 0 8px!important;background:var(--bg-alt)!important}.site-header .header-actions{width:100%;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}.site-header .header-call{width:auto!important;min-width:0!important;font-size:.92rem!important;padding:10px 13px!important}.site-header .header-call:before{content:none!important}}@media(max-width:640px){.site-header .site-header-inner{width:min(calc(100% - 24px),1440px)!important}.site-header .brand-logo,.site-header .custom-logo{max-height:40px!important;max-width:178px!important}.site-header .header-actions{grid-template-columns:1fr!important}.site-header .header-call{display:inline-flex!important}}.product-page-template .section-tight{padding:34px 0 72px!important}.product-page-template .product-detail-hero,.product-page-template .spec-grid,.product-page-template .surface,.product-page-template #quick-quote{width:min(calc(100% - 32px),var(--container));margin-left:auto;margin-right:auto}.product-detail-hero{margin-top:34px!important;margin-bottom:22px!important;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr)!important;gap:clamp(22px,4vw,42px)!important;padding:clamp(18px,3vw,30px)!important}.product-detail-hero h1,.product-detail-hero h2{font-size:clamp(2.1rem,4.5vw,4.2rem)!important;line-height:1.02!important;margin-bottom:.5rem!important}.product-detail-hero img{width:100%;aspect-ratio:16/10!important;max-height:560px!important;object-fit:cover}.product-detail-hero .lead{font-size:1.05rem!important;max-width:620px!important}.product-page-template .surface,.product-detail+.surface,.spec-grid+.surface{margin-top:22px!important;margin-bottom:22px!important;padding:clamp(22px,3vw,34px)!important}.product-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px!important}.product-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px!important;border:1px solid var(--line);box-shadow:0 8px 22px rgba(17,17,17,.055)!important}.spec-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;overflow:hidden;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 14px 36px rgba(17,17,17,.065)}.spec-card{border:0!important;border-right:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:20px!important}.spec-card:last-child{border-right:0!important}.spec-card span{color:var(--muted)!important}.spec-card strong{font-size:1.05rem!important}.compare-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:var(--radius-sm)}.compare-table,.nbc-article-content table{width:100%;max-width:100%;border-collapse:separate!important;border-spacing:0!important}.compare-table th,.compare-table td,.nbc-article-content table th,.nbc-article-content table td{min-width:140px;line-height:1.45;overflow-wrap:break-word}.compare-table th:first-child,.compare-table td:first-child,.nbc-article-content table th:first-child,.nbc-article-content table td:first-child{min-width:170px}@media(max-width:860px){.product-detail-hero{grid-template-columns:1fr!important}.spec-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.spec-card:nth-child(2){border-right:0!important}.spec-card:nth-child(1),.spec-card:nth-child(2){border-bottom:1px solid var(--line)!important}.product-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.compare-table,.nbc-article-content table{display:block!important;overflow-x:auto!important;white-space:normal!important}}@media(max-width:640px){.product-page-template .product-detail-hero,.product-page-template .spec-grid,.product-page-template .surface,.product-page-template #quick-quote{width:min(calc(100% - 24px),var(--container))!important}.spec-grid{grid-template-columns:1fr!important}.spec-card{border-right:0!important;border-bottom:1px solid var(--line)!important}.spec-card:last-child{border-bottom:0!important}.product-gallery{grid-template-columns:1fr}.product-detail-hero h1,.product-detail-hero h2{font-size:2.25rem!important}}

/* Commercial table-only moved products */
.commercial-table-section{margin-top:clamp(2rem,4vw,4rem);}
.commercial-options-table td:first-child{width:32%;}
.product-gallery img{aspect-ratio:4/3;object-fit:cover;}


/* Commercial card image fix: product cards always show one featured/exterior image. Galleries only render on product detail pages. */
.product-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}


/* V33.6 hard fix: commercial archive cards must never render collage/gallery sizing. */
.product-card img,
.card.product-card img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* =========================================================
   Ready to Ship / Existing Inventory
========================================================= */
.ready-ship-page .rts-hero {
  background: radial-gradient(circle at top right, rgba(249, 115, 22, .16), transparent 38%), var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.rts-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 32px;
  align-items: center;
}

.rts-hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.rts-pill,
.rts-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, .12);
  color: var(--accent-dark);
  font-weight: 900;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.rts-head { margin-bottom: 24px; }

.rts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.rts-filters button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.rts-filters button.is-active,
.rts-filters button:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

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

.rts-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(17, 17, 17, .08);
}

.rts-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  background: var(--panel-2);
}

.rts-card-body { padding: 22px; }

.rts-card-body ul {
  margin: 14px 0;
  padding-left: 18px;
  color: var(--muted-dark);
}

.rts-card-body li { margin-bottom: 6px; }

.rts-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .75rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, .18);
}

.rts-status-available { background: #15803d; }
.rts-status-coming { background: var(--accent); }
.rts-status-production { background: var(--muted-dark); }
.rts-status-sold { background: #111111; }

.rts-price {
  font-weight: 950;
  font-size: 1.05rem;
  color: var(--text);
  margin: 16px 0;
}

.rts-why {
  background: var(--panel-2);
  border-top: 1px solid var(--line);
}

.rts-why-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

@media (max-width: 980px) {
  .rts-hero-grid,
  .rts-why-grid { grid-template-columns: 1fr; }
  .rts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .rts-grid { grid-template-columns: 1fr; }
  .rts-card img { height: 220px; }
}


/* V34.5 requested image/copy rebase: hero, commercial tile, and responsive polish */
.hero-copy h1 br { display: block; }
.hero-media img { object-position: center center; }
.image-card img[src$="homepage-commercial-tile.jpg"] { object-position: center left; }
@media (max-width: 980px) {
  .hero-grid-v25 { gap: 18px; }
  .hero-media,
  .hero-media img { min-height: 420px; }
}
@media (max-width: 640px) {
  .hero-copy h1 { font-size: clamp(2.2rem, 12vw, 3.05rem); line-height: 1.02; }
  .hero-copy .lead { font-size: 1rem; }
  .hero-media,
  .hero-media img { min-height: 300px; }
  .image-card img { aspect-ratio: 16 / 10; }
}

/* Ready to Ship inventory gallery additions */
.rts-details {
  margin: 14px 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.rts-details summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.rts-details p {
  color: var(--muted-dark);
  margin-bottom: 12px;
}
.rts-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
}
.rts-gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.rts-gallery img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}
@media (max-width: 680px) {
  .rts-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rts-gallery img { height: 105px; }
}

/* =========================================================
   Patch 34.6 Style Polish: enterprise spacing, hierarchy, cards
   Style-only pass. No content or palette changes.
========================================================= */
:root {
  --container: 1240px;
  --shadow: 0 18px 42px rgba(17, 17, 17, .095);
  --shadow-soft: 0 10px 28px rgba(17, 17, 17, .055);
  --shadow-hover: 0 22px 48px rgba(17, 17, 17, .12);
}

html { font-size: 16px; }
body {
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
p { line-height: 1.68; }
h1, h2, h3, h4 { text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 5.7vw, 5.05rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.35vw, 3.05rem); line-height: 1.08; }
h3 { line-height: 1.18; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.18rem); line-height: 1.7; }

.container,
.product-hero,
.product-detail,
.category-section,
.nbc-page-header,
.page-hero,
.article-grid,
.case-grid,
.product-grid,
.tool-grid,
.nbc-blog-index,
.nbc-about-hero,
.nbc-about-page-grid,
.nbc-team-section,
.nbc-final-cta,
.trust-section,
.product-detail-hero,
.spec-grid {
  width: min(calc(100% - 48px), var(--container));
}

.section { padding: clamp(72px, 8vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 76px) 0; }
.section-head { margin-bottom: clamp(30px, 4vw, 46px); }
.split-head { align-items: end; }
.eyebrow { margin-bottom: .9rem; }

.site-main > .section:nth-of-type(even),
.site-main > section:nth-of-type(even):not(.hero):not(.trust-section) {
  position: relative;
}
.site-main > .section:nth-of-type(even)::before,
.site-main > section:nth-of-type(even):not(.hero):not(.trust-section)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 253, 248, .28);
  pointer-events: none;
  z-index: -1;
}

.btn,
button.btn,
input[type=submit],
.nbc-button {
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: .94rem;
  letter-spacing: -.005em;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn-row,
.nbc-cta-buttons { gap: 14px; }

.site-header {
  box-shadow: 0 1px 0 rgba(17, 17, 17, .035);
}
.site-header .site-header-inner {
  min-height: 76px;
  width: min(calc(100% - 48px), 1440px);
}
.site-header .brand-logo,
.site-header .custom-logo {
  max-height: 50px;
}
.site-header .nav-menu > li > a {
  min-height: 40px;
  padding-inline: 11px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.site-header .nav-menu > li > a:hover,
.nav-menu .sub-menu a:hover,
.nbc-resource-tabs a:hover {
  box-shadow: inset 0 0 0 1px rgba(214, 202, 187, .7);
}
.nav-menu .sub-menu {
  padding: 12px;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(17, 17, 17, .12);
}

.hero { padding: clamp(44px, 6vw, 78px) 0 clamp(24px, 4vw, 42px); }
.hero-grid-v25 { gap: clamp(28px, 4vw, 46px); }
.hero-copy {
  padding: clamp(34px, 5.2vw, 66px);
  box-shadow: var(--shadow);
}
.hero-media { min-height: 500px; box-shadow: var(--shadow); }
.hero-media img { min-height: 500px; }

.trust-section {
  margin-top: 10px;
  margin-bottom: clamp(42px, 6vw, 76px);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
}
.trust-logos a {
  min-height: 84px;
  filter: saturate(.92);
}

.grid { gap: clamp(22px, 3vw, 30px); }
.grid-2,
.grid-3,
.grid-4,
.article-grid,
.case-grid,
.product-grid,
.tool-grid,
.nbc-card-grid,
.nbc-about-page-grid,
.product-detail-grid,
.category-grid {
  gap: clamp(22px, 3vw, 32px);
}
.image-card,
.card,
.surface,
.panel,
.tool-card,
.process-card,
.product-card,
.product-ladder-card,
.faq-item,
.article-card,
.case-card,
.nbc-card,
.nbc-about-section,
.calculator-wrap,
.nbc-article-content,
.product-detail-hero,
.spec-card,
.nbc-faq-item {
  box-shadow: var(--shadow-soft);
}
.image-card,
.card,
.surface,
.panel,
.tool-card,
.process-card,
.product-card,
.product-ladder-card,
.faq-item,
.article-card,
.case-card,
.nbc-card {
  padding: clamp(22px, 2.4vw, 30px);
}
.image-card,
.catalog-card,
.guide-card,
.product-card,
.article-card,
.case-card,
.nbc-card,
.tool-card,
.process-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.image-card:hover,
.catalog-card:hover,
.guide-card:hover,
.product-card:hover,
.article-card:hover,
.case-card:hover,
.nbc-card:hover,
.tool-card:hover,
.process-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.image-card img,
.catalog-card img,
.guide-card img,
.product-card img {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .045);
}
.card-title,
.article-card h3,
.case-card h3,
.product-card h3,
.nbc-card h2,
.nbc-card h3 {
  font-size: clamp(1.18rem, 1.5vw, 1.42rem);
  line-height: 1.18;
}
.product-card .price,
.price,
.price-pill {
  letter-spacing: -.01em;
}

.nbc-page-header,
.page-hero,
.nbc-about-hero {
  padding-top: clamp(78px, 9vw, 118px);
  padding-bottom: clamp(38px, 5vw, 58px);
}
.nbc-content,
.nbc-article,
.nbc-article-content,
.nbc-guide-page,
.nbc-process-page {
  width: min(calc(100% - 48px), 940px);
}
.nbc-article { padding: clamp(56px, 7vw, 88px) 0; }
.nbc-article-content {
  padding: clamp(30px, 4.5vw, 56px);
}
.nbc-article-content p,
.nbc-guide-page p,
.nbc-process-page p {
  line-height: 1.74;
}
.article-grid,
.case-grid,
.product-grid,
.tool-grid,
.nbc-blog-index,
.faq-list,
.nbc-faq-page {
  margin-top: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(76px, 8vw, 112px);
}

.product-detail-hero {
  margin-top: clamp(42px, 5vw, 68px);
  margin-bottom: clamp(34px, 4vw, 48px);
  padding: clamp(22px, 2.6vw, 32px);
  gap: clamp(28px, 4vw, 44px);
}
.product-detail-hero img,
.product-gallery-main img,
.product-detail img {
  box-shadow: var(--shadow-soft);
}
.product-gallery { gap: 16px; }
.product-gallery-thumbs { gap: 12px; }
.product-gallery-thumbs img { transition: transform .18s ease, box-shadow .18s ease; }
.product-gallery-thumbs img:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.nbc-final-cta {
  margin-top: clamp(40px, 5vw, 70px);
  margin-bottom: clamp(82px, 8vw, 120px);
  padding: clamp(34px, 5vw, 58px);
}

.site-footer {
  margin-top: clamp(72px, 8vw, 110px);
  padding: clamp(66px, 7vw, 92px) 0 clamp(82px, 8vw, 112px);
}
.footer-grid {
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
}
.footer-links,
.social-links { gap: 10px; }
.footer-links a,
.social-links a { transition: color .18s ease, transform .18s ease; }
.footer-links a:hover,
.social-links a:hover { color: #fff; transform: translateX(2px); }
.footer-bottom-row { margin-top: 36px; padding-top: 26px; }

@media (max-width: 1100px) {
  .site-header .site-header-inner { width: min(calc(100% - 32px), 1440px); }
  .container,
  .product-hero,
  .product-detail,
  .category-section,
  .nbc-page-header,
  .page-hero,
  .article-grid,
  .case-grid,
  .product-grid,
  .tool-grid,
  .nbc-blog-index,
  .nbc-about-hero,
  .nbc-about-page-grid,
  .nbc-team-section,
  .nbc-final-cta,
  .trust-section,
  .product-detail-hero,
  .spec-grid {
    width: min(calc(100% - 36px), var(--container));
  }
  .hero-media,
  .hero-media img { min-height: 420px; }
}

@media (max-width: 860px) {
  .site-header .site-header-inner { width: min(calc(100% - 28px), 1440px); }
  .section { padding: 64px 0; }
  .hero { padding-top: 34px; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; }
  .grid-4,
  .grid-3,
  .article-grid,
  .case-grid,
  .product-grid,
  .tool-grid,
  .nbc-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2.25rem, 11vw, 2.75rem); }
  h2 { font-size: clamp(1.75rem, 8vw, 2.15rem); }
  .container,
  .product-hero,
  .product-detail,
  .category-section,
  .nbc-page-header,
  .page-hero,
  .article-grid,
  .case-grid,
  .product-grid,
  .tool-grid,
  .nbc-blog-index,
  .nbc-about-hero,
  .nbc-about-page-grid,
  .nbc-team-section,
  .nbc-final-cta,
  .trust-section,
  .product-detail-hero,
  .spec-grid,
  .nbc-content,
  .nbc-article,
  .nbc-article-content,
  .nbc-guide-page,
  .nbc-process-page {
    width: min(calc(100% - 24px), var(--container));
  }
  .hero-media,
  .hero-media img { min-height: 300px; }
  .image-card,
  .card,
  .surface,
  .panel,
  .tool-card,
  .process-card,
  .product-card,
  .product-ladder-card,
  .faq-item,
  .article-card,
  .case-card,
  .nbc-card,
  .nbc-about-section,
  .calculator-wrap,
  .nbc-article-content {
    border-radius: 18px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .article-grid,
  .case-grid,
  .product-grid,
  .tool-grid,
  .calculator-grid,
  .footer-grid,
  .form-grid,
  .nbc-card-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-row { align-items: flex-start; }
}

/* Our Brands page */
.nbc-our-brands-page .brands-hero {
  padding: 88px 0 42px;
  background: linear-gradient(135deg, rgba(239,231,218,.88), rgba(245,241,232,.96));
  border-bottom: 1px solid var(--border);
}
.brands-hero-inner {
  max-width: 980px;
}
.brands-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
}
.brands-hero .lead {
  max-width: 760px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}
.brands-proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.brands-proof-strip strong {
  color: var(--ink);
  font-weight: 800;
}
.brand-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.brand-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.brand-card h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin: 0;
}
.brand-card p:not(.brand-label) {
  color: var(--muted);
  line-height: 1.68;
}
.brand-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.brand-label {
  width: fit-content;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(249,115,22,.12);
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brands-cta {
  text-align: center;
  padding: clamp(30px, 5vw, 52px);
}
.brands-cta p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.brands-cta .btn-row {
  justify-content: center;
}
@media (max-width: 980px) {
  .brand-card-grid { grid-template-columns: 1fr; }
  .brands-proof-strip { border-radius: 24px; }
}
@media (max-width: 640px) {
  .nbc-our-brands-page .brands-hero { padding: 62px 0 30px; }
  .brand-card { padding: 24px; border-radius: 20px; }
  .brands-proof-strip { align-items: flex-start; flex-direction: column; text-align: left; }
  .brands-proof-strip span[aria-hidden="true"] { display: none; }
}


/* =========================================================
   v34.8 Mobile + Tablet Responsive Rebase
   Scope: breakpoint-only overrides so desktop >= 1181px stays unchanged.
========================================================= */
@media (min-width: 641px) and (max-width: 1180px) {
  .brand-card-grid,
  .grid-3,
  .article-grid,
  .case-grid,
  .product-grid,
  .tool-grid,
  .nbc-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero {
    padding-top: clamp(34px, 5vw, 56px) !important;
    padding-bottom: clamp(22px, 4vw, 36px) !important;
  }

  .hero-media,
  .hero-media img {
    min-height: clamp(340px, 42vw, 430px) !important;
  }

  .brands-proof-strip {
    border-radius: 24px !important;
    padding: 14px 18px !important;
  }

  .product-gallery,
  .product-gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .compare-table-wrap,
  .table-wrap,
  .nbc-article-content {
    max-width: 100% !important;
  }

  .compare-table,
  .commercial-options-table,
  .nbc-article-content table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: normal !important;
  }

  .compare-table th,
  .compare-table td,
  .commercial-options-table th,
  .commercial-options-table td,
  .nbc-article-content table th,
  .nbc-article-content table td {
    min-width: 150px !important;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .section,
  .nbc-article,
  .nbc-guide-page,
  .nbc-process-page {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .hero {
    padding-top: 22px !important;
    padding-bottom: 18px !important;
  }

  .hero-copy {
    padding: 24px !important;
  }

  .hero-media,
  .hero-media img {
    min-height: 260px !important;
    max-height: 340px !important;
  }

  .page-hero,
  .nbc-page-header,
  .nbc-about-hero,
  .nbc-our-brands-page .brands-hero {
    padding-top: 52px !important;
    padding-bottom: 30px !important;
  }

  h1,
  .brands-hero h1,
  .page-hero h1,
  .nbc-page-header h1 {
    font-size: clamp(2.05rem, 10vw, 2.65rem) !important;
    line-height: 1.02 !important;
  }

  h2 {
    font-size: clamp(1.65rem, 7.5vw, 2.05rem) !important;
  }

  .btn-row,
  .nbc-cta-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .btn,
  button.btn,
  input[type=submit],
  .nbc-button,
  .brand-card .btn,
  .product-card .btn,
  .header-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .brands-proof-strip {
    border-radius: 18px !important;
    padding: 14px 16px !important;
    gap: 8px !important;
  }

  .brand-card-grid,
  .product-gallery,
  .product-gallery-thumbs {
    grid-template-columns: 1fr !important;
  }

  .mobile-cta-bar {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .site-footer {
    padding-bottom: calc(124px + env(safe-area-inset-bottom)) !important;
  }
}

/* =========================================================
   Mobile/tablet nav functional override - v34.9
   Keeps desktop unchanged while making the mobile menu truly collapsible.
========================================================= */
@media (max-width: 1180px) {
  .site-header { position: sticky; top: 0; z-index: 9999; }
  .site-header .site-header-inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .site-header .menu-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 0 0 44px !important;
    margin-left: auto !important;
    cursor: pointer !important;
  }
  .site-header .nav-wrap,
  #mobile-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-height: calc(100vh - 110px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: none !important;
    opacity: 0 !important;
    transform: translateY(-8px) !important;
    pointer-events: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    background: #F7F3EA !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    padding: 14px !important;
    box-shadow: 0 22px 60px rgba(17,17,17,.18) !important;
    transition: opacity .18s ease, transform .18s ease !important;
  }
  .site-header .nav-wrap.is-open,
  #mobile-menu.is-open {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
  .site-header .nav-wrap.open,
  #mobile-menu.open { display: none !important; }
  .site-header .nav-wrap.is-open.open,
  #mobile-menu.is-open.open { display: flex !important; }
  .site-header .nav-menu {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }
  .site-header .nav-menu > li { width: 100% !important; }
  .site-header .nav-menu > li > a {
    width: 100% !important;
    justify-content: space-between !important;
    min-height: 46px !important;
    padding: 11px 12px !important;
    border-radius: 12px !important;
  }
  .site-header .nav-menu .sub-menu {
    position: static !important;
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 4px 0 8px !important;
    padding: 8px !important;
    box-shadow: none !important;
    background: #EFE7DA !important;
    border-radius: 12px !important;
  }
  .site-header .header-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .site-header .header-actions .btn,
  .site-header .header-call {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    font-size: .92rem !important;
  }
}
@media (max-width: 640px) {
  .site-header .nav-wrap,
  #mobile-menu { left: 0 !important; right: 0 !important; }
  .site-header .header-actions { grid-template-columns: 1fr !important; }
}
@media (min-width: 1181px) {
  .site-header .nav-wrap,
  #mobile-menu {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .site-header .menu-toggle { display: none !important; }
}


/* V34.10 — residential product hero cleanup: remove giant top image and tighten formatting */
.product-page-template .product-detail-hero.product-detail-hero--text-only {
  display: block !important;
  max-width: 980px !important;
  margin-top: clamp(22px, 3vw, 38px) !important;
  margin-bottom: 18px !important;
  padding: clamp(22px, 3vw, 36px) !important;
}
.product-detail-hero.product-detail-hero--text-only > img {
  display: none !important;
}
.product-detail-hero.product-detail-hero--text-only h1 {
  max-width: 760px !important;
  margin-bottom: 10px !important;
}
.product-detail-hero.product-detail-hero--text-only .lead {
  max-width: 760px !important;
  margin-bottom: 16px !important;
}
.product-detail-hero.product-detail-hero--text-only .btn-row {
  margin-top: 16px !important;
}
@media (max-width: 640px) {
  .product-page-template .section-tight {
    padding-top: 18px !important;
  }
  .product-page-template .product-detail-hero.product-detail-hero--text-only {
    margin-top: 14px !important;
    padding: 18px !important;
  }
}


/* V34.18 product name treatment: keep model name dominant and size/spec smaller. */
.product-title {
  line-height: 1.12;
}
.product-title-spec {
  display: inline-block;
  margin-left: 8px;
  font-size: .55em;
  font-weight: 500;
  letter-spacing: -.01em;
  color: #64748B;
  vertical-align: baseline;
}
.product-detail-hero .product-title-spec {
  font-size: .42em;
}
.product-card .product-title-spec,
.image-card .product-title-spec {
  font-size: .58em;
}
@media (max-width: 640px) {
  .product-title-spec {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* V34.19 — force header phone CTA to display the actual number, not the old “Call” label. */
.site-header .header-call,
.site-header .header-actions .header-call {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 10px 13px !important;
  font-size: .88rem !important;
  border-radius: 999px !important;
}
.site-header .header-call::before,
.site-header .header-actions .header-call::before {
  content: none !important;
  display: none !important;
}
@media (max-width: 1180px) {
  .site-header .header-call,
  .site-header .header-actions .header-call {
    width: 100% !important;
    justify-content: center !important;
    font-size: .92rem !important;
  }
}
