/*
Theme Name: Ditton Theme
Theme URI: https://ditton.com.sg
Author: Ditton Engineering Pte Ltd
Description: Bold industrial theme for Ditton Engineering Pte Ltd — pneumatic automation distributor, Singapore.
Version: 2.0
License: Proprietary
Text Domain: ditton
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --black: #1a1a1a;
  --dark: #222222;
  --mid: #555555;
  --light: #f5f5f5;
  --white: #ffffff;
  --border: #e0e0e0;
  --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --max-w: 1200px;
  --header-h: 80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
}
.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  text-decoration: none;
}

/* ===== SECTION SPACING ===== */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-light { background: var(--light); }
.section-red { background: var(--red); color: var(--white); }
.section-red h2, .section-red h3 { color: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-dark .section-header .eyebrow { color: #ff6666; }
.section-red .section-header .eyebrow { color: rgba(255,255,255,0.7); }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--mid); max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }
.section-red .section-header p { color: rgba(255,255,255,0.85); }

/* ===== PAGE BANNER ===== */
.page-banner {
  background: var(--dark);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 6px; height: 100%;
  background: var(--red);
}
.page-banner .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.page-banner h1 { color: var(--white); }
.page-banner p { color: rgba(255,255,255,0.7); margin-top: 12px; max-width: 600px; font-size: 1.05rem; }

/* ===== HEADER ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.logo-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.logo-d {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.logo-itton {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}
.logo-rule {
  height: 3px;
  background: var(--red);
  margin: 3px 0;
}
.logo-tagline {
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

/* Nav */
#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
#main-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
}
#main-nav ul li a:hover,
#main-nav ul li.current-menu-item a {
  color: var(--red);
  text-decoration: none;
}
.nav-cta a {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
}
.nav-cta a:hover { background: var(--red-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
}

/* ===== FOOTER ===== */
#site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.8);
}
.footer-main { padding: 56px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-logo { margin-bottom: 16px; }
.footer-logo .logo-d,
.footer-logo .logo-itton { color: var(--white); }
.footer-logo .logo-itton { color: rgba(255,255,255,0.85); }
.footer-logo .logo-d { color: var(--red); }
.footer-logo .logo-tagline { color: rgba(255,255,255,0.5); }
.footer-about { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.6); margin-top: 12px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--white); }
.footer-contact-icon { color: var(--red); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ===== HOME: HERO ===== */
.hero {
  background: var(--dark);
  min-height: calc(90vh - var(--header-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 30%, rgba(204,0,0,0.12) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 80px 0; }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); max-width: 700px; margin-bottom: 24px; }
.hero h1 span { color: var(--red); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-num span { color: var(--red); }
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ===== HOME: ABOUT STRIP ===== */
.about-strip { background: var(--white); }
.about-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-strip-text .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.about-strip-text h2 { margin-bottom: 20px; }
.about-strip-text p { color: var(--mid); }
.about-strip-visual {
  background: var(--dark);
  padding: 40px;
  position: relative;
}
.about-strip-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: var(--red);
}
.about-fact {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.about-fact:last-child { border-bottom: none; padding-bottom: 0; }
.about-fact:first-child { padding-top: 0; }
.about-fact-num { font-size: 2rem; font-weight: 700; color: var(--red); line-height: 1; }
.about-fact-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ===== HOME: SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.service-card {
  background: var(--white);
  padding: 40px 32px;
  position: relative;
  transition: background 0.2s;
}
.service-card:hover { background: var(--light); }
.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card-icon svg { width: 24px; height: 24px; fill: var(--white); }
.service-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.service-card p { color: var(--mid); font-size: 14px; }
.service-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
}

/* ===== HOME: BRANDS ===== */
.brands-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  margin-bottom: 2px;
}
.brand-featured-card {
  background: var(--white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand-featured-card:hover { background: var(--light); }
.brand-featured-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}
.brand-featured-desc { font-size: 13px; color: var(--mid); }
.brand-featured-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border-top: 2px solid var(--red);
  padding-top: 6px;
}
.brands-standard-strip {
  background: var(--dark);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
}
.brands-standard-strip .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.brands-standard-strip span {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* ===== HOME: CTA BAND ===== */
.cta-band {
  background: var(--red);
  padding: 64px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 { color: var(--white); max-width: 500px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 8px; }

/* ===== ABOUT PAGE ===== */
.about-intro-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
}
.about-intro-text p { color: var(--mid); }
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}
.value-card {
  background: var(--white);
  padding: 32px;
}
.value-card-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--mid); font-size: 14px; }
.sidebar-card {
  background: var(--dark);
  padding: 32px;
  position: relative;
}
.sidebar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--red);
}
.sidebar-card h3 { color: var(--white); margin-bottom: 16px; }
.sidebar-fact { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-fact:last-child { border-bottom: none; }
.sidebar-fact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.sidebar-fact-val { font-size: 15px; font-weight: 600; color: var(--white); }

/* ===== BRANDS PAGE ===== */
.brands-page-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.brand-page-card {
  background: var(--white);
  padding: 36px 32px;
  position: relative;
}
.brand-page-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width 0.3s;
}
.brand-page-card:hover::after { width: 100%; }
.brand-page-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.brand-page-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.brand-page-card p { color: var(--mid); font-size: 14px; line-height: 1.6; }

