/* =====================================================
   A&E NYC Plumbing - main stylesheet
   EDIT HERE:
   - Fonts:  --font-head (headings) and --font-body (text) in :root
             (also change the Google Fonts <link> in each HTML page)
   - Colors: --ink (text), --blue (buttons/links), --alert (call button),
             --tint (light blue sections)
   ===================================================== */

/* Fonts & colors */
:root {
  --font-head: "Plus Jakarta Sans","Inter",system-ui,sans-serif;
  --font-body: "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --ink: #0f2a3d;
  --muted: #52687a;
  --blue: #0b6bb5;
  --blue-d: #08558f;
  --tint: #eaf4fb;
  --line: #dce8f0;
  --bg: #fff;
  --alert: #d8432f;
  --r: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.65 var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

h1,h2,h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(2rem,5vw,3.4rem);
}

h2 {
  font-size: clamp(1.5rem,3.2vw,2.2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
  max-width: 70ch;
}

a {
  color: var(--blue);
}

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

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.sec {
  padding: 64px 0;
}

.sec.alt {
  background: var(--tint);
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: .88rem;
}

.topbar .wrap {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font: 800 1.15rem var(--font-head);
}

.brand img {
  height: 46px;
  width: auto;
  min-width: 46px;
  background: var(--tint);
  border-radius: 10px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: center;
}

nav a {
  display: block;
  padding: 10px 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}

nav a:hover,nav a.on {
  background: var(--tint);
  color: var(--blue);
}

nav li {
  position: relative;
}

.sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px;
  box-shadow: 0 12px 30px rgba(15,42,61,.12);
  flex-direction: column;
  gap: 0;
}

nav li:hover>.sub,nav li:focus-within>.sub {
  display: flex;
}

.sub a {
  font-weight: 500;
  padding: 8px 12px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}

.btn:hover {
  background: var(--blue-d);
}

.btn.call {
  background: var(--alert);
}

.btn.call:hover {
  background: #b9341f;
}

.btn.ghost {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.nav-cta {
  margin-left: 4px;
  color: #fff!important;
}

.nav-book {
  background: var(--blue);
}

.nav-book:hover {
  background: var(--blue-d)!important;
}

.nav-cta:hover {
  background: var(--alert)!important;
  color: #fff!important;
}

.burger {
  display: none;
  background: none;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--ink);
}

.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg,var(--tint),#fff);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-media {
  aspect-ratio: 3/2;
  border-radius: 22px;
  overflow: hidden;
  background: var(--line) center/cover;
  box-shadow: 0 20px 50px rgba(15,42,61,.18);
}

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

.badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 16px;
}

.badge b {
  color: #e6a100;
}

.card-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15,42,61,.08);
  max-width: 520px;
}

label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin: 12px 0 4px;
}

input,textarea,select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #c5d6e2;
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

select {
  appearance: auto;
  cursor: pointer;
}

input[type=checkbox] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--blue);
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 4px;
  padding: 14px;
  border: 1.5px solid #c5d6e2;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}

