/*
Theme Name: MJC Services
Theme URI: https://www.mjcservicesne.co.uk/
Author: David Gourley
Description: Custom hand-coded WordPress theme for MJC Services — taxi accident management, replacement taxis, recovery & storage, and personal injury claims in County Durham. No page builder.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mjc-services
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --mjc-ink:      #14181f;   /* near-black charcoal   */
  --mjc-navy:     #1b2a4a;   /* deep navy             */
  --mjc-navy-2:   #24365c;
  --mjc-yellow:   #ffc72c;   /* taxi yellow accent    */
  --mjc-yellow-d: #e6a800;
  --mjc-grey:     #5b6472;
  --mjc-grey-l:   #eef1f5;
  --mjc-line:     #dfe4ea;
  --mjc-white:    #ffffff;
  --mjc-success:  #1f9d55;

  --mjc-font:     'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mjc-head:     'Poppins', var(--mjc-font);

  --mjc-wrap:     1320px;
  --mjc-radius:   10px;
  --mjc-shadow:   0 6px 24px rgba(20,24,31,.10);
  --mjc-shadow-lg:0 14px 46px rgba(20,24,31,.18);
  --mjc-trans:    .22s ease;
}

/* ============================================================
   Reset / base
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--mjc-font);
  color: var(--mjc-ink);
  line-height: 1.65;
  font-size: 17px;
  background: var(--mjc-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mjc-navy); text-decoration: none; transition: color var(--mjc-trans); }
a:hover { color: var(--mjc-yellow-d); }
h1,h2,h3,h4 { font-family: var(--mjc-head); font-weight: 700; line-height: 1.15; color: var(--mjc-navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 92%; max-width: var(--mjc-wrap); margin-inline: auto; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--mjc-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mjc-yellow-d);
  margin-bottom: .6rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mjc-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--mjc-trans), background var(--mjc-trans), color var(--mjc-trans);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--mjc-yellow); color: var(--mjc-ink); }
.btn-primary:hover { background: var(--mjc-yellow-d); color: var(--mjc-ink); }
.btn-ghost { background: transparent; color: var(--mjc-white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: var(--mjc-white); color: var(--mjc-navy); }
.btn-dark { background: var(--mjc-navy); color: var(--mjc-white); }
.btn-dark:hover { background: var(--mjc-navy-2); color: var(--mjc-white); }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  background: var(--mjc-ink); color: #cfd6e0;
  font-size: .86rem; padding: .5rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #cfd6e0; }
.topbar a:hover { color: var(--mjc-yellow); }
.topbar .tb-phone { font-weight: 700; color: var(--mjc-white); }
.topbar .tb-phone .ic { color: var(--mjc-yellow); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--mjc-white);
  box-shadow: 0 2px 12px rgba(20,24,31,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--mjc-head); font-weight: 800; }
.brand .mark {
  width: 44px; height: 44px; border-radius: 9px; flex: none;
  background: var(--mjc-navy); color: var(--mjc-yellow);
  display: grid; place-items: center; font-size: 1.1rem; letter-spacing: .02em;
}
.brand .b-name { font-size: 1.35rem; color: var(--mjc-navy); line-height: 1; }
.brand .b-sub  { display: block; font-family: var(--mjc-font); font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mjc-grey); }

.main-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  font-family: var(--mjc-head); font-weight: 600; font-size: .95rem; white-space: nowrap;
  color: var(--mjc-navy); padding: .6rem .9rem; border-radius: 7px; display: block;
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--mjc-grey-l); color: var(--mjc-navy); }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--mjc-white); box-shadow: var(--mjc-shadow); border-radius: 10px;
  padding: .5rem; display: none; flex-direction: column; gap: .15rem;
  border: 1px solid var(--mjc-line);
}
.main-nav .menu-item-has-children:hover > .sub-menu { display: flex; }
.main-nav .sub-menu a { font-weight: 500; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--mjc-navy); border-radius: 2px; margin: 5px 0; transition: var(--mjc-trans); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; color: var(--mjc-white);
  background: linear-gradient(115deg, rgba(20,24,31,.92) 0%, rgba(27,42,74,.86) 55%, rgba(36,54,92,.78) 100%),
              var(--mjc-navy);
  overflow: hidden;
}
/* When a hero image is set inline, cover the section and lay the gradient over it. */
.hero.has-image {
  background-color: var(--mjc-navy);
  background-size: cover;
  background-position: 70% 50%; /* default; overridden by Customizer slider CSS in wp_head */
  background-repeat: no-repeat;
}
@media (max-width: 680px) {
  .hero.has-image { min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
}
.hero.has-image::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(20,24,31,.94) 0%, rgba(20,24,31,.80) 42%, rgba(27,42,74,.55) 70%, rgba(27,42,74,.30) 100%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39h40M39 0v40' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding: clamp(4rem,9vw,8rem) 0 clamp(3.5rem,7vw,6rem); max-width: 760px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,199,44,.15); color: var(--mjc-yellow);
  border: 1px solid rgba(255,199,44,.4);
  padding: .4rem .9rem; border-radius: 999px; font-weight: 600; font-size: .85rem; margin-bottom: 1.2rem;
}
.hero h1 { color: var(--mjc-white); margin-bottom: .5rem; }
.hero .lead { font-size: 1.2rem; color: #d6ddea; max-width: 620px; margin-bottom: 2rem; }
.hero .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .hero-strip {
  position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
}
.hero .hero-strip div { padding: 1.3rem 0; }
.hero .hero-strip strong { display: block; font-family: var(--mjc-head); font-size: 1.7rem; color: var(--mjc-yellow); }
.hero .hero-strip span { color: #cfd6e0; font-size: .92rem; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(3.5rem,7vw,6rem) 0; }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--mjc-grey); font-size: 1.08rem; }
.bg-grey { background: var(--mjc-grey-l); }
.bg-navy { background: var(--mjc-navy); color: var(--mjc-white); }
.bg-navy h2, .bg-navy h3 { color: var(--mjc-white); }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 1.5rem; }
.service-card {
  background: var(--mjc-white); border: 1px solid var(--mjc-line);
  border-radius: var(--mjc-radius); overflow: hidden; text-align: left;
  transition: transform var(--mjc-trans), box-shadow var(--mjc-trans);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--mjc-shadow-lg); }
