/* ==========================================================================
   Metropolitan Plumbing & Mechanical — design tokens
   Palette pulled from the brand logo: navy "Metropolitan" + light blue tagline
   ========================================================================== */
:root {
  --brand-navy: #2D4FA8;        /* primary, the "Metropolitan" blue */
  --brand-navy-dark: #1F3A82;
  --brand-navy-deep: #14275C;
  --brand-light: #5EB3E4;       /* the light "PLUMBING & MECHANICAL" blue */
  --brand-light-bright: #7BC4ED;

  --ink: #0F1B2D;
  --ink-soft: #36465C;
  --muted: #6A7A8E;
  --line: #E1E7EE;
  --surface: #FFFFFF;
  --surface-2: #F4F7FB;
  --surface-3: #E8EFF7;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 39, 92, .06), 0 1px 3px rgba(20, 39, 92, .08);
  --shadow-md: 0 4px 8px rgba(20, 39, 92, .07), 0 8px 24px rgba(20, 39, 92, .10);
  --shadow-lg: 0 12px 24px rgba(20, 39, 92, .10), 0 24px 48px rgba(20, 39, 92, .14);

  --container: 1200px;
  --container-narrow: 880px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-navy); text-decoration: none; }
a:hover { color: var(--brand-navy-dark); text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 2px;
  border-radius: 4px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-navy-deep);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Skip link / accessibility
   ========================================================================== */
.skip-link {
  position: absolute; top: -100px; left: 8px;
  background: var(--brand-navy); color: #fff; padding: 12px 16px; border-radius: 6px;
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-brand img { height: 40px; width: auto; }
.nav-brand .nav-brand-text {
  display: none; flex-direction: column; line-height: 1.1;
}
.nav-brand .nav-brand-text strong { color: var(--brand-navy-deep); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.nav-brand .nav-brand-text span { color: var(--brand-light); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.nav-links {
  display: none; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 6px;
  color: var(--ink-soft); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { background: var(--surface-2); color: var(--brand-navy); text-decoration: none; }
.nav-links a.active { color: var(--brand-navy); background: var(--surface-3); }

.nav-cta { display: none; align-items: center; gap: 10px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-navy-deep); font-weight: 700; font-size: 1rem;
}
.nav-phone:hover { text-decoration: none; color: var(--brand-navy); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--brand-navy-deep); cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-2); }

@media (min-width: 900px) {
  .nav-brand .nav-brand-text { display: flex; }
  .nav-links, .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* mobile drawer */
.mobile-drawer {
  display: none;
  padding: 8px 0 16px; border-top: 1px solid var(--line); background: var(--surface);
}
.mobile-drawer.open { display: block; }
.mobile-drawer .container { padding: 0 24px; }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--ink); font-size: 1.05rem;
}
.mobile-drawer .mobile-cta { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 700; font-size: .98rem; line-height: 1;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand-navy); color: #fff; }
.btn-primary:hover { background: var(--brand-navy-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-secondary { background: var(--brand-light); color: #fff; }
.btn-secondary:hover { background: var(--brand-light-bright); color: #fff; box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--brand-navy); border-color: var(--brand-navy); }
.btn-outline:hover { background: var(--brand-navy); color: #fff; }

.btn-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.40); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-navy-deep) 0%, var(--brand-navy) 60%, var(--brand-light) 130%);
  color: #fff;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 12vw, 140px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("/assets/images/skyline_1600.webp");
  background-size: cover; background-position: bottom center;
  opacity: .18; mix-blend-mode: screen;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.hero .hero-eyebrow {
  display: inline-block; padding: 6px 12px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero p.lede { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-logo {
  background: rgba(255,255,255,.94); border-radius: var(--radius-lg);
  padding: 28px 32px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.hero-logo img { width: 100%; max-width: 520px; }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-header { text-align: center; margin: 0 auto clamp(32px, 5vw, 56px); max-width: 720px; }
.section-eyebrow {
  color: var(--brand-light); font-weight: 700; font-size: .85rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 12px; display: block;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--ink-soft); font-size: 1.08rem; }

.bg-soft { background: var(--surface-2); }
.bg-deep { background: var(--brand-navy-deep); color: #fff; }
.bg-deep h2 { color: #fff; }

/* ==========================================================================
   Trust / stats strip
   ========================================================================== */
.trust-strip { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.trust-grid {
  display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); text-align: center;
}
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item strong { display: block; color: var(--brand-navy-deep); font-size: 1.5rem; font-weight: 800; }
.trust-item span { display: block; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-top: 4px; }

/* ==========================================================================
   Cards grid (services, etc.)
   ========================================================================== */
.cards { display: grid; gap: 22px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--surface-3); }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--surface-3); color: var(--brand-navy);
  margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; color: var(--brand-navy-deep); }
.card p { color: var(--ink-soft); margin-bottom: 12px; }
.card ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 14px; }
.card ul li { margin-bottom: 4px; }
.card .card-cta {
  margin-top: auto; font-weight: 700; color: var(--brand-navy);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  color: #fff; padding: clamp(48px, 7vw, 80px) 0;
}
.cta-band h2 { color: #fff; }
.cta-band .container { display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .cta-band .container { grid-template-columns: 1fr auto; } }
.cta-band p { color: rgba(255,255,255,.86); margin: 0; font-size: 1.08rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--brand-navy-deep); color: rgba(255,255,255,.78);
  padding: 56px 0 24px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand-light-bright); text-decoration: none; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid p { color: rgba(255,255,255,.78); margin-bottom: 6px; }
.footer-brand img { background: #fff; padding: 14px 18px; border-radius: 12px; max-width: 280px; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: rgba(255,255,255,.56); font-size: .9rem;
}

/* ==========================================================================
   Generic content (about / services detail / contact)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--brand-navy-deep), var(--brand-navy));
  color: #fff; padding: clamp(48px, 8vw, 88px) 0;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 56ch; margin-bottom: 0; }
.page-hero .breadcrumb {
  display: inline-block; color: rgba(255,255,255,.7); font-size: .9rem;
  margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; color: var(--brand-navy); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 22px; }
.prose li { margin-bottom: 6px; color: var(--ink-soft); }
.prose p { color: var(--ink-soft); }

/* service detail block */
.service-block {
  display: grid; gap: 32px; align-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; }
@media (min-width: 800px) { .service-block { grid-template-columns: 60px 1fr; gap: 28px; } }
.service-block .icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--brand-navy);
}
.service-block .icon svg { width: 30px; height: 30px; }
.service-block h3 { color: var(--brand-navy-deep); font-size: 1.4rem; margin-bottom: 8px; }
.service-block ul { columns: 2; column-gap: 32px; padding-left: 20px; margin: 12px 0 0; }
@media (max-width: 700px) { .service-block ul { columns: 1; } }
.service-block ul li { color: var(--ink-soft); margin-bottom: 4px; break-inside: avoid; }

