/* Elite Plumbing - shared stylesheet (site v1)
   Warm small-business palette, system fonts, mobile-first, no frameworks. */

:root {
  --ink: #2b2b26;
  --muted: #6b6b5f;
  --cream: #faf6ef;
  --card: #ffffff;
  --brand: #c24a1c;
  --brand-dark: #a83d14;
  --navy: #22303a;
  --accent: #0e7490;
  --line: #e9e2d4;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---- header / nav ---- */

.site-header {
  background: var(--navy);
  color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 16px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
}

.nav-phone {
  font-weight: 700;
  color: #ffd9c2;
  white-space: nowrap;
}

.nav-phone:hover {
  color: #fff;
}

/* ---- page scaffolding ---- */

.page {
  padding-block: 32px 56px;
}

.section {
  margin-bottom: 44px;
}

.section-title {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 60ch;
}

/* ---- hero ---- */

.hero {
  background: linear-gradient(150deg, var(--navy) 0%, #2f4a5c 60%, var(--accent) 130%);
  color: #fff;
  padding-block: 64px;
}

.hero-inner {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- buttons ---- */

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

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

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
  border-color: var(--brand);
  color: var(--brand);
}

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

/* ---- cards / grids ---- */

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(34, 48, 58, 0.05);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---- trust bar ---- */

.trust-bar {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

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

.trust-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.trust-item span {
  color: var(--muted);
  font-size: 14px;
}

/* ---- services ---- */

.service-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-name {
  font-size: 17px;
  font-weight: 600;
}

.service-desc {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.service-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

/* ---- CTA band ---- */

.cta-band {
  background: var(--brand);
  color: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-band .btn {
  background: #fff;
  color: var(--brand-dark);
}

.cta-band .btn:hover {
  background: #ffe3d2;
}

/* ---- about / team ---- */

.team-card {
  text-align: left;
}

.team-card .role {
  display: block;
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  margin-top: 2px;
}

/* ---- reviews ---- */

.review {
  border-left: 4px solid var(--accent);
}

.review .stars {
  color: #d97706;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.review .author {
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}

.review .place {
  color: var(--muted);
  font-size: 13px;
}

/* ---- contact ---- */

.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: repeating-linear-gradient(
    45deg,
    #f3ecdd,
    #f3ecdd 12px,
    #efe7d5 12px,
    #efe7d5 24px
  );
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  padding: 20px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-detail {
  margin: 0 0 12px;
  font-size: 15px;
}

.contact-detail strong {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* ---- footer ---- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding-block: 40px 20px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.footer-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 6px;
}

.site-footer a {
  color: #ffd9c2;
}

.site-footer p {
  margin: 0 0 4px;
  font-size: 14px;
}

.footer-bottom {
  padding-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- version pill ---- */

.version-pill {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 48, 58, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
