/*
 * A.C. Electrical. Rebuilt to match the previous WordPress (Beaver Builder) site:
 * Poppins 700 headings, Roboto body, lime #b6fe03, green #0cbc1d, black.
 * Measurements taken from the live site at 1323px wide and 375px wide, 27 Nov 2026.
 */
/* Fonts are served from this site (no Google Fonts request). Roboto is one variable file for every weight. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/roboto-latin.woff2") format("woff2"); }

:root {
  --lime: #b6fe03;
  --green: #0cbc1d;
  --black: #000;
  --head: #333;
  --text: #555;          /* was #757575; darkened for readability (7:1 on white) */
  --star: #f5b301;
  --radius: 10px;
  --shade-50: rgba(0, 0, 0, 0.5);
  --shade-55: rgba(0, 0, 0, 0.55);
  --shade-72: rgba(0, 0, 0, 0.72);
  --shade-75: rgba(0, 0, 0, 0.75);
  --text-on-dark: #cfcfcf;
  --bar-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  --light: #f5f5f5;
  --white: #fff;
  --font-head: "Poppins", sans-serif;
  --font-body: "Roboto", sans-serif;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* the one card shadow */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
html, body { overflow-x: clip; }
body { margin: 0; font: 400 16px/1.45 var(--font-body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; font-synthesis: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--head); overflow-wrap: break-word; }
h1 { font-size: 55px; line-height: 1.4; }
h2 { font-size: 32px; line-height: 1.4; }
h3 { font-size: 22px; line-height: 1.4; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1308px; margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; }
.green { color: var(--green); }
.icon { flex-shrink: 0; }
.skip { position: absolute; left: 10px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--black); color: var(--lime); }
.skip:focus { top: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; border: 1px solid transparent; font: 700 16px/1.125 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.btn--green { background: var(--green); color: var(--black); border-color: var(--green); } /* black on green: 7.6:1 */
.btn--green:hover { background: var(--black); color: var(--green); border-color: var(--black); }
.btn--lime { background: var(--lime); color: var(--black); border-color: var(--black); border-radius: 4px; }
.btn--lime:hover { background: var(--black); color: var(--lime); border-color: var(--lime); }
.btn--black { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--black:hover { background: var(--head); }
.btn--white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--white:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--block { display: flex; width: 100%; }
.kicker { margin: 0 0 10px; font: 700 18px/1.4 var(--font-head); color: var(--green); }
.kicker--center { text-align: center; }

/* Top bar */
.topbar { background: var(--lime); color: var(--black); font-size: 14px; }
.topbar__inner { display: flex; align-items: center; gap: 30px; min-height: 42px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: var(--black); text-decoration: none; }
a.topbar__item:hover, .topbar__social:hover { color: var(--green); }
.topbar__social { margin-left: auto; display: inline-flex; color: var(--black); }
.topbar__social + .topbar__social { margin-left: -12px; }
.topbar__social:focus-visible, .footer__col--social a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Header */
.site-header { background: var(--black); border-block: 1px solid var(--black); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 108px; padding-block: 10px; }
.logo { flex: 0 0 auto; width: 30%; max-width: 380px; }
.logo img { width: 100%; }
.nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav__toggle { display: none; padding: 4px; border: 0; background: none; color: var(--green); cursor: pointer; }
.nav__menu { display: flex; gap: 0; }
.nav__menu[popover] { position: static; inset: auto; display: flex; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.nav__menu a { display: block; padding: 10px 50px; font: 700 18px/1.45 var(--font-body); color: var(--lime); text-decoration: none; }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--green); }
.header__btn { flex: 0 0 auto; }

/* Hero */
.hero { position: relative; display: grid; place-items: center; min-height: 800px; overflow: hidden; background: #222; }
.hero__slides, .hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__slides img { object-fit: cover; opacity: 0; animation: slide 18s infinite; }
.hero__slides img:nth-child(1) { opacity: 1; animation-delay: 0s; }
.hero__slides img:nth-child(2) { animation-delay: 6s; }
.hero__slides img:nth-child(3) { animation-delay: 12s; }
@keyframes slide { 0% { opacity: 0; } 5% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; } }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.37); }
.hero__content { position: relative; z-index: 1; text-align: center; }
.hero h1 { max-width: 880px; margin: 0 auto 30px; color: var(--white); }
.hero__buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn--dual-black, .btn--dual-green { width: 200px; min-height: 60px; padding: 15px; border: 0; }
.btn--dual-black { background: var(--black); color: var(--green); }
.btn--dual-black:hover { background: var(--green); color: var(--black); }
.btn--dual-green { background: var(--green); color: var(--black); }
.btn--dual-green:hover { background: var(--black); color: var(--green); }

