/* =========================================================
   PureFlow Plumbing - OP Digital template (REFINED tier)
   Archetype: Clean Minimal. One accent locked. Light theme locked.
   ========================================================= */

/* NAV-SAFETY: never out-ranked */
[hidden] { display: none !important; }

:root {
  /* palette - ONE accent (cyan), locked */
  --paper:        #fbfdfe;
  --paper-alt:    #eef4f6;
  --ink:          #0f172a;
  --ink-soft:     #334155;
  --muted:        #51607a;
  --line:         #dbe4ea;
  --line-soft:    #e8eef2;
  --white:        #ffffff;

  --accent:       #0891b2;   /* brand cyan - icons, marks, accents */
  --accent-deep:  #0e7490;   /* button bg + links (AA white-on-this) */
  --accent-wash:  #e6f4f8;   /* tint backgrounds */
  --accent-ink:   #062e38;

  --radius:   16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow:   0 1px 2px rgba(15,23,42,.04), 0 12px 28px -12px rgba(15,23,42,.14);
  --shadow-lg: 0 30px 60px -24px rgba(15,23,42,.28);
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --ff: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------- buttons ---------------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap; text-align: center;
}
.btn svg { flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--call { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn--call:hover { background: #1d2a44; box-shadow: var(--shadow-lg); }

.btn--primary { background: var(--accent-deep); color: #fff; box-shadow: 0 10px 24px -10px rgba(14,116,144,.6); }
.btn--primary:hover { background: #0b6076; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); background: var(--white); }

.btn--lg { padding: 17px 28px; font-size: 17px; }
.btn--block { width: 100%; }

.eyebrow {
  margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-deep);
}

/* ---------------- sticky nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251,253,254,.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }

.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.nav__mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--accent-wash); color: var(--accent-deep);
}
.nav__name-accent { color: var(--accent-deep); margin-left: 3px; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--ink-soft); font-weight: 600; font-size: 15.5px; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent-deep); transition: width .22s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__call { padding: 11px 18px; font-size: 15px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav__toggle-bar { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- mobile nav panel ---------------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120;
  background: var(--paper);
  padding: 20px 22px 32px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mobile-nav__title { font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mobile-nav__close {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer;
}
.mobile-nav > a:not(.btn) {
  padding: 15px 6px; font-size: 20px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav__cta { margin-top: 12px; }
.mobile-nav__cta:first-of-type { margin-top: 18px; }

/* ---------------- hero ---------------- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero__eyebrow {
  display: inline-block; margin: 0 0 16px; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep);
  background: var(--accent-wash); padding: 6px 14px; border-radius: 999px;
}
.hero__title { font-size: clamp(2.5rem, 5.2vw, 4rem); }
.hero__sub { margin: 20px 0 28px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust {
  list-style: none; margin: 30px 0 0; padding: 24px 0 0; display: flex; flex-wrap: wrap; gap: 14px 26px;
  border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink-soft);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--accent-deep); }
.hero__stars { color: #f59e0b; letter-spacing: 1px; }

.hero__media { position: relative; }
.hero__img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; left: -16px; bottom: 26px; background: var(--white);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.1;
}
.hero__badge-num { font-size: 30px; font-weight: 800; color: var(--accent-deep); }
.hero__badge-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; }

/* ---------------- trust strip ---------------- */
.trustbar { background: var(--ink); color: #e8eef5; }
.trustbar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 22px 22px; align-items: center;
}
.trustbar__item { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; color: #cdd6e3; }
.trustbar__item strong { color: #fff; font-weight: 700; }
.trustbar__item svg { color: var(--accent); flex: 0 0 auto; }

/* ---------------- generic section ---------------- */
.section { padding: 84px 0; }
.section--alt { background: var(--paper-alt); }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

/* ---------------- services ---------------- */
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: 0 1px 2px rgba(15,23,42,.03);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.card__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--accent-wash); color: var(--accent-deep); margin-bottom: 18px;
}
.card__title { font-size: 1.22rem; }
.card__text { margin-top: 10px; color: var(--muted); font-size: 1rem; }

.services__cta {
  margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px 24px; text-align: center;
}
.services__cta p { color: var(--ink-soft); font-weight: 600; font-size: 1.05rem; }

/* ---------------- why choose us ---------------- */
.why__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.why__copy { position: sticky; top: 100px; }
.why__copy .btn { margin-top: 24px; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.why__item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.why__num {
  flex: 0 0 auto; font-size: 15px; font-weight: 800; color: var(--accent-deep);
  background: var(--accent-wash); width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; letter-spacing: 0;
}
.why__item h3 { font-size: 1.15rem; }
.why__item p { margin-top: 7px; color: var(--muted); font-size: 1rem; }

/* ---------------- quote cta hook ---------------- */
.textback { background: var(--accent-wash); }
.textback__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.textback .eyebrow, .textback .section__title { display: block; }
.textback__copy { display: flex; flex-direction: column; align-items: center; }
.textback .section__lead { max-width: 52ch; margin-left: auto; margin-right: auto; }
.textback__points {
  list-style: none; margin: 28px 0 32px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px;
}
.textback__points li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-soft); font-size: 1.05rem; text-align: left; }
.textback__points svg { color: var(--accent-deep); flex: 0 0 auto; }
.textback__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------------- work / gallery ---------------- */
.work__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.work__item {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--white);
}
.work__item--wide { grid-column: span 2; }
.work__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; transition: transform .5s var(--ease); }
.work__item--wide img { aspect-ratio: 16 / 10; }
.work__item:hover img { transform: scale(1.05); }
.work__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(to top, rgba(8,15,28,.78), transparent);
}