.brands-standard-section { padding: 56px 0; background: var(--light); }
.brands-standard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px;
  background: var(--border);
  margin-top: 32px;
}
.brand-std-card {
  background: var(--white);
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.brand-std-card:hover { background: var(--light); color: var(--red); }

/* ===== SERVICES PAGE ===== */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.service-page-card {
  background: var(--white);
  padding: 48px 36px;
}
.service-page-num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}
.service-page-card h3 { font-size: 1.3rem; margin-bottom: 16px; }
.service-page-card p { color: var(--mid); font-size: 14px; line-height: 1.7; }
.service-page-card ul { margin-top: 16px; }
.service-page-card ul li {
  font-size: 14px;
  color: var(--mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 14px;
  position: relative;
}
.service-page-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--red);
}
.service-page-card ul li:last-child { border-bottom: none; }

/* ===== PRODUCTS PAGE ===== */
.products-intro { padding: 48px 0; background: var(--white); }
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
  background: var(--border);
}
.catalogue-card {
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.catalogue-card-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.catalogue-card h4 { margin-bottom: 8px; font-size: 1rem; }
.catalogue-card p { color: var(--mid); font-size: 13px; flex: 1; }
.catalogue-card-footer { margin-top: 16px; }
.catalogue-card .btn { font-size: 12px; padding: 8px 16px; }

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce-page .page-banner { margin-bottom: 0; }
body.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 2px !important;
  background: var(--border) !important;
  margin: 0 !important;
}
body.woocommerce ul.products li.product {
  background: var(--white) !important;
  padding: 24px !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--black) !important;
  padding: 0 !important;
  margin-top: 12px !important;
}
body.woocommerce ul.products li.product .price { color: var(--red) !important; }
body.woocommerce ul.products li.product a.button,
body.woocommerce a.button,
body.woocommerce button.button,
body.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 0 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 10px 20px !important;
}
body.woocommerce a.button:hover,
body.woocommerce button.button:hover { background: var(--red-dark) !important; }
.woocommerce div.product div.images { margin-bottom: 24px; }
.woocommerce div.product .product_title { font-size: 1.8rem; color: var(--black); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--mid); }
.woocommerce-breadcrumb { font-size: 13px; color: var(--mid); margin-bottom: 24px; }
.woocommerce-breadcrumb a { color: var(--red); }

/* Inquiry button */
.product-inquiry-wrap { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.product-inquiry-wrap h4 { margin-bottom: 12px; font-size: 1rem; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-details h3 { margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 18px; height: 18px; fill: var(--white); }
.contact-item-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 4px;
}
.contact-item-val { font-size: 15px; color: var(--dark); font-weight: 500; }
.contact-item-val a { color: var(--dark); }
.contact-item-val a:hover { color: var(--red); text-decoration: none; }
.contact-map { margin-top: 32px; }
.contact-map iframe { width: 100%; border: none; display: block; }
/* CF7 overrides */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus { outline: none; border-color: var(--red); }
.wpcf7 textarea { height: 140px; resize: vertical; }
.wpcf7 input[type="submit"] {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.wpcf7 input[type="submit"]:hover { background: var(--red-dark); }
.contact-form-wrap h3 { margin-bottom: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .brands-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-page-featured { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .services-page-grid { grid-template-columns: 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  #main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 3px solid var(--red); padding: 16px 24px; }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 0; }
  #main-nav ul li a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .about-strip-grid { grid-template-columns: 1fr; }
  .brands-featured-grid { grid-template-columns: 1fr; }
  .brands-page-featured { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 56px 0; }
  .section { padding: 48px 0; }
}

/* ===== UNIFIED BRAND GRID ===== */
.brand-unified-grid {
  display: grid;
  gap: 2px;
  background: var(--border);
}
.brand-unified-grid--featured {
  grid-template-columns: repeat(4, 1fr);
}
.brand-unified-grid--standard {
  grid-template-columns: repeat(4, 1fr);
}
.brand-unified-card {
  background: var(--white);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.2s;
}
.brand-unified-card:hover {
  background: var(--light);
}
.brand-card-dark {
  background: #1e1e1e !important;
}
.brand-card-dark:hover {
  background: #2a2a2a !important;
}
.brand-card-dark .brand-card-name {
  color: var(--white);
}
.brand-card-dark .brand-card-desc {
  color: rgba(255,255,255,0.6);
}
.brand-card-dark .brand-card-label {
  color: #ff6666;
}

/* Red bottom border reveal on hover */
.brand-unified-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width 0.3s ease;
}
.brand-unified-card:hover::after { width: 100%; }

.brand-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  min-height: 16px;
}

/* Logo container — fixed height, centred, consistent padding */
.brand-card-logo-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: 16px;
  background: rgba(0,0,0,0.03);
}
.brand-card-dark .brand-card-logo-wrap {
  background: rgba(255,255,255,0.05);
}
.brand-card-logo-wrap img {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.brand-card-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0;
}
.brand-badge-red {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 4px 10px;
  align-self: flex-start;
}

/* Standard grid — no label, slightly more compact */
.brand-unified-grid--standard .brand-unified-card {
  padding: 24px 20px 20px;
}
.brand-unified-grid--standard .brand-card-logo-wrap {
  height: 70px;
}
.brand-unified-grid--standard .brand-card-logo-wrap img {
  max-height: 52px;
}
.brand-unified-grid--standard .brand-card-name {
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .brand-unified-grid--featured { grid-template-columns: repeat(2, 1fr); }
  .brand-unified-grid--standard { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .brand-unified-grid--featured { grid-template-columns: repeat(2, 1fr); }
  .brand-unified-grid--standard { grid-template-columns: repeat(2, 1fr); }
}
