/* AMG Plumbing, Inc. — site styles */
:root {
  --blue: #044B9E;
  --blue-dark: #033A7A;
  --navy: #0E2240;
  --orange: #F96513;
  --orange-dark: #E0560C;
  --peach: #FFB37A;
  --amber: #F7A21B;
  --ink: #1B2A3A;
  --muted: #4A5B6E;
  --line: #E3E9F1;
  --soft: #F3F7FC;
  --tint: #EAF1FA;
  --white: #FFFFFF;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; line-height: 1.12; color: var(--blue-dark); font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-title { font-size: 40px; }
.lead { color: var(--muted); max-width: 640px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { min-height: 54px; padding: 0 28px; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--tint); color: var(--blue-dark); }

/* Header */
.topbar { background: var(--blue-dark); color: #DCE6F2; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.site-header { background: var(--white); box-shadow: 0 2px 10px rgba(16,42,72,.08); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.logo img { width: 200px; height: auto; }
.nav { display: flex; gap: 28px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--orange); }
.header-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 901px) and (max-width: 1199px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 20px; }
  .site-header .logo img { width: 170px; }
  .nav { gap: 20px; }
  .header-cta .btn-blue { display: none; }
}
@media (min-width: 901px) and (max-width: 1020px) {
  .site-header .logo img { width: 150px; }
  .nav { gap: 16px; font-size: 16px; }
  .header-cta .btn { padding: 0 16px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--blue-dark); color: var(--white); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,40,88,.95) 0%, rgba(3,40,88,.88) 40%, rgba(3,40,88,.35) 70%, rgba(3,40,88,.1) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 170px; }
