/* ==========================================================================
   M&P Solutions — shared stylesheet
   ========================================================================== */

:root {
  --brand-dark: #123822;
  --brand-primary: #1f6b34;
  --brand-mid: #2f7d3f;
  --brand-light: #86c440;
  --bg-tint: #f4f9f1;
  --bg-tint-2: #eaf3e6;
  --bg-white: #ffffff;
  --text-dark: #16241b;
  --text-gray: #5b6b60;
  --text-gray-light: #7c8a80;
  --border-color: #e1ebdd;
  --shadow-sm: 0 2px 10px rgba(18, 56, 34, 0.06);
  --shadow-md: 0 8px 30px rgba(18, 56, 34, 0.10);
  --radius: 14px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  padding-top: 133px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Cross-browser form control resets (Safari/iOS in particular add their own
   chrome to buttons and search fields that fights our custom styling). */
button {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

input, textarea, select {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
}

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em 0; color: var(--text-gray); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand-light);
  display: inline-block;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--brand-primary); }

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-color);
}

.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.btn-text {
  background: transparent;
  color: var(--text-dark);
  padding: 13px 0;
  border-bottom: 1.5px solid var(--text-dark);
  border-radius: 0;
}

.btn-text:hover { color: var(--brand-primary); border-color: var(--brand-primary); }

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

/* Header background image — admin-editable (Admin > Header Background); the
   actual image/position/size/height set there is injected as a page-level
   <style> override in includes/header.php (relative url() there resolves
   against the page, not this stylesheet). These are just the fallback
   defaults for when nothing has been configured yet. Fades out once
   scrolled, since the header shrinks and a full-size background would look
   cramped in the thinner bar. */
.site-header::before {
  content: "";
  position: absolute;
  right: 0;
  width: 75%;
  bottom: 0;
  height: 90px;
  z-index: 0;
  pointer-events: none;
  /* Flattened further and anchored to the bottom edge so it stays clear of
     "Contact Us" and the rest of the nav links instead of rising up behind
     them. Box spans the right 3/4 of the header width. */
  transform: scaleY(0.5);
  transform-origin: bottom;
  background-image: url("../images/header-wave2-full.jpg");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.site-header.scrolled::before {
  opacity: 0;
}

.nav-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  padding: 22px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: padding 0.3s ease;
}

.site-header.scrolled .nav-wrap {
  padding: 10px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
  transition: font-size 0.3s ease;
}

.site-header.scrolled .brand {
  font-size: 0.95rem;
}

.brand img {
  height: 88px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

.site-header.scrolled .brand img {
  height: 68px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-left: auto;
  margin-right: 10px;
}

.nav-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-primary);
  border-color: var(--brand-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
}

/* Hero --------------------------------------------------------------------*/

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-dark));
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 56, 34, 0.45), rgba(10, 20, 14, 0.6));
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px;
  width: 100%;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero .eyebrow { color: var(--brand-light); justify-content: center; margin-bottom: 36px; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
}

.hero h1 .accent { color: var(--brand-light); }

.hero p.lead {
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero .btn-text {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn-text:hover { color: var(--brand-light); border-color: var(--brand-light); }

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-tags span:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
  color: var(--brand-light);
}

/* Section generic ----------------------------------------------------------*/

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-tint); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--text-dark); }

/* Cards / Grids ------------------------------------------------------------*/

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card .icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-tint-2);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.card h3 { font-size: 1.15rem; color: var(--text-dark); }

.card p { margin-bottom: 0; font-size: 0.94rem; }

/* Product line cards (homepage PCV / Mach Cooling teasers) --------------- */

.product-line-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 320px;
  background-color: var(--brand-dark);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-line-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 14, 0.1) 0%, rgba(10, 20, 14, 0.55) 55%, rgba(10, 20, 14, 0.88) 100%);
  z-index: 0;
}

