/* ==========================================================
   AMCO Precision Inc. - main stylesheet
   Theme: machined steel + precision blue (matches AMCO logo)
   ========================================================== */

:root {
  --steel-900: #14181d;
  --steel-800: #1d232a;
  --steel-700: #2a323b;
  --steel-500: #5b6773;
  --steel-200: #d5dae0;
  --steel-100: #eceff2;
  --white: #ffffff;
  --accent: #005a9b;       /* logo blue */
  --accent-dark: #00467a;
  --accent-light: #5aa9e6; /* blue for use on dark backgrounds */
  --radius: 6px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--steel-800);
  background: var(--steel-100);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(var(--max), 92%); margin: 0 auto; }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--white);
  color: var(--steel-900);
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 2px 8px rgba(20, 24, 29, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.logo span { color: var(--accent); }
.logo { display: flex; align-items: center; }
.logo img { height: 68px; width: auto; }
.logo small {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--steel-500);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--steel-200);
  color: var(--steel-900);
  font-size: 1.4rem;
  padding: 2px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav li { position: relative; }

.main-nav a {
  display: block;
  padding: 32px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--accent); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-top: 3px solid var(--accent);
  box-shadow: 0 10px 24px rgba(20, 24, 29, 0.18);
  flex-direction: column;
  gap: 0;
}
.dropdown a {
  padding: 13px 18px;
  text-transform: none;
  font-weight: 500;
  color: var(--steel-800);
  border-bottom: 1px solid var(--steel-100);
}
.dropdown a:hover { background: var(--steel-100); color: var(--accent); }

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: flex; }

.has-dropdown > a::after { content: " \25BE"; font-size: 0.75rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(90deg, rgba(0, 45, 90, 0.73) 38%, rgba(0, 90, 155, 0.55)),
    url("../images/hero.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 110px 0 120px;
}
.hero .btn:not(.outline) { background: var(--white); color: var(--accent); }
.hero .btn:not(.outline):hover { background: var(--steel-100); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; max-width: 720px; }
.hero h1 em { color: var(--accent-light); font-style: normal; }
.hero p { max-width: 620px; margin: 22px 0 32px; color: var(--steel-200); font-size: 1.1rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); }
.btn.outline { background: transparent; border: 2px solid var(--white); margin-left: 12px; }
.btn.outline:hover { background: var(--white); color: var(--steel-900); }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section.alt { background: var(--white); }

.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 2rem; color: var(--steel-900); }
.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
}
.section-title p { color: var(--steel-500); margin-top: 12px; }

.intro { max-width: 820px; margin: 0 auto; text-align: center; font-size: 1.08rem; }

/* ---------- Cards (home page) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20, 24, 29, 0.1);
  border-bottom: 4px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { color: var(--steel-900); margin-bottom: 8px; }
.card-body p { color: var(--steel-500); font-size: 0.95rem; flex: 1; }
.card-body .more {
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ---------- Inner pages ---------- */
.page-banner {
  background: var(--steel-800);
   background:
    linear-gradient(90deg, rgba(0, 45, 90, 0.9) 22%, rgba(0, 90, 155, 0.5));
  color: var(--white);
  padding: 22px 0;
  border-bottom: 4px solid var(--accent);
}
.page-banner h1 { font-size: 1.8rem; line-height: 1.2; }
.breadcrumb { color: var(--steel-200); font-size: 0.85rem; margin-top: 2px; }
.breadcrumb a:hover { color: var(--accent-light); }

.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 60px;
}
.content-block:last-child { margin-bottom: 0; }
.content-block.reverse .content-text { order: 2; }
.content-block img { border-radius: var(--radius); box-shadow: 0 4px 16px rgba(20,24,29,0.2); width: 100%; }
.content-text h2 { color: var(--steel-900); margin-bottom: 12px; }
.content-text p { margin-bottom: 12px; }
.content-text ul { margin: 10px 0 0 20px; }
.content-text li { margin-bottom: 6px; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(20,24,29,0.08);
}
.feature h3 { margin-bottom: 6px; color: var(--steel-900); }
.feature a:hover { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
.contact-info p { margin-bottom: 10px; }
form label { display: block; font-weight: 600; margin: 14px 0 4px; }
form input, form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  font: inherit;
}
form input:focus, form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
form button { margin-top: 18px; border: 0; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--steel-900);
  color: var(--steel-200);
  padding: 44px 0 20px;
  border-top: 4px solid var(--accent);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.site-footer h4 { color: var(--white); margin-bottom: 10px; }
