/*
Theme Name: ABHM Clean Editable Theme
Theme URI: https://www.abhm.au/
Author: AB Home Maintenance
Description: Native WordPress block version of the approved ABHM site.
Version: 1.2.2
Requires at least: 6.3
*/
/* =========================================================================
   AB HOME MAINTENANCE (ABHM) — Site Stylesheet
   -------------------------------------------------------------------------
   Brand colours below are sampled directly from the real ABHM logo
   (deep black + signature red #E93325). Every colour on the site is
   driven from these variables, so any future tweak is a one-time edit
   here.
   ========================================================================= */

:root {
  /* ---- Brand palette (from the real ABHM logo) — dark theme --- */
  --color-primary: #171717;       /* card / surface black */
  --color-primary-dark: #050505;  /* deepest black — footer floor */
  --color-primary-light: #2b2b2b; /* lighter black — hover states */
  --color-accent: #e93325;        /* ABHM red — CTAs, highlights */
  --color-accent-dark: #c0231a;
  --color-charcoal: #161616;
  --color-text: #e9e9e9;          /* default light body text */
  --color-muted: #9a9a9a;         /* muted light gray */
  --color-white: #ffffff;
  --color-bg: #0a0a0a;            /* page background — black */
  --color-bg-alt: #131313;        /* alternating section background */
  --color-bg-alt-2: #1f1f1f;      /* nested UI elements on dark (icon chips, inputs) */
  --color-border: #2a2a2a;        /* hairlines on dark */
  --color-success: #2f7d4f;
  --color-star: #e93325;

  /* ---- Typography ---- */
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  /* ---- Layout ---- */
  --max-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --transition: 180ms ease;
}

/* ---------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}
p { margin: 0 0 1em; color: var(--color-text); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 768px) {
  section { padding: 56px 0; }
}

.section-alt { background: var(--color-bg-alt); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

.lede {
  font-size: 1.125rem;
  color: var(--color-muted);
}

/* ---------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-dark {
  background: var(--color-bg-alt-2);
  color: var(--color-white);
  border-color: var(--color-border);
}
.btn-dark:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------------------------- Header ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(8,8,8,0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 52px; width: auto; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.08); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a.nav-link {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--color-white);
  transition: background var(--transition), color var(--transition);
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link[aria-current="page"] { background: var(--color-bg-alt-2); color: var(--color-accent); }

.header-ctas { display: flex; align-items: center; gap: 12px; margin-left: 12px; }
.header-call {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  transition: border-color var(--transition), color var(--transition);
}
.header-call:hover { border-color: var(--color-accent); color: var(--color-accent); }
.header-call svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 28px; height: 28px; color: var(--color-white); }

@media (max-width: 960px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); height: 100vh; background: var(--color-primary-dark); border-left: 1px solid var(--color-border); flex-direction: column; align-items: stretch; padding: 90px 24px 24px; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 240ms ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a.nav-link { display: block; padding: 14px 16px; font-size: 1.05rem; }
  .header-ctas { flex-direction: column; align-items: stretch; margin: 20px 0 0; }
  .header-ctas .btn, .header-call { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity 220ms ease; z-index: 490; }
  .nav-scrim.open { opacity: 1; pointer-events: auto; }
}
@media (min-width: 961px) {
  .header-ctas .call-text { display: inline; }
}

/* ---------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  color: var(--color-white);
  background-color: var(--color-primary-dark);
  padding: 150px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(0.42) saturate(1.15);
  transform: scale(1.15);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.55) 40%, rgba(5,5,5,0.82) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 700px; }
.hero .eyebrow { color: var(--color-accent); }
.hero h1 { color: var(--color-white); margin-bottom: 20px; }
.hero .lede { color: rgba(255,255,255,0.88); font-size: 1.2rem; margin-bottom: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; color: rgba(255,255,255,0.92); }
.hero-trust-item svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; }

@media (max-width: 768px) {
  .hero { padding: 100px 0 64px; }
  .cta-row .btn { flex: 1 1 auto; }
}

/* ---------------------------- Service cards ---------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 960px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card .card-media { aspect-ratio: 4/3; overflow: hidden; }
.service-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.service-card .card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.service-card ul { margin: 14px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.service-card ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--color-muted); font-size: 0.96rem; }
.service-card ul li svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; margin-top: 3px; }
.service-card .card-cta { margin-top: auto; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
}
.card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(3px); }
.card-link:hover { color: var(--color-accent); }


/* ABHM safe grid sizing: prevents a long word or Gutenberg wrapper from
   forcing a grid track wider than its container. This does not change the
   approved layout or breakpoints. */
.service-grid > *,
.feature-grid > *,
.gallery-grid > *,
.review-grid > * { min-width: 0; }