/* Welcome */
.welcome { padding-top: 80px; }
.welcome__card { margin-top: 40px; padding: 30px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.welcome h2 { margin-bottom: 20px; }
.welcome__text p { font-size: 15px; }
.welcome__boxes { display: grid; grid-template-columns: 54.75fr 45.25fr; gap: 30px; margin-top: 20px; }
.infobox { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 15px; padding: 20px 20px 10px; border-radius: 10px; box-shadow: var(--shadow); text-decoration: none; background: var(--white); }
.infobox img { grid-row: span 2; }
.infobox__title { font: 700 16px/1.4 var(--font-head); color: var(--head); }
.infobox__big { font: 700 24px/1.4 var(--font-head); color: var(--green); }
.infobox--years { background: var(--green); padding-bottom: 20px; }
.infobox--years .infobox__title { color: var(--white); }
.welcome__van { display: none; }

/* Services */
.services { margin-top: 80px; padding: 80px 0; background: linear-gradient(rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.64)), url("../img/site/12348961_4964059-scaled.jpg") center / cover; }
.services__intro { max-width: 71%; margin: 0 auto 30px; text-align: center; font-size: 15px; }
.services h2 { margin-bottom: 40px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; }
.service-card { background: var(--white); border-radius: var(--radius); border-bottom: 5px solid var(--green); box-shadow: var(--shadow); overflow: hidden; }
.service-card a { display: block; color: inherit; text-decoration: none; }
.service-card a:hover h3 { color: var(--green); }
.service-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.service-card h3 { margin: 20px 15px 30px; text-align: center; }

/* Domestic and commercial panels */
.split-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.panel { position: relative; display: grid; place-content: center; justify-items: center; gap: 20px; min-height: 550px; padding: 180px 20px; text-decoration: none; overflow: hidden; background: center / cover no-repeat; }
.panel--domestic { background-image: url("../img/site/modern-house.webp"); }
.panel--commercial { background-image: url("../img/site/Skyline-and-landscape-of-chongqing-at-riverbank-during-sunrise.webp"); }
.panel::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); }
.panel::before { content: ""; position: absolute; top: 0; left: -75%; z-index: 2; width: 30%; height: 100%; background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3)); transform: skewX(-25deg); }
.panel:hover::before { animation: shine 1s; }
@keyframes shine { 100% { left: 125%; } }
.panel h2, .panel .btn { position: relative; z-index: 1; }
.panel h2 { color: var(--white); text-align: center; }

/* Hover cards */
.hover-cards { padding: 80px 0; }
.hover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-bottom: 30px; }
.hover-grid > li { display: grid; }
.hover-card { position: relative; display: grid; align-items: center; min-height: 500px; overflow: hidden; text-align: center; color: var(--white); text-decoration: none; border-radius: var(--radius); }
.hover-card:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.hover-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hover-card::after { content: ""; position: absolute; inset: 0; background: var(--shade-50); transition: background-color 0.4s; }
.hover-card__body { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; padding: 24px; }
.hover-card__icon { margin: 0 auto; }
.hover-card__title { font: 700 22px/1.4 var(--font-head); color: var(--white); }
.hover-card__short { font-size: 15px; color: var(--white); max-width: 30ch; }
.hover-card__more { display: none; }
.hover-card__para { display: block; margin: 8px 0; font-size: 14px; color: var(--white); }
.hover-card:hover::after, .hover-card:focus-visible::after { background: var(--shade-72); }
@media (hover: hover) and (min-width: 769px) {
  .hover-card:hover .hover-card__short { display: none; }
  .hover-card:hover .hover-card__more { display: block; }
}

