/* HGH Plumbing & Heating — design system
   Palette from the logo: deep navy, orange, flame blue. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-latin.7660bd9909fb.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy-900: #0e2740;
  --navy-800: #14344f;
  --navy-700: #1d4569;
  --navy-600: #27567f;
  --orange: #f7941e;
  --orange-600: #e07f0a;
  --orange-050: #fef4e6;
  --blue: #2bb3e6;
  --blue-050: #e8f7fd;
  --green: #1fb355;
  --wa: #22c55e;
  --ink: #182635;
  --body: #45566a;
  --muted: #6d7f92;
  --line: #e4ebf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 39, 64, .06), 0 2px 8px rgba(14, 39, 64, .05);
  --shadow-md: 0 2px 6px rgba(14, 39, 64, .07), 0 12px 32px rgba(14, 39, 64, .10);
  --shadow-lg: 0 4px 10px rgba(14, 39, 64, .08), 0 24px 60px rgba(14, 39, 64, .16);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  padding-bottom: 62px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.08rem; }
ul { padding-left: 1.2rem; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.center { text-align: center; }
.icon { flex-shrink: 0; vertical-align: -0.18em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-call {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%);
  color: #fff; box-shadow: 0 6px 18px rgba(247, 148, 30, .35);
}
.btn-call:hover { box-shadow: 0 10px 24px rgba(247, 148, 30, .45); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(34, 197, 94, .3); }
.btn-whatsapp:hover { box-shadow: 0 10px 24px rgba(34, 197, 94, .4); }
.btn-outline { border: 2px solid var(--line); color: var(--navy-700); background: #fff; }
.btn-outline:hover { border-color: var(--navy-700); }
.btn-ghost-light { border: 2px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-big { font-size: 1.12rem; padding: 1.05rem 2.1rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 1.4rem; padding: .6rem 1.25rem; }
.brand img { width: 118px; height: auto; }
.header-call { margin-left: auto; white-space: nowrap; padding: .6rem 1.15rem; font-size: .92rem; }

.main-nav ul { display: flex; gap: .25rem; list-style: none; padding: 0; }
.main-nav a {
  text-decoration: none; font-weight: 600; color: var(--navy-800); font-size: .95rem;
  padding: .45rem .8rem; border-radius: 999px; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--orange-050); color: var(--orange-600); }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 880px) {
  .main-nav { order: 3; }
  .nav-toggle-label { display: block; width: 28px; height: 20px; position: relative; cursor: pointer; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; position: absolute; height: 2.5px; width: 100%;
    background: var(--navy-800); border-radius: 2px; left: 0; transition: .2s;
  }
  .nav-toggle-label span { top: 9px; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .main-nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; gap: 0; padding: .5rem 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .main-nav ul li a { display: block; padding: .8rem 1.4rem; border-radius: 0; }
  .nav-toggle:checked ~ ul { display: flex; }
  .header-call span.hide-mobile { display: none; }
}

/* ---------- Trust topline ---------- */
.topline { background: var(--navy-900); color: #b8cfe4; font-size: .82rem; font-weight: 500; }
.topline .container { display: flex; flex-wrap: wrap; gap: .3rem 1.75rem; padding: .45rem 1.25rem; }
.topline span { display: inline-flex; align-items: center; gap: .45rem; }
.topline .icon { color: var(--orange); }
@media (max-width: 640px) { .topline span.topline-hours { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(43, 179, 230, .18), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(247, 148, 30, .14), transparent 55%),
    linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem;
  align-items: center; padding: 4rem 1.25rem 4.5rem;
}
.hero h1 { color: #fff; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #ffd9a5; font-size: .82rem; font-weight: 700;
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero-eyebrow .icon { color: var(--orange); }
.hero-sub { margin-top: 1.1rem; max-width: 34rem; color: #c3d6e8; font-size: 1.06rem; }
.hero-badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem .6rem; padding: 0; margin-top: 1.5rem;
}
.hero-badges li {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: .4rem .85rem;
  font-size: .82rem; font-weight: 600; color: #e3eef8;
}
.hero-badges .icon { color: var(--blue); }

.hero-visual { position: relative; min-height: 420px; }
.hero-photo {
  position: absolute; border-radius: var(--radius); object-fit: cover;
  box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .95);
}
.hero-photo-1 { width: 62%; height: 62%; top: 0; right: 4%; transform: rotate(2deg); }
.hero-photo-2 { width: 52%; height: 52%; bottom: 0; left: 0; transform: rotate(-3deg); }
.hero-review-pill {
  position: absolute; bottom: 8%; right: 0;
  background: #fff; color: var(--ink); border-radius: 14px;
  padding: .7rem 1rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .7rem;
}
.hero-review-pill .g { color: #4285f4; }
.hero-review-pill strong { display: block; font-size: 1rem; line-height: 1.1; }
.hero-review-pill small { color: var(--muted); font-size: .74rem; }
.hero-review-pill .stars { font-size: .8rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; padding: 2.6rem 1.25rem 3rem; }
  .hero-visual { min-height: 300px; }
}

/* ---------- Stats strip ---------- */
.stats-strip { background: #fff; border-bottom: 1px solid var(--line); }
.stats-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 1.25rem;
}
.stat { display: flex; align-items: center; gap: .8rem; }
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-050); color: var(--orange-600);
}
.stat strong { display: block; color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.stat small { color: var(--muted); font-size: .8rem; }
@media (max-width: 880px) {
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--orange-600); font-weight: 800; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem;
}
.section-head p { margin-top: .7rem; color: var(--body); }

