@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #e4141b;
  --red-dark: #c11017;
  --black: #141414;
  --charcoal: #232323;
  --gray: #555;
  --light-gray: #f4f4f4;
  --white: #fff;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--black);
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
  line-height: 1.15;
}
p { margin: 0 0 1em; }
a { color: var(--red); }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--light-gray); }
.section-dark { background: var(--black); color: #eee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.text-center { text-align: center; }
.eyebrow {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-block { display: block; width: 100%; text-align: center; }

/* Header / Nav */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  border-bottom: 3px solid var(--red);
}
.nav-wrap {
  max-width: 1320px; margin: 0 auto; padding: 0.8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 42px; width: auto; border-radius: 6px; }
.brand-text { color: #fff; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.brand-text span { color: var(--red); }
nav.main-nav { display: flex; align-items: center; gap: 1.2rem; flex-shrink: 0; }
nav.main-nav a {
  color: #ddd; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--red); }
.nav-social { display: flex; gap: 0.9rem; align-items: center; }
.nav-social a { display: flex; }
.nav-social svg { width: 20px; height: 20px; fill: #ddd; transition: 0.15s; }
.nav-social a:hover svg { fill: var(--red); }
.nav-cta { margin-left: 0.4rem; white-space: nowrap; }
/* The phone number already lives in the hero, footer, and mobile call bar —
   dropping it from the inline desktop nav frees up room so the real nav
   links never get squeezed against the logo (see .menu-toggle breakpoint). */
.nav-phone { display: none; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; flex-shrink: 0; }

/* Switched to the hamburger well before the full nav (6 links + icons + CTA,
   set in bold uppercase Oswald) can run out of room and overlap the logo —
   that overlap is exactly what was happening at normal desktop widths before
   this fix, since .nav-wrap's own max-width caps out at 1320px regardless of
   screen size. 1300px gives a solid margin of safety on real fonts (the
   Google Fonts Oswald used for the nav couldn't be test-rendered in this
   environment, so this breakpoint is intentionally conservative — worth a
   quick look on a real monitor in the 1180-1400px range after deploy). */
@media (max-width: 1300px) {
  nav.main-nav { position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: var(--black); flex-direction: column; padding: 2rem 1.5rem; gap: 1.6rem; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; justify-content: flex-start; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav .nav-phone { display: block; }
  .menu-toggle { display: block; }
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(20,20,20,0.55), rgba(20,20,20,0.85)), var(--black) center/cover no-repeat;
  color: #fff;
  padding: 5.5rem 0 4.5rem;
}
.hero.has-photo { background-image: linear-gradient(180deg, rgba(15,15,15,0.55), rgba(15,15,15,0.9)), url('/images/mps-van-front.webp'); background-size: cover; background-position: center; }
.hero.has-video { overflow: hidden; background: var(--black); }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,15,15,0.6), rgba(15,15,15,0.9));
}
.hero.has-video .hero-grid { position: relative; z-index: 2; }
/* Respect reduced-motion / users who'd rather not autoplay video: fall back
   to the poster frame as a plain still image instead of animating. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero.has-video { background-image: linear-gradient(180deg, rgba(15,15,15,0.6), rgba(15,15,15,0.9)), url('/images/hero-poster.jpg'); background-size: cover; background-position: center; }
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 0.4em; }
.hero h1 span { color: var(--red); }
.hero.has-video .eyebrow { color: #ff4a50; text-shadow: 0 1px 6px rgba(0,0,0,0.85); }
.hero.has-video h1 { text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
.hero p.lead { font-size: 1.15rem; color: #eee; max-width: 520px; }
.hero-badges { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0; }
.hero-badge { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); padding: 0.4rem 0.9rem; border-radius: 30px; font-size: 0.82rem; font-weight: 600; }
.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-photo-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.hero-photo-card img { width: 100%; height: auto; }
/* Logo variant: transparent sticker art, so drop the white card and let it float over the video */
.hero-photo-card.hero-logo-card { background: none; box-shadow: none; border-radius: 0; overflow: visible; max-width: 460px; justify-self: center; }
.hero-logo-card img { filter: drop-shadow(0 18px 30px rgba(0,0,0,0.55)); }

/* Family section */
.family-feature { background: #fff; }
.family-feature .about-grid { grid-template-columns: 1.05fr 0.95fr; }
.family-feature p { color: #333; font-size: 1.05rem; }
.family-feature .family-sign { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; color: var(--black); font-size: 1.1rem; margin-top: 1.4rem; }
.family-feature .family-sign span { color: var(--red); }
.family-photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.18); }
.family-photo img { width: 100%; height: auto; border-radius: 0; }
@media (max-width: 880px) {
  .family-feature .about-grid { grid-template-columns: 1fr; }
  .family-feature .family-photo { order: -1; }
}

/* Mobile hero: the photo card used to sit ABOVE the headline at 420px wide, which
   on a phone filled the whole first screen and buried the background video. Now the
   headline comes first over the video (with a lighter overlay up top so the footage
   actually reads), and the photo card drops below the CTAs at a smaller size. */
@media (max-width: 880px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo-card { order: 2; max-width: 300px; width: 100%; margin: 0 auto; box-shadow: 0 14px 34px rgba(0,0,0,0.5); }
  .hero-video-overlay { background: linear-gradient(180deg, rgba(15,15,15,0.45) 0%, rgba(15,15,15,0.6) 35%, rgba(15,15,15,0.85) 100%); }
  .hero .eyebrow { color: #ff4a50; text-shadow: 0 1px 6px rgba(0,0,0,0.85); }
  .hero h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
  .trust-bar .container { gap: 0.9rem 1.4rem; }
  .hero p.lead { font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
  .hero-badges { margin: 1.2rem 0; gap: 0.5rem; }
  .hero-badge { background: rgba(15,15,15,0.55); }
}
@media (max-width: 880px) {
  .hero-photo-card.hero-logo-card { max-width: 260px; box-shadow: none; }
}
@media (max-width: 480px) {
  .hero-photo-card.hero-logo-card { max-width: 230px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-cta-row .btn { flex: 1 1 100%; text-align: center; }
  .hero-photo-card { max-width: 260px; }
}

/* Trust bar */
.trust-bar { background: #fff; border-bottom: 1px solid #eee; padding: 1.2rem 0; }
.trust-bar .container { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--gray); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; }
.trust-item strong { color: var(--black); }
.trust-item.trust-rheem { background: var(--red); color: #fff; padding: 0.45rem 1rem; border-radius: 30px; }
.trust-item.trust-rheem strong { color: #fff; }

/* Rheem partnership feature */
.rheem-feature { border-bottom: 1px solid #eee; }
.rheem-photo { position: relative; }
.rheem-photo img { width: 100%; max-height: 480px; object-fit: cover; box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.rheem-tag {
  position: absolute; left: 1rem; bottom: 1rem;
  background: var(--red); color: #fff; font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem;
  padding: 0.45rem 0.9rem; border-radius: 4px;
}

/* Social stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat-card { background: var(--charcoal); border-radius: var(--radius); padding: 1.8rem 1.2rem; text-align: center; border: 1px solid #333; }
.stat-card .num { font-family: 'Oswald', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--red); }
.stat-card .label { color: #ccc; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 0.3rem; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card { background: #fff; border: 1px solid #eaeaea; border-radius: var(--radius); padding: 1.8rem; transition: 0.15s; }
.service-card:hover { border-color: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,0.06); transform: translateY(-3px); }
.service-card .icon { font-size: 1.8rem; margin-bottom: 0.6rem; display: block; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 0; }
@media (max-width: 880px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* Instagram / social embed section */
.ig-follow-header p { max-width: 560px; margin: 0 auto 2.5rem; color: #ccc; }
.ig-embed-grid { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
@media (max-width: 900px) { .ig-embed-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); } }
@media (max-width: 600px) { .ig-embed-grid { grid-template-columns: 1fr; } }
.instagram-media { margin: 0 auto !important; }

.social-links-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.social-pill { display: inline-flex; align-items: center; gap: 0.5rem; background: #1c1c1c; border: 1px solid #333; color: #fff; padding: 0.7rem 1.3rem; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.social-pill:hover { border-color: var(--red); color: #fff; }
.social-pill svg { width: 18px; height: 18px; fill: #fff; }

/* Gallery */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-grid img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 880px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; } .photo-grid img { height: auto; } }

/* Testimonial */
.testimonial { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial blockquote { font-size: 1.4rem; font-style: italic; margin: 0 0 1rem; }
.testimonial cite { color: var(--gray); font-style: normal; font-weight: 600; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.about-grid img { border-radius: var(--radius); }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.credential-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.credential-list li { padding-left: 1.6rem; position: relative; margin-bottom: 0.5rem; }
.credential-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Water heater promo banner */
.wh-banner { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; border-radius: var(--radius); padding: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.wh-banner h3 { margin-bottom: 0.4rem; }
.wh-banner .btn { background: #fff; color: var(--red-dark); }
.wh-banner .btn:hover { background: #eee; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; font-size: 0.95rem;
}
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.checkbox-grid label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.92rem; }
.checkbox-grid input { width: auto; }
#form-status { margin-top: 1rem; font-weight: 600; }
#form-status.success { color: #1e8e3e; }
#form-status.error { color: var(--red); }

/* Contact info block */
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li { margin-bottom: 1.1rem; display: flex; gap: 0.8rem; }
.contact-info-list .label { font-weight: 700; display: block; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.03em; color: var(--gray); }

/* Sticky mobile call bar */
.mobile-call-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--red); display: none; padding: 0.8rem 1rem;
  justify-content: center; gap: 0.8rem;
}
.mobile-call-bar a { color: #fff; font-weight: 700; text-decoration: none; flex: 1; text-align: center; padding: 0.6rem; border-radius: 6px; }
.mobile-call-bar a.call { background: rgba(255,255,255,0.2); }
.mobile-call-bar a.quote { background: var(--black); }
@media (max-width: 720px) { .mobile-call-bar { display: flex; } body { padding-bottom: 64px; } }

/* Footer */
footer.site-footer { background: var(--black); color: #ccc; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: #ccc; text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid #333; padding-top: 1.5rem; text-align: center; font-size: 0.82rem; color: #888; }
.footer-bottom a { color: #999; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
