/* ============================================================
   Utica Electrical Supply — site styles
   Brand palette (from logo): navy #203445, orange #f86b24,
   cream #f3ead9
   ============================================================ */

:root {
  --navy: #203445;
  --navy-dark: #16242f;
  --navy-light: #2e4a5f;
  --orange: #f86b24;
  --orange-dark: #d9551a;
  --cream: #f3ead9;
  --light: #f7f1e3;
  --border: #e4dbc7;
  --white: #ffffff;
  --text: #26313b;
  --text-muted: #5c6670;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(22, 36, 47, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--navy-light); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfc4ab;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar a { color: var(--cream); text-decoration: none; }
.topbar a:hover { color: var(--orange); }
.topbar .topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .topbar-hours { color: #a89d85; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(22, 36, 47, 0.10);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 58px;
  width: auto;
}
.footer-logo {
  display: block;
  width: 190px;
  height: auto;
  border-radius: 8px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: rgba(248, 107, 36, 0.13); color: var(--orange-dark); }
.main-nav a.active { color: var(--orange-dark); }
.main-nav .btn-quote {
  background: var(--orange);
  color: var(--navy-dark);
  margin-left: 8px;
  padding: 10px 18px;
  border-radius: 6px;
}
.main-nav .btn-quote:hover { background: var(--orange-dark); color: var(--white); }
.main-nav .btn-quote.active { color: var(--navy-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(32, 52, 69, 0.35);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(22, 36, 47, 0.97) 0%, rgba(32, 52, 69, 0.90) 55%, rgba(32, 52, 69, 0.60) 100%),
    repeating-linear-gradient(45deg, #203445 0 14px, #1b2c3b 14px 28px);
  color: var(--white);
  padding: 88px 0 76px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  max-width: 17ch;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p {
  font-size: 1.12rem;
  color: #d3cdc0;
  max-width: 56ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--orange); color: var(--navy-dark); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.btn-outline { border-color: rgba(243, 234, 217, 0.6); color: var(--cream); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--orange);
  color: var(--navy-dark);
  padding: 14px 0;
}
.trust-strip .container {
  display: flex;
  justify-content: space-between;
  gap: 10px 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.92rem;
}
.trust-item svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--light); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  color: var(--orange-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; color: var(--navy); }
.section-head p { color: var(--text-muted); margin-top: 10px; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--orange);
}
.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.product-icon svg { width: 28px; height: 28px; }
.product-card h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 8px; }
.product-card p { font-size: 0.92rem; color: var(--text-muted); }
.product-card .card-items {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ---------- Feature cards (why us) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.feature-card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.93rem; color: var(--text-muted); }
.feature-card .product-icon { background: var(--orange); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(100deg, var(--navy-dark), var(--navy) 70%);
  color: var(--white);
  border-radius: 14px;
  padding: 52px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.cta-banner p { color: #cfc4ab; max-width: 52ch; }

/* ---------- Two-column info ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.split h2 { color: var(--navy); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.split p { color: var(--text-muted); margin-bottom: 14px; }
.check-list { list-style: none; margin-top: 8px; }
.check-list li {
  padding: 7px 0 7px 32px;
  position: relative;
  color: var(--text);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--navy-dark);
  border-bottom: 2px solid var(--navy-dark);
  transform: rotate(-45deg);
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  text-align: center;
}
.stat {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 16px;
}
.stat .num { font-size: 2rem; font-weight: 800; color: var(--orange); }
.stat .label { font-size: 0.88rem; color: #cfc4ab; margin-top: 4px; }

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  background:
    linear-gradient(115deg, rgba(22, 36, 47, 0.97), rgba(32, 52, 69, 0.88)),
    repeating-linear-gradient(45deg, #203445 0 14px, #1b2c3b 14px 28px);
  color: var(--white);
  padding: 56px 0 48px;
}
.page-banner h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.page-banner p { color: #d3cdc0; max-width: 62ch; }
.breadcrumb { font-size: 0.85rem; color: #a89d85; margin-bottom: 14px; }
.breadcrumb a { color: var(--orange); text-decoration: none; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: start;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}
.info-card h3 {
  color: var(--navy);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.info-card h3 svg { width: 20px; height: 20px; flex: 0 0 20px; }
.info-card p, .info-card a { font-size: 0.95rem; color: var(--text-muted); }
.info-card a { color: var(--navy-light); font-weight: 600; text-decoration: none; }
.info-card a:hover { color: var(--orange-dark); }
.hours-table { width: 100%; font-size: 0.93rem; border-collapse: collapse; }
.hours-table td { padding: 5px 0; color: var(--text-muted); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--text); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field label .req { color: #c0392b; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fdfbf6;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(248, 107, 36, 0.22);
  background: var(--white);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 5px; }
.form-note {
  background: var(--light);
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.form-success {
  display: none;
  background: #e8f6ec;
  border: 1px solid #b7e2c3;
  color: #1e6b38;
  border-radius: 7px;
  padding: 16px 18px;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-success.visible { display: block; }
.field-error { border-color: #c0392b !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b0a78f;
  padding: 56px 0 0;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #b0a78f; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(243, 234, 217, 0.12);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    display: none;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 20px rgba(22, 36, 47, 0.12);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; }
  .main-nav a { padding: 13px 12px; border-radius: 6px; }
  .main-nav .btn-quote { margin: 8px 0 0; text-align: center; }
  .brand-logo { height: 46px; }
  .topbar .topbar-hours { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 26px; }
  .section { padding: 52px 0; }
  .hero { padding: 60px 0 54px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* Netlify Forms honeypot — hidden from humans, visible to bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
