/* ═══════════════════════════════════════════════════════════════════
   Sumitomo Wiring Systems (USA), Inc. — Farmington Hills, MI / El Paso, TX
   Primary:   #273f88  (navy)
   Accent:    #b4dbf4  (light blue — footer bg, hover highlight)
   Dark:      #212529  (Bootstrap dark)
   Light BG:  #f8f9fa
   Text:      #212529
   Fonts:     System sans-serif (no Google Fonts — matches original)
═══════════════════════════════════════════════════════════════════ */
:root {
  --primary:    #273f88;
  --primary-dk: #1a2a5f;
  --accent:     #b4dbf4;
  --dark:       #212529;
  --light:      #f8f9fa;
  --text:       #212529;
  --white:      #ffffff;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.14);
  --radius:     4px;
  --trans:      0.2s ease;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--primary-dk); text-decoration: underline; }
ul { list-style: none; }
address { font-style: normal; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--primary); font-weight: 700; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Container ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-fluid { width: 100%; padding: 0 1.25rem; }

/* ── Navbar ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow var(--trans);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.navbar-brand img { height: 52px; width: auto; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.navbar-nav a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}
.navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(39,63,136,0.4);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.navbar-toggler span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.navbar-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('/images/hero-bg.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.hero-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 1rem;
}
.hero-content h1 {
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero-content h4 {
  color: rgba(255,255,255,0.88);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.btn-hero {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--trans), color var(--trans);
}
.btn-hero:hover {
  background: var(--white);
  color: var(--dark);
  text-decoration: none;
}

/* ── Two-column text + image (Home) ── */
.two-col-section {
  padding: 4rem 0;
}
.two-col-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 420px;
}
.two-col-text {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.two-col-text h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.two-col-text p { white-space: pre-line; color: #444; line-height: 1.8; }
.two-col-image {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 380px;
}

/* ── Section ── */
section { padding: 4rem 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.text-center { text-align: center; }

/* ── Company Profile Info Grid ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  margin: 2rem auto;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
}
.info-grid dt {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.info-grid dd {
  font-size: 1.1rem;
  line-height: 1.5;
}
.cp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

/* ── Office Location Cards ── */
.ol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}
.ol-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ol-card-img {
  text-align: center;
  min-height: 180px;
  overflow: hidden;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ol-card-img img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.ol-card-body {
  padding: 1.75rem;
  text-align: center;
  background: var(--white);
  border: 1px solid #dee2e6;
  border-top: none;
}
.ol-card-body h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.ol-card-body p { margin-bottom: 0.4rem; color: #555; }
.ol-card-body a { color: var(--primary); text-decoration: none; }
.ol-card-body a:hover { text-decoration: underline; }

/* ── Terms & Contact centered containers ── */
.centered-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 500px - 80px);
  padding: 3rem 1rem;
}
.centered-inner {
  text-align: center;
  max-width: 640px;
}
.centered-inner p { font-size: 1.05rem; margin-bottom: 1rem; color: #444; }
.centered-inner a {
  display: block;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin: 0.5rem 0;
  text-decoration: none;
}
.centered-inner a:hover { text-decoration: underline; }
.hg-link {
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 1rem;
}

/* ── 404 ── */
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
}
.not-found h1 { font-size: 2rem; color: var(--primary); }

/* ── Footer ── */
.site-footer {
  background: var(--accent);
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: #000;
  margin-top: auto;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--primary-dk); }

/* ── Responsive ── */
@media (max-width: 991px) {
  .navbar-toggler { display: flex; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #dee2e6;
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    z-index: 800;
  }
  .navbar-nav.is-open { display: flex; }
  .navbar-nav a { padding: 0.65rem 1rem; border-radius: 0; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .two-col-inner { grid-template-columns: 1fr; }
  .two-col-image { min-height: 260px; }
  .two-col-text { padding: 2rem 1.25rem; }
  .ol-grid { grid-template-columns: 1fr; }
  .hero { height: 400px; }
  .hero-content h1 { font-size: 1.8rem; }
}
@media (max-width: 575px) {
  .info-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { height: 360px; }
}