.product-line-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.product-line-card .corner-arrow {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: var(--brand-primary);
  border-radius: 0 var(--radius) 0 28px;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 10px 10px 0 0;
  font-size: 1.1rem;
  transition: background 0.2s ease;
  z-index: 1;
}

.product-line-card:hover .corner-arrow { background: var(--brand-dark); }

.product-line-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}

.product-line-card p {
  position: relative;
  z-index: 1;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* Alternating feature rows (About page: M&P / PCV / Mach Cooling overview) */

.feature-row {
  display: flex;
  align-items: center;
  gap: 52px;
  margin-bottom: 64px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse { flex-direction: row-reverse; }

.feature-row-shade-a {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
}

.feature-row-shade-b {
  background: var(--bg-tint-2);
  border-radius: var(--radius);
  padding: 36px;
}

.feature-row-media { flex: 0 0 42%; }

.feature-row-media img,
.feature-row-media video {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  background: #fff;
}

.feature-row-text { flex: 1; min-width: 0; }

.feature-row-text h3 { font-size: 1.4rem; color: var(--text-dark); margin-bottom: 14px; }

/* Popup modals (e.g. homepage PCV / Mach Cooling info cards) --------------- */

body.modal-open { overflow: hidden; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 14, 0.6);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 44px;
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.modal-overlay .modal-box .feature-row { margin-bottom: 0; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--text-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover { background: var(--brand-dark); color: #fff; }

/* Stats band ---------------------------------------------------------------*/

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}

.stats-band .stat {
  text-align: center;
  padding: 0 12px;
}

.stats-band .stat .value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.stats-band .stat .label {
  font-size: 0.82rem;
  color: var(--text-gray);
  font-weight: 600;
}

/* About page: capability list + light proof bar ----------------------------*/

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.capability-col {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.capability-col:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.capability-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 14px;
}

.capability-col ul { display: flex; flex-direction: column; gap: 10px; }

.capability-col li {
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--text-dark);
  padding-left: 18px;
  position: relative;
}

.capability-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dark);
}

.proof-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.proof-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.proof-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.proof-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.proof-label {
  font-size: 0.76rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.intro-statement {
  max-width: 820px;
  margin: 0 auto 56px;
}

.intro-statement h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 18px;
}

.approach-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.approach-card-full {
  margin-top: 24px;
  text-align: center;
}

.approach-card-full .eyebrow {
  justify-content: center;
}

.approach-card-full .core-values-list {
  justify-content: center;
}

.approach-card-content .eyebrow {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.approach-card-content h3 {
  margin: 0 0 10px;
}

.core-values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.core-values-list li {
  background: var(--bg-tint-2);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 20px;
}

/* CTA banner ----------------------------------------------------------------*/

.cta-banner {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 0; max-width: 420px; }
.cta-banner .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-banner .btn-primary:hover { background: var(--brand-light); color: var(--brand-dark); }

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

.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 14px; }
.footer-brand img { height: 36px; width: 36px; object-fit: contain; border-radius: 8px; background: #fff; padding: 2px; }

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-grid .footer-col:nth-child(2) {
  padding-left: 100px;
}

.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color .15s ease; }
.footer-col a:hover { color: var(--brand-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* Page hero (inner pages) ------------------------------------------------ */

.page-hero {
  background: var(--bg-tint);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.page-hero h1 .accent { color: var(--brand-primary); }

.page-hero.has-banner {
  position: relative;
  overflow: hidden;
  background: var(--brand-dark);
  border-bottom: none;
  padding: 32px 0 84px;
}

.page-hero.has-banner .page-hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero.has-banner .page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 56, 34, 0.45), rgba(10, 20, 14, 0.65));
  z-index: 1;
}