/* ---------------------------- Why choose ------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt-2);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--color-accent); }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--color-muted); font-size: 0.95rem; margin: 0; }

/* ---------------------------- Gallery / before-after -------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-muted);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }

.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 720px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-grid.single-col { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
.ba-card.single img { width: 100%; height: auto; display: block; }

.ba-card {
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.ba-card:hover { box-shadow: var(--shadow-md); }
.ba-images { display: grid; grid-template-columns: 1fr 1fr; }
.ba-images figure { margin: 0; position: relative; aspect-ratio: 4/3; overflow: hidden; }
.ba-images img { width: 100%; height: 100%; object-fit: cover; }
.ba-images figcaption {
  position: absolute; top: 10px; left: 10px;
  background: rgba(5,5,5,0.82); color: #fff;
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.ba-images figure:last-child figcaption { background: var(--color-accent-dark); }
.ba-body { padding: 20px 22px; }
.ba-body .tag { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 8px; }
.ba-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.ba-body p { color: var(--color-muted); font-size: 0.92rem; margin: 0; }

/* single work item (Our Work page cards without pairing) */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }
.work-photo {
  margin: 0;
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.work-photo:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.work-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work-photo figcaption { padding: 14px 18px; font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; color: var(--color-text); }

/* ---------------------------- Testimonials ------------------------------ */
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 3px; margin-bottom: 14px; }
.stars svg { width: 18px; height: 18px; color: var(--color-star); }
.review-card p.review-text { color: var(--color-text); font-size: 0.98rem; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0;
}
.review-name { font-family: var(--font-heading); font-weight: 700; font-size: 0.94rem; color: var(--color-white); }
.review-source { font-size: 0.8rem; color: var(--color-muted); }

.reviews-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.reviews-summary .score { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--color-accent); }
.reviews-summary .stars svg { width: 22px; height: 22px; }

/* ---------------------------- Coverage / Melbourne-wide ----------------- */
.coverage-band {
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.coverage-band h2 { color: var(--color-white); margin-bottom: 8px; }
.coverage-band p { color: rgba(255,255,255,0.82); margin: 0; max-width: 520px; }
@media (max-width: 768px) { .coverage-band { padding: 32px 24px; } }

/* ---------------------------- CTA band ---------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .cta-row { justify-content: center; margin-top: 28px; }

/* ---------------------------- Footer ------------------------------------ */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.8); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 18px; }
.site-footer .logo-link img { height: 40px; margin-bottom: 16px; }
.site-footer p { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.92rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 0.92rem; color: rgba(255,255,255,0.8); }
.footer-contact svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------------------------- Sticky mobile CTA bar --------------------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.35);
}
.mobile-cta-bar .row { display: grid; grid-template-columns: 1fr 1fr; }
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
}
.mobile-cta-bar a svg { width: 18px; height: 18px; }
.mobile-cta-bar .call { background: var(--color-primary); color: #fff; }
.mobile-cta-bar .quote { background: var(--color-accent); color: #fff; }
@media (max-width: 768px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 62px; }
}

/* ---------------------------- Page hero (inner pages) -------------------- */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 64px 0 56px;
}
.page-hero .eyebrow { color: var(--color-accent); }
.page-hero h1 { color: var(--color-white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 640px; font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--color-accent); }

/* ---------------------------- Services page detail blocks ---------------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.service-detail.reverse .service-detail-media { order: 2; }
.service-detail.reverse .service-detail-copy { order: 1; }
@media (max-width: 860px) {
  .service-detail, .service-detail.reverse .service-detail-media, .service-detail.reverse .service-detail-copy { order: initial; }
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
}
.service-detail-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.service-detail-media.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-detail-media.two-up img { border-radius: var(--radius-md); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 20px 0 28px; }
@media (max-width: 480px) { .service-list { grid-template-columns: 1fr; } }
.service-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; color: var(--color-text); }
.service-list li svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; margin-top: 3px; }
.service-anchor-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.service-anchor-nav a {
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--color-border);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--color-text);
}
.service-anchor-nav a:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.service-block { padding: 72px 0; border-top: 1px solid var(--color-border); }
.service-block:first-of-type { border-top: none; }

/* ---------------------------- Contact page -------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-list svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.contact-info-list .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.contact-info-list a, .contact-info-list span.value { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: #fff; }
.contact-info-card .btn { margin-top: 8px; }
.contact-hours { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.92rem; color: rgba(255,255,255,0.85); }

.form-card {
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--color-white); margin-bottom: 6px; }
.field .req { color: var(--color-accent-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt-2);
  color: var(--color-white);
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-accent); background: var(--color-bg-alt-2);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--color-muted); margin-top: 14px; }
.form-success {
  display: none;
  background: rgba(47,125,79,0.15); border: 1px solid rgba(47,125,79,0.45); color: #7ed3a0;
  padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 20px;
}
.form-success.show { display: block; }

.map-note {
  margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--color-border);
}

/* ---------------------------- Misc utility -------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary); color: #fff;
  padding: 12px 18px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Gutenberg compatibility only. Existing ABHM design rules remain unchanged. */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-group { box-sizing: border-box; }
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }
.wp-block-buttons { margin: 0; gap: 0; }
.wp-block-button { margin: 0; }
.wp-block-button .wp-block-button__link {
  font: inherit;
  text-decoration: none;
}
.wp-block-button.btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.wp-block-button.btn-primary .wp-block-button__link {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.wp-block-button.btn-primary .wp-block-button__link:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.wp-block-button.btn-outline .wp-block-button__link {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.55);
}
.wp-block-button.btn-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.wp-block-button.btn-lg .wp-block-button__link {
  padding: 18px 34px;
  font-size: 1.05rem;
}
.wp-block-button.card-link .wp-block-button__link {
  background: transparent;
  padding: 0;
  border: 0;
  color: inherit;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
}
.wp-block-button.card-link .wp-block-button__link:hover { color: var(--color-accent); }