.service-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--mjc-grey-l); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .thumb img { transform: scale(1.06); }
.service-card .body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.service-card .ic {
  width: 44px; height: 44px; border-radius: 9px; margin-bottom: .8rem;
  background: var(--mjc-navy); color: var(--mjc-yellow); display: grid; place-items: center;
}
.service-card h3 { margin-bottom: .4rem; }
.service-card p { color: var(--mjc-grey); font-size: .96rem; }
.service-card .more { margin-top: auto; font-family: var(--mjc-head); font-weight: 600; color: var(--mjc-navy); }
.service-card .more:hover { color: var(--mjc-yellow-d); }

/* Feature list (checklist) */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mjc-yellow); color: var(--mjc-ink); display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: .15rem;
}

/* Split / about */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.split .media img { border-radius: var(--mjc-radius); box-shadow: var(--mjc-shadow); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1.5rem; counter-reset: step; }
.step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--mjc-radius); padding: 1.6rem; }
.step .num {
  counter-increment: step; font-family: var(--mjc-head); font-weight: 800; font-size: 1.1rem;
  width: 42px; height: 42px; border-radius: 50%; background: var(--mjc-yellow); color: var(--mjc-ink);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.step .num::before { content: counter(step); }

/* Testimonials */
.reviews { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.5rem; }
.review { background: var(--mjc-white); border-radius: var(--mjc-radius); padding: 1.8rem; box-shadow: var(--mjc-shadow); border: 1px solid var(--mjc-line); }
.review .stars { color: var(--mjc-yellow); font-size: 1.05rem; margin-bottom: .7rem; letter-spacing: .1em; }
.review blockquote { margin: 0 0 1rem; font-size: 1.05rem; font-style: italic; color: var(--mjc-ink); }
.review .who { font-family: var(--mjc-head); font-weight: 600; color: var(--mjc-navy); }

/* CTA band */
.cta-band { background: linear-gradient(120deg,var(--mjc-navy),var(--mjc-ink)); color: var(--mjc-white); border-radius: 16px; padding: clamp(2.2rem,5vw,3.5rem); text-align: center; box-shadow: var(--mjc-shadow-lg); }
.cta-band h2 { color: var(--mjc-white); }
.cta-band p { color: #d6ddea; max-width: 560px; margin-inline: auto; }
.cta-band .cta-phone { font-family: var(--mjc-head); font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 800; color: var(--mjc-yellow); display: inline-block; margin: .3rem 0 1.2rem; }

/* ============================================================
   Page hero (interior)
   ============================================================ */
.page-hero { position: relative; background: linear-gradient(120deg,var(--mjc-navy),var(--mjc-ink)); color: var(--mjc-white); padding: clamp(3rem,6vw,4.5rem) 0; overflow: hidden; }
.page-hero h1 { color: var(--mjc-white); margin: 0; }
/* Featured image as the hero background — shorter than the homepage hero */
.page-hero.has-image {
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  padding: clamp(4rem,8vw,6rem) 0 clamp(3rem,5vw,4rem); /* default fallback */
}
/* Hero height tiers (used with .has-image) */
.page-hero.ph-short  { padding: clamp(2.5rem,5vw,3.5rem) 0; min-height: 0; }
.page-hero.ph-medium { padding: clamp(4rem,8vw,6rem) 0 clamp(3rem,5vw,4rem); }
.page-hero.ph-tall   { padding: 0; min-height: 420px; display: flex; align-items: center; }
.page-hero.ph-xtall  { padding: 0; min-height: 560px; display: flex; align-items: center; }
@media (max-width: 680px) {
  .page-hero.ph-tall  { min-height: 320px; }
  .page-hero.ph-xtall { min-height: 400px; }
}
.page-hero.has-image::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(20,24,31,.90) 0%, rgba(20,24,31,.72) 45%, rgba(27,42,74,.55) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.breadcrumbs { font-size: .85rem; color: #b9c2d4; }
.breadcrumbs a { color: var(--mjc-yellow); }

/* Content / posts */
.content-area { padding: clamp(3rem,6vw,5rem) 0; }
.page-featured { margin: 0 0 2.5rem; }
.page-featured img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--mjc-radius); box-shadow: var(--mjc-shadow); display: block; }
.entry-content { max-width: 780px; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--mjc-radius); margin: 1.5rem 0; }
.entry-content ul { padding-left: 1.2rem; }

