/* =============================================
   TBM TRANSFORMATION CSS v2 - Feb 2026
   Inspired by: ABM, Coverall, Marsden
   AGGRESSIVE OVERRIDES - Designed to transform
   existing site into enterprise-grade appearance
   ============================================= */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --tbm-green: #22C55E !important;
  --tbm-green-dark: #16A34A !important;
  --tbm-green-deep: #064E3B !important;
  --tbm-navy: #0F172A !important;
  --tbm-slate: #1E293B !important;
  --tbm-light: #F8FAFC !important;
  --tbm-white: #FFFFFF !important;
  --font-heading: "Montserrat", "Inter", sans-serif !important;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08) !important;
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1) !important;
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12) !important;
  --radius: 12px !important;
  --radius-sm: 8px !important;
}

/* ── GLOBAL TYPOGRAPHY OVERRIDE ── */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  scroll-behavior: smooth !important;
  color: #1E293B !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", "Inter", sans-serif !important;
  letter-spacing: -0.02em !important;
  color: var(--tbm-navy) !important;
}

/* ── GLOBAL COLOR OVERRIDE ── */
/* Override old greens (#00a651, #1a5f2a) with new brand green */
a { color: var(--tbm-green); transition: color 0.3s ease; }
a:hover { color: var(--tbm-green-dark); }

/* ── NAVBAR TRANSFORMATION ── */
.tbm-navbar,
.navbar,
nav,
header {
  background: var(--tbm-navy) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15) !important;
  backdrop-filter: blur(10px) !important;
}

.tbm-navbar a,
.navbar a,
nav a {
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
}

/* Nav animated underline */
.navbar .nav-link,
.tbm-nav-link,
nav a {
  position: relative !important;
}

.navbar .nav-link::after,
nav a::after {
  content: "" !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: var(--tbm-green) !important;
  transition: width 0.3s ease !important;
}

.navbar .nav-link:hover::after,
nav a:hover::after {
  width: 100% !important;
}

/* ── HERO CINEMATIC (New hero for transformed pages) ── */
.hero-cinematic {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--tbm-navy);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,20,10,0.78) 0%, rgba(0,40,20,0.55) 50%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-content-new {
  position: relative; z-index: 2; color: #fff;
  max-width: 800px; padding: 6rem 2rem;
}

.hero-badge {
  display: inline-block; padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem; backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.08);
}

.hero-headline {
  font-family: "Montserrat", sans-serif !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  font-weight: 800 !important; line-height: 1.08 !important;
  color: #fff !important;
  margin-bottom: 1.25rem !important;
  letter-spacing: -0.03em !important;
}

.hero-subline {
  font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
  line-height: 1.6 !important;
  color: rgba(255,255,255,0.85) !important;
  max-width: 600px; margin-bottom: 2rem;
}

/* ── HERO OVERRIDE (for existing .hero sections) ── */
.hero,
section.hero {
  position: relative !important;
  min-height: 70vh !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, var(--tbm-navy) 0%, var(--tbm-slate) 100%) !important;
}

.hero h1,
section.hero h1 {
  font-family: "Montserrat", sans-serif !important;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: #fff !important;
  letter-spacing: -0.03em !important;
}

.hero p,
section.hero p {
  font-size: clamp(1rem, 1.8vw, 1.25rem) !important;
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.7 !important;
}

.hero h1 span {
  color: var(--tbm-green) !important;
}

/* ── Proof Bar ── */
.hero-proof-bar {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.25rem 1.75rem; background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 2.5rem; max-width: fit-content;
}

