/* Prestige Plumbing — site styles */

:root {
  --red: #b40000;
  --red-dark: #8a0000;
  --red-soft: #fdecec;
  --navy: #14213d;
  --ink: #1b1b1b;
  --body: #474747;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 33, 61, 0.08);
  --header-h: 76px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--red); margin-bottom: .6em; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-primary:disabled { opacity: .65; cursor: wait; }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand img { height: 58px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.main-nav a:not(.btn):hover { color: var(--red); }
.nav-cta { padding: 10px 20px; }
.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-call svg { width: 20px; height: 20px; fill: var(--red); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .header-inner { gap: 12px; }
  .brand img { height: 50px; }
  .header-call { margin-left: auto; }
  .header-call span { display: none; }
  .header-call { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--red-soft); }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 20px; margin: 0;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; padding: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(14,18,30,.92) 0%, rgba(14,18,30,.78) 45%, rgba(14,18,30,.35) 100%),
    url("../img/gallery/work-13.jpg") center 30% / cover no-repeat;
  padding: clamp(72px, 12vw, 140px) 0;
}
.hero-inner { max-width: 1180px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: #ff8a8a; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40ch; color: #eaeaea; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; font-size: .95rem; color: #f1f1f1; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 560px) { .hero-actions .btn { width: 100%; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }

.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.service-card .icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--red-soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.service-card .icon svg { width: 28px; height: 28px; fill: var(--red); }
.service-card p { margin: 0; }

.why-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.why-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.why-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.why-body { padding: 26px; border-top: 4px solid var(--red); flex: 1; }
.why-body p { margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); margin-bottom: 28px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  font-size: 2rem; line-height: 1; width: 48px; height: 48px; border-radius: 50%;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Reviews ---------- */
.review-card { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.review-card .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }
.review-card blockquote { margin: 0 0 14px; font-style: italic; color: var(--ink); }
.review-card figcaption { font-weight: 700; color: var(--muted); font-size: .92rem; }

/* ---------- Contact ---------- */
.section-dark { background: var(--navy); color: #d6dae4; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #ff8a8a; }
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }

.info-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.info-list li { border-left: 3px solid var(--red); padding-left: 16px; color: #fff; }
.info-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #9aa3b8; font-weight: 700; margin-bottom: 2px; }
.info-big { color: #fff; font-size: 1.6rem; font-weight: 700; text-decoration: none; font-family: var(--font-head); }
.info-big:hover { color: #ffb3b3; }

.quote-form {
  background: #fff; color: var(--body); border-radius: 16px; padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.form-row { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.field label span[aria-hidden] { color: var(--red); }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input:not([type="file"]), .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #cfcfcf; border-radius: 8px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(180,0,0,.15); }
.field input[type="file"] { width: 100%; font: inherit; font-size: .92rem; padding: 10px; border: 1.5px dashed #bdbdbd; border-radius: 8px; background: var(--bg-alt); cursor: pointer; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field-error { color: var(--red); font-size: .85rem; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: .88rem; color: var(--muted); }
.file-list li { padding: 2px 0; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 16px; border-radius: 8px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: #e7f6ec; color: #17663a; padding: 14px 16px; border: 1px solid #b8e3c6; }
.form-status.err { background: var(--red-soft); color: var(--red-dark); padding: 14px 16px; border: 1px solid #f3c2c2; }
.fine-print { font-size: .78rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0d1529; color: #9aa3b8; padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.social { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social:hover { color: #ff8a8a; }

/* ---------- Mobile call bar ---------- */
.mobile-call { display: none; }
@media (max-width: 760px) {
  .mobile-call {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--red); color: #fff; text-align: center; font-weight: 700; text-decoration: none;
    padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,.15);
  }
  .site-footer { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
