/* ============================================
   THE DRAIN KING — Shared Stylesheet
   Faithful rebuild of the original site design
   ============================================ */

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

html, body { height: 100%; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.55;
  background: #b7cbd8;   /* pale blue-grey solid, matches screenshot */
  min-height: 100vh;
}

/* ---------- Dark tiled strip at very top ---------- */
.top-strip {
  width: 100%;
  height: 30px;
  background-color: #1a3d6b;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  border-bottom: 2px solid #0d2748;
}

/* ---------- Site container ---------- */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
}

/* ---------- Header banner (3D pipe illustration) ---------- */
.site-header {
  position: relative;
  padding: 0;
  min-height: 300px;
}

.pipe-banner-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.pipe-banner-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Logo (real image from archive.org) sits on top-right of the pipe banner */
.site-logo {
  position: absolute;
  right: 30px;
  bottom: 20px;
  max-width: 620px;
  height: auto;
  z-index: 5;
}

/* Text fallback in case the image doesn't load */
.logo-fallback {
  position: absolute;
  right: 30px;
  bottom: 20px;
  z-index: 4;
  text-align: right;
  pointer-events: none;
}
.logo-fallback .brand-name {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 54px;
  color: #cc0000;
  letter-spacing: 1px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 2px 2px 3px rgba(0,0,0,0.15);
}
.logo-fallback .brand-tagline {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  color: #1a4d80;
  letter-spacing: 4px;
  margin-top: 6px;
  font-weight: bold;
}

/* ---------- Body layout ---------- */
.body-layout {
  display: flex;
  gap: 40px;
  padding: 20px 30px 40px;
  align-items: flex-start;
  background: transparent;
}

/* ---------- Sidebar (faucet nav) ---------- */
.sidebar {
  flex: 0 0 240px;
  position: relative;
  padding-top: 10px;
}

.faucet-nav {
  position: relative;
}