/* Stats */
.stats { padding: 80px 0; background: linear-gradient(rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.86)), url("../img/site/pattern-11.webp"); color: var(--white); }
.stats__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.stats__years { padding: 40px; border: 2px solid var(--green); }
.stats__33 { margin: 0; font: 700 80px/1 var(--font-head); color: var(--green); }
.stats__33 span { font-size: 18px; color: var(--white); }
.stats__lead { margin: 15px 0 0; font: 300 22px/1.4 var(--font-body); color: var(--white); }
.stats__strong { margin: 0; font: 700 22px/1.4 var(--font-head); color: var(--white); }
.stats__counters { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats__counters li { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 10px; }
.stats__counters li + li { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.stats__counters strong { font: 700 32px/1.2 var(--font-head); color: var(--white); }
.stats__counters span { font-size: 14px; color: var(--white); }

/* Pricing */
.pricing { padding: 60px 0; background: var(--light); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: start; }
.plan { padding: 30px 25px; background: var(--white); border-radius: var(--radius); border-bottom: 3px solid var(--green); box-shadow: var(--shadow); }
.plan__name { font-size: 18px; margin-bottom: 10px; }
.plan__price { margin: 0 0 15px; font: 700 32px/1.3 var(--font-head); color: var(--head); }
.plan__inc { margin: 20px 0 10px; font-size: 14px; }
.plan__list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.plan__list .icon { color: var(--green); }
.plan--dark { background: var(--black); }
.plan--dark .plan__name, .plan--dark .plan__price, .plan--dark .plan__inc, .plan--dark .plan__list li { color: var(--white); }

/* White card sections */
.fairness { padding: 120px 0; background: url("../img/site/box01-bg-desktop.jpg") center / cover; }
.how { padding: 120px 0; background: url("../img/site/light-in-stairs-background-image.webp") center / cover; }
.how__inner { display: flex; justify-content: flex-end; }
.white-card { width: 46%; padding: 40px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.white-card p { font-size: 14px; }
.bar-head { margin-bottom: 25px; padding-left: 15px; border-left: 4px solid var(--green); }

/* Testimonials */
.testimonials { padding: 100px 0; background: url("../img/site/6764555_3433823-scaled.jpg") center / cover; }
.testimonials__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.testimonials__head h2 { margin-bottom: 20px; }
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 10px; }
.slider__track::-webkit-scrollbar { display: none; }
.review { display: grid; grid-template-columns: auto 1fr; gap: 25px; padding: 40px 30px; background: var(--black); border-radius: var(--radius); scroll-snap-align: start; }
.review__g { width: 80px; height: auto; padding: 8px 14px; background: var(--white); border-radius: 30px; }
.review__stars { margin-bottom: 15px; }
.review blockquote { margin: 0; }
.review blockquote p { color: var(--white); font-size: 15px; }
.review__job { margin: 0; font: 700 16px/1.4 var(--font-head); color: var(--green); }
.slider__nav { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.slider__btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--green); color: var(--black); cursor: pointer; }
.slider__btn[data-prev] .icon { transform: rotate(180deg); }
html:not(.js) .slider__nav { display: none; }

/* Get in touch */
.get-in-touch { padding: 120px 0; background: url("../img/site/backgound-image.webp") center / cover; }
.get-in-touch__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.get-in-touch__photos { position: relative; min-height: 460px; }
.get-in-touch__photos img { position: absolute; width: 60%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.photo-a { top: 0; right: 0; }
.photo-b { bottom: 0; left: 0; }
.form-card { padding: 40px 30px; background: #f2f2f2; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h2 { margin-bottom: 25px; }
.cform input, .cform textarea { display: block; width: 100%; min-height: 50px; padding: 10px; margin-bottom: 15px; font: 400 16px/1.4 var(--font-body); color: var(--head); background: var(--white); border: 1px solid #c9c9c9; border-radius: 10px; }
.cform textarea { min-height: 120px; resize: vertical; }
.cform input:focus-visible, .cform textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 0; }
.cform [aria-invalid="true"] { border-color: #d63637; }
.cform__error { margin: -10px 0 10px; font-size: 14px; color: #d63637; }
.cform__error:empty { display: none; }
.cform__submit { width: 100%; padding: 15px 30px; border: 0; border-radius: 3px; background: var(--head); color: var(--white); font: 700 17px/1 var(--font-body); cursor: pointer; }
.cform__submit:hover { background: var(--black); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.notice { padding: 12px 16px; margin-bottom: 15px; border-radius: 6px; color: var(--head); }
.notice--ok { background: #e3f8e5; }
.notice--error { background: #fde8e8; }

/* Footer */
.site-footer { position: relative; margin-top: 60px; background: var(--black); color: var(--white); }
.newsletter { position: relative; top: -60px; margin-bottom: -60px; padding-inline: 20px; }
.newsletter__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px 30px; max-width: 960px; margin-inline: auto; padding: 25px 30px; background: var(--green); border-radius: 10px; }
.newsletter__title { margin: 0; font: 700 18px/1.4 var(--font-head); color: var(--black); }
.newsletter__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 60px; }
.footer__grid > :nth-child(3) { grid-column: 4; justify-self: end; }
.footer__col p { color: var(--white); font-size: 14px; }
.footer__links { margin-top: 20px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--white); font: 700 15px/1.4 var(--font-head); text-decoration: none; }
.footer__links .icon { color: var(--lime); }
.footer__links a:hover { color: var(--lime); }
.footer__info li, .footer__info a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--white); font-size: 14px; text-decoration: none; }
.footer__info .icon { color: var(--green); }
.footer__col--social { display: flex; align-items: flex-start; gap: 16px; }
.footer__col--social a { display: inline-flex; color: var(--white); }
.footer__col--social a:hover { color: var(--green); }
.footer__bottom { padding: 30px 20px; text-align: center; font-size: 14px; }
.footer__bottom p { color: var(--white); }
.footer__bottom p + p { padding-top: 30px; border-top: 1px solid rgba(204, 204, 204, 0.11); }
.footer__bottom a { color: var(--white); }

/* Page banners */
.banner { position: relative; display: grid; place-items: center; min-height: 350px; padding: 40px 20px; overflow: hidden; text-align: center; background: #222; }
.banner--post { min-height: 317px; }
.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.banner h1 { position: relative; z-index: 1; max-width: 1000px; color: var(--white); }

/* Projects list */
.project-list { padding: 60px 0 80px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.post-card { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 10px 30px; background: var(--white); border-radius: 10px; border-bottom: 4px solid var(--green); box-shadow: var(--shadow); }
.post-card__img { display: block; width: 100%; }
.post-card__img img { width: 100%; height: 369px; object-fit: cover; }
.post-card__title { margin: 20px 10px 10px; font-size: 22px; line-height: 1.4; }
.post-card__title a { color: var(--head); text-decoration: none; }
.post-card__title a:hover { color: var(--green); }
.post-card__excerpt { margin: 0 10px 20px; font-size: 15px; }
.post-card .btn { margin: auto 10px 0; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid #e6e6e6; color: var(--head); text-decoration: none; }
.pagination span { background: var(--green); color: var(--white); border-color: var(--green); }

/* Single project */
.post-body { padding: 40px 20px 60px; }
.prose { color: var(--text); }
.prose h2 { margin: 30px 0 15px; font-size: 32px; }
.prose p, .prose li { font-size: 15px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; list-style: disc; }
.post-images { display: grid; gap: 20px; max-width: 820px; margin-top: 30px; }
.simple-page { padding: 60px 20px; }

/* Contact page */
.contact-boxes { padding: 60px 0; }
.contact-boxes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.cbox { display: grid; justify-items: center; gap: 6px; padding: 30px 20px; text-align: center; background: var(--white); border-radius: 10px; border-bottom: 3px solid var(--green); box-shadow: var(--shadow); text-decoration: none; }
.cbox img { margin-bottom: 10px; }
.cbox__title { font: 700 16px/1.4 var(--font-head); color: var(--head); }
.cbox__text { font-size: 14px; color: var(--text); }
.testimonials--contact .testimonials__inner { align-items: start; }
.testimonials--contact .slider { margin-top: 20px; }

/* Tablet */
@media (max-width: 992px) {
  .nav__menu a { padding: 10px 20px; }
  .hero { min-height: 600px; }
  h1 { font-size: 42px; }
  .post-grid, .service-grid, .hover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .white-card { width: 70%; }
}

/* Phone */
@media (max-width: 768px) {
  .services { background-image: linear-gradient(rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.64)), url("../img/site/12348961_4964059-scaled-800.webp"); }
  .panel--domestic { background-image: url("../img/site/modern-house-800.webp"); }
  .panel--commercial { background-image: url("../img/site/Skyline-and-landscape-of-chongqing-at-riverbank-during-sunrise-800.webp"); }
  .fairness { background-image: url("../img/site/box01-bg-desktop-800.webp"); }
  .how { background-image: url("../img/site/light-in-stairs-background-image-800.webp"); }
  .testimonials { background-image: url("../img/site/6764555_3433823-scaled-800.webp"); }
  .get-in-touch { background-image: url("../img/site/backgound-image-800.webp"); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  h1 { font-size: 30px; line-height: 1.35; }
  h2 { font-size: 26px; }
  .topbar { display: none; }
  .site-header__inner { min-height: 0; }
  .logo { width: auto; max-width: 230px; }
  .header__btn { display: none; }
  .nav { justify-content: flex-end; }
  .nav__toggle { display: block; }
  .nav__menu[popover] { position: fixed; inset: 0 0 auto auto; width: min(80vw, 300px); height: 100dvh; padding: 70px 0 20px; background: var(--black); }
  .nav__menu[popover]:not(:popover-open) { display: none; }
  .nav__menu[popover]:popover-open { display: block; }
  .nav__menu a { padding: 14px 24px; border-bottom: 1px solid #222; }
  .hero { min-height: 520px; }
  .hero h1 { max-width: 100%; }
  .hero__buttons { flex-direction: column; align-items: center; gap: 20px; }
  .welcome { padding-top: 20px; }
  .welcome__card { margin-top: 20px; padding: 0; box-shadow: none; }
  .welcome__boxes { grid-template-columns: 1fr; }
  .welcome__van { display: block; margin: 30px auto 0; }
  .services__intro { max-width: none; }
  .service-grid, .hover-grid, .post-grid, .pricing__grid, .contact-boxes__grid, .split-panels, .stats__inner, .testimonials__inner, .get-in-touch__inner { grid-template-columns: minmax(0, 1fr); }
  .panel { min-height: 360px; padding: 100px 20px; }
  .hover-card { min-height: 380px; }
  .stats__counters { grid-template-columns: 1fr; }
  .stats__counters li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .white-card { width: 100%; padding: 25px; }
  .fairness, .how, .get-in-touch, .testimonials { padding: 60px 0; }
  .get-in-touch__photos { min-height: 300px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > :nth-child(3) { grid-column: auto; justify-self: start; }
  .newsletter__box { flex-direction: column; align-items: flex-start; }
  .banner { min-height: 220px; }
  .post-card__img img { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slides img { animation: none; }
  .panel:hover::before { animation: none; }
  .btn, .hover-card::after { transition: none; }
}

/* Google rating badge */
.rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 14px; border-radius: 999px; font-size: 15px; text-decoration: none; }
.rating__stars { color: var(--star); letter-spacing: 2px; font-size: 17px; }
.rating--hero { background: var(--shade-55); color: var(--white); }
.rating--hero:hover { background: var(--shade-75); }
.rating--dark { background: var(--white); color: var(--head); box-shadow: var(--shadow); }
.rating--dark:hover { color: var(--black); }
.review__body { margin: 0; }
.review__who { margin: 12px 0 0; color: var(--white); font-size: 14px; }
.review__who strong { color: var(--green); font-family: var(--font-head); }
.review__job { display: block; color: var(--text-on-dark); }
.slider__all { margin: 14px 0 0; text-align: center; font-size: 15px; }
.slider__all a { color: var(--head); font-weight: 700; }

/* Recent jobs */
.recent { padding: 80px 0 90px; background: var(--light); }
.recent__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 30px; margin-bottom: 30px; }
.recent__all { font-weight: 700; color: var(--head); }
.post-card__place { margin: 16px 10px 0; font-size: 14px; color: var(--text); }
.recent .post-card__title { margin-top: 6px; }

/* Footer service links */
.footer__links--services { margin-top: 10px; }

/* Phone call bar (shown under 769px) */
.callbar { display: none; position: fixed; inset: auto 0 0 0; z-index: 500; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--black); box-shadow: var(--bar-shadow); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 6px; font: 700 16px/1 var(--font-body); text-decoration: none; }
.callbar__call { background: var(--green); color: var(--black); }
.callbar__msg { background: var(--white); color: var(--black); }
.callbar a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* Service pages */
.service-page { padding: 60px 0 70px; }
.service-page__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.service-page__main p { max-width: 65ch; }
.service-page__main h2 { margin: 36px 0 14px; font-size: 26px; }
.service-page__list li { font-size: 16px; color: var(--text); }
.service-page__price { position: sticky; top: 20px; display: grid; gap: 12px; }
.service-page__price .plan__price { margin: 0; }
.service-page__note { margin: 0; font-size: 14px; }
.service-page__price .rating { margin-top: 6px; justify-self: start; }
.service-review { padding: 0 0 70px; }
.service-review .review { max-width: 820px; margin: 0 auto; }
@media (max-width: 768px) {
  .service-page__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .service-page__price { position: static; }
}
@media (max-width: 768px) {
  .callbar { display: grid; }
}
@media (max-width: 768px) {
  .review { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px 22px; }
}