/* ---- FAQ accordions ---- */
.mjc-faqs { margin: 1.5rem 0 2rem; display: grid; gap: .75rem; max-width: 820px; }
.mjc-faq {
  border: 1px solid var(--mjc-line); border-radius: var(--mjc-radius);
  background: var(--mjc-white); overflow: hidden;
  transition: box-shadow var(--mjc-trans), border-color var(--mjc-trans);
}
.mjc-faq[open] { box-shadow: var(--mjc-shadow); border-color: #cdd4de; }
.mjc-faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--mjc-head); font-weight: 600; font-size: 1.05rem; color: var(--mjc-navy);
  padding: 1.1rem 1.25rem; transition: background var(--mjc-trans);
}
.mjc-faq__q:hover { background: var(--mjc-grey-l); }
.mjc-faq__q::-webkit-details-marker { display: none; } /* hide default triangle (Safari) */
.mjc-faq__icon {
  flex: none; width: 22px; height: 22px; position: relative;
  transition: transform var(--mjc-trans);
}
.mjc-faq__icon::before, .mjc-faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--mjc-yellow-d);
  border-radius: 2px;
}
.mjc-faq__icon::before { width: 14px; height: 2.5px; transform: translate(-50%,-50%); }
.mjc-faq__icon::after  { width: 2.5px; height: 14px; transform: translate(-50%,-50%); transition: transform var(--mjc-trans), opacity var(--mjc-trans); }
.mjc-faq[open] .mjc-faq__icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.mjc-faq__a { padding: 0 1.25rem 1.2rem; color: var(--mjc-grey); }
.mjc-faq__a p { margin: 0 0 .8em; }
.mjc-faq__a p:last-child { margin-bottom: 0; }
.mjc-faq__a ul { margin: .5rem 0; }

.post-card { background: var(--mjc-white); border: 1px solid var(--mjc-line); border-radius: var(--mjc-radius); overflow: hidden; box-shadow: var(--mjc-shadow); }
.post-card .body { padding: 1.5rem; }
.post-meta { font-size: .82rem; color: var(--mjc-grey); text-transform: uppercase; letter-spacing: .06em; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1.5rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; list-style: none; }
.contact-info { padding: 0; margin: 0; }
.contact-info .ic { flex: none; width: 40px; height: 40px; border-radius: 9px; background: var(--mjc-navy); color: var(--mjc-yellow); display: grid; place-items: center; }
.wpcf7 input, .wpcf7 textarea, .form-field input, .form-field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--mjc-line); border-radius: 8px; font: inherit; margin-bottom: 1rem; background: var(--mjc-white);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--mjc-yellow); border-color: var(--mjc-yellow); }

/* ---- Forminator form, styled to match the MJC brand ---- */
.forminator-ui.forminator-custom-form {
  font-family: var(--mjc-font);
}
.forminator-ui .forminator-label,
.forminator-ui label {
  font-family: var(--mjc-head); font-weight: 600; color: var(--mjc-navy);
  font-size: .9rem; margin-bottom: .35rem;
}
.forminator-ui input[type="text"],
.forminator-ui input[type="email"],
.forminator-ui input[type="tel"],
.forminator-ui input[type="number"],
.forminator-ui textarea,
.forminator-ui select,
.forminator-ui .forminator-select .select2-selection,
.forminator-ui .forminator-input {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--mjc-line);
  border-radius: 8px; font: inherit; background: var(--mjc-white);
  color: var(--mjc-ink); box-shadow: none;
}
.forminator-ui input:focus,
.forminator-ui textarea:focus,
.forminator-ui select:focus,
.forminator-ui .forminator-input:focus {
  outline: 2px solid var(--mjc-yellow); border-color: var(--mjc-yellow);
}
.forminator-ui textarea { min-height: 130px; }

