/* Medina River Electric LLC — shared styles */

:root {
  --navy: #3A2E1E;
  --navy-2: #4A3B26;
  --navy-3: #5C4A30;
  --gold: #B5541C;
  --gold-light: #D97D46;
  --river: #7A8C4A;
  --river-light: #9CB06C;
  --steel: #8A7A61;
  --steel-light: #B8AA92;
  --bg: #F5EEE1;
  --paper: #FFFDF8;
  --ink: #2E2418;
  --ink-soft: #6B5A42;
  --line: #E0D3B8;
  --radius: 6px;
  --wrap: 1140px;
  --shadow: 0 2px 18px rgba(58, 46, 30, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: 0;
  color: var(--navy);
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.02em; }

p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-static { pointer-events: none; cursor: default; }

/* ---------- Header ---------- */
header.site {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: 52px; }
.brand-text { font-family: 'Barlow Condensed', sans-serif; line-height: 1.1; }
.brand-text .name { color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-text .sub { color: var(--gold-light); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }

nav.links {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.links a {
  color: #E8DCC4;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.92rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.links a:hover, nav.links a.active { color: #fff; border-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.03em; }
.phone-link svg { flex-shrink: 0; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative;
  overflow: hidden;
  padding: 84px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 70px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lead { color: #D9CBAE; font-size: 1.08rem; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-badges .badge { display: flex; align-items: center; gap: 8px; color: #DED0B4; font-size: 0.86rem; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.03em; text-transform: uppercase; }
.hero-badges svg { color: var(--gold); flex-shrink: 0; }

.hero-art { position: relative; }
.river-divider { display: block; width: 100%; height: auto; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 20px;
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: none; }
.trust-item svg { color: var(--gold); flex-shrink: 0; }
.trust-item .t { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; color: var(--navy); letter-spacing: 0.02em; }
.trust-item .s { font-size: 0.8rem; color: var(--steel); }

/* ---------- Sections ---------- */
section { padding: 86px 0; }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy .eyebrow { color: #fff; }
.section-navy .eyebrow { color: var(--gold-light); }
.section-navy p { color: #D9CBAE; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: #F2ECDD;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon-wrap svg { color: var(--gold); }
.card h3 { margin-bottom: 10px; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card ul li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-soft); font-size: 0.92rem; padding: 5px 0; }
.card ul li svg { flex-shrink: 0; margin-top: 4px; color: var(--river); }
.card .learn { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.86rem; color: var(--river); }

/* ---------- Service list rows ---------- */
.service-block { margin-bottom: 70px; }
.service-block:last-child { margin-bottom: 0; }
.service-block-head { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 2px solid var(--navy); }
.service-block-head .icon-wrap { width: 56px; height: 56px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.service-block-head .icon-wrap svg { color: var(--gold-light); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-item { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.service-item svg { color: var(--river); margin-bottom: 10px; }
.service-item h4 { font-family: 'Barlow Condensed', sans-serif; text-transform: none; font-weight: 600; font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; letter-spacing: 0; }
.service-item p { font-size: 0.88rem; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gold);
  padding: 46px 0;
}
.cta-banner .row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner h2 { color: var(--navy); font-size: 1.9rem; }
.cta-banner p { color: #4A3510; margin: 6px 0 0; }

/* ---------- Values / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.stat-row { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.stat { }
.stat .num { font-family: 'Barlow Condensed', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat .lbl { font-size: 0.82rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.area-list span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 0.86rem; color: var(--navy); font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 0.02em; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 10px; }
.value-item { text-align: left; }
.value-item .icon-wrap { width: 46px; height: 46px; border-radius: 10px; background: #F2ECDD; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.value-item .icon-wrap svg { color: var(--gold); }
.value-item h4 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.value-item p { font-size: 0.9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
.contact-info-card { background: var(--navy); border-radius: 12px; padding: 38px; color: #fff; }
.contact-info-card h3 { color: #fff; margin-bottom: 22px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-row svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-row .l { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #C4AF8E; margin-bottom: 3px; }
.contact-row .v { color: #fff; font-weight: 500; }
.hours-table { margin-top: 26px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }
.hours-table div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.9rem; color: #DED0B4; }
.hours-table div span:last-child { color: #fff; font-weight: 500; }

form.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--navy); font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.03em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #FCFBF9;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--river);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--steel); margin-top: 10px; }

/* ---------- Testimonial ---------- */
.testimonial { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial p.quote { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 1.5rem; font-weight: 500; color: #fff; line-height: 1.4; }
.testimonial .who { color: var(--gold-light); font-size: 0.9rem; margin-top: 16px; text-transform: uppercase; letter-spacing: 0.06em; font-family: 'Barlow Condensed', sans-serif; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-2); padding: 60px 0 26px; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 46px; width: 46px; }
.footer-brand .name { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.05rem; }
.footer-brand .sub { color: var(--gold-light); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
footer.site p { color: #C7B89C; font-size: 0.9rem; }
footer.site h4 { color: #fff; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.05em; margin-bottom: 16px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site ul li { margin-bottom: 10px; }
footer.site ul li a { color: #D9CBAE; font-size: 0.9rem; transition: color 0.15s ease; }
footer.site ul li a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; color: #A9977A; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: var(--navy); padding: 60px 0; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: #D9CBAE; max-width: 560px; margin-top: 12px; }

/* ---------- Quote modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 36, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--paper);
  border-radius: 12px;
  padding: 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(46, 36, 24, 0.35);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--steel);
  padding: 4px;
  line-height: 0;
}
.modal-close:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  nav.links { display: none; }
  nav.links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 28px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  header.site { position: sticky; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; }
  .card-grid, .card-grid.three { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner .row { flex-direction: column; align-items: flex-start; }
}