.hero-trust-item > p,
.review-avatar > p,
.review-name > p,
.review-source > p,
.contact-info-list .label > p,
.contact-info-list .value > p,
.footer-bottom > p {
  margin: 0;
}

/* =========================================================================
   ABHM BLOCK THEME FIXES v1.1
   Keep Gutenberg button wrappers neutral so the visible link receives the
   same styling as the approved front-end buttons.
   ========================================================================= */
.wp-block-button.btn,
.wp-block-button.btn-primary,
.wp-block-button.btn-outline,
.wp-block-button.btn-dark,
.wp-block-button.btn-lg,
.wp-block-button.btn-block {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  font: inherit;
  color: inherit;
}
.wp-block-button.btn-block { width: 100%; }
.wp-block-button.btn-block .wp-block-button__link { width: 100%; }
.wp-block-button.btn-dark .wp-block-button__link {
  background: var(--color-bg-alt-2);
  color: var(--color-white);
  border-color: var(--color-border);
}
.wp-block-button.btn-dark .wp-block-button__link:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
}
.wp-block-button.card-link {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Prevent WordPress block defaults from changing ABHM button geometry. */
.cta-row > .wp-block-buttons,
.card-cta > .wp-block-buttons,
.coverage-band > .wp-block-buttons {
  width: auto;
}
.cta-row .wp-block-buttons,
.card-cta .wp-block-buttons {
  align-items: center;
}

/* Keep common editable blocks aligned with the approved front end. */
.wp-block-post-content { margin: 0; }
.wp-block-post-content > .wp-block-group { margin-block-start: 0; }

/* Section labels are editor helpers only and never appear on the live site. */
.editor-section-label { display: none !important; }

/* =========================================================================
   MOBILE RESPONSIVENESS PATCH v1.2.1
   Mobile-only containment fixes. Desktop rules remain unchanged.
   ========================================================================= */
@media (max-width: 768px) {
  html,
  body,
  .wp-site-blocks {
    max-width: 100%;
    overflow-x: clip;
  }

  .container,
  .header-inner,
  .wp-block-post-content,
  .wp-block-group,
  .wp-block-group__inner-container,
  .hero-inner,
  .section-head,
  .service-detail,
  .service-detail-content,
  .service-detail-media,
  .work-grid,
  .review-grid,
  .feature-grid,
  .contact-grid,
  .form-card {
    min-width: 0;
    max-width: 100%;
  }

  .container,
  .header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1,
  h2,
  h3,
  p,
  li,
  a {
    overflow-wrap: break-word;
  }

  .btn,
  .wp-block-button,
  .wp-block-button .wp-block-button__link {
    max-width: 100%;
  }

  .wp-block-button.btn .wp-block-button__link,
  .btn {
    white-space: normal;
    text-align: center;
  }

  .cta-row,
  .cta-row > .wp-block-buttons,
  .cta-row .wp-block-button {
    max-width: 100%;
  }

  .service-detail-media img,
  .work-photo img,
  .ba-images img,
  .wp-block-image img {
    max-width: 100%;
    height: auto;
  }

  .mobile-cta-bar,
  .mobile-cta-bar .row {
    width: 100%;
    max-width: 100vw;
  }

  .mobile-cta-bar a {
    min-width: 0;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .container,
  .header-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 10.5vw, 2.75rem);
  }

  .hero .lede,
  .page-hero p,
  .lede {
    font-size: 1rem;
  }

  .form-card,
  .contact-info-card {
    padding-left: 22px;
    padding-right: 22px;
  }
}


/* =========================================================================
   MOBILE NAV / HERO PATCH v1.2.2
   Keeps the off-canvas menu completely outside the viewport when closed.
   Mobile only. Desktop styling is unchanged.
   ========================================================================= */
@media (max-width: 960px) {
  .main-nav {
    left: auto !important;
    right: -100vw !important;
    transform: none !important;
    visibility: hidden;
    pointer-events: none;
    transition: right 240ms ease, visibility 0s linear 240ms !important;
  }

  .main-nav.open {
    right: 0 !important;
    transform: none !important;
    visibility: visible;
    pointer-events: auto;
    transition: right 240ms ease !important;
  }
}

@media (max-width: 768px) {
  .hero,
  .page-hero {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero .container,
  .page-hero .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-inner {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: normal;
  }
}
