/* ============================================================
   Dynamic Manufacturing Inc – Clone Stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --dmi-blue:       #50AFB9;
  --dmi-blue-light: #A8D7DC;
  --dmi-blue-dark:  #28585D;
  --dmi-green:      #3BD23D;

  --primary:        #28585D;
  --primary-hover:  #50AFB9;
  --success:        rgba(0,200,83,1);
  --info:           #2196f3;
  --error:          #f44336;
  --warning:        #ff9800;

  --text-primary:   rgba(66,66,66,1);
  --text-secondary: rgba(0,0,0,0.5372549);
  --surface:        #fff;
  --lines:          rgba(0,0,0,0.1176);

  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.43;
  letter-spacing: 0.01071em;
  color: #424242;
  background: #fff;
}

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

a { color: var(--primary); text-decoration: none; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0.5rem 0; padding: 0 0 0 2rem; }
li { margin: 0.25rem 0; }

p {
  margin: 0;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.00938em;
  color: #424242;
}

h1,h2,h3,h4,h5,h6 { margin: 0 0 0.5rem 0; color: #424242; }
h1 { font-size: 3.75rem; font-weight: 700; line-height: 1.167; letter-spacing: -0.01562em; color: #000; }
h2 { font-size: 3rem; font-weight: 300; line-height: 1.2; letter-spacing: -0.00833em; margin-bottom: 16px; }
h3 { font-size: 2.125rem; font-weight: 400; line-height: 1.167; letter-spacing: normal; margin: 0; }
h4 { font-size: 1.5rem;  font-weight: 400; line-height: 1.235; letter-spacing: 0.00735em; }
h5 { font-size: 1.5rem;  font-weight: 400; line-height: 1.334; letter-spacing: 0; }
h6 { font-size: 1.25rem; font-weight: 500; line-height: 1.6;   letter-spacing: 0.0075em; }

hr.divider {
  border: none;
  border-top: 1px solid var(--lines);
  margin: 2rem 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.max-content   { width: 100%; max-width: 1500px; margin: 0 auto; }

.d-flex        { display: flex; }
.flex-column   { flex-direction: column; }
.flex-row      { flex-direction: row; }
.flex-wrap     { flex-wrap: wrap; }
.flex-grow-1   { flex-grow: 1; }
.align-center  { align-items: center; }
.align-start   { align-items: flex-start; }
.align-end     { align-items: flex-end; }
.justify-center{ justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end   { justify-content: flex-end; }
.justify-between{ justify-content: space-between; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.text-center { text-align: center; }

.fw-bold { font-weight: 700; }
.fw-600  { font-weight: 600; }

/* MudBlazor spacing utilities (unit = 4px) */
.pa-2  { padding: 0.5rem; }
.pa-4  { padding: 1rem; }
.pa-8  { padding: 2rem; }
.px-4  { padding-left: 1rem; padding-right: 1rem; }
.px-8  { padding-left: 2rem; padding-right: 2rem; }
.py-4  { padding-top: 1rem; padding-bottom: 1rem; }
.py-8  { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-4  { padding-top: 1rem; }
.pb-4  { padding-bottom: 1rem; }
.pl-8  { padding-left: 2rem; }

.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.ms-16 { margin-left: 4rem; }
.my-8  { margin-top: 2rem; margin-bottom: 2rem; }
.my-16 { margin-top: 4rem; margin-bottom: 4rem; }

/* ============================================================
   COLORS
   ============================================================ */
.blue-bg    { background-color: var(--dmi-blue) !important; }
.black-text { color: #000 !important; }
.white-text { color: #fff !important; }

/* ============================================================
   APPBAR / NAVBAR
   ============================================================ */
#appbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: var(--dmi-blue);
  box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
  height: var(--nav-height);
}

.nav-toolbar {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  max-width: 1500px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { width: 60px; height: 50px; object-fit: contain; }
.nav-logo:hover { text-decoration: none; }

.nav-spacer { flex: 1; }

/* Desktop menu */
.top-menu {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
}

.nav-link, .dropdown-btn {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 4px;
  transition: background 0.15s;
}

.nav-link:hover, .dropdown-btn:hover {
  background: rgba(0,0,0,0.08);
  text-decoration: none;
}

.nav-link.active {
  background: rgba(0,0,0,0.10);
}

/* Dropdown */
.dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.dropdown-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.2s;
}

.dropdown:hover .dropdown-btn svg,
.dropdown.open .dropdown-btn svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  border-radius: 4px;
  z-index: 2000;
  padding: 4px 0;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(80,175,185,0.12);
  color: var(--primary);
  text-decoration: none;
}

/* Hamburger */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.hamburger-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: #000;
  transition: all 0.3s;
}

