/* ============================================================
   BMK — GMB Category Page Styles (gmb.css)
   Reusable for all GMB category pages
   ============================================================ */

.section-pad { padding: var(--section-pad); }

/* ── GMB HERO ── */
.gmb-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.gmb-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.gmb-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.gmb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(31,41,51,0.93) 0%,
    rgba(31,41,51,0.72) 55%,
    rgba(31,41,51,0.35) 100%
  );
}

/*
  Hero alignment fix:
  .gmb-hero-content is the container — no max-width here so it fills the
  full container width and left-aligns with the nav logo.
  .gmb-hero-inner constrains the text width without centering the block.
*/
.gmb-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 80px;
}
.gmb-hero-inner {
  max-width: 660px;
}

.gmb-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  animation: fadeUp 0.6s ease both;
}
.gmb-hero-title span { color: var(--color-green); }
.gmb-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s 0.12s ease both;
}
.gmb-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.22s ease both;
}
.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.btn-outline-hero:hover {
  border-color: var(--color-green);
  background: rgba(132,214,67,0.12);
  color: var(--color-green);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── INTRO SECTION ── */
.gmb-intro {
  background: var(--color-white);
}
.gmb-intro-inner {
  max-width: 820px;
}
.gmb-intro-inner p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-top: 16px;
}
.gmb-intro-inner p:first-of-type {
  font-size: 1.1rem;
  color: var(--color-text);
  font-weight: 500;
}

/* ── WHAT DOES A CONTRACTOR DO ── */
.gmb-explainer {
  background: var(--color-dark);
}
.gmb-explainer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}
.gmb-explainer-label {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.2;
}
.gmb-explainer-label span { color: var(--color-green); display: block; }
.gmb-explainer-answer {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  border-left: 3px solid var(--color-green);
  padding-left: 28px;
}

/* ── SERVICE SECTIONS ── */
.gmb-service {
  padding: var(--section-pad);
}
.gmb-service:nth-child(even) {
  background: var(--color-off-white);
}
.gmb-service-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.gmb-service:nth-child(odd) .gmb-service-inner {
  direction: ltr;
}
.gmb-service:nth-child(even) .gmb-service-inner {
  direction: rtl;
}
.gmb-service:nth-child(even) .gmb-service-inner > * {
  direction: ltr;
}
.gmb-service-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.gmb-service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gmb-service-img-wrap:hover .gmb-service-img {
  transform: scale(1.04);
}
.gmb-service-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--color-green);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}
.gmb-service-text .section-label {
  margin-bottom: 8px;
}
.gmb-service-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}
.gmb-service-body p {
  font-size: 0.97rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 14px;
}
.gmb-service-body p:last-child { margin-bottom: 0; }
.gmb-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
  background: var(--color-green);
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.gmb-service-cta:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
}

/* ── PRE-FOOTER CTA ── */
.cta-section {
  background: var(--color-dark);
  padding: 64px 0;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 10px;
}
.cta-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .gmb-explainer-inner { grid-template-columns: 1fr; gap: 32px; }
  .gmb-service-inner { grid-template-columns: 1fr; gap: 40px; }
  .gmb-service:nth-child(even) .gmb-service-inner { direction: ltr; }
}
@media (max-width: 768px) {
  .gmb-hero { min-height: 50vh; }
  .gmb-hero-content { padding-top: 100px; padding-bottom: 60px; }
  .gmb-hero-actions { flex-direction: column; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
