/*
   Murray Plumbing — Trades Mock Site
   Bold, punchy, reliable
*/

/* ==================== Variables ==================== */
:root {
  --bg: #ffffff;
  --bg-alt: #f0f4f8;
  --text: #1a2b3c;
  --text-muted: #5a6a7a;
  --primary: #0066cc;
  --primary-dark: #004c99;
  --accent: #ff5722;
  --accent-dark: #e64a19;
  --border: #d0d8e0;

  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1100px;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
}

/* ==================== Reset ==================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-sm);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================== Concept Badge ==================== */
.concept-badge {
  position: fixed;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.concept-badge span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.concept-badge a {
  color: #aaa;
  font-size: 0.6875rem;
}

.concept-badge a:hover {
  color: #fff;
}

/* ==================== Header ==================== */
.header {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem var(--space-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  transition: background 0.15s ease;
}

.header-phone:hover {
  background: rgba(255,255,255,0.25);
  text-decoration: none;
}

/* ==================== Hero ==================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 76, 153, 0.9) 100%);
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: var(--space-sm);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--space-md);
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  text-decoration: none;
}

/* ==================== Emergency Banner ==================== */
.emergency-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 1rem var(--space-md);
  font-size: 1rem;
}

.emergency-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

/* ==================== Sections ==================== */
.section {
  padding: var(--space-lg) var(--space-md);
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-narrow {
  max-width: 700px;
}

.section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.section-lead {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* ==================== Services Grid ==================== */
.services-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--bg-alt);
  padding: var(--space-md);
  border-radius: 8px;
  text-align: center;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ==================== Areas ==================== */
.areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.areas span {
  background: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
}

.areas-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ==================== Contact ==================== */
.section-contact {
  background: var(--primary);
  color: #fff;
}

.section-contact h2 {
  color: #fff;
}

.contact-grid {
  display: grid;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 600px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-item h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-item p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0.25rem 0 0;
}

/* ==================== Footer ==================== */
.footer {
  background: var(--text);
  color: #fff;
  padding: var(--space-md);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.footer-license {
  font-size: 0.8125rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ==================== Mobile Adjustments ==================== */
@media (max-width: 600px) {
  .header-phone span {
    display: none;
  }

  .header-phone {
    padding: 0.75rem;
    border-radius: 50%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-ctas {
    flex-direction: column;
  }
}
