/* Industrial Power Technologies, Inc. -- site stylesheet */

:root {
  --navy: #0d2b4e;
  --navy-dark: #081b33;
  --blue: #1f6fb2;
  --blue-light: #eaf3fb;
  --amber: #f5a623;
  --text: #1b1f24;
  --text-muted: #5a6472;
  --bg: #f7f9fb;
  --white: #ffffff;
  --border: #e3e8ee;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(13, 43, 78, 0.08);
  --container-w: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--text); }

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

.section { padding: 64px 0; }
.section-intro { max-width: 640px; color: var(--text-muted); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 24px;
}
.logo img { height: 92px; width: auto; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a.btn-nav {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 6px;
}
.main-nav a.btn-nav:hover { background: var(--blue); }

.has-dropdown { position: relative; }
.caret { font-size: 0.7em; }
.dropdown {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 260px;
  padding: 8px 0;
  margin: 8px 0 0;
  list-style: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.dropdown li a {
  display: block;
  padding: 9px 18px;
  font-weight: 500;
  white-space: nowrap;
}
.dropdown li a:hover { background: var(--blue-light); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, var(--blue));
  color: var(--white);
  padding: 96px 0;
  text-align: center;
}
.hero h1 { color: var(--white); }
.hero h1.brand-name { font-weight: 800; letter-spacing: -0.01em; }
.hero-tagline { font-size: 1.35rem; font-weight: 600; color: var(--amber); margin-bottom: 12px; }
.hero-sub { max-width: 640px; margin: 0 auto 28px; color: rgba(255,255,255,0.88); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); }
.page-hero .hero-sub { color: rgba(255,255,255,0.85); margin: 0; max-width: 720px; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.7); margin-bottom: 8px; font-size: 0.9rem; }
.page-hero .breadcrumb a { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--amber); color: var(--navy-dark); }
.btn-primary:hover { background: #ffb943; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* On light backgrounds (cta-banner) */
.cta-banner .btn-primary { background: var(--amber); color: var(--navy-dark); }

/* ---------- Brands strip ---------- */
.brands-strip { background: var(--white); text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
}
.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.brand-chip {
  background: var(--white);
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 92px;
}
.brand-chip img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-chip a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.brand-chip a:hover { opacity: 0.8; }

/* ---------- Grids & cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.product-card { display: block; transition: transform 0.15s ease; }
.product-card:hover { transform: translateY(-3px); text-decoration: none; }
.card-link { color: var(--blue); font-weight: 600; font-size: 0.9rem; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.industry-grid-lg { grid-template-columns: repeat(2, 1fr); }
.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
}
.industry-icon { font-size: 2rem; margin-bottom: 10px; }
.industry-card-lg p { color: var(--text-muted); margin: 0; }

.center-cta { text-align: center; margin-top: 32px; }

/* ---------- Territory / generic text sections ---------- */
.territory { background: var(--blue-light); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.85); }
.cta-banner-inner { max-width: 640px; margin: 0 auto; }

/* ---------- Product subpage ---------- */
.brands-line { color: var(--text-muted); margin-bottom: 20px; }
.feature-list { padding-left: 20px; }
.feature-list li { margin-bottom: 8px; }
.related-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.related-list li a {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Product galleries & brand detail cards ---------- */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.gallery-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.gallery-item img { max-height: 220px; object-fit: contain; }

.brand-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.brand-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.brand-detail-logo {
  height: 70px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.brand-detail-logo img { max-height: 60px; max-width: 160px; object-fit: contain; }
.brand-detail-logo a { display: inline-flex; }
.brand-detail-card h3 a { color: inherit; }
.brand-detail-card h3 a:hover { color: var(--blue); text-decoration: none; }
.brand-detail-card p { color: var(--text-muted); margin: 0 0 14px; font-size: 0.95rem; }
.brand-detail-products {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-detail-products .product-thumb {
  width: 140px;
  height: 140px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-detail-products img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-detail-note { color: var(--text-muted); font-size: 0.85rem; font-style: italic; margin-top: 10px; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.case-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.case-item img { width: 100%; height: 130px; object-fit: cover; }
.case-item p { margin: 10px 12px; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.map-embed { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-form { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-weight: 600; font-size: 0.9rem; margin-top: 10px; }
.contact-form input, .contact-form textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
.contact-form button { margin-top: 18px; align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.85); margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1.2fr;
  gap: 32px;
  padding: 56px 24px 40px;
}
.footer-col h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--amber); }
.footer-brand p { color: rgba(255,255,255,0.65); margin-top: 14px; font-size: 0.9rem; }
.footer-contact li { color: rgba(255,255,255,0.75); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .industry-grid, .industry-grid-lg { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-gallery { grid-template-columns: 1fr 1fr; }
  .brand-detail-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .has-dropdown .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    margin: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .logo img { height: 64px; }
  .grid-3, .industry-grid, .industry-grid-lg, .footer-grid { grid-template-columns: 1fr; }
  .product-gallery, .case-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0; }
  .section { padding: 44px 0; }
}