/* About blocks */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.fact-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.fact strong { display: block; color: var(--brand-navy-deep); font-size: 1.6rem; font-weight: 800; }
.fact span { color: var(--muted); font-size: .9rem; font-weight: 600; letter-spacing: .03em; }

/* Ratings row */
.ratings { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); margin: 36px 0 0; }
.rating-pill {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; text-align: center;
}
.rating-pill .src { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.rating-pill .score { color: var(--brand-navy-deep); font-size: 1.6rem; font-weight: 800; margin-top: 2px; }
.rating-pill .stars { color: #F5A623; font-size: .9rem; margin-top: 2px; letter-spacing: 1px; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.contact-info { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.contact-info h3 { color: var(--brand-navy-deep); margin-top: 0; }
.contact-info .info-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-info .info-row svg { color: var(--brand-navy); flex-shrink: 0; margin-top: 3px; }
.contact-info .info-row strong { display: block; color: var(--brand-navy-deep); }
.contact-info .info-row a { color: var(--ink-soft); }
.contact-info .info-row a:hover { color: var(--brand-navy); }
.contact-info .hours-list { list-style: none; padding: 0; margin: 6px 0 0; color: var(--ink-soft); }
.contact-info .hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; max-width: 280px; }
.contact-info .hours-list span:last-child { font-variant-numeric: tabular-nums; }

.contact-form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.contact-form-card h3 { margin-top: 0; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-weight: 600; color: var(--ink); font-size: .92rem;
}
.form-field label .req { color: #C0392B; margin-left: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px rgba(45,79,168,.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-helper { color: var(--muted); font-size: .85rem; margin-top: -2px; }
.form-note { color: var(--muted); font-size: .85rem; }

.map-embed { margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