/* Submit button → MJC yellow pill */
.forminator-ui button[type="submit"],
.forminator-ui .forminator-button-submit,
.forminator-ui .forminator-button.forminator-button-submit {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mjc-head); font-weight: 600; font-size: .98rem;
  background: var(--mjc-yellow); color: var(--mjc-ink);
  border: 2px solid transparent; border-radius: 999px;
  padding: .85rem 1.8rem; cursor: pointer;
  transition: transform var(--mjc-trans), background var(--mjc-trans);
}
.forminator-ui button[type="submit"]:hover,
.forminator-ui .forminator-button-submit:hover {
  background: var(--mjc-yellow-d); color: var(--mjc-ink); transform: translateY(-2px);
}

/* Consent checkbox + labels readable on the grey panel */
.forminator-ui .forminator-checkbox-label,
.forminator-ui .forminator-description { color: var(--mjc-grey); font-size: .85rem; }
.forminator-ui .forminator-required { color: #c0392b; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--mjc-ink); color: #aeb7c6; padding: clamp(3rem,6vw,4.5rem) 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: var(--mjc-white); font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer a { color: #aeb7c6; }
.site-footer a:hover { color: var(--mjc-yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-brand .brand .b-name { color: var(--mjc-white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* Floating call button (mobile) */
.call-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  background: var(--mjc-yellow); color: var(--mjc-ink); width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center; box-shadow: var(--mjc-shadow-lg);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--mjc-white); box-shadow: var(--mjc-shadow); padding: 1rem;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .main-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 1rem; }
  .main-nav .menu-item-has-children:hover > .sub-menu { display: flex; }
  .header-cta .btn { display: none; }
  .call-fab { display: grid; }
  .hero .hero-strip { grid-template-columns: 1fr; text-align: center; }
}
/* --- Mobile hero layout --- */
@media (max-width: 680px) {
  /* Both hero blocks full width and stacked */
  .hero .wrap { width: 92%; max-width: 100%; padding: 2.5rem 0 1.5rem; text-align: center; }
  .hero .wrap:last-child { padding-top: 0; padding-bottom: 2.5rem; }

  /* Centre the text content */
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.12; }
  .hero .lead { font-size: 1.05rem; margin: 0 auto 1.5rem; max-width: 100%; }
  .hero .badge { margin-inline: auto; }
  .hero .hero-actions { gap: .7rem; justify-content: center; }
  .hero .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* Stats: full-width centred row, clearly divided, sitting BELOW the text */
  .hero .hero-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem; text-align: center; padding-top: 1.25rem;
  }
  .hero .hero-strip div { padding: .5rem .25rem; }
  .hero .hero-strip strong { font-size: 1.25rem; }
  .hero .hero-strip span { font-size: .78rem; line-height: 1.3; display: block; }
}

/* --- Mobile buttons: consistent size, centred, tidy spacing --- */
@media (max-width: 680px) {
  /* All buttons centre their label and wrap cleanly */
  .btn { justify-content: center; text-align: center; white-space: normal; line-height: 1.3; }

  /* Buttons inside page content and CTA bands go full width and stack evenly */
  .entry-content .btn,
  .cta-band .btn {
    display: flex; width: 100%; max-width: 420px;
    margin: 0 auto; padding: .95rem 1.4rem;
  }
  /* Space between stacked buttons when there are several in a row */
  .entry-content p .btn + .btn,
  .cta-band .btn + .btn { margin-top: .75rem; }

  /* A paragraph holding two buttons: stack them full width, centred */
  .entry-content p:has(.btn),
  .cta-band p:has(.btn) {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
  }

  /* CTA band: more room at the bottom so the floating call button can't clip text */
  .cta-band { padding: 2.25rem 1.5rem 2.5rem; }
  .cta-band h2 { font-size: 1.6rem; line-height: 1.2; }
  .cta-band .cta-phone { font-size: 1.8rem; }

  /* Forminator submit full width to match other buttons */
  .forminator-ui button[type="submit"],
  .forminator-ui .forminator-button-submit { width: 100%; max-width: 420px; }

  /* Keep the floating call button clear of content */
  .call-fab { right: 14px; bottom: 14px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; text-align: center; }
}

/* Smallest phones: stats stack so they never cramp */
@media (max-width: 400px) {
  .hero .hero-strip { grid-template-columns: 1fr; gap: 0; }
  .hero .hero-strip div { padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.08); }
  .hero .hero-strip div:first-child { border-top: 0; }
}
