/* ===========================================================
   McPherson Plumbing Group — Shared Styles
   Brand: Navy #0E2A3E + Orange #F26B1F
   Fonts: Montserrat (headings) + Inter (body)
   =========================================================== */

:root {
  --navy: #0E2A3E;
  --navy-dark: #081823;
  --orange: #F26B1F;
  --orange-dark: #D55711;
  --charcoal: #1E1E1E;
  --mid-grey: #6B7280;
  --light-grey: #E5E7EB;
  --off-white: #F7F7F5;
  --white: #FFFFFF;
  --success: #0F7F4A;
  --alert: #C8322C;
  --shadow: 0 2px 8px rgba(14, 42, 62, 0.08);
  --shadow-lg: 0 8px 24px rgba(14, 42, 62, 0.12);
  --radius: 6px;
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h1 { font-size: 48px; line-height: 1.1; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--off-white { background: var(--off-white); }

/* ---------- Header ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.header__logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 20px;
  color: var(--navy); letter-spacing: -0.02em;
  text-decoration: none;
}
.header__logo span { color: var(--orange); }
.header__nav { display: flex; gap: 28px; align-items: center; }
.header__nav a {
  font-weight: 500; font-size: 15px; color: var(--charcoal);
  transition: color 0.15s;
}
.header__nav a:hover { color: var(--orange); text-decoration: none; }
.header__phone {
  background: var(--orange); color: var(--white);
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px;
  transition: background 0.15s;
}
.header__phone:hover { background: var(--orange-dark); color: var(--white); text-decoration: none; }

@media (max-width: 820px) {
  .header__nav a:not(.header__phone) { display: none; }
  .header__phone { padding: 8px 14px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(242, 107, 31, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero__subhead {
  font-size: 20px; line-height: 1.5; color: rgba(255,255,255,0.88);
  margin-bottom: 32px; max-width: 640px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero--emergency { background: linear-gradient(135deg, #8B1A14 0%, #5C0F0B 100%); }
.hero--emergency::before { background: none; }

@media (max-width: 680px) {
  .hero { padding: 64px 0 56px; }
  h1 { font-size: 32px; }
  .hero__subhead { font-size: 17px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 16px;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
  min-height: 48px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 12px rgba(242, 107, 31, 0.3);
}
.btn--primary:hover { background: var(--orange-dark); color: var(--white); }
.btn--ghost {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-dark); color: var(--white); }
.btn--large { padding: 18px 32px; font-size: 18px; min-height: 56px; }
.btn--full { width: 100%; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--light-grey);
  padding: 14px 0;
  font-size: 14px; color: var(--mid-grey);
}
.trust-bar__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px 24px;
}
.trust-bar__item { display: inline-flex; align-items: center; gap: 6px; }
.trust-bar__item::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ---------- Service grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
  text-decoration: none;
}
.service-card__icon {
  width: 48px; height: 48px;
  background: rgba(242, 107, 31, 0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.service-card h3 { margin-bottom: 8px; font-size: 20px; }
.service-card p { color: var(--mid-grey); font-size: 15px; margin: 0; }

/* ---------- Why columns ---------- */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 48px;
}
.column__num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 14px;
  color: var(--orange);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.column h3 { font-size: 22px; margin-bottom: 12px; }
.column p { color: var(--mid-grey); margin: 0; }

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.review {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 28px;
}
.review__stars { color: #F5A623; font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.review__quote { font-size: 16px; line-height: 1.5; margin-bottom: 16px; color: var(--charcoal); }
.review__name { font-weight: 600; font-size: 14px; color: var(--navy); margin: 0; }
.review__meta { font-size: 13px; color: var(--mid-grey); margin: 0; }

/* ---------- Final CTA strip ---------- */
.cta-strip {
  background: var(--orange);
  padding: 56px 0;
  text-align: center; color: var(--white);
}
.cta-strip h2 { color: var(--white); margin-bottom: 12px; }
.cta-strip p { font-size: 18px; margin-bottom: 28px; opacity: 0.95; }
.cta-strip .btn--dark { background: var(--navy); }
.cta-strip .btn--dark:hover { background: var(--navy-dark); }

/* ---------- Forms ---------- */
.form {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form__row { margin-bottom: 18px; }
.form label {
  display: block; font-weight: 500; font-size: 14px;
  color: var(--charcoal); margin-bottom: 6px;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit; font-size: 16px;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 107, 31, 0.15);
}
.form textarea { resize: vertical; min-height: 100px; }

/* ---------- Service page body ---------- */
.service-body {
  max-width: 760px;
  margin: 0 auto;
}
.service-body h2 { margin-top: 48px; }
.service-body h3 { margin-top: 32px; font-size: 22px; }
.service-body ul { padding-left: 20px; }
.service-body li { margin-bottom: 8px; }
.service-body .highlight-box {
  background: var(--off-white);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.service-body .highlight-box p:last-child { margin-bottom: 0; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--light-grey);
}
.price-table th {
  background: var(--navy); color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; }
.faq details {
  border-bottom: 1px solid var(--light-grey);
  padding: 20px 0;
}
.faq summary {
  font-weight: 600; font-size: 17px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 24px; color: var(--orange); font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 12px; color: var(--mid-grey); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--orange); text-decoration: none; }
.footer__brand { font-family: 'Montserrat', sans-serif; font-size: 20px; color: var(--white); font-weight: 800; margin-bottom: 12px; }
.footer__fine {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  text-align: center;
}

@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 440px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile sticky call bar ---------- */
.sticky-call {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--orange);
  padding: 12px 16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  z-index: 200;
  text-align: center;
}
.sticky-call a {
  color: var(--white); font-weight: 700; font-size: 17px;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sticky-call a:hover { color: var(--white); }

@media (max-width: 820px) {
  .sticky-call { display: block; }
  body { padding-bottom: 60px; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }
.badge {
  display: inline-block; background: rgba(242,107,31,0.15); color: var(--orange);
  padding: 4px 10px; border-radius: 4px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.badge--alert { background: rgba(200, 50, 44, 0.15); color: var(--alert); }

/* ---------- Emergency page overrides ---------- */
.emergency-cta {
  text-align: center;
  background: var(--alert); color: var(--white);
  padding: 48px 24px;
  border-radius: var(--radius);
  margin: 32px 0;
}
.emergency-cta a {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 40px; font-weight: 800;
  color: var(--white);
  text-decoration: none;
  margin-top: 12px;
}
.emergency-cta a:hover { text-decoration: none; }

@media (max-width: 480px) {
  .emergency-cta a { font-size: 30px; }
}