.proof-item { text-align: center; }
.proof-number { display: block; font-family: "Montserrat", sans-serif; font-size: 1.75rem; font-weight: 800; color: var(--tbm-green); }
.proof-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); }
.proof-stars { color: #FCD34D; font-size: 0.85rem; margin-top: 2px; }
.proof-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* ── Hero Actions ── */
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary-hero {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; background: var(--tbm-green); color: #fff;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.05rem;
  border-radius: var(--radius-sm); text-decoration: none;
  transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(34,197,94,0.3);
}
.btn-primary-hero:hover { background: var(--tbm-green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34,197,94,0.4); }

.btn-secondary-hero {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; background: rgba(255,255,255,0.12);
  color: #fff; font-family: "Montserrat", sans-serif; font-weight: 600;
  font-size: 1.05rem; border-radius: var(--radius-sm); text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25); transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.btn-secondary-hero:hover { background: rgba(255,255,255,0.2); }

/* ── BUTTON OVERRIDES (existing buttons) ── */
.btn-primary,
.cta-btn,
a.btn-primary,
button.btn-primary,
.hero-buttons a:first-child,
.cta-button {
  background: var(--tbm-green) !important;
  color: #fff !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.875rem 2rem !important;
  border: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(34,197,94,0.25) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.btn-primary:hover,
.cta-btn:hover,
a.btn-primary:hover,
.hero-buttons a:first-child:hover,
.cta-button:hover {
  background: var(--tbm-green-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(34,197,94,0.35) !important;
}

.btn-secondary,
.hero-buttons a:last-child {
  background: transparent !important;
  color: var(--tbm-navy) !important;
  border: 2px solid var(--tbm-navy) !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.875rem 2rem !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.btn-secondary:hover,
.hero-buttons a:last-child:hover {
  background: var(--tbm-navy) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

/* ── SECTION STYLES ── */
section {
  padding: 5rem 0 !important;
}

.section-dark { background: var(--tbm-navy) !important; color: #fff !important; padding: 5rem 0 !important; }
.section-dark h2, .section-dark h3 { color: #fff !important; }
.section-dark p { color: rgba(255,255,255,0.8) !important; }

.section-green {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 50%, #047857 100%) !important;
  color: #fff !important; padding: 5rem 0 !important;
}

.section-light { background: var(--tbm-light) !important; padding: 5rem 0 !important; }

/* ── Section headings upgrade ── */
section h2,
.section-title {
  font-family: "Montserrat", sans-serif !important;
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1rem !important;
}

section h2 + p,
.section-subtitle {
  font-size: 1.1rem !important;
  color: #64748B !important;
  max-width: 600px !important;
  line-height: 1.7 !important;
}

/* ── SERVICE CARDS TRANSFORMATION ── */
.service-card,
.service-card-new,
.card,
.feature-card {
  background: #fff !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid #E2E8F0 !important;
}

.service-card:hover,
.service-card-new:hover,
.card:hover,
.feature-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
  border-color: var(--tbm-green) !important;
}

.service-card img,
.service-card-new img,
.card img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  transition: transform 0.5s ease !important;
}

.service-card:hover img,
.service-card-new:hover img,
.card:hover img {
  transform: scale(1.08) !important;
}

.service-card h3,
.service-card-new h3,
.card h3,
.feature-card h3 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  color: var(--tbm-navy) !important;
}

.service-card p,
.service-card-new p,
.card p,
.feature-card p {
  color: #64748B !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}

/* ── GRID LAYOUTS ── */
.services-grid,
.features-grid,
.standard-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 2rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* ── TBM STANDARD / PROMISE SECTION ── */
.tbm-standard { background: var(--tbm-navy) !important; padding: 5rem 2rem !important; color: #fff !important; }
.tbm-standard h2 {
  font-family: "Montserrat", sans-serif !important;
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 800 !important; text-align: center !important;
  margin-bottom: 1rem !important; color: #fff !important;
}
.tbm-standard .subtitle {
  text-align: center !important; color: rgba(255,255,255,0.7) !important;
  max-width: 600px !important; margin: 0 auto 3rem !important; font-size: 1.1rem !important;
}

.standard-card {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--radius) !important;
  padding: 2rem 1.5rem !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
}
.standard-card:hover {
  background: rgba(255,255,255,0.1) !important;
  transform: translateY(-4px) !important;
  border-color: var(--tbm-green) !important;
}
.standard-number {
  font-family: "Montserrat", sans-serif !important;
  font-size: 2.5rem !important; font-weight: 800 !important;
  color: var(--tbm-green) !important; margin-bottom: 0.75rem !important;
}
.standard-card h3 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important; font-size: 1.1rem !important;
  margin-bottom: 0.5rem !important; color: #fff !important;
}
.standard-card p { font-size: 0.9rem !important; color: rgba(255,255,255,0.7) !important; line-height: 1.5 !important; }

/* ── TRUST BAR ── */
.trust-bar,
.hero-stats,
.stats-bar {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 3rem !important;
  padding: 2.5rem !important;
  flex-wrap: wrap !important;
}

.trust-item,
.hero-stat,
.stat-item { text-align: center !important; }

.trust-number,
.hero-stat-number,
.stat-number {
  font-family: "Montserrat", sans-serif !important;
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  color: var(--tbm-green) !important;
}

.trust-label,
.hero-stat-label,
.stat-label {
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #64748B !important;
}

/* ── TESTIMONIAL CARDS ── */
.testimonial-card,
.testimonial,
.review-card {
  background: #fff !important;
  border-radius: var(--radius) !important;
  padding: 2rem !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  transition: all 0.3s ease !important;
}

.testimonial-card:hover,
.testimonial:hover,
.review-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
  transform: translateY(-4px) !important;
}

.testimonial-stars { color: #FCD34D !important; margin-bottom: 1rem !important; }
.testimonial-text { color: #334155 !important; font-size: 0.95rem !important; line-height: 1.7 !important; font-style: italic !important; margin-bottom: 1rem !important; }
.testimonial-author { font-family: "Montserrat", sans-serif !important; font-weight: 700 !important; color: var(--tbm-navy) !important; }
.testimonial-role { font-size: 0.8rem !important; color: #94A3B8 !important; }

/* ── CTA SECTIONS ── */
.cta-section,
.cta-banner,
.call-to-action {
  background: linear-gradient(135deg, var(--tbm-green-deep) 0%, #047857 100%) !important;
  padding: 4rem 2rem !important;
  text-align: center !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
}

.cta-section h2,
.cta-banner h2,
.call-to-action h2 {
  font-family: "Montserrat", sans-serif !important;
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  font-weight: 800 !important; margin-bottom: 1rem !important;
  color: #fff !important;
}

.cta-section p,
.cta-banner p { color: rgba(255,255,255,0.85) !important; max-width: 500px !important; margin: 0 auto 2rem !important; }

/* ── FOOTER TRANSFORMATION ── */
footer,
.site-footer,
.tbm-footer {
  background: var(--tbm-navy) !important;
  color: rgba(255,255,255,0.8) !important;
  padding: 4rem 2rem 2rem !important;
}

footer h3,
footer h4,
.site-footer h3,
.site-footer h4 {
  font-family: "Montserrat", sans-serif !important;
  color: #fff !important;
  font-weight: 700 !important;
}

footer a,
.site-footer a {
  color: rgba(255,255,255,0.7) !important;
  transition: color 0.3s ease !important;
}

footer a:hover,
.site-footer a:hover {
  color: var(--tbm-green) !important;
}

/* ── GOOGLE REVIEWS BADGE (fixed bottom-right) ── */
.reviews-badge-fixed,
.reviews-badge {
  position: fixed !important; bottom: 24px !important; right: 24px !important; z-index: 999 !important;
  background: #fff !important; border-radius: var(--radius) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
  padding: 12px 16px !important; display: flex !important;
  align-items: center !important; gap: 10px !important;
  text-decoration: none !important; color: var(--tbm-navy) !important;
  transition: all 0.3s ease !important;
  border: 1px solid #E2E8F0 !important;
}
.reviews-badge-fixed:hover,
.reviews-badge:hover { transform: translateY(-3px) !important; box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important; }
.reviews-badge-fixed .stars,
.reviews-badge .stars { color: #FCD34D !important; font-size: 1rem !important; }
.reviews-badge-fixed .rating,
.reviews-badge .rating { font-family: "Montserrat", sans-serif !important; font-weight: 800 !important; font-size: 1.5rem !important; }
.reviews-badge-fixed .label,
.reviews-badge .label { font-size: 0.7rem !important; color: #64748B !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; }

/* ── MOBILE CTA BAR ── */
.mobile-cta-bar {
  display: none !important; position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 1000 !important; background: var(--tbm-navy) !important; padding: 12px 16px !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2) !important;
}
.mobile-cta-bar .cta-flex { display: flex !important; gap: 10px !important; }
.mobile-cta-bar a {
  flex: 1 !important; display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 6px !important; padding: 14px !important; border-radius: var(--radius-sm) !important;
  font-family: "Montserrat", sans-serif !important; font-weight: 700 !important; font-size: 0.95rem !important;
  text-decoration: none !important; text-align: center !important;
}
.mobile-cta-bar .cta-call { background: #fff !important; color: var(--tbm-navy) !important; }
.mobile-cta-bar .cta-quote { background: var(--tbm-green) !important; color: #fff !important; }

/* ── SCROLL ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── FORM STYLING ── */
input, select, textarea {
  font-family: "Inter", sans-serif !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid #E2E8F0 !important;
  padding: 0.75rem 1rem !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--tbm-green) !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15) !important;
  outline: none !important;
}

/* ── CONTAINER MAX-WIDTH ── */
.container,
.wrapper,
.content-wrapper {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .mobile-cta-bar { display: block !important; }
  .reviews-badge-fixed, .reviews-badge { display: none !important; }
  .hero-proof-bar { flex-direction: column !important; gap: 1rem !important; }
  .proof-divider { width: 40px !important; height: 1px !important; }
  .hero-content-new { padding: 4rem 1.5rem !important; }
  .trust-bar, .hero-stats, .stats-bar { gap: 1.5rem !important; }
  body { padding-bottom: 72px !important; }

  section { padding: 3rem 0 !important; }

  .services-grid,
  .features-grid,
  .standard-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero h1,
  .hero-headline {
    font-size: 2rem !important;
  }

  section h2 {
    font-size: 1.75rem !important;
  }
}

/* ── SMOOTH PAGE TRANSITIONS ── */
* {
  scroll-behavior: smooth;
}

/* ── UTILITY: Green accent override ── */
.text-green, .accent, .highlight {
  color: var(--tbm-green) !important;
}

.bg-green {
  background: var(--tbm-green) !important;
}