@media (max-width: 960px) {
  .hamburger-btn { display: flex; }
  .top-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--dmi-blue);
    flex-direction: column;
    align-items: stretch;
    height: auto;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    overflow-y: auto;
    max-height: calc(100vh - var(--nav-height));
  }
  .top-menu.open { display: flex; }

  .nav-item { height: auto; }

  .nav-link, .dropdown-btn {
    height: auto;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    width: 100%;
  }

  .dropdown {
    flex-direction: column;
    height: auto;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0,0,0,0.06);
    display: none;
    padding: 0;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 12px 32px; }
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#main-content {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

/* ============================================================
   PAGE HERO BANNER
   ============================================================ */
.page-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero-title {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  pointer-events: none;
}

.page-hero-title h1 {
  display: inline-block;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-weight: 700;
  font-size: 3.75rem;
  line-height: 1.167;
  padding: 8px;
  margin-left: 4rem;
}

/* ============================================================
   HOME PAGE HERO
   ============================================================ */
.home-hero {
  width: 100%;
}

.home-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 4rem 2rem;
  width: 100%;
  max-width: 1500px;
  margin: auto;
  text-align: center;
  background-color: lightgray;
}

.home-hero-inner h1 {
  font-size: 3.75rem;
  font-weight: 700;
  color: #000;
  line-height: 1.167;
  letter-spacing: -0.01562em;
  margin: 0;
  text-align: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  min-width: 64px;
  height: 36.5px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  gap: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12);
}
.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
  color: #fff;
}

.btn-success {
  background: var(--success);
  color: #000;
  box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12);
}
.btn-success:hover {
  background: #45a049;
  text-decoration: none;
  color: #000;
}

.btn-text-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.btn-text-icon:hover { background: rgba(0,0,0,0.06); text-decoration: none; }
.btn-text-icon svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-content {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #424242;
  letter-spacing: 0.01071em;
  line-height: 1.43;
  padding: 16px;
}

.card-icon { width: 36px; height: 36px; }
.card-icon svg { width: 36px; height: 36px; fill: currentColor; }

.icon-secondary { color: rgba(255,64,129,1); }
.icon-success   { color: var(--success); }
.icon-info      { color: var(--info); }
.icon-error     { color: var(--error); }
.icon-warning   { color: var(--warning); }

/* ============================================================
   TABS
   ============================================================ */
.tabs-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.tab-bar {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid var(--lines);
  gap: 0;
  flex-wrap: nowrap;
  min-width: max-content;
  margin: 0 auto;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  min-width: 160px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn svg { width: 24px; height: 24px; fill: currentColor; }

.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel { display: none; padding: 1rem 0; text-align: center; }
.tab-panel.active { display: block; }

/* ============================================================
   CHIPS
   ============================================================ */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 500;
}

