/* =========================================================
   Outlaw Drains and More — Shared Stylesheet
   Design system: clean, light, "trustworthy local plumber"
   surface with a black + red brand accent (per rebuild
   direction). Dark treatment is reserved for the header
   and footer bars only — NOT the hero or body sections.
   ========================================================= */

:root {
  /* Brand colors (from real Outlaw Drains logo) */
  --color-black: #1a1a1a;
  --color-near-black: #202124;
  --color-red: #d81f27;
  --color-red-dark: #b6161d;
  --color-red-light: #fdeceb;

  /* Neutral surface colors — light/white dominant per design direction */
  --color-white: #ffffff;
  --color-bg-light: #f7f7f8;
  --color-bg-warm: #faf8f6;
  --color-border: #e5e7eb;
  --color-text: #232326;
  --color-text-muted: #5b5f66;
  --color-gray-badge: #eef0f2;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.10);

  --container-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-black);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
}

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

.section {
  padding: 56px 0;
}

.section-light {
  background-color: var(--color-white);
}

.section-gray {
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.eyebrow {
  display: inline-block;
  color: var(--color-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.text-center {
  text-align: center;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
  text-decoration: none !important;
  line-height: 1.1;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn-primary:hover {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-dark {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn-dark:hover {
  background-color: #000;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn-outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-call {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn-call:hover {
  background-color: var(--color-red-dark);
}

.btn-block {
  width: 100%;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================
   Header
   ========================= */
.site-header {
  background-color: var(--color-black);
  border-bottom: 3px solid var(--color-red);
  position: sticky;
  top: 0;
  z-index: 500;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 190px;
  height: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--color-red);
  text-decoration: none;
}

.header-cta {
  flex-shrink: 0;
}

.header-call-btn {
  white-space: nowrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-white);
  border-radius: 2px;
}

/* =========================
   Hero — LIGHT background per rebuild direction
   ========================= */
.hero {
  background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-white) 100%);
  border-top: 4px solid var(--color-red);
  padding: 56px 0 44px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--color-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: block;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--color-red);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 26px;
}

.hero-media {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  padding: 24px;
}

.hero-media.has-photo {
  padding: 0;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.hero-media.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   Trust badge bar
   ========================= */
.badge-bar {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}

.badge-bar-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
}

.badge-bar-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-black);
}

.badge-bar-list svg {
  color: var(--color-red);
  flex-shrink: 0;
}

/* =========================
   Real Plumber section
   ========================= */
.real-plumber {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 56px 0;
}

.real-plumber-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.real-plumber h2 {
  color: var(--color-white);
}

.real-plumber .accent {
  color: var(--color-red);
}

.real-plumber p {
  color: #d7d7d9;
  font-size: 1.05rem;
}

.owner-photo-slot {
  background-color: #2a2b2f;
  border: 1px dashed #55565c;
  border-radius: var(--radius-lg);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #b7b8bd;
  padding: 24px;
  font-size: 0.95rem;
}

.owner-photo-slot.has-photo {
  border-style: solid;
  border-color: transparent;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  max-height: none;
  aspect-ratio: 4 / 5;
  align-self: start;
}

.owner-photo-slot.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
  border-radius: var(--radius-lg);
}

/* =========================
   Work gallery
   ========================= */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.work-gallery figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-bg-light);
}

.work-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.work-gallery figcaption {
  padding: 10px 14px 14px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .work-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .work-gallery {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Cards / grids
   ========================= */
.grid {
  display: grid;
  gap: 24px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background-color: var(--color-red-light);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
}

/* Service detail sections on services.html */
.service-detail {
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
  scroll-margin-top: 100px;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.service-detail-head .card-icon {
  margin-bottom: 0;
}

/* =========================
   Why choose us
   ========================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-tile {
  text-align: center;
  padding: 20px;
}

.why-tile .card-icon {
  margin: 0 auto 16px;
}

/* =========================
   Trust badges (license / review)
   ========================= */
.trust-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.trust-slot {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-slot .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-gray-badge);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-slot strong {
  display: block;
  font-size: 1rem;
  color: var(--color-black);
}

.trust-slot span {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* =========================
   CTA band
   ========================= */
.cta-band {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 46px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: 10px;
}

.cta-band p {
  color: #d7d7d9;
  margin-bottom: 22px;
}

.cta-band .btn-row {
  justify-content: center;
}

/* =========================
   Service area
   ========================= */
.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.area-list li {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 700;
  text-align: center;
}

.map-placeholder {
  background-color: var(--color-bg-light);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  padding: 24px;
  margin-top: 32px;
}

.city-block {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.city-block:last-child {
  border-bottom: none;
}

/* =========================
   Reviews page
   ========================= */
.review-cta-box {
  background-color: var(--color-red-light);
  border: 1px solid #f5c9c7;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-bottom: 44px;
}

.testimonial-card {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  background-color: var(--color-bg-light);
  color: var(--color-text-muted);
  font-style: italic;
}

.testimonial-card strong {
  display: block;
  margin-top: 12px;
  font-style: normal;
  color: var(--color-black);
}

/* =========================
   Forms
   ========================= */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--color-black);
}

.form-row .required {
  color: var(--color-red);
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row input[type="date"],
.form-row input[type="time"],
.form-row input[type="number"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-white);
  color: var(--color-text);
}

.form-row textarea {
  min-height: 130px;
  resize: vertical;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-note {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.emergency-note {
  background-color: var(--color-red-light);
  border: 1px solid #f5c9c7;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.emergency-note p {
  margin: 0;
  font-weight: 600;
}

#payment-fallback {
  display: none;
  background-color: var(--color-red-light);
  border: 1px solid #f5c9c7;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 20px;
  font-weight: 600;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background-color: var(--color-black);
  color: #cfcfd2;
  padding-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-logo {
  width: 170px;
  margin-bottom: 14px;
}

.footer-col h2 {
  color: var(--color-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #cfcfd2;
}

.footer-col a:hover {
  color: var(--color-red);
}

.footer-bottom {
  border-top: 1px solid #3a3b3f;
  padding: 18px 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* =========================
   Mobile sticky call bar
   ========================= */
.mobile-call-bar {
  display: none;
}

/* =========================
   Breadcrumb / page intro
   ========================= */
.page-intro {
  background-color: var(--color-bg-warm);
  border-top: 4px solid var(--color-red);
  padding: 40px 0 32px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--color-text-muted);
  font-weight: 600;
}

/* =========================
   404 / thank-you simple pages
   ========================= */
.simple-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--color-bg-warm);
}

.simple-page .simple-inner {
  max-width: 520px;
}

/* =========================
   Utility
   ========================= */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.list-check {
  list-style: none;
}
.list-check li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}
.list-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-red);
  font-weight: 800;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px) {
  .hero-inner,
  .real-plumber-inner {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .area-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    background-color: var(--color-black);
    border-top: 1px solid #333;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    z-index: 400;
  }

  .main-nav.open {
    max-height: 600px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .main-nav ul li {
    border-bottom: 1px solid #2c2c2f;
  }

  .main-nav ul li a {
    display: block;
    padding: 14px 0;
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 760px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .why-grid,
  .form-grid-2,
  .trust-slot-grid {
    grid-template-columns: 1fr;
  }

  .area-list {
    grid-template-columns: 1fr 1fr;
  }

  body {
    padding-bottom: 64px;
  }

  .mobile-call-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 600;
    background-color: var(--color-red);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  }

  .mobile-call-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-white);
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 10px;
  }

  .mobile-call-link:hover {
    text-decoration: none;
  }

  .emergency-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .badge-bar-list {
    justify-content: flex-start;
  }
}