/* ---------------- reviews ---------------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  margin: 0; background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 1px 2px rgba(15,23,42,.03);
  display: flex; flex-direction: column;
}
.review__stars { color: #f59e0b; letter-spacing: 2px; font-size: 17px; }
.review blockquote { margin: 14px 0 18px; font-size: 1.02rem; color: var(--ink-soft); line-height: 1.6; }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; }
.review figcaption strong { font-weight: 700; color: var(--ink); }
.review figcaption span { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------------- service area ---------------- */
.area__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.area__copy .btn { margin-top: 24px; }
.area__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.area__list li {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 13px 16px; font-weight: 600; color: var(--ink-soft); font-size: 15px;
  display: flex; align-items: center; gap: 9px;
}
.area__list li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-deep); flex: 0 0 auto;
}

/* ---------------- faq ---------------- */
.faq__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.faq__head { position: sticky; top: 100px; }
.faq__head .btn { margin-top: 22px; }
.faq__head .eyebrow, .faq__head .section__title, .faq__head .section__lead { text-align: left; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 4px 22px; transition: border-color .2s var(--ease);
}
.faq__item[open] { border-color: var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 1.08rem; color: var(--ink);
  padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: 0 0 auto; width: 11px; height: 11px;
  border-right: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep);
  transform: rotate(45deg); transition: transform .22s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p { padding: 0 0 20px; color: var(--muted); font-size: 1rem; }

/* ---------------- cta band ---------------- */
.cta { background: var(--ink); color: #fff; }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta__title { font-size: clamp(2rem, 3.8vw, 2.9rem); color: #fff; }
.cta__lead { margin: 18px 0 26px; color: #c4cedd; font-size: 1.12rem; max-width: 42ch; }
.cta .btn--call { background: var(--accent-deep); }
.cta .btn--call:hover { background: #0b6076; }
.cta__assure { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 11px; }
.cta__assure li { display: flex; align-items: center; gap: 11px; color: #d7dfea; font-weight: 600; font-size: 1rem; }
.cta__assure li::before {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

.cta__form { background: var(--white); border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow-lg); }
.cta__form-title { color: var(--ink); font-size: 1.4rem; margin-bottom: 8px; }
.field { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field__opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 13px 14px; width: 100%; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-wash);
}
.field input:user-invalid { border-color: #dc2626; }
.cta__form .btn { margin-top: 22px; }
.form-note { margin-top: 14px; font-weight: 600; color: var(--accent-deep); font-size: 15px; }
.form-fineprint { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------------- footer ---------------- */
.footer { background: #0a101e; color: #aeb9c9; }
.footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
  padding: 60px 22px 44px;
}
.footer__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.footer__logo .nav__mark { background: rgba(8,145,178,.16); color: var(--accent); }
.footer__tag { margin-top: 14px; font-size: 15px; max-width: 34ch; line-height: 1.6; }
.footer__col h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.footer__col a { color: #aeb9c9; }
.footer__col a:hover { color: var(--accent); }
.footer__bar { border-top: 1px solid #1b2436; }
.footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; font-size: 13px; color: #7e8aa0; }
.footer__credit { color: #9aa6b8; }

/* ---------------- sticky mobile call bar ---------------- */
.callbar {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 110;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 17px;
  padding: 16px; border-radius: 16px; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 14px 34px -8px rgba(8,15,28,.6);
}
.callbar svg { color: var(--accent); }

/* ---------------- scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .why__inner, .area__inner { grid-template-columns: 1fr; gap: 40px; }
  .why__copy, .faq__head { position: static; }
  .faq__inner { grid-template-columns: 1fr; gap: 36px; }
  .services__grid, .reviews__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__call span { display: none; }
  .nav__call { padding: 11px 13px; }
  .nav__toggle { display: flex; }

  .hero { padding: 36px 0 28px; }
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__media { order: -1; }
  .hero__img { aspect-ratio: 16 / 12; }
  .hero__sub { max-width: none; }

  .trustbar__inner { grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }

  .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .textback__points { gap: 12px 22px; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__item--wide { grid-column: span 2; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav__name { font-size: 17px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__badge { left: 12px; bottom: 12px; padding: 12px 16px; }
  .services__grid, .reviews__grid, .area__list { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .work__item--wide { grid-column: span 1; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; gap: 6px; }

  .callbar { display: flex; }
  body { padding-bottom: 84px; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal, .bubble { opacity: 1 !important; transform: none !important; }
}
