/* =====================================================================
   Minuteman Plumbing — brand stylesheet
   Built from "Minuteman Plumbing Brand Guide.dc.html"
   ===================================================================== */

:root {
  /* Primary */
  --navy:   #1E3557;   /* Colonial Navy */
  --red:    #B43A32;   /* Patriot Red   */
  --cream:  #F5F1E8;   /* Warm Cream    */
  /* Secondary */
  --copper: #B56A3D;
  --charcoal: #2F343A;
  --steel:  #6B7280;
  /* Tints / surfaces */
  --paper:      #FCFAF4;
  --cream-deep: #EFE9DB;
  --line:       rgba(47, 52, 58, .12);
  --line-soft:  rgba(47, 52, 58, .08);

  --red-hover:  #9c2f28;
  --navy-hover: #16294a;

  --head: 'Cinzel', Georgia, serif;
  --body: 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;

  --maxw: 1140px;
  --radius: 6px;
  --radius-lg: 10px;

  --texture: repeating-linear-gradient(45deg,
              rgba(181,106,61,.03) 0, rgba(181,106,61,.03) 2px,
              transparent 2px, transparent 11px);
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }

::selection { background: var(--red); color: var(--cream); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--cream);
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--radius);
  padding: 13px 24px; line-height: 1;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: var(--cream); }
.btn--red:hover { background: var(--red-hover); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--cream); }
.btn--sm { padding: 8px 16px; font-size: 13.5px; }
.btn--block { width: 100%; padding: 14px; font-size: 15.5px; margin-top: 6px; }

.eyebrow {
  font-weight: 600; font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--copper); margin: 0 0 16px;
}

/* ---------- emergency bar ---------- */
.emergency-bar {
  background: var(--red); color: var(--cream);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
}
.emergency-bar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 9px 40px; text-align: center;
}
.emergency-bar__sep { opacity: .5; }
.emergency-bar__call { color: var(--cream); text-decoration: none; }
.emergency-bar__call:hover { text-decoration: underline; }

/* ---------- header / nav ---------- */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { flex: none; }
.brand__type { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--head); font-weight: 700; font-size: 16px;
  letter-spacing: .1em; color: var(--navy);
}
.brand__sub {
  font-size: 9.5px; font-weight: 600; letter-spacing: .4em; color: var(--copper);
}

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav > a {
  font-size: 14px; font-weight: 500; color: var(--charcoal);
  text-decoration: none; transition: color .15s ease;
}
.primary-nav > a:not(.btn):hover { color: var(--red); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.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 (Direction C) ---------- */
.hero { background: #fff; }
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px;
  align-items: stretch; min-height: 480px;
  padding-top: 56px; padding-bottom: 56px;
  background-image: var(--texture);
}
.hero__title {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(40px, 6vw, 56px); line-height: 1.02;
  color: var(--navy); margin: 0 0 18px;
}
.hero__lede {
  font-size: 16.5px; color: #4a525b; max-width: 44ch; margin: 0 0 26px;
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  align-self: stretch;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.trust-strip { background: var(--navy); color: var(--cream); }
.trust-strip__inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px 18px; padding: 15px 40px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
}
.trust-strip__dot { color: rgba(245,241,232,.35); }

/* ---------- generic section ---------- */
.section { padding: 76px 0; background: var(--cream); }
.section--alt {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section--navy { background: var(--navy); }

.section-title {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 32px); color: var(--navy); margin: 0 0 12px;
}
.section-title--light { color: var(--cream); }
.section-intro {
  font-size: 16px; color: var(--steel); max-width: 62ch; margin: 0 0 40px;
}

/* ---------- services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(30,53,87,.10);
  border-color: rgba(181,106,61,.4);
}
.service-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(181,106,61,.12); color: var(--copper); margin-bottom: 16px;
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-family: var(--head); font-weight: 600; font-size: 19px;
  color: var(--navy); margin: 0 0 8px;
}
.service-card p { font-size: 14.5px; color: var(--steel); margin: 0; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about__copy p { font-size: 16px; color: #4a525b; margin: 0 0 16px; }
.values { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(30,53,87,.22); border-radius: 999px;
  padding: 7px 15px; font-size: 13px; font-weight: 500; color: var(--navy);
}

.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--navy); color: var(--cream);
  border-radius: var(--radius); padding: 24px 22px; text-align: left;
  border-bottom: 3px solid var(--copper);
}
.stat__num {
  font-family: var(--head); font-weight: 700; font-size: 34px;
  line-height: 1; display: block; margin-bottom: 8px;
}
.stat__unit { font-size: 16px; font-weight: 600; margin-left: 3px; color: var(--copper); }
.stat__label { font-size: 13px; color: rgba(245,241,232,.7); }

/* ---------- service area ---------- */
.area-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.area-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; font-weight: 500; color: var(--navy); font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.area-list li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper); flex: none;
}