.hero-copy { max-width: 600px; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-weight: 700; font-size: 15px; letter-spacing: .5px; color: var(--peach); }
.hero h1 { color: var(--white); font-size: 52px; letter-spacing: -.5px; line-height: 1.08; }
.hero h1.tagline { font-style: italic; }
.headline { display: flex; flex-direction: column; align-self: flex-start; gap: 16px; }
.rule { display: block; height: 6px; background: var(--amber); margin-left: 9%; margin-right: -7%; }
.page-hero h1 { font-size: 46px; }
.crumbs { font-size: 14px; color: #DCE6F2; }
.crumbs a { color: var(--white); }
.hero p { font-size: 19px; color: #DCE6F2; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 6px; }
.hero-badge { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.hero-badge svg { width: 30px; height: 30px; color: var(--peach); flex: none; }
.hero-badge strong { display: block; font-weight: 800; }
.hero-badge span { font-size: 14px; color: #DCE6F2; }
.page-hero .wrap { padding-bottom: 88px; }
.hero-home { background: #032858; }
@media (min-width: 901px) {
  .hero-home { min-height: min(50vw, 720px); display: flex; align-items: stretch; }
  .hero-home .wrap { width: 100%; display: flex; padding-top: 56px; padding-bottom: 56px; }
  .hero-home .hero-copy { flex: 1 1 auto; }
  .hero-home .hero-copy > p { margin-top: auto; }
  .hero-home .hero-img { left: 0; width: 100%; object-position: 50% 75%; }
  .hero-home + .booking-card-wrap { margin-top: -32px; }
  .hero-home::after { background: radial-gradient(ellipse 60% 45% at 18% 88%, rgba(3,30,66,.7) 0%, rgba(3,30,66,0) 100%), linear-gradient(90deg, rgba(3,40,88,.82) 0%, rgba(3,40,88,.6) 32%, rgba(3,40,88,.12) 55%, rgba(3,40,88,0) 70%); }
  .hero-home h1, .hero-home .hero-copy > p, .hero-home .hero-badge { text-shadow: 0 2px 12px rgba(0,0,0,.55); }
  .hero-home .hero-copy > p, .hero-home .hero-badge span { color: #fff; }
  .hero-home .hero-copy > p { font-weight: 500; }
}
.hero-tight::after { background: linear-gradient(90deg, rgba(3,40,88,.95) 0%, rgba(3,40,88,.9) 30%, rgba(3,40,88,.3) 46%, rgba(3,40,88,.05) 60%); }
@media (min-width: 1500px) {
  .hero-tight { background: #032858; }
  .hero-tight .hero-img { left: auto; right: 0; width: auto; height: 100%; max-width: none; object-fit: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); }
  .hero-tight::after { background: linear-gradient(90deg, rgba(3,40,88,.96) 0%, rgba(3,40,88,.9) 40%, rgba(3,40,88,0) 54%); }
}
.hero-tight .hero-copy { max-width: 470px; }
.hero-tight h1 { font-size: 40px; }

/* Booking card */
.booking-card-wrap { position: relative; margin-top: -110px; z-index: 2; }
.booking-card { background: var(--white); border-radius: 14px; box-shadow: 0 20px 50px rgba(16,42,72,.18); overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tab { min-height: 58px; border: 0; border-bottom: 3px solid transparent; background: var(--soft); color: #5B6B7D; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--white); color: var(--blue); border-bottom-color: var(--orange); }
.tab-panel { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding: 30px 36px; }
.tab-panel[hidden] { display: none; }
.tab-panel h2 { font-size: 26px; }
.tab-panel p { color: var(--muted); margin-top: 6px; }
.tab-panel .text { flex: 1 1 420px; min-width: 0; }
.tab-panel .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin-top: 44px; }
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 30px rgba(4,75,158,.14); transform: translateY(-2px); }
.why { padding: 24px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.icon-circle { width: 58px; height: 58px; border-radius: 999px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.icon-circle svg { width: 28px; height: 28px; color: var(--blue); }
.why h3 { font-size: 18px; }
.svc h3 { font-size: 20px; }
.why p, .svc p { color: var(--muted); font-size: 16px; }
.svc { padding: 28px; display: flex; gap: 18px; align-items: flex-start; }
.svc .num { flex: none; width: 52px; height: 52px; border-radius: 10px; background: #FFF1E8; color: var(--orange); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.svc .body { display: flex; flex-direction: column; gap: 6px; }
.svc a { font-weight: 700; font-size: 15px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Split / promise */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 460px; min-width: 0; }
.photo { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 15% 45%; }
.promise-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.seal { flex: none; width: 92px; height: 92px; border-radius: 999px; background: var(--blue); border: 4px solid var(--orange); box-shadow: inset 0 0 0 4px var(--white); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; text-align: center; font-weight: 800; }
.seal small { font-size: 13px; letter-spacing: 1px; }
.seal span { font-size: 16px; }
.promise-head h2 { font-size: 36px; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; }
.checks svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: 3px; }

/* Reviews */
.review { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.stars { color: #F5A623; font-size: 20px; letter-spacing: 2px; }
.review p { color: var(--muted); font-style: italic; }
.review strong { color: var(--blue-dark); }

/* FAQ */
.faq { max-width: 900px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.faq-list details { border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; background: var(--white); }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--blue-dark); }
.faq-list details p { margin-top: 10px; color: var(--muted); }

/* Services page list */
.svc-row { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 32px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .num { flex: none; width: 52px; height: 52px; border-radius: 10px; background: #FFF1E8; color: var(--orange); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.svc-row h2 { flex: 1 1 260px; font-size: 26px; padding-top: 8px; }
.svc-row p { flex: 2 1 420px; color: var(--muted); padding-top: 10px; }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.contact-info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; }
.info-card { border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.info-card h2 { font-size: 20px; }
.info-card .big { font-size: 32px; font-weight: 800; color: var(--blue); text-decoration: none; line-height: 1.2; }
.info-card ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.form-card { flex: 1.4 1 520px; min-width: 0; border-radius: 14px; box-shadow: 0 20px 50px rgba(16,42,72,.12); border: 1px solid var(--line); overflow: hidden; }
.form-card .head { background: var(--blue); color: var(--white); padding: 24px 30px; }
.form-card .head h2 { color: var(--white); font-size: 26px; }
.form-card .head p { color: #DCE6F2; margin-top: 4px; }
.form-card .body { padding: 20px; background: var(--white); }
#hcp-lead-iframe { width: 100%; min-height: 640px; border: 0; display: block; }

/* CTA band */
.cta { background: var(--navy); color: var(--white); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { color: var(--white); font-size: 34px; }
.cta p { color: #DCE6F2; margin-top: 6px; }
.cta .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: var(--white); color: var(--muted); font-size: 15px; }
.site-footer a { color: var(--blue); }
.site-footer a:hover { color: var(--blue-dark); }
.social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); color: var(--blue); align-self: flex-start; transition: background-color .15s, color .15s; }
.social svg { width: 24px; height: 24px; }
.social:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.licenses-col span { white-space: nowrap; }
@media (min-width: 1101px) {
  }
@media (min-width: 601px) and (max-width: 1100px) {
  }
.footer-title { font-weight: 700; color: var(--blue-dark); }
.site-footer .footer-grid { display: grid; grid-template-columns: auto auto auto auto; justify-content: space-between; align-items: start; gap: 28px 48px; padding-top: 52px; padding-bottom: 40px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-logo img { width: 170px; height: auto; display: block; }
.footer-tagline { display: inline-flex; flex-direction: column; gap: 8px; align-self: flex-start; padding-right: 22px; }
.footer-tagline span:first-child { font-weight: 800; font-style: italic; font-size: 18px; line-height: 1.25; color: var(--blue-dark); white-space: nowrap; }
.footer-tagline .rule { height: 4px; margin-left: 9%; margin-right: -22px; }
.footer-col { display: flex; flex-direction: column; gap: 7px; font-size: 15px; }
.footer-title { font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 4px; }
.footer-col .social { margin-top: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 24px; font-size: 14px; color: #5B6B7D; }
@media (max-width: 1100px) {
  .site-footer .footer-grid { grid-template-columns: auto auto auto; }
  .footer-brand { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 16px 48px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .footer-tagline span:first-child { font-size: 20px; }
  .footer-brand .footer-tagline { align-self: center; margin: 0 auto; }
}
@media (max-width: 640px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; padding-top: 40px; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .footer-brand .footer-tagline { align-self: flex-start; margin: 0; }
  .footer-tagline span:first-child { white-space: normal; font-size: 15px; letter-spacing: -.1px; }
  .licenses-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

/* Reviews rating row */
.rating { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; }
.rating .score { font-weight: 800; font-size: 32px; color: var(--blue-dark); line-height: 1; }
.rating .stars { font-size: 24px; }
.review { margin: 0; }
.review blockquote { margin: 0; color: var(--muted); font-style: italic; flex: 1; }
.review figcaption { font-weight: 700; color: var(--blue-dark); }
.review figcaption span { font-weight: 400; color: #5B6B7D; }
.btn-outline { border: 2px solid var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--tint); color: var(--blue-dark); }
.grid-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.why p { max-width: 34ch; }

/* Service detail pages */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 32px; }
.prose p { color: var(--muted); }
.check-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; }
.check-list li { display: flex; gap: 12px; }
.check-list svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: 3px; }
.side-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 14px 30px rgba(16,42,72,.08); }
.side-card h2 { font-size: 24px; }
.side-card p { color: var(--muted); }
.detail-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.detail-grid .prose { flex: 2 1 520px; }
.detail-grid .side-card { flex: 1 1 300px; position: sticky; top: 110px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.jump { background: var(--white); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.jump .wrap::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--blue-dark); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.jump a:hover { border-color: var(--blue); color: var(--blue); }
.svc-section { scroll-margin-top: 170px; }
.svc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px 64px; align-items: center; }
.svc-two .prose { max-width: none; }
.check-list.single { grid-template-columns: 1fr; gap: 14px; margin: 0; font-size: 18px; }
.svc-num { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; background: #FFF1E8; color: var(--orange); font-weight: 800; font-size: 18px; }
.side-card h3 { font-size: 22px; }
.side-card .btn { width: 100%; }
.more-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.more-services a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-weight: 700; text-decoration: none; color: var(--blue-dark); }
.more-services a:hover { border-color: var(--blue); color: var(--blue); }

/* Mobile call/book bar */
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .logo img { width: 150px; }
  .header-cta { display: none; }
  .nav { width: 100%; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 2px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 130px; }
  .page-hero .wrap { padding-bottom: 56px; }
  .hero h1 { font-size: 36px; }
  .hero::after { background: linear-gradient(180deg, rgba(3,40,88,.82) 0%, rgba(3,40,88,.92) 100%); }
  .section { padding: 60px 0; }
  .section-title, .promise-head h2 { font-size: 30px; }
  .tab-panel { padding: 24px 20px; }
  .cta h2 { font-size: 28px; }
  #hcp-lead-iframe { min-height: 720px; }
  .page-hero h1 { font-size: 32px; }
        .site-header { position: relative; }
  .jump .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .svc-section { scroll-margin-top: 16px; }
  .detail-grid .side-card { position: static; }
  .rule { margin-right: 0; }
  .form-card { order: -1; }
  body { padding-bottom: 72px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: var(--white); border-top: 1px solid var(--line); z-index: 11; }
  .mobile-bar .btn { min-height: 50px; padding: 0 10px; }
}

@media (max-width: 600px) {
  .nav { font-size: 15px; gap: 6px; }
  .detail-grid .side-card { display: none; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}
