/* Plumber Demo – Agency-style. Palette: navy, slate, steel grey, white, electric blue accent.
   Distinct from landscaper: different layout, typography, hero treatment. */

:root {
  --color-navy: #0f172a;
  --color-navy-mid: #1e293b;
  --color-slate: #334155;
  --color-slate-light: #475569;
  --color-steel: #64748b;
  --color-steel-light: #94a3b8;
  --color-white: #ffffff;
  --color-offwhite: #f8fafc;
  --color-accent: #0ea5e9;
  --color-accent-hover: #0284c7;
  --color-accent-light: #e0f2fe;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --header-height: 88px;
  /* Exit demo below header so it never overlaps */
  --exit-demo-top: calc(var(--header-height) + 0.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-slate);
  background: var(--color-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--space-lg); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 var(--space-sm); }

/* ========== EXIT DEMO BUTTON (required – shared, all pages) ========== */
.exit-demo {
  position: fixed;
  top: var(--exit-demo-top);
  right: var(--space-lg);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.exit-demo:hover {
  background: var(--color-offwhite);
  color: var(--color-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}
@media (max-width: 768px) {
  .exit-demo {
    top: calc(var(--header-height) + 0.5rem);
    right: 0.75rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.header-logo:hover { color: var(--color-accent-light); }
.header-logo svg { flex-shrink: 0; }

.site-header.is-scrolled .header-logo,
.site-header.is-scrolled .header-logo:hover {
  color: var(--color-navy);
}
.site-header.is-scrolled .header-logo:hover {
  color: var(--color-accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.header-nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}
.header-nav a:hover { color: var(--color-accent-light); }

.site-header.is-scrolled .header-nav a {
  color: var(--color-slate);
}
.site-header.is-scrolled .header-nav a:hover {
  color: var(--color-accent);
}

.header-cta {
  display: flex;
  align-items: center;
}
.header-cta .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

/* Mobile nav */
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-white);
  }
  .site-header.is-scrolled .nav-toggle { color: var(--color-navy); }
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: background 0.3s ease;
  }
  .header-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-xl);
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    gap: 0;
    display: none;
  }
  .header-nav.is-open { display: flex; }
  .header-nav a {
    padding: var(--space-md);
    color: var(--color-slate);
  }
  .header-nav a:hover { color: var(--color-accent); }
  .header-cta { margin-top: var(--space-sm); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
}
.site-header.is-scrolled .btn-outline {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.site-header.is-scrolled .btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.section {
  padding: var(--space-3xl) 0;
}
.section--alt { background: var(--color-offwhite); }
.section--dark {
  background: var(--color-navy);
  color: var(--color-offwhite);
}
.section--dark h2 { color: var(--color-white); }
.text-center { text-align: center; }
.prose { max-width: 720px; margin: 0 auto; }
.prose p + p { margin-top: var(--space-sm); }

/* ========== HERO (agency-style: full-width image, overlay, centered CTA) ========== */
.hero-banner {
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  background: var(--color-navy) center/cover no-repeat;
}
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(30, 41, 59, 0.65) 100%);
}
.hero-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}
.hero-banner h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-banner .lead {
  font-size: 1.25rem;
  line-height: 1.5;
  opacity: 0.95;
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  color: rgba(255, 255, 255, 0.95);
}
.hero-banner .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

/* Optional callback strip under hero */
.callback-strip {
  background: var(--color-navy-mid);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.callback-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}
.callback-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.callback-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}
.callback-form-inline input {
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  min-width: 200px;
}
.callback-form-inline input::placeholder { color: rgba(255, 255, 255, 0.5); }
.callback-form-inline .btn { flex-shrink: 0; }

/* ========== SERVICES (image-backed cards) ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 320px;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
}
.service-card h3 {
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}
.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}
.service-card a {
  position: absolute;
  inset: 0;
  color: inherit;
}
.service-card a:hover { color: inherit; }

/* ========== TRUST / SOCIAL PROOF ========== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}
.trust-item {
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
.trust-item:hover { box-shadow: var(--shadow-lg); }
.trust-item .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.trust-item h3 { font-size: 1.1rem; margin-bottom: var(--space-xs); }
.trust-item p { font-size: 0.9375rem; margin: 0; color: var(--color-slate); }

/* ========== CTA STRIP ========== */
.cta-strip {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--color-slate);
  color: var(--color-white);
}
.cta-strip h2 { color: var(--color-white); margin-bottom: var(--space-sm); }
.cta-strip p { margin-bottom: var(--space-lg); opacity: 0.95; }
.cta-strip .btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
}
.cta-strip .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-slate);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-navy);
  color: var(--color-offwhite);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
.site-footer a { color: rgba(248, 250, 252, 0.9); }
.site-footer a:hover { color: var(--color-accent-light); }
.footer-disclaimer {
  font-size: 0.8125rem;
  opacity: 0.75;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  margin: 0;
}

/* ========== PAGE HEAD (inner pages) ========== */
.page-head {
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-xl);
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
}
.page-head h1 { color: var(--color-white); margin-bottom: var(--space-xs); }
.page-head p { margin: 0; opacity: 0.9; }

/* ========== FORMS ========== */
.form-card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { margin-bottom: var(--space-md); color: var(--color-navy); }
.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--color-slate);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-steel-light);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-card .btn { width: 100%; margin-top: var(--space-xs); }

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-layout--reverse { direction: rtl; }
.contact-layout--reverse > * { direction: ltr; }
.contact-details {
  background: var(--color-offwhite);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-details h3 { margin-bottom: var(--space-md); }
.contact-details dl { margin: 0; }
.contact-details dt {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-steel);
  margin-top: var(--space-sm);
  margin-bottom: 0.25rem;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { margin: 0; color: var(--color-navy); }
.contact-details a { color: var(--color-accent); font-weight: 500; }