/* ---------- reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: rgba(245,241,232,.06); border: 1px solid rgba(245,241,232,.14);
  border-radius: var(--radius); padding: 28px 26px; margin: 0; color: var(--cream);
}
.review__stars { color: var(--copper); letter-spacing: .12em; margin-bottom: 14px; font-size: 16px; }
.review blockquote {
  margin: 0 0 16px; font-size: 15.5px; line-height: 1.6;
  color: rgba(245,241,232,.92);
}
.review figcaption { font-size: 13.5px; font-weight: 600; color: var(--copper); }

/* ---------- schedule / contact ---------- */
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.schedule__copy p { font-size: 16px; color: #4a525b; margin: 0 0 24px; }
.contact-line {
  display: flex; flex-direction: column; text-decoration: none;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.contact-line:last-child { border-bottom: 1px solid var(--line); }
.contact-line__label {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--copper); margin-bottom: 2px;
}
.contact-line__value { font-size: 18px; font-weight: 600; color: var(--navy); }
.contact-line:hover .contact-line__value { color: var(--red); }

.schedule-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: 0 8px 24px rgba(30,53,87,.08);
}
.schedule-form__title {
  font-family: var(--head); font-weight: 700; font-size: 21px;
  color: var(--navy); margin: 0 0 4px;
}
.schedule-form__sub { font-size: 13.5px; color: var(--steel); margin: 0 0 20px; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px;
}
.field__opt { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 15px; color: var(--charcoal);
  background: #F7F4ED; border: 1px solid rgba(47,52,58,.18);
  border-radius: var(--radius); padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(181,106,61,.18);
}
.schedule-form__status {
  margin: 16px 0 0; font-size: 14px; font-weight: 600;
  padding: 12px 14px; border-radius: var(--radius);
  background: rgba(30,53,87,.06); color: var(--navy);
}
.schedule-form__status--err { background: rgba(180,58,50,.10); color: var(--red); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--cream); border-top: 3px solid var(--copper); }
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 44px 40px;
}
.brand--footer .brand__name { color: var(--cream); font-size: 18px; }
.brand--footer .brand__tagline {
  font-size: 12px; letter-spacing: .2em; color: var(--copper);
}
.site-footer__meta {
  text-align: right; font-size: 12.5px; color: rgba(245,241,232,.6); line-height: 1.7;
}
.site-footer__meta a { color: rgba(245,241,232,.85); text-decoration: none; }
.site-footer__meta a:hover { color: var(--cream); text-decoration: underline; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .section { padding: 60px 0; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(30,53,87,.10);
    padding: 8px 24px 18px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .primary-nav > a.btn { margin-top: 12px; border-bottom: 0; }

  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__media { min-height: 200px; order: 2; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .schedule { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__meta { text-align: left; }
}

@media (max-width: 540px) {
  .wrap, .emergency-bar__inner, .site-header__inner, .trust-strip__inner { padding-left: 18px; padding-right: 18px; }
  .services-grid, .area-list, .about__stats { grid-template-columns: 1fr; }
  .emergency-bar__inner { flex-wrap: wrap; }
  .hero__cta .btn { flex: 1; }
}