.opt {
  font-weight: 400;
  color: var(--muted);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.card-form.wide {
  max-width: none;
}

.note {
  font-size: .92rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.split.top {
  align-items: start;
}

.steps {
  padding-left: 20px;
  margin: 0 0 24px;
}

.steps li {
  margin-bottom: 10px;
}

.callbox {
  background: var(--tint);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 20px;
}

.callbox p {
  margin-bottom: 12px;
}

.ok {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #e4f6ea;
  color: #14602e;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
}

.svc {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
}

.svc:hover {
  border-color: var(--blue);
}

.svc h3 {
  color: var(--blue);
}

.svc p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}

.svc.full {
  padding: 28px;
}

.svc.full p {
  max-width: none;
  color: var(--ink);
  font-size: 1rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split img {
  border-radius: 20px;
  width: 100%;
}

.why {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
}

.why div {
  background: #fff;
  border-radius: var(--r);
  padding: 24px;
  border-left: 5px solid var(--blue);
}

.cta {
  text-align: center;
  background: var(--ink);
  color: #fff;
  padding: 56px 20px;
}

.cta p {
  margin: 0 auto 1.2em;
}

.cta .btn.ghost {
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.video {
  aspect-ratio: 16/9;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 10px 30px rgba(15,42,61,.12);
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.page-head {
  background: var(--tint);
  padding: 48px 0;
}

.page-head p {
  color: var(--muted);
  margin: 0;
}

.posts {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
}

.post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.post .ph {
  aspect-ratio: 16/9;
  background: var(--line);
}

.post .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post div.b {
  padding: 20px;
}

.post a {
  text-decoration: none;
  color: var(--ink);
}

.post a:hover {
  color: var(--blue);
}

footer {
  background: #f6fafd;
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
}

footer .cols {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.2fr 1fr 1fr;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li {
  margin-bottom: 8px;
}

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

footer a:hover {
  color: var(--blue);
}

.copy {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.sticky-bar {
  display: none;
}

@media(max-width:1100px) {
  .nav-phone {
    display: none;
  }
}

@media(max-width:900px) {
  .hero .wrap,.split,footer .cols {
    grid-template-columns: 1fr;
  }
  .burger {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    max-height: 80vh;
    overflow: auto;
  }
  nav.open {
    display: block;
  }
  nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .sub {
    display: flex;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .topbar .wrap {
    justify-content: center;
  }
  .nav-phone {
    display: block;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .hero-media {
    display: none;
  }
  .hero {
    padding: 36px 0;
  }
  .sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    box-shadow: 0 -4px 16px rgba(15,42,61,.15);
  }
  .sticky-bar a {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
  }
  .sb-call {
    background: var(--alert);
  }
  .sb-book {
    background: var(--blue);
  }
  body {
    padding-bottom: 52px;
  }
  footer {
    padding: 24px 0 16px;
    text-align: center;
  }
  footer .cols {
    gap: 14px;
  }
  .f-blog,.f-badge,.f-addr,.f-hours,.f-extra,.f-links h3 {
    display: none;
  }
  footer .brand {
    justify-content: center;
  }
  footer .brand img {
    height: 34px;
    min-width: 34px;
  }
  .f-contact {
    margin: 10px 0 0;
  }
  .f-links ul {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  .f-links li {
    margin: 0;
  }
  .f-links {
    order: 2;
  }
  .copy {
    margin-top: 14px;
    padding-top: 12px;
    text-align: center;
  }
  .sec {
    padding: 44px 0;
  }
}

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

.ico {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--tint);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  flex: none;
  transition: background .2s,color .2s;
}

.ico svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc {
  transition: border-color .2s,box-shadow .2s;
}

.svc:hover {
  box-shadow: 0 12px 28px rgba(15,42,61,.1);
}

.svc:hover .ico {
  background: var(--blue);
  color: #fff;
}

.svc .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--blue);
  font-size: .95rem;
}

.svc.full {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 90px;
}

.svc.full .top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.svc.full .top .ico {
  margin: 0;
}

.svc.full .top h3 {
  margin: 0;
  font-size: 1.2rem;
}

.svc.full p {
  flex: 1;
}

.svc.full .acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.svc.full .acts .btn {
  padding: 10px 18px;
  font-size: .92rem;
}
/* Payment buttons */
.accept {
  background: #183b8c;          /* banner color */
  color: #fff;
  text-align: center;
  padding: 48px 0;
}

.accept h2 {
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.accept-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pay-btn {
  width: 130px;
  height: 84px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 3px solid transparent;
  display: flex;                /* was: grid */
  align-items: center;
  justify-content: center;
  overflow: hidden;             /* nothing can spill outside the tile */
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.pay-btn:hover {
  transform: translateY(-3px);
  border-color: #6fb3ff;        /* hover outline color */
  box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

.pay-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.pay-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* logo shrinks to fit, never stretches */
}

/* Phones: 2 x 2 */
@media (max-width: 600px) {
  .pay-btn {
    width: 44%;
  }
}