.site-footer li { list-style: none; margin-bottom: 6px; }
.site-footer a:hover { color: var(--accent-light); }
.copyright {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--steel-700);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 10px 24px rgba(20,24,29,0.18); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 5%; border-bottom: 1px solid var(--steel-200); }
  .dropdown { position: static; display: flex; box-shadow: none; border-top: 0; background: var(--steel-100); }
  .dropdown a { padding-left: 10%; }
  .content-block, .contact-grid { grid-template-columns: 1fr; }
  .content-block.reverse .content-text { order: 0; }
  .btn.outline { margin: 12px 0 0; }
}

/* ---------- Product listing ---------- */
.product-group { margin-bottom: 56px; }
.product-group:last-child { margin-bottom: 0; }

.product-group-title {
  color: var(--steel-900);
  font-size: 1.6rem;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--steel-200);
  position: relative;
}
.product-group-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 4px;
  background: var(--accent);
}

/* up to 4 products per row */
.product-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.product-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20, 24, 29, 0.1);
  border-bottom: 4px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}
/* .product-item:hover { transform: translateY(-4px); border-color: var(--accent); } */

.product-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.product-item figcaption {
  padding: 7px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--steel-900);
}

@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 440px)  { .product-grid { grid-template-columns: 1fr; } }


/* ---------- Equipment page ---------- */
.equip-block {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(20, 24, 29, 0.08);
  padding: 28px;
  margin-bottom: 34px;
}
.equip-block:last-child { margin-bottom: 0; }
.equip-text h3 { color: var(--steel-900); font-size: 1.4rem; margin-bottom: 8px; }
.equip-text ul { margin: 8px 0 0 20px; }
.equip-text li { margin-bottom: 4px; }
.equip-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.equip-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 720px) { .equip-gallery { grid-template-columns: 1fr; } }

.content-block img.cap { aspect-ratio: 4 / 3; object-fit: cover; }

/* Capabilities page banner with photo background */
.banner-capabilities {
  background:
    linear-gradient(90deg, rgba(0, 45, 90, 0.7) 22%, rgba(0, 90, 155, 0.5)),
    url("../images/capabilities-banner.jpg") center/cover no-repeat;
}
.banner-equipments {
    background:
    linear-gradient(90deg, rgba(0, 45, 90, 0.7) 22%, rgba(0, 90, 155, 0.5)),
    url("../images/hero.jpg") center/cover no-repeat;
}
.banner-materials {
    background:
    linear-gradient(90deg, rgba(0, 45, 90, 0.7) 22%, rgba(0, 90, 155, 0.5)),
    url("../images/materials-banner.jpg") center/cover no-repeat;
}

.banner-industry {
    background:
    linear-gradient(90deg, rgba(0, 45, 90, 0.7) 22%, rgba(0, 90, 155, 0.5)),
    url("../images/aviation.jpg") center/cover no-repeat;
}

.banner-product {
    background:
    linear-gradient(90deg, rgba(0, 45, 90, 0.7) 22%, rgba(0, 90, 155, 0.5)),
    url("../images/products-banner.jpg") center/cover no-repeat;
}

/* ---------- Contact page ---------- */
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 26px; }
.btn.outline-dark { background: transparent; border: 2px solid var(--accent); color: var(--accent); padding: 11px 26px; }
.btn.outline-dark:hover { background: var(--accent); color: var(--white); }

.contact-details { list-style: none; margin-bottom: 26px; }
.contact-details li { padding: 10px 0; border-bottom: 1px solid var(--steel-200); }
.contact-details strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--steel-500); }
.contact-details a:hover { color: var(--accent); }

.quote-tips { background: var(--white); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 2px 8px rgba(20,24,29,0.08); }
.quote-tips h3 { margin-bottom: 8px; color: var(--steel-900); font-size: 1.05rem; }
.quote-tips ul { margin-left: 20px; }
.quote-tips li { margin-bottom: 4px; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(20,24,29,0.15); border-bottom: 4px solid var(--accent); }
.map-wrap iframe { display: block; }