.page-hero.has-banner .container { position: relative; z-index: 2; }
.page-hero.has-banner h1 { color: #fff; }
.page-hero.has-banner h1 .accent { color: var(--brand-light); }
.page-hero.has-banner p { color: rgba(255, 255, 255, 0.85); }
.page-hero.has-banner .eyebrow { color: #fff; margin-bottom: 32px; }
.page-hero.has-banner .breadcrumb { color: rgba(255, 255, 255, 0.7); }
.page-hero.has-banner .breadcrumb a:hover { color: #fff; }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-gray-light);
  font-weight: 600;
  margin-bottom: 18px;
}

.breadcrumb a:hover { color: var(--brand-primary); }

/* About page specific ----------------------------------------------------*/

.approach-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.approach-step {
  position: relative;
  padding: 32px 24px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
}

.approach-step .step-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.partner-card {
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-tint);
  text-align: center;
}

.partner-card .placeholder-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-tint-2);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Products page ------------------------------------------------------------*/

.solutions-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.solutions-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.solutions-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--border-color);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-gray);
  background: #fff;
  transition: all 0.15s ease;
}

.solutions-nav-link:hover { border-color: var(--brand-light); color: var(--brand-primary); }

.solutions-nav-link.active {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

/* Logo grid: clicking a logo narrows the results below to just its
   assigned products. Hidden tiles (category doesn't match) collapse out of
   the grid entirely rather than just visually fading. */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin: 32px 0 40px;
}

.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.logo-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.logo-tile.active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-primary) inset;
}

.logo-tile.hidden { display: none; }

.logo-tile-media {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-tile-media img { max-width: 100%; max-height: 100%; object-fit: contain; }

.logo-tile-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.sidebar-search {
  position: relative;
  flex: 1 1 340px;
  max-width: 440px;
  min-width: 280px;
}

.sidebar-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-gray-light);
  pointer-events: none;
}

.sidebar-search input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: 30px;
  border: 1.5px solid var(--border-color);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg-tint);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sidebar-search input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.pagination-controls.hidden { display: none; }

.pagination-btn {
  padding: 10px 22px;
  border-radius: 30px;
  border: 1.5px solid var(--border-color);
  background: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) { border-color: var(--brand-primary); color: var(--brand-primary); }

.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.pagination-status {
  font-size: 0.85rem;
  color: var(--text-gray-light);
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.products-prompt {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray-light);
  font-size: 1rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
}

.products-main.awaiting-logo .products-prompt { display: block; }

.products-main.awaiting-logo .products-grid,
.products-main.awaiting-logo .no-results,
.products-main.awaiting-logo .pagination-controls {
  display: none !important;
}

.product-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-tint);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-media {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  overflow: hidden;
  margin-bottom: 16px;
}

.product-media img { width: 100%; height: 100%; object-fit: contain; }

.product-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
}

.product-model {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-gray-light);
  margin-bottom: 4px;
}

.product-name {
  font-size: 1.02rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  min-height: 2.6em;
}

.product-summary {
  font-size: 0.88rem;
  color: var(--text-gray);
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
  line-height: 1.5;
}

.product-applications {
  font-size: 0.84rem;
  color: var(--text-gray-light);
  margin-bottom: 14px;
  text-align: left;
  width: 100%;
}

.product-applications strong { color: var(--text-gray); }

.product-view-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.product-card.hidden { display: none; }

/* Products page: two large "solution family" intro cards ------------------*/

.solution-family-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-tint);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}


.solution-family-media {
  width: 100%;
  height: 680px;
  object-fit: contain;
  background: var(--bg-tint);
}

.solution-family-body { padding: 28px; }

.solution-family-body:last-child { padding-top: 24px; }

.solution-family-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.solution-family-body h3 { font-size: 1.1rem; margin-bottom: 4px; }

/* Click-to-magnify lightbox */
.img-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 14, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
  cursor: zoom-out;
}

.img-lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray-light);
  display: none;
}

.no-results.show { display: block; }

/* Product detail page --------------------------------------------------- */

.product-detail-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.product-detail-media {
  border-radius: var(--radius);
  background: var(--bg-tint);
  border: 1px solid var(--border-color);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zoom-lens {
  position: absolute;
  display: none;
  border: 2px solid var(--brand-primary);
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 5;
}

.zoom-result {
  position: fixed;
  display: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-md);
  z-index: 200;
}

.product-detail-info h1 {
  font-size: 1.7rem;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.product-detail-meta {
  margin-bottom: 20px;
}

.product-detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.product-detail-meta-row .label {
  font-weight: 700;
  color: var(--text-dark);
  flex: 0 0 100px;
}

.product-detail-meta-row .value { color: var(--text-gray); flex: 1 1 200px; }

.product-detail-caption {
  font-size: 0.98rem;
  color: var(--text-gray);
  margin-bottom: 22px;
}

.product-detail-description {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* Pasted supplier spec tables carry heavy inline colours/widths from the
   original source — neutralise them into a plain, responsive black-and-white
   table regardless of what was pasted. */
.product-detail-description .table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
}

.product-detail-description .product-table {
  width: auto !important;
  max-width: none !important;
  background: none !important;
  padding-bottom: 0 !important;
}

.product-detail-description table {
  width: 100% !important;
  max-width: none !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  background: #fff !important;
}

.product-detail-description table tr {
  background: transparent !important;
  border: none !important;
  height: auto !important;
}

.product-detail-description table td,
.product-detail-description table th {
  border: 1px solid var(--border-color) !important;
  padding: 8px 12px !important;
  background: #fff !important;
  color: var(--text-dark) !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  width: auto !important;
  white-space: normal !important;
}

.product-detail-description table th,
.product-detail-description table td:first-child {
  background: var(--bg-tint) !important;
  font-weight: 700 !important;
}

.product-detail-description table td *,
.product-detail-description table th * {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  background: transparent !important;
}

.product-detail-description img { max-width: 100%; border-radius: 8px; margin: 10px 0; }

.product-detail-description-empty {
  color: var(--text-gray-light);
  font-style: italic;
}

.placeholder-note {
  background: var(--bg-tint-2);
  border: 1px dashed var(--brand-light);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 36px;
}

.placeholder-note strong { color: var(--brand-dark); }

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border-color);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-item .ic {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--brand-primary);
}

.contact-info-item h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.contact-info-item p { font-size: 0.9rem; margin-bottom: 0; }

.map-box {
  margin-top: 26px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #fff;
  height: 260px;
  overflow: hidden;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text-dark);
  background: var(--bg-tint);
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-gray-light);
  margin-top: 14px;
  margin-bottom: 0;
}

.form-success {
  display: none;
  background: var(--bg-tint-2);
  border: 1px solid var(--brand-light);
  color: var(--brand-dark);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-success.show { display: block; }

.contact-cta-card { display: flex; flex-direction: column; justify-content: center; min-height: 100%; }

.contact-cta-buttons { display: flex; flex-direction: column; gap: 16px; }

.contact-cta-buttons .btn { width: 100%; justify-content: center; padding: 16px 24px; font-size: 1rem; }

.btn-icon { font-size: 1.15rem; }

.btn-whatsapp { background: #25d366; color: #fff; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: #1ebe5a; }

.btn-email { background: var(--brand-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-email:hover { background: var(--brand-dark); }

.btn-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-disabled:hover { transform: none; }

/* Responsive ----------------------------------------------------------------*/

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .product-detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { padding-top: 109px; }
  .hero { min-height: 420px; }
  .page-hero.has-banner { padding: 64px 0 56px; }
  .feature-row, .feature-row.reverse { flex-direction: column; gap: 24px; margin-bottom: 40px; }
  .feature-row-media { flex: none; width: 100%; }
  .modal-box { padding: 28px 20px; }
  .capability-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .proof-bar { text-align: center; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-wrap.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
  }
  .grid-3, .grid-2, .products-grid { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: 1fr; }
  .solutions-toolbar { flex-direction: column; align-items: stretch; }
  .sidebar-search { min-width: 0; max-width: none; }
  .product-media { width: 100%; height: 200px; }
  .brand img { height: 64px; }
  .site-header.scrolled .brand img { height: 44px; }
  .cta-banner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
