/* =========================================================
   West Lothian Gas — page layout sections
   Homepage additions + service / area / reviews page templates.
   Uses the brand variables from styles.css (navy, blue, orange).
   ========================================================= */

.wl-section { padding: 68px 20px; }
.wl-section--alt { background: var(--off-white); }
.wl-inner { max-width: var(--max-w); margin: 0 auto; }

/* ---------- Trust badges strip (under hero) ---------- */
.trust-badges { background: linear-gradient(90deg, #ff6b00, #ff8c00); color: #fff; padding: 18px 20px; }
.trust-badges__inner { max-width: var(--max-w); margin: 0 auto; display: grid; gap: 14px; }
.trust-badges__lead { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; }
.trust-badges__lead p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.trust-badges__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.trust-badges__list li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 10px; padding: 10px 12px 10px 38px; position: relative; font-weight: 700; font-size: .96rem; line-height: 1.35; }
.trust-badges__list li::before { content: "✓"; position: absolute; left: 12px; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #ff6b00; font-size: 12px; display: grid; place-items: center; font-weight: 900; }

/* service card links */
.service-card { display: flex; flex-direction: column; }
.service-card > a { margin-top: auto; padding-top: 14px; font-weight: 800; color: var(--blue); text-decoration: none; }
.service-card > a:hover { text-decoration: underline; }
.service-card__more { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.service-card__more a { font-weight: 800; color: var(--blue); text-decoration: none; }
.service-card__more a + a { color: var(--accent); }
.services__all { text-align: center; margin-top: 28px; }

/* ---------- Plans teaser ---------- */
.plans-teaser { padding: 68px 20px; background: #fff; }
.plans-teaser__inner { max-width: var(--max-w); margin: 0 auto; }
.plans-teaser__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plans-teaser__card { position: relative; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.plans-teaser__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plans-teaser__card h3 { margin: 0; font-family: var(--font-display); color: var(--navy); font-size: 1.25rem; }
.plans-teaser__card p { margin: 0; color: var(--text-mid); }
.plans-teaser__price { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--navy) !important; line-height: 1.1; }
.plans-teaser__price span { font-size: .95rem; font-weight: 700; color: var(--text-light); margin-left: 4px; }
.plans-teaser__card--featured { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.plans-teaser__popular { position: absolute; top: -12px; left: 22px; background: var(--accent); color: #fff; font-weight: 900; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; padding: 4px 12px; border-radius: 999px; }
.plans-teaser__link { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--blue); }
.plans-teaser__extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.plans-teaser__extra { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: var(--radius-md); background: var(--navy); color: #fff; text-decoration: none; transition: transform .15s; }
.plans-teaser__extra:hover { transform: translateY(-3px); }
.plans-teaser__extra strong { font-family: var(--font-display); font-size: 1.08rem; }
.plans-teaser__extra > span:last-child { color: rgba(255,255,255,.82); font-size: .95rem; }
.plans-teaser__extra--finance { background: linear-gradient(135deg, #ff6b00, #ff8c3a); }
.plans-teaser__extra--finance .boiler-banner__badge { background: var(--navy); }

/* ---------- Areas ---------- */
.areas { padding: 68px 20px; background: var(--off-white); }
.areas__inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.areas__text h2 { font-family: var(--font-display); color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 12px; line-height: 1.15; }
.areas__text p { color: var(--text-mid); font-size: 1.05rem; margin: 0 0 12px; }
.areas__text a { color: var(--blue); font-weight: 700; }
.areas__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.areas__list a, .areas__list li > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; font-weight: 800; color: var(--navy); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s; }
.areas__list a::after { content: "→"; color: var(--blue); }
.areas__list a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- FAQ ---------- */
.home-faq { padding: 68px 20px; background: #fff; }
.home-faq__inner { max-width: 860px; margin: 0 auto; }
.plans-faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.05); overflow: hidden; }
.faq-item__q { display: block; padding: 18px 48px 18px 22px; font-weight: 700; color: var(--navy); cursor: pointer; font-size: 1.02rem; list-style: none; position: relative; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 300; color: var(--navy); }
details[open] .faq-item__q::after { content: "\2212"; }
.faq-item__a { padding: 0 22px 18px; color: var(--text-mid); line-height: 1.7; margin: 0; }
.faq-item__a a { color: var(--blue); font-weight: 700; }

.gas-safety__leaderboard { display: block; width: 100%; margin-bottom: 14px; }
.gas-safety__leaderboard img { max-width: 100%; height: auto; display: block; }
.gas-safety__cta { flex-wrap: wrap; }

/* ---------- Inner page hero + breadcrumbs ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #003090 60%, var(--blue-mid) 100%); color: #fff; padding: 22px 20px 60px; }
.page-hero__inner { max-width: var(--max-w); margin: 0 auto; }
.crumbs { font-size: .9rem; margin: 0 0 28px; color: rgba(255,255,255,.75); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: rgba(255,255,255,.5); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 42px; align-items: center; }
.page-hero__grid--solo { grid-template-columns: 1fr; max-width: 820px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 8px 0 16px; }
.page-hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.9); margin: 0 0 22px; max-width: 640px; }
.page-hero .hero__eyebrow { margin: 0; }
.page-hero__img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.15); }
.page-hero__rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; background: #fff; color: var(--text); border-radius: 999px; padding: 8px 16px; font-weight: 700; text-decoration: none; font-size: .95rem; }
.page-hero__rating .stars { color: #fbbc05; letter-spacing: 1px; }

/* ---------- Content blocks ---------- */
.wl-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: start; }
.wl-prose h2 { font-family: var(--font-display); color: var(--navy); font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 12px; line-height: 1.2; }
.wl-prose h3 { font-family: var(--font-display); color: var(--navy); margin: 26px 0 8px; font-size: 1.2rem; }
.wl-prose p { color: var(--text-mid); font-size: 1.05rem; margin: 0 0 14px; }
.wl-prose a { color: var(--blue); font-weight: 700; }
.wl-ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.wl-ticks li { position: relative; padding-left: 32px; color: var(--text); font-weight: 600; }
.wl-ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.wl-aside { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); position: sticky; top: 100px; }
.wl-aside h3 { font-family: var(--font-display); color: var(--navy); margin: 0 0 8px; font-size: 1.3rem; }
.wl-aside p { color: var(--text-mid); margin: 0 0 16px; }
.wl-aside .btn { width: 100%; margin-bottom: 10px; box-sizing: border-box; }
.wl-aside .btn--navy { background: var(--navy); color: #fff; }
.wl-aside .btn--wa { background: #25D366; color: #fff; }
.wl-aside__meta { list-style: none; padding: 14px 0 0; margin: 6px 0 0; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: .95rem; color: var(--text-mid); }
.wl-aside__meta strong { color: var(--navy); }

/* steps */
.wl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.wl-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); position: relative; }
.wl-step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 900; display: grid; place-items: center; margin-bottom: 12px; font-size: 1.1rem; }
.wl-step h3 { margin: 0 0 8px; color: var(--navy); font-family: var(--font-display); }
.wl-step p { margin: 0; color: var(--text-mid); }

/* price cards (installation guide prices) */
.wl-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wl-price { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; position: relative; }
.wl-price--best { border: 2px solid var(--accent); }
.wl-price__tag { position: absolute; top: -12px; left: 20px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 900; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.wl-price h3 { margin: 0; font-family: var(--font-display); color: var(--navy); }
.wl-price__amount { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; color: var(--navy); }
.wl-price__amount small { font-size: .85rem; color: var(--text-light); font-weight: 700; }
.wl-price p { margin: 0; color: var(--text-mid); }
.wl-price__warranty { font-weight: 800; color: var(--green); }
.wl-note { font-size: .92rem; color: var(--text-light); margin-top: 16px; text-align: center; }

/* chips / link lists */
.wl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wl-chips a, .wl-chips span { background: #fff; border: 1px solid var(--border); padding: 9px 16px; border-radius: 999px; font-weight: 700; color: var(--navy); text-decoration: none; }
.wl-chips a:hover { border-color: var(--blue); color: var(--blue); }

.wl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wl-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
a.wl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.wl-card img { width: 52px; height: 52px; object-fit: contain; }
.wl-card h3 { margin: 0; color: var(--navy); font-family: var(--font-display); font-size: 1.15rem; }
.wl-card p { margin: 0; color: var(--text-mid); }
.wl-card__go { margin-top: auto; padding-top: 6px; color: var(--blue); font-weight: 800; }

/* review summary + grid on review pages */
.wl-review-summary { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 28px; box-shadow: var(--shadow-sm); margin: 0 auto 30px; max-width: 760px; }
.wl-review-summary__score { font-family: var(--font-display); font-weight: 900; font-size: 3rem; color: var(--navy); line-height: 1; }
.wl-review-summary__stars { color: #fbbc05; font-size: 1.5rem; letter-spacing: 2px; }
.wl-review-summary p { margin: 0; color: var(--text-mid); max-width: 420px; }
.review-card__service { display: inline-block; margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--blue); background: var(--blue-light); padding: 3px 10px; border-radius: 999px; }
.wl-center { text-align: center; margin-top: 26px; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .trust-badges__list { grid-template-columns: 1fr 1fr; }
  .plans-teaser__grid, .plans-teaser__extras, .wl-cards, .wl-prices, .wl-steps { grid-template-columns: 1fr 1fr; }
  .areas__inner, .page-hero__grid, .wl-two { grid-template-columns: 1fr; }
  .wl-aside { position: static; }
  .page-hero__img { height: 300px; }
}
@media (max-width: 700px) {
  .trust-badges__list, .plans-teaser__grid, .plans-teaser__extras, .wl-cards, .wl-prices, .wl-steps { grid-template-columns: 1fr; }
  .areas__list { grid-template-columns: 1fr 1fr; }
  .wl-section, .plans-teaser, .areas, .home-faq { padding: 52px 16px; }
  .page-hero { padding: 16px 16px 46px; }
  .page-hero__img { height: 230px; }
}

.trust-badges--slim { padding: 14px 20px; }
.reviews__grid--masonry { display: block; columns: 3 300px; column-gap: 18px; }
.reviews__grid--masonry .review-card { break-inside: avoid; margin: 0 0 18px; display: block; }
.page-hero__rating svg { flex-shrink: 0; }
.plans-teaser__extra:not(.plans-teaser__extra--finance) .boiler-banner__badge { background: var(--accent); color: #fff; }
@media (min-width: 981px) {
  .gallery__grid .gallery__item--tall:last-child { grid-row: span 1; grid-column: span 3; }
}
.service-card__more { row-gap: 6px; }

/* Gas safety section: stack on tablets/phones so text and photo aren't squeezed */
.gas-safety__main-image { width: 100%; height: auto; display: block; }
@media (max-width: 980px) {
  .gas-safety__inner { grid-template-columns: 1fr !important; gap: 28px; }
  .gas-safety__media { max-width: 640px; width: 100%; margin: 0 auto; }
  .gas-safety__main-image { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
}
@media (max-width: 700px) {
  .gas-safety__main-image { aspect-ratio: 4 / 3; }
  .gas-safety__thumbs img { height: 140px; }
}

/* Homepage: pay-by-card strip */
.paystrip { background: #001b5e; padding: 26px 20px; border-top: 4px solid #ff6b00; border-bottom: 4px solid #ff6b00; }
.paystrip__inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.paystrip__badge { display: inline-block; background: #ff6b00; color: #fff; font: 900 .75rem/1 'Lato', sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.paystrip__title { color: #fff; font: 900 1.6rem/1.2 'Lato', sans-serif; margin: 10px 0 6px; }
.paystrip__sub { color: #dfe6ff; margin: 0; font-size: 1rem; max-width: 620px; }
.paystrip__btn { flex: none; display: block; text-align: center; text-decoration: none; background: #ff6b00; color: #fff; border-radius: 12px; padding: 16px 30px; font: 900 1.25rem/1.2 'Lato', sans-serif; box-shadow: 0 8px 22px rgba(255,107,0,.4); }
.paystrip__btn:hover, .paystrip__btn:focus-visible { background: #e05f00; color: #fff; }
.paystrip__btn small { display: block; font-weight: 700; font-size: .82rem; margin-top: 4px; opacity: .92; }
@media (max-width: 760px) { .paystrip__inner { flex-direction: column; align-items: stretch; text-align: center; } .paystrip__title { font-size: 1.35rem; } }
