/*
 * American Iron LLC – Website Stylesheet
 *
 * This stylesheet defines the typography, colours and layout used across
 * the American Iron LLC marketing website.  The palette is derived from
 * the company’s existing site – a bold golden yellow paired with
 * contrasting black and light neutrals.  The CSS has been kept simple
 * and semantic for ease of maintenance and future expansion.
 */

/* CSS custom properties for consistent colour usage */
:root {
  /* Caterpillar inspired yellow and black colour palette */
  --primary-color: #FFCD00;        /* Caterpillar yellow accent */
  --secondary-color: #000000;      /* true black for text and backgrounds */
  --light-bg: #f4f4f4;             /* light grey background to contrast with black */
  --dark-bg: #111111;              /* slightly lighter black for dark sections */
  --text-color: #333333;           /* standard body text colour */
  --muted-text: #666666;           /* slightly muted text for secondary copy */
  --border-radius: 4px;            /* small radius used on buttons and cards */
}

/* Global resets and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

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

header {
  background-color: #ffffff;
  border-bottom: 3px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Social media icons in header */
.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-left: 1rem;
}

.social-icons a {
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: color 0.2s ease-in-out;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.nav-wrapper img.logo {
  height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav li {
  position: relative;
}

nav li a {
  font-weight: bold;
  color: var(--secondary-color);
}

/* Dropdown menu for services */
.dropdown {
  cursor: pointer;
}

.dropdown ul {
  position: absolute;
  top: 2.2rem;
  left: 0;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 0.5rem 0;
  display: none;
  min-width: 180px;
  z-index: 100;
}

.dropdown:hover ul {
  display: block;
}

.dropdown ul li {
  display: block;
  padding: 0.4rem 1rem;
}

.dropdown ul li a {
  color: var(--text-color);
  font-weight: normal;
}

.dropdown ul li a:hover {
  color: var(--primary-color);
}

/* Hero section with video slider */
#hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
  color: #ffffff;
}

/* Container for background videos */
#hero .video-slider video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#hero .video-slider video.active {
  opacity: 1;
}

/* Semi‑transparent overlay behind text for readability */
#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Wrapper for hero text content */
#hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

#hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

#hero p {
  font-size: 1.2rem;
  color: #f0f0f0;
  max-width: 600px;
  margin: 0 auto 2rem;
}

#hero .btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.8rem 1.6rem;
  font-weight: bold;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

/* Hover colour for hero button is a slightly darker gold */
#hero .btn:hover {
  background-color: #e6b800;
  color: var(--secondary-color);
}

/* Utility classes */
.text-center {
  text-align: center;
}

/* Parts section */
#parts {
  padding: 3rem 0;
  background-color: #ffffff;
}

#parts h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--secondary-color);
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.part-card {
  background-color: #fafafa;
  border: 1px solid #e5e5e5;
  border-top: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.part-card:hover {
  transform: translateY(-5px);
}

.part-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.part-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.part-card p {
  font-size: 0.9rem;
  color: var(--muted-text);
}

.view-all {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.view-all a {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.view-all a:hover {
  background-color: #e6b800;
}

/* About section */
#about {
  background-color: var(--dark-bg);
  color: #ffffff;
  padding: 3rem 0;
}

#about h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

#about p {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
  color: #eaeaea;
}

#about .btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

#about .btn:hover {
  background-color: #e6b800;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: #cccccc;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

footer .footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

footer .column {
  flex: 1;
  min-width: 220px;
}

footer h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: #cccccc;
  transition: color 0.2s ease-in-out;
}

footer ul li a:hover {
  color: var(--primary-color);
}

footer .newsletter {
  margin-top: 1rem;
}

footer .newsletter input[type="email"] {
  padding: 0.5rem;
  width: 100%;
  border: 1px solid #444;
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

footer .newsletter button {
  width: 100%;
  padding: 0.5rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

footer .newsletter button:hover {
  background-color: #e6b800;
}

/* Form styles */
form {
  display: grid;
  gap: 1rem;
}

form .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

form input,
form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
  width: 100%;
}

form button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  margin-top: 1rem;
}

form button:hover {
  background-color: #e6b800;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  #hero h1 {
    font-size: 2rem;
  }
  #parts {
    padding: 2rem 0;
  }
}

/* Generic hero banner for inner pages */
.page-hero {
  margin: 2rem 0;
}

