@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@800&display=swap');
/* Hometown Services homepage.
   Loaded after styles-hometown.css and scoped to this page, so the shared
   stylesheet (also used by Plumbing) is left alone. */

/* Hero palette: warm sand, ink and the two brand accents (yellow for electrical,
   sky for plumbing). Change these to re-colour the hero. */
.services-home {
  --hh-sand: #f4efe6;
  --hh-sand-deep: #e8dfcf;
  --hh-ink: #121d25;
  --hh-ink-soft: #55636c;
  --hh-yellow: #ffcf18;
  --hh-yellow-soft: #fff4c2;
  --hh-gold: #f0b400;
  --hh-sky: #5cc6f2;
  --hh-sky-soft: #ddf3fd;
}

/* Menu and quote button match the Hometown Plumbing header: bold uppercase items
   and a light-blue pill button (same values as styles-plumbing.css). */
.services-home .header-inner nav { gap: clamp(16px, 1.7vw, 26px); font-size: clamp(15px, 1.2vw, 17px); }
.services-home .header-inner nav > a { font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.services-home .header-inner .header-quote { min-height: 48px; justify-content: center; gap: 10px; padding: 0 16px; border: 1px solid #c4effc; border-radius: 999px; background: #9ee4fa; color: #082b46; font-size: 13px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.services-home .header-inner .header-quote:hover { background: #c4effc; }
.services-home .header-inner .header-quote > span { font-size: 19px; line-height: 1; }
@media (max-width: 1100px) { .services-home .header-inner nav { gap: clamp(10px, 1.45vw, 16px); font-size: 13px; } }
@media (max-width: 760px) { .services-home .header-inner nav { gap: 6px; font-size: 15px; } }

/* One hero: copy and trade choice on the left, both tradespeople on the right. */
.home-hero { position: relative; z-index: 1; color: var(--hh-ink); overflow: hidden; background: linear-gradient(90deg, #fffffff2 0%, #ffffffe3 42%, #ffffffbf 100%), url('images/photos/hero-fleet.webp') center 42% / cover no-repeat; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); grid-template-areas: "copy visual" "actions visual"; column-gap: 48px; padding-top: 48px; }
.hh-copy { grid-area: copy; align-self: end; }
.hh-actions { grid-area: actions; padding-bottom: clamp(130px, 11vw, 170px); }
.hh-visual { grid-area: visual; position: relative; height: 600px; align-self: end; }

.hh-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 18px; font-size: 14px; color: var(--hh-ink-soft); }
.hh-stars { color: var(--hh-gold); font-size: 19px; letter-spacing: 2px; line-height: 1; }
.hh-rating strong { color: var(--hh-ink); }
/* Same title type as the Hometown Plumbing hero: Poppins 800, uppercase, tight tracking. */
.home-hero h1 { margin: 0; font-family: Poppins, Manrope, Arial, sans-serif; font-size: clamp(46px, 4.6vw, 62px); font-weight: 800; line-height: 1.02; letter-spacing: -2.6px; text-transform: uppercase; text-shadow: 0 3px 4px #082b4626; color: var(--hh-ink); }
/* Each trade in a softened take on its logo colour (gold, blue, red), halfway between
   the full logo colours and a muted version, so the title hints without shouting. */
.hh-word-elec { color: #d39a12; }
.hh-word-plumb { color: #2886b8; }
.hh-word-air { color: #cd4b42; }
.hh-mark { position: relative; z-index: 0; white-space: nowrap; }
.hh-mark:after { content: ""; position: absolute; z-index: -1; left: -.06em; right: -.08em; bottom: .06em; height: .36em; background: var(--hh-yellow); border-radius: 4px; transform: rotate(-1.5deg); }
/* The four promises sit in their own card so they read as a guarantee, not body copy. */
.hh-checks { list-style: none; display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 30px; width: fit-content; margin: 26px 0 0; padding: 18px 24px 18px 20px; border-radius: 14px; background: #fff; border: 1px solid #121d2514; border-left: 6px solid var(--hh-yellow); box-shadow: 0 16px 34px #121d251a; }
.hh-checks li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.hh-checks li:before { content: ""; flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--hh-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 5 8.6l4.4-5' fill='none' stroke='%23ffcf18' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

.hh-choices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.services-home .hero-choice { display: inline-flex; align-items: center; gap: 12px; min-height: 0; overflow: visible; padding: 9px 18px 9px 9px; border-radius: 14px; background: var(--hh-yellow); color: var(--hh-ink); font-family: Manrope, Arial, sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -.3px; box-shadow: 0 5px 0 #121d2526; transition: transform .2s, box-shadow .2s; }
.services-home .hero-choice:after { content: none; }
.services-home .hero-choice-plumbing { background: var(--hh-sky); }
.services-home .hero-choice:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #121d2526; }
.services-home .hero-choice:focus-visible { outline: 3px solid var(--hh-ink); outline-offset: 3px; }
.hc-icon { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.hc-icon img { width: 23px; height: 25px; object-fit: contain; }
.hc-icon .hh-snow { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--hh-sky); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; box-shadow: 0 0 0 2px var(--hh-yellow); }

.hc-arrow { margin-left: 6px; font-size: 17px; }



.hh-blob { position: absolute; border-radius: 50%; }
.hh-blob-yellow { left: -6%; bottom: 18%; width: 62%; aspect-ratio: 1; background: var(--hh-yellow); }
.hh-blob-sky { right: -14%; bottom: -8%; width: 58%; aspect-ratio: 1; background: var(--hh-sky); }
.hh-person { position: absolute; bottom: 0; z-index: 0; width: auto; filter: drop-shadow(0 18px 24px #121d2530); }
.hh-electrician { left: -4%; height: 100%; z-index: 1; } /* in front of the plumber */
.hh-plumber { right: -12%; height: 66%; } /* reaches into the page margin so the two overlap less */

/* Layered waves under the hero, like the Plumbing site. The last layer is the
   colour the next section starts with, so the waves hand straight over to it. */
.hh-wave { position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; display: block; width: 100%; height: clamp(120px, 11vw, 170px); pointer-events: none; }
.services-home .services-section.section-space { background: linear-gradient(180deg, #fffdf5 0, #fffdf500 220px), linear-gradient(115deg, #fff5c9 0%, #fffdf5 42%, #e0f4ff 100%); }

@media (max-width: 1100px) and (min-width: 761px) {
  .home-hero-grid { column-gap: 28px; padding-top: 44px; }
  .hh-visual { height: 520px; }
  .hh-electrician { height: 84%; }
  .hh-plumber { height: 60%; right: -14%; }
  .home-hero h1 { font-size: clamp(36px, 4.6vw, 46px); letter-spacing: -1.8px; }
  .hh-checks { grid-template-columns: 1fr; gap: 9px; }
}

@media (max-width: 760px) {
  /* Header: the bottom call bar already carries the number, so drop the top strip
     and shrink the logo so the sticky header stops eating a fifth of the screen. */
  html:has(.services-home) { scroll-padding-top: 84px; }
  .services-home .utility-bar { display: none; }
  .services-home .header-inner:has(.services-brand-logo) { min-height: 76px; gap: 10px; }
  .services-home .header-brand .services-brand-logo { width: 116px; max-height: none; }
  .services-home .header-inner nav { top: 76px; }
  .services-home .menu-toggle { border-color: #ffffff40; color: #fff; }

  /* Hero: headline and trade buttons first, then the tradespeople. The bottom call
     bar carries the phone number, so the hero's call link is left to desktop. */
  .home-hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "actions" "visual"; padding-top: 26px; }
  .hh-rating { margin-bottom: 12px; font-size: 12.5px; gap: 8px; }
  .hh-stars { font-size: 15px; letter-spacing: 1px; }
  .home-hero h1 { font-size: clamp(24px, 7.9vw, 40px); letter-spacing: -1.2px; }
  .hh-checks { grid-template-columns: 1fr 1fr; gap: 10px 12px; width: auto; margin-top: 18px; padding: 14px 14px 14px 12px; border-left-width: 5px; }
  .hh-checks li { align-items: flex-start; gap: 7px; font-size: 12.5px; }
  .hh-checks li:before { width: 18px; height: 18px; background-size: 10px; }

  .hh-visual { height: 300px; margin-top: 18px; }
  .hh-wave { height: 80px; }
  .hh-blob-yellow { left: 6%; width: 52%; bottom: 12%; }
  .hh-blob-sky { right: 0; width: 48%; bottom: -12%; }
  .hh-electrician { left: 12%; }
  .hh-plumber { right: 2%; height: 68%; }
  .hh-actions { padding-bottom: 0; }
  .hh-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .services-home .hero-choice { gap: 9px; padding: 7px 10px 7px 7px; font-size: 14px; border-radius: 12px; }
  .hc-icon { width: 34px; height: 34px; border-radius: 9px; }
  .hc-icon img { width: 19px; height: 21px; }
  .hc-arrow { margin-left: auto; font-size: 15px; }

  /* Tighter rhythm between sections. */
  .services-home .section-space { padding-block: 54px; }
  .services-home h2 { font-size: 34px; letter-spacing: -1.4px; }
  .services-home .both-heading h2 { font-size: 36px; }

  /* Service cards. */
  .services-home .services-caption { margin-bottom: 16px; }
  .services-home .service-card { padding: 22px; }
  .services-home .card-photo { margin: 0 -22px 18px; }
  .services-home .card-photo img { aspect-ratio: 16 / 8; }
  .services-home .plumbing-card .card-photo img { object-position: center 70%; }
  .services-home .service-card h3 { font-size: 30px; letter-spacing: -1.2px; }
  .services-home .service-card .button { width: 100%; justify-content: space-between; }

  /* Work tiles: square photos read better at half the phone's width. */
  .services-home .work-grid { gap: 10px; }
  .services-home .work-tile img { aspect-ratio: 1; }
  .services-home .work-caption { font-size: 12.5px; left: 11px; right: 11px; bottom: 11px; line-height: 1.3; }
  .services-home .work-next { margin-top: 22px; padding-top: 20px; }

  /* About: less padding around the headline box and the steps. */
  .services-home .both-heading { padding: 24px 20px; }
  .services-home .both-story .lead { font-size: 21px; }
  .services-home .booking-steps { gap: 18px; }

  /* Service areas: a 2 x 2 grid instead of four tall rows. */
  .services-home .area-list { padding: 12px; }
  .services-home .area-list ul { grid-template-columns: 1fr 1fr; gap: 8px; }
  .services-home .area-list li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 12px; }
  .services-home .area-list li > span { width: 28px; height: 28px; font-size: 9px; }
  .services-home .area-list h3 { font-size: 14px; line-height: 1.35; }
  .services-home .area-list > p { margin-top: 14px; padding-inline: 4px; }

  /* Contact and footer. */
  .services-home .contact-section h2 { font-size: 40px; }
  .services-home .footer-bottom { padding-bottom: 104px; }

  /* Bottom call bar: a proper yellow button instead of a pale strip. */
  .services-home .mobile-call { background: #082b46; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px #03192b40; }
  .services-home .mobile-call a { align-items: center; padding: 14px 18px; border-radius: 10px; background: var(--yellow); color: #082b46; font-size: 14px; font-weight: 800; }
  .services-home .mobile-call a span { font-size: 15px; }
}
