/* Base */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background-color: #f4f5f7;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */

.top-bar {
  background: #222;
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 16px;
  text-align: center;
}

.top-bar-phone {
  font-weight: 600;
  margin-left: 8px;
}

/* Header */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e4e8;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}

.logo img {
  height: 104px;
}

/* Nav */

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.main-nav a {
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: #001f89;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid #d0d3dc;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #222;
  display: block;
  margin: 3px 0;
}

/* when menu is open, animate icon a bit (optional) */
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.header-cta {
  display: flex;
  gap: 8px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #001f89;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: #001463;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-outline {
  background: transparent;
  color: #001f89;
  border: 1px solid #001f89;
}

.btn-outline:hover {
  background: #001f89;
  color: #fff;
}

.btn-fullwidth {
  width: 100%;
}

/* Hero */

.hero {
  background: radial-gradient(
    circle at top left,
    #dbe3f8,
    #f4f5f7
  );
      padding-bottom: 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 40px;
  align-items: start;
}

.hero-copy h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
}

.hero-copy p {
  margin: 0 0 20px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.9rem;
  color: #555;
}

.hero-meta span::before {
  content: "• ";
  color: #001f89;
}

.hero-image {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Sections */

.section {
  padding: 40px 0;
}

.section-alt {
  background: #ffffff;
}

.section h2 {
  font-size: 1.8rem;
  margin: 0 0 8px;
  text-align: center;
}

.section-lead {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
  color: #555;
  line-height: 1.6;
}

/* Equipment grid */

.equipment-grid {
  display: grid;
  gap: 20px;
  justify-content: center; /* center leftover space */
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.equipment-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.equipment-body {
  padding: 16px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.equipment-body .resource-links,
.equipment-body .card-link {
  margin-top: auto;
}

.equipment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.equipment-image {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #ffffff;
}

.equipment-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.equipment-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.equipment-body p {
  margin: 6px 0 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #444;
}

/* Clean spec-style bullets */

.equipment-card ul {
  margin: 6px 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #444;
}

.equipment-card li {
  margin: 2px 0;
  padding-left: 16px;
  position: relative;
}

.equipment-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #001f89;
  font-size: 1rem;
  line-height: 1;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #001f89;
}


/* Brochure / document links under equipment cards */
.doc-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
}

.doc-links a {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d0d3dc;
  background: #f8f9fc;
  color: #001f89;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.doc-links a:hover {
  background: #001f89;
  color: #ffffff;
  border-color: #001f89;
}

/* Why ABS */

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

.feature {
  background: #f4f5f7;
  border-radius: 14px;
  padding: 18px 20px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* Design & consulting section */

.design-flex {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 28px;
  align-items: start;
}

.design-copy h2 {
  text-align: left;
  margin-bottom: 12px;
}

.design-copy p {
  line-height: 1.6;
  color: #555;
}

.design-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.design-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.design-card form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.design-card label {
  display: block;
  font-size: 0.85rem;
  color: #444;
}

.design-card input,
.design-card select,
.design-card textarea {
  width: 100%;
  margin-top: 4px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  font-family: inherit;
}

/* Footer */

.site-footer {
  background: #001f89;
  color: #ddd;
  padding: 24px 0 20px;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #ddd;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-meta {
  font-size: 0.85rem;
  color: #aaa;
}

/* Dealers page layout */

.dealer-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.dealer-map h2,
.dealer-output h2 {
  text-align: left;
}

/* Alphabetical state list */

.state-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.state-item {
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid #d0d3dc;
  background: #ffffff;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.state-item:hover {
  background: #eef1fb;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.state-item.active {
  background: #001f89;
  color: #ffffff;
  box-shadow: 0 0 0 1px #001f89, 0 3px 10px rgba(0,0,0,0.2);
}

.dealer-output {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  font-size: 0.95rem;
}

.dealer-output p {
  line-height: 1.6;
}

.dealer-map-img {
  width: 60%;
  max-width: 520px;
  display: block;
  margin: 0 auto; /* centers it */
}

.dealer-hero {
  display: grid;
  grid-template-columns: 1fr 450px; /* fixes card width */
  align-items: center;
  gap: 40px;
}

.dealer-hero-map {
  max-width: 450px;
}

.dealer-hero-map .dealer-map-card {
  max-width: 100%; /* map card fills only the right column */
}

/* Spiral mixers hero feature chips */

.hero-specs {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px 16px;
}

.hero-specs li {
  position: relative;
  padding: 6px 14px 7px 26px;
  border-radius: 999px;
  background: #ffffff;
  color: #001f89;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.hero-specs li::before {
  content: "•";
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-55%);
  font-size: 1.2rem;
  line-height: 1;
  color: #001f89;
}

/* Document links inside equipment cards */
.doc-links {
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-links a {
  display: inline-block;
  background: #eef2ff; /* soft ABS-blue tint */
  color: #001f89;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.doc-links a:hover {
  background: #d9e2ff;
  transform: translateY(-2px);
}

.doc-links a::before {
  content: "📄 ";
  font-size: 1.1rem;
  vertical-align: -1px;
}

/* Resource labels under each mixer card */
/* Default: 1 row, up to 3 labels */
.resource-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px 10px;
  align-items: center;
}

.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  color: #fff;
}

.category-tag.removable {
  background-color: #8c3fed; /* purple tag */
}

/* On smaller screens, allow them to wrap naturally */
@media (max-width: 700px) {
  .resource-links {
    flex-wrap: wrap;
  }
}

/* Special layout: 2 per row (for 4 links) */
.resource-links.split-two {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 10px;
  align-items: start;
}


.resource-links a {
  text-decoration: none;
}

.resource-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

/* Little colored badges: Brochure / Manual / CAD Symbol */
.doc-label {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  color: #fff;
}

.doc-label.brochure {
  background-color: #001f89; /* ABS blue */
}

.doc-label.manual {
  background-color: #001f89; /* ABS blue */
}

.doc-label.cad {
  background-color: #001f89; /* ABS blue */
}


.brochure { background-color: #001f89; }   /* ABS blue */
.manual { background-color: #001f89; }     /* ABS blue */
.cad { background-color: #001f89; }        /* ABS blue */



/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .hero-specs {
    flex-wrap: wrap;
  }

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

  .design-flex {
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none; /* hide big CTAs on small screens */
  }

  .header-inner {
    position: relative; /* anchor the dropdown nav */
  }

  .nav-toggle {
    display: inline-flex; /* show hamburger on mobile */
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 12px 16px 16px;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid #e2e4e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: none; /* hidden by default */
    z-index: 40;
  }

  .main-nav.nav-open {
    display: flex; /* shown when toggled */
  }
}


/* ===== Video Container ===== */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

@media (max-width: 640px) {
 
  .hero {
    padding: 32px 0 28px;
  }

  .hero-copy h1 {
    font-size: 1.8rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Responsive Equipment Grid ===== */

/* Small screens: 1 column */
@media (max-width: 639px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }
}

/* Medium screens: 2 columns */
@media (min-width: 640px) and (max-width: 999px) {
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Large screens: auto-fit (5+ cards per row if space allows) */
@media (min-width: 1000px) {
  .equipment-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* Desktop: keep the hero title on one line */
@media (min-width: 900px) {
  .hero-copy h1 {
    white-space: nowrap;
  }
}