.nav-item {
  display: block;
  position: relative;
  margin-left: 66px;
  margin-bottom: 26px;
  padding: 12px 14px 12px 18px;
  height: 46px;
  line-height: 22px;
  background: linear-gradient(180deg, #f0f4f7 0%, #d4dbe1 45%, #b5bec7 100%);
  border: 1px solid #6a7683;
  border-radius: 3px;
  text-decoration: none;
  color: #1a3f62;
  font-weight: bold;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 1px 1px 3px rgba(0,0,0,0.25);
}

/* Horizontal chrome pipe connecting each nav button to the vertical pipe */
.nav-item::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 14px;
  background:
    linear-gradient(90deg, #6a7683 0%, #d0d7dd 20%, #f5f7f9 45%, #f5f7f9 55%, #d0d7dd 80%, #6a7683 100%);
  border-top: 1px solid #3f4a55;
  border-bottom: 1px solid #3f4a55;
}
/* Chrome faucet knob at the end of the connecting pipe */
.nav-item::after {
  content: "";
  position: absolute;
  left: -68px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background:
    radial-gradient(circle at 32% 30%, #ffffff 0%, #dfe5eb 25%, #a3adb7 55%, #59636e 90%);
  border: 1.5px solid #2a333c;
  border-radius: 50%;
  box-shadow: 0 2px 3px rgba(0,0,0,0.35);
}

.nav-item:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8ee 45%, #c1cad3 100%);
  color: #cc0000;
}
.nav-item.active {
  background: linear-gradient(180deg, #ffe680 0%, #ffcc00 50%, #d4a800 100%);
  color: #003366;
  border-color: #b38f00;
}

/* Vertical chrome pipe running down behind the nav */
.faucet-nav::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 22px;
  background:
    linear-gradient(90deg, #4a5561 0%, #8a95a1 15%, #dfe5eb 45%, #f5f7f9 55%, #dfe5eb 70%, #8a95a1 85%, #4a5561 100%);
  border-left: 1px solid #2a333c;
  border-right: 1px solid #2a333c;
  box-shadow: 0 0 4px rgba(0,0,0,0.35);
}

.sidebar-contact {
  margin-top: 30px;
  padding: 4px 4px 4px 4px;
  font-size: 14px;
  line-height: 1.55;
  color: #222;
}
.sidebar-contact .company {
  font-weight: bold;
  color: #222;
  letter-spacing: 0.3px;
}
.sidebar-contact .phones {
  margin: 14px 0;
  font-weight: bold;
}
.sidebar-contact a {
  color: #cc0000;
  text-decoration: underline;
  font-weight: bold;
}

/* ---------- Main content ---------- */
.content {
  flex: 1;
  min-width: 0;
  padding-top: 10px;
}

.page-phones {
  font-size: 26px;
  color: #1a4d80;
  font-weight: bold;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.license-block {
  margin: 20px 0 20px;
  font-size: 15px;
  color: #222;
  line-height: 1.7;
  font-weight: bold;
}

/* Service bullets — BLUE circle bullets */
.service-bullets {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}
.service-bullets li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 15px;
  color: #222;
}
.service-bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  background: #1a4d80;
  border-radius: 50%;
}

/* Product carriers panel floats right on the home page */
.carriers-panel {
  float: right;
  width: 260px;
  margin: 0 0 20px 24px;
  padding: 8px 8px 10px;
  background: #ffffff;
  border: 1px solid #999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.20);
}
.carriers-panel .carriers-title {
  font-size: 12px;
  color: #333;
  text-align: center;
  margin-bottom: 6px;
  font-style: italic;
}
.carriers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.carrier-cell {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-weight: bold;
  font-size: 11px;
  color: #333;
  text-align: center;
  padding: 3px 2px;
  line-height: 1.1;
}
.carrier-cell.delta       { color: #0060a8; font-family: "Trebuchet MS", sans-serif; font-size: 13px; letter-spacing: 1px; }
.carrier-cell.insink      { color: #d40016; font-size: 10px; }
.carrier-cell.amstandard  { color: #003057; font-size: 10px; }
.carrier-cell.sioux       { color: #d40016; font-size: 11px; }
.carrier-cell.mansfield   { color: #666; font-style: italic; font-size: 13px; }
.carrier-cell.lochinvar   { background: #d40016; color: #fff; }
.carrier-cell.toto        { background: #003057; color: #fff; letter-spacing: 3px; font-size: 15px; }
.carrier-cell.kohler      { color: #000; letter-spacing: 2px; font-size: 13px; }
.carrier-cell.moen        { color: #d40016; letter-spacing: 2px; font-size: 15px; }

/* Content body prose */
.content h2 {
  color: #003366;
  font-size: 20px;
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ffcc00;
}
.content h3 {
  color: #1a4d80;
  font-size: 17px;
  margin: 18px 0 8px;
}
.content p {
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.75;
}
.tagline-red {
  color: #cc0000;
  font-weight: bold;
  font-size: 17px;
  margin-top: 18px;
}
.no-extra-charge { font-size: 15px; margin: 16px 0 10px; }

/* Two-column list utility */
.two-col-list {
  columns: 2;
  column-gap: 30px;
  margin: 12px 0;
  padding-left: 20px;
}
.two-col-list li {
  padding: 4px 0;
  font-size: 15px;
  break-inside: avoid;
}

/* Contact page pieces */
.contact-detail-line {
  font-size: 18px;
  color: #003366;
  font-weight: bold;
  margin: 10px 0;
  padding: 6px 0;
  border-bottom: 1px dotted #cfd6dc;
}
.contact-detail-line a { color: #cc0000; text-decoration: none; }
.contact-detail-line a:hover { text-decoration: underline; }
.hours-box {
  background: #ffffff;
  border-left: 4px solid #003366;
  padding: 14px 18px;
  margin: 18px 0;
}
.hours-box h3 { margin-top: 0; }
.service-areas-box {
  background: #fffbe6;
  border: 1px solid #ffcc00;
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 3px;
}
.service-areas-box strong { color: #cc0000; }

/* Manufacturers page big grid */
.mfr-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.mfr-page-cell {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d8e2;
  background: #ffffff;
  font-weight: bold;
  padding: 8px;
  text-align: center;
  font-size: 15px;
}

/* Services page category boxes */
.svc-category {
  background: #ffffff;
  border-left: 4px solid #cc0000;
  padding: 14px 18px;
  margin: 14px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.svc-category h3 { color: #cc0000; margin: 0 0 6px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px 30px 28px;
  text-align: center;
  font-size: 14px;
  background: transparent;
}
.site-footer nav a {
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  margin: 0 4px;
}
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .copyright {
  margin-top: 10px;
  color: #333;
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header, .pipe-banner-wrap { min-height: 220px; height: 220px; }
  .site-logo { max-width: 380px; right: 15px; bottom: 12px; }
  .logo-fallback .brand-name { font-size: 32px; }
  .logo-fallback .brand-tagline { font-size: 15px; letter-spacing: 2px; }

  .body-layout { flex-direction: column; padding: 16px 14px; gap: 20px; }
  .sidebar { flex: 1 1 100%; width: 100%; }

  .faucet-nav::before { display: none; }
  .nav-item { margin-left: 0; margin-bottom: 10px; text-align: center; padding: 12px 14px; }
  .nav-item::before, .nav-item::after { display: none; }

  .sidebar-contact { padding: 12px; background: #f0f6fc; border-radius: 4px; margin-top: 14px; }
  .carriers-panel { float: none; width: 100%; margin: 16px 0; }
  .page-phones { font-size: 20px; }
  .two-col-list { columns: 1; }
  .mfr-page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .site-logo { max-width: 260px; }
  .logo-fallback .brand-name { font-size: 24px; }
  .logo-fallback .brand-tagline { font-size: 12px; letter-spacing: 1px; }
  .carriers-grid { grid-template-columns: repeat(2, 1fr); }
  .mfr-page-grid { grid-template-columns: 1fr; }
}