.chip svg { width: 16px; height: 16px; fill: #fff; }

/* ============================================================
   PROCESS CAROUSEL (Remanufacturing)
   ============================================================ */
.process-carousel {
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  padding: 2rem 3rem;
  position: relative;
  height: 200px;
  display: flex;
  flex-direction: column;
}

.carousel-slides {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
}

.carousel-slide.active {
  transform: translateX(0%);
}

.carousel-slide-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.carousel-slide-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.carousel-slide-title svg { width: 36px; height: 36px; fill: #fff; }

.process-carousel p,
.process-carousel h1,
.process-carousel h2,
.process-carousel h3,
.process-carousel h4,
.process-carousel h5,
.process-carousel h6 { color: #fff; }

.carousel-slide hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin: 0.5rem 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-nav-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  opacity: 0.75;
}
.carousel-nav-btn:hover { opacity: 1; background: rgba(255,255,255,0.15); }
.carousel-nav-btn svg { width: 24px; height: 24px; fill: #fff; }

.carousel-dots { display: flex; gap: 4px; }

.dot-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  opacity: 0.75;
}
.dot-btn:hover { opacity: 1; }
.dot-btn svg { width: 18px; height: 18px; }
.dot-btn .dot-circle { fill: rgba(255,255,255,0.4); }
.dot-btn.active .dot-circle { fill: #fff; }

/* ============================================================
   MAP
   ============================================================ */
#map {
  width: 100%;
  height: 350px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

/* ============================================================
   DOCUMENT LIST
   ============================================================ */
.document-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}
.doc-link:hover { background: rgba(80,175,185,0.1); color: var(--primary); text-decoration: none; }
.doc-link svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ============================================================
   FLUID IMAGES
   ============================================================ */
.img-fluid {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #fff;
  border-top: 1px solid var(--lines);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.footer-col-heading {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-logo { width: 160px; height: auto; }
.footer-copy { font-size: 0.875rem; color: var(--text-secondary); margin-top: 0.5rem; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-nav-link {
  display: inline-flex;
  width: fit-content;
  padding: 4px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.footer-nav-link:hover {
  color: var(--primary);
  transform: translateX(4px);
  text-decoration: none;
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-link {
  display: inline-flex;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-link:hover { color: var(--primary); text-decoration: none; }

.footer-seals-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.footer-seals-row img { height: 80px; width: auto; }

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-seals-row {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PAGE CONTENT WRAPPER
   ============================================================ */
.page-content {
  padding: 1rem;
  max-width: 1500px;
  margin: 0 auto;
}

/* ============================================================
   HOME – alternating content rows
   ============================================================ */
.content-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.content-grid.text-image { grid-template-columns: 2fr 1fr; }
.content-grid.image-text { grid-template-columns: 1fr 2fr; }
.content-grid.text-7-img-5 { grid-template-columns: 7fr 5fr; }
.content-grid.img-5-text-7 { grid-template-columns: 5fr 7fr; }

@media (max-width: 768px) {
  .content-grid.text-image,
  .content-grid.image-text,
  .content-grid.text-7-img-5,
  .content-grid.img-5-text-7 {
    grid-template-columns: 1fr;
  }
  .content-grid.image-text > *:first-child,
  .content-grid.img-5-text-7 > *:first-child {
    order: 2;
  }
  .content-grid.image-text > *:last-child,
  .content-grid.img-5-text-7 > *:last-child {
    order: 1;
  }
}

/* ============================================================
   HOME info cards row
   ============================================================ */
.info-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 4rem auto;
  max-width: 1050px;
}

@media (max-width: 768px) {
  .info-cards-row { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT US – mission cards
   ============================================================ */
.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 1rem auto;
}

@media (max-width: 768px) {
  .mission-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   ICE DRIVETRAIN – product circles
   ============================================================ */
.product-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.product-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.circular-img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .product-circles { grid-template-columns: 1fr; }
}

/* ============================================================
   WHY DYNAMIC – two col
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT BUTTONS ROW
   ============================================================ */
.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ============================================================
   SUPPLIER PAGE
   ============================================================ */
.supplier-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .supplier-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MACHINING
   ============================================================ */
.machining-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.machining-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .machining-grid { grid-template-columns: 1fr; }
  .machining-images { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   STORY PAGE
   ============================================================ */
.story-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.story-row-1 { grid-template-columns: 1fr 2fr; }
.story-row-2 { grid-template-columns: 2fr 1fr; }
.story-row-3 { grid-template-columns: 1fr 2fr; }

@media (max-width: 768px) {
  .story-row-1,.story-row-2,.story-row-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   ELECTRIFICATION
   ============================================================ */
.elec-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 4rem 0;
}

@media (max-width: 768px) {
  .elec-image-pair { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
#page-view { transition: opacity 0.12s ease; }
#page-view.loading { opacity: 0; }

/* ============================================================
   PAGE HERO responsive
   ============================================================ */
@media (max-width: 960px) {
  .home-hero h1 { font-size: 40px; }
  .page-hero-title h1 { font-size: 40px; }
}

@media (max-width: 600px) {
  .page-hero-title h1 {
    font-size: 28px;
    margin-left: 1rem;
  }
  .home-hero h1 { font-size: 28px; }
}

/* EV brochure link */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  text-decoration: underline;
}
.pdf-link svg { width: 20px; height: 20px; fill: currentColor; }
.pdf-link:hover { color: var(--primary); }

/* WBE seal white bg */
.wbe-seal {
  background-color: white;
  border-radius: 15px;
}

/* ============================================================
   LEADERSHIP TEAM PAGE
   ============================================================ */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}

.leader-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.leader-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.leader-avatar-placeholder {
  width: 100%;
  height: 260px;
  background: var(--dmi-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leader-avatar-placeholder svg {
  width: 100px;
  height: 100px;
  fill: var(--dmi-blue-dark);
  opacity: 0.5;
}

.leader-info {
  padding: 1.5rem;
  flex: 1;
}

.leader-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.leader-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dmi-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}

.leader-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Founder section */
.founder-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.founder-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.founder-text h4 {
  color: var(--dmi-blue-dark);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0;
}

.founder-dates {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

.founder-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 400px;
}

@media (max-width: 700px) {
  .founder-section {
    grid-template-columns: 1fr;
  }
  .founder-img { order: -1; }
}