.page-hero img,
.page-hero video {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

/* Equipment listing filter */
.equipment-filter {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.equipment-filter input {
  width: 100%;
  max-width: 420px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid #d0d0d0;
  font-size: 0.95rem;
}

/* Listing card refinements */
.equipment-grid--listings .equipment-card {
  align-items: flex-start;
  text-align: left;
}

.equipment-card--listing img {
  margin-bottom: 1rem;
}

.equipment-meta,
.equipment-price,
.equipment-id {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.equipment-price {
  font-weight: bold;
}

/* Back-to-top button */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: none;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: none;
  background-color: var(--secondary-color);
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 999;
}

#backToTop.show {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Enable click-to-open behaviour on small screens */
.dropdown ul.open {
  display: block;
}

/* Shipping calculators layout */
.shipping-calculators {
  margin-top: 2rem;
}

.shipping-calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.shipping-card {
  background-color: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.shipping-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.shipping-form .field-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.shipping-form label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.shipping-form input,
.shipping-form select {
  padding: 0.4rem 0.6rem;
  border-radius: var(--border-radius);
  border: 1px solid #d0d0d0;
  font-size: 0.9rem;
}

.shipping-form button {
  margin-top: 0.75rem;
  background-color: var(--primary-color);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.shipping-form button:hover {
  background-color: #e6b800;
}

.shipping-result {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
}


/* Responsive equipment list table */
.equipment-table-wrapper {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.equipment-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.equipment-list-table th,
.equipment-list-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e3e3e3;
  text-align: left;
}

.equipment-list-table th:first-child,
.equipment-list-table td:first-child {
  width: 72px;
}

.equipment-list-table .eq-photo img {
  max-width: 56px;
  max-height: 56px;
  border-radius: var(--border-radius);
  display: block;
}

.equipment-list-table .eq-main strong {
  display: block;
  font-weight: 600;
  color: var(--secondary-color);
}

.equipment-list-table .eq-id {
  font-size: 0.8rem;
  color: var(--muted-text);
}

.equipment-list-table .eq-price {
  font-weight: 600;
}

.equipment-list-table .eq-details .btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

/* Stack / simplify on very small screens */
@media (max-width: 640px) {
  .equipment-list-table thead {
    display: none;
  }

  .equipment-list-table,
  .equipment-list-table tbody,
  .equipment-list-table tr,
  .equipment-list-table td {
    display: block;
    width: 100%;
  }

  .equipment-list-table tr {
    border: 1px solid #e3e3e3;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    background-color: #fff;
  }

  .equipment-list-table td {
    border: none;
    padding: 0.2rem 0;
  }

  .equipment-list-table .eq-photo {
    float: left;
    margin-right: 0.75rem;
  }

  .equipment-list-table .eq-main {
    margin-left: 72px;
    margin-bottom: 0.25rem;
  }

  .equipment-list-table .eq-year,
  .equipment-list-table .eq-hours,
  .equipment-list-table .eq-location,
  .equipment-list-table .eq-price {
    font-size: 0.8rem;
  }

  .equipment-list-table .eq-details {
    margin-top: 0.25rem;
  }
}

/* Footer/contact social icon row */
.contact-social-icons {
  margin-top: 0.5rem;
}

.contact-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-right: 0.25rem;
  font-size: 0.75rem;
  color: #ffffff;
}

.contact-social-icons a:hover {
  background-color: var(--primary-color);
  color: #000000;
}

/* =============================
   Multi-page add-ons (Dreamweaver-friendly)
   ============================= */

.page-banner{
  position:relative;
  color:#fff;
  padding:3.25rem 0;
  background:#000;
  background-size:cover;
  background-position:center;
}
.page-banner::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.35));
}
.page-banner .container{position:relative;z-index:1}
.page-banner h1{margin:0 0 .35rem 0;font-size:2.2rem;letter-spacing:.5px}
.page-banner .banner-sub{margin:0;max-width:900px;color:rgba(255,255,255,.9)}
.page-banner .banner-cta{margin-top:1rem;display:flex;gap:.75rem;flex-wrap:wrap}

.section-alt{background:#f7f7f7}

/* Global buttons (used across pages) */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.65rem 1rem;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.35);
  background:#ffffff;
  color:#111;
  text-decoration:none;
  font-weight:600;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 18px rgba(0,0,0,.08)}
.btn-primary{
  background:var(--primary-color);
  border-color:var(--primary-color);
  color:#000;
}

/* Card grids used on the new multi-page layout */
.cards-3,.cards-4{display:grid;gap:1.25rem}
.cards-3{grid-template-columns:repeat(3,1fr)}
.cards-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:1000px){.cards-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.cards-3{grid-template-columns:1fr}}
@media(max-width:640px){.cards-4{grid-template-columns:1fr}}

.card{
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:14px;
  padding:1.25rem;
  text-decoration:none;
  color:inherit;
  box-shadow:0 6px 14px rgba(0,0,0,.05);
  transition:transform .15s ease, box-shadow .15s ease;
}
.card:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(0,0,0,.08)}
.card i{font-size:1.4rem;margin-bottom:.5rem;color:var(--secondary-color)}
.card h3{margin:.25rem 0 .5rem 0}
.card p{margin:0;color:#666}

.bullets{margin:0;padding-left:1.2rem}
.bullets li{margin:.5rem 0}

.muted{color:#666}



/* --- Equipment Quote Modal (Send Me a Quote) --- */
.ai-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 9999;
}
.ai-modal{
  width: min(560px, 100%);
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  padding: 1.25rem 1.25rem 1rem;
  position: relative;
}
.ai-modal h2{
  margin: 0 0 .4rem 0;
  font-size: 1.45rem;
  letter-spacing: .2px;
}
.ai-modal-sub{
  margin: 0 0 1rem 0;
  opacity: .85;
  font-size: .95rem;
  line-height: 1.35;
}
.ai-modal-close{
  position: absolute;
  top: .55rem;
  right: .65rem;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.85);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
}
.ai-modal-close:hover{ background: rgba(255,255,255,.08); }
.ai-quote-form{
  display: grid;
  gap: .85rem;
}
.ai-quote-form label{
  display: grid;
  gap: .35rem;
  font-size: .9rem;
  opacity: .95;
}
.ai-quote-form input{
  padding: .72rem .8rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
}
.ai-quote-form input:focus{
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.ai-status{
  min-height: 1.2em;
  font-size: .92rem;
  opacity: .9;
}
.ai-privacy{
  margin: .2rem 0 0 0;
  font-size: .82rem;
  opacity: .7;
  line-height: 1.3;
}