/* ---------- Service cards ---------- */
.card-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem; text-decoration: none;
  display: flex; flex-direction: column; gap: .55rem;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d3dfe9; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-050), #dff1fb);
  color: var(--navy-700); margin-bottom: .4rem;
  transition: background .2s ease, color .2s ease;
}
.card:hover .card-icon { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%); color: #fff; }
.card p { color: var(--body); font-size: .93rem; flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--orange-600); font-weight: 700; font-size: .88rem;
}
.card-link .icon { transition: transform .2s ease; }
.card:hover .card-link .icon { transform: translateX(4px); }
.card-flag {
  position: absolute; top: 1.1rem; right: 1.1rem;
  background: var(--orange-050); color: var(--orange-600);
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .6rem; border-radius: 999px;
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.gallery-grid-large { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: zoom-in;
  transition: box-shadow .2s ease, transform .2s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item figcaption { padding: .8rem 1rem; font-size: .86rem; color: var(--muted); }
.gallery-item figcaption strong { color: var(--ink); font-weight: 700; }

/* ---------- Job cards ---------- */
.job-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.job-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.job-card > img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .35s ease;
}
.job-card:hover > img { transform: scale(1.04); }
.job-card-body { padding: 1.1rem 1.25rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.job-card h3 { font-size: 1.05rem; }
.job-service {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  background: var(--blue-050); color: var(--navy-700);
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: .28rem .7rem; border-radius: 999px; text-decoration: none;
}
.job-service-light { background: rgba(255, 255, 255, .12); color: #e3eef8; }
.job-meta { color: var(--muted); font-size: .84rem; }
.job-meta-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.job-meta-light { display: inline-flex; align-items: center; gap: .4rem; color: #c3d6e8; font-size: .85rem; }
.job-social { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.job-social:last-child { margin-bottom: 0; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--body);
  font-size: .82rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px;
}

dialog.lightbox {
  border: none; border-radius: var(--radius); padding: 0;
  max-width: min(92vw, 1000px); background: transparent; outline: none;
}
dialog.lightbox::backdrop { background: rgba(10, 25, 40, .82); backdrop-filter: blur(4px); }
dialog.lightbox img { border-radius: var(--radius); max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; }
dialog.lightbox p { color: #d7e4ef; text-align: center; padding: .7rem 1rem 0; font-size: .9rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .7rem;
}
.testimonial .quote-mark { color: var(--orange); opacity: .9; }
.testimonial p { color: var(--ink); font-weight: 500; flex: 1; }
.testimonial footer {
  display: flex; align-items: center; gap: .65rem;
  color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: .85rem;
}
.testimonial .avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: #fff; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.testimonial footer strong { color: var(--ink); display: block; line-height: 1.2; }
.testimonial footer .g { margin-left: auto; color: #4285f4; }
.stars { color: var(--orange); display: inline-flex; gap: .15rem; }
.stars-big { justify-content: center; gap: .4rem; margin-bottom: 1rem; }
.stars-big .icon { width: 38px; height: 38px; }

/* ---------- Why us ---------- */
.why-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.why-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.why-item .why-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-050); color: var(--orange-600); margin-bottom: .9rem;
}
.why-item p { color: var(--body); font-size: .92rem; margin-top: .35rem; }

/* ---------- Area chips ---------- */
.areas-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.areas-links a {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem 1.05rem; text-decoration: none;
  font-size: .9rem; font-weight: 600; color: var(--navy-800);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.areas-links a .icon { color: var(--orange); }
.areas-links a:hover { border-color: var(--orange); color: var(--orange-600); box-shadow: var(--shadow-sm); }

/* ---------- Prose ---------- */
.prose { max-width: 46rem; }
.prose p { margin-bottom: 1.05rem; }
.prose h2 { margin: 1.9rem 0 .8rem; font-size: 1.35rem; }
.prose ul { margin-bottom: 1.05rem; }
.prose li { margin-bottom: .3rem; }

/* ---------- Page hero ---------- */
.page-hero {
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(43, 179, 230, .16), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800) 70%, var(--navy-700));
  color: #fff; padding: 3rem 0 3.2rem;
}
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); max-width: 46rem; }
.page-hero p { margin-top: .8rem; color: #c3d6e8; max-width: 42rem; }
.page-hero .cta-buttons { margin-bottom: 0; }
.crumbs { font-size: .82rem; margin-bottom: 1rem; color: #8fb0cc; }
.crumbs a { color: #c3d6e8; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(247, 148, 30, .25), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800));
  color: #fff; padding: 3.4rem 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d6e8; margin-top: .5rem; }
.cta-band .cta-buttons { justify-content: center; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
}
.contact-card h2 {
  display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin-bottom: .6rem;
}
.contact-card h2 .icon { color: var(--orange-600); }
.contact-big { font-size: 1.3rem; font-weight: 800; margin: .4rem 0; }
.contact-big a { text-decoration: none; color: var(--ink); }
.contact-card p { font-size: .95rem; margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9db6cc; font-size: .92rem; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: .9rem; letter-spacing: .02em; }
.site-footer a { color: #c9dbeb; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  padding: 3rem 1.25rem 2.2rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-brand img { width: 130px; margin-bottom: 1rem; background: #fff; padding: .5rem .7rem; border-radius: 10px; }
.footer-contact li { display: flex; align-items: center; gap: .55rem; }
.footer-contact .icon { color: var(--orange); }
.badges-list li { display: flex; align-items: center; gap: .55rem; margin-bottom: .55rem; }
.badges-list .icon { color: var(--blue); }
.social-links { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  transition: background .15s, color .15s;
}
.social-links a:hover { background: var(--orange); color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 1.1rem 1.25rem; font-size: .78rem; color: #6f8ba3;
}

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; height: 60px; box-shadow: 0 -4px 16px rgba(14, 39, 64, .18);
}
.sticky-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 800; text-decoration: none; color: #fff; font-size: 1rem;
}
.sticky-call { background: linear-gradient(135deg, var(--orange), var(--orange-600)); }
.sticky-wa { background: var(--wa); }
@media (min-width: 881px) {
  .sticky-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
