/* =============================================================================
   TALL BRANCH TREE SERVICE   Main Stylesheet
   Child theme of Twenty Twenty-Four
   ============================================================================= */

/* ─── Custom Fonts ───────────────────────────────────────────────────────────── */
/* Empira Demi Bold — place font files in assets/fonts/                          */
/* Required: Empira-DemiBold.woff2  and  Empira-DemiBold.woff                   */
@font-face {
  font-family: "Empira";
  src:
    url("../fonts/Empira-DemiBold.woff2") format("woff2"),
    url("../fonts/Empira-DemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */

:root {
  /* ── Tall Branch Tree Service – Brand Palette ── */
  /* #1c1c1c  Almost Black – text, headings                  */
  /* #527993  Burnt Orange – accent: buttons, icons, badges  */
  /* #666b6e  Steel Gray   – secondary text, borders         */
  /* #ffffff  White        – base background                  */

  /* Main brand colors */
  --tbts-primary: #527993; /* Orange – CTAs, links, badges */
  --tbts-secondary: #666b6e; /* Steel Gray – hover, borders */
  --tbts-dark-brand: #1c1c1c; /* Almost Black – headings, nav text */
  --tbts-darkest: #1c1c1c; /* Darkest – overlays */
  --tbts-light-bg: #ffffff; /* White – page background */
  --tbts-cream: #fdf8f6; /* Warm off-white – cards, subtle bg */

  /* Button colors */
  --tbts-button: #527993; /* Orange – buttons */
  --tbts-button-hover: #415e71; /* Darker orange – button hover */

  /* Legacy color aliases (mapped to new palette) */
  --tbts-green: #527993; /* → Orange accent */
  --tbts-green-dark: #1c1c1c; /* → Almost Black */
  --tbts-green-mid: #666b6e; /* → Steel Gray */
  --tbts-green-light: #527993; /* → Orange accent */
  --tbts-green-pale: #fdf0eb; /* → Very light orange tint (backgrounds) */
  --tbts-green-faint: #fdf8f6; /* → Warm near-white */
  --tbts-brown: #527993; /* → Orange */
  --tbts-gold: #527993;
  --tbts-star: #ff9d00; /* → Orange */
  --tbts-gold-dark: #385466; /* → Darker orange */

  /* Neutrals */
  --tbts-dark: #1c1c1c;
  --tbts-gray-800: #1c1c1c;
  --tbts-gray-600: #666b6e;
  --tbts-gray-400: #9a9fa2;
  --tbts-gray-200: #e1e5e9;
  --tbts-gray-100: #f5f5f5;
  --tbts-white: #ffffff;
  --tbts-bg: #ffffff; /* White page background */

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --section-py: 100px;
  --section-py-sm: 64px;
  --container-max: 1280px;
  --container-px: 24px;

  /* Shadows – warm neutral */
  --shadow-xs: 0 1px 3px rgba(28, 28, 28, 0.07);
  --shadow-sm: 0 2px 10px rgba(28, 28, 28, 0.08);
  --shadow-md: 0 4px 24px rgba(28, 28, 28, 0.1);
  --shadow-lg: 0 8px 40px rgba(28, 28, 28, 0.13);
  --shadow-xl: 0 16px 60px rgba(28, 28, 28, 0.17);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transition */
  --ease: all 0.3s ease;
  --ease-fast: all 0.18s ease;

  /* Premium Accents */
  --glass-bg: rgba(169, 79, 42, 0.08);
  --glass-border: rgba(169, 79, 42, 0.15);
  --glass-blur: blur(12px);
}

/* ─── Reset / Base ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tbts-gray-800);
  background-color: var(--tbts-bg);
  overflow-x: hidden;
}

body.admin-bar {
  scroll-padding-top: 92px;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--tbts-green);
  text-decoration: none;
  transition: var(--ease-fast);
}
a:hover {
  color: var(--tbts-green-dark);
}
a:focus-visible {
  outline: 3px solid var(--tbts-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

ul,
ol {
  list-style: none;
}
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* WordPress alignment */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}
.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}
.aligncenter {
  margin: 0 auto 1rem;
  display: block;
}

/* ─── Container ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  transition: var(--ease);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}

/* Header Free Quote button - add 10px gap for icon */
.header-actions .btn {
  gap: 10px;
}

.btn:focus-visible {
  outline: 3px solid var(--tbts-button);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--tbts-green);
  color: var(--tbts-white);
  border-color: var(--tbts-green);
}
.btn-primary:hover {
  background: var(--tbts-green-dark);
  border-color: var(--tbts-green-dark);
  color: var(--tbts-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--tbts-green);
  border-color: var(--tbts-green);
}
.btn-outline:hover {
  background: var(--tbts-green);
  color: var(--tbts-white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--tbts-gray-600);
  border: none;
  padding: 0;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--tbts-primary);
  text-underline-offset: 4px;
  box-shadow: none;
}
.btn-ghost:hover {
  background: transparent;
  color: var(--tbts-primary);
  transform: none;
  text-decoration-color: var(--tbts-primary);
}

/* About section outline button - black */
.about-section .btn-outline {
  color: #1c1c1c !important;
  border-color: #1c1c1c !important;
}
.about-section .btn-outline:hover {
  background: #1c1c1c !important;
  color: #ffffff !important;
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tbts-white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--tbts-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--tbts-white);
  color: var(--tbts-green-dark);
  border-color: var(--tbts-white);
}
.btn-white:hover {
  background: var(--tbts-green-pale);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}
.btn-sm {
  padding: 9px 20px;
  font-size: 0.875rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ─── Typography & Base Reversion ────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--tbts-gray-800);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--tbts-dark);
  font-weight: 700;
}
p,
li {
  font-family: var(--font-body);
}

/* ─── Container Fix ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
}

/* ─── Section Shared Styles ─────────────────────────────────────────────────── */
.section-label {
  display: inline-block !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--tbts-green-mid) !important;
  margin-bottom: 12px !important;
}

.section-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.75rem, 3.5vw, 2.625rem) !important;
  margin-bottom: 16px !important;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--tbts-gray-600);
  max-width: 640px;
}

.section-header {
  margin-bottom: 64px;
}
.section-header--center {
  text-align: center;
}
.section-header--light .section-label,
.section-header--light .section-title,
.section-header--light .section-desc,
.section-header--light .rating-text {
  color: var(--tbts-white) !important;
}
.section-header--light .rating-stars svg {
  color: var(--tbts-gold) !important;
}
.section-header--center .section-desc {
  margin-inline: auto;
}

.section-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-header--light .section-title,
.section-header--light .section-label {
  color: var(--tbts-white);
}
.section-header--light .section-label {
  color: var(--tbts-green-light);
}

/* ─── Reveal Animations ─────────────────────────────────────────────────────── */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left animation */
.reveal-from-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-from-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Drop from top animation */
.reveal-from-top {
  opacity: 0;
  transform: translateY(-60px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-from-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from bottom animation */
.reveal-from-bottom {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-from-bottom.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero-specific stagger delays ── */
/* Left content: fires first */
.hero-left.reveal-from-left {
  transition-delay: 0.1s;
}
/* Form card: fires 0.25s after left content */
.hero-form-card.reveal-from-top {
  transition-delay: 0.35s;
}
/* Info bar: fires last, after both above */
.hero-info-bar-wrap.reveal-from-bottom {
  transition-delay: 0.6s;
}

.reveal-item:nth-child(2) {
  transition-delay: 0.1s;
}
.reveal-item:nth-child(3) {
  transition-delay: 0.2s;
}
.tbts-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000001; /* Above admin bar (99999) */
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Only offset header when trust bar is present */
body.has-trust-bar .tbts-header {
  top: 40px !important;
}
.header-top-bar {
  display: none; /* Removed for clean pill design */
}
.header-main {
  margin: 0; /* Full width - no side paddings */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0; /* No corner radius */
  transition:
    margin 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  pointer-events: auto;
  display: flex;
  justify-content: stretch;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Pushes items to corners */
  height: 60px; /* Same as scrolled height */
  padding: 0 32px; /* Adjusted padding for corner alignment */
  width: 100%;
  max-width: none; /* Removed max-width to allow full pill span */
  margin: 0;
}

/* Correct Flex Layout for Items */
.site-branding {
  flex: 0 0 auto; /* Natural width */
  display: flex;
  align-items: center;
  margin-left: 10px; /* Move logo slightly toward center */
}
.header-nav {
  position: absolute; /* Center nav independently of corners */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}
.header-actions {
  flex: 0 0 auto; /* Natural width */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-right: 10px; /* Move free quote button slightly toward center */
}

/* Initially white text for transparent state */
.tbts-header:not(.is-scrolled) .nav-menu > li > a {
  color: #ffffff !important;
  font-size: 14px !important;
}
.tbts-header:not(.is-scrolled) .site-name {
  color: var(--tbts-green-dark) !important;
}
.tbts-header:not(.is-scrolled) .site-name-link {
  color: var(--tbts-green-dark) !important;
}
.tbts-header:not(.is-scrolled) .site-tagline {
  color: rgba(255, 255, 255, 0.8) !important;
}
.tbts-header:not(.is-scrolled) .btn-primary {
  background: var(--tbts-green);
  border: none;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 600;
}
.tbts-header:not(.is-scrolled) .hamburger-bar {
  background: #ffffff;
}

/* Navbar transparent in hero section (not scrolled) */
.tbts-header:not(.is-scrolled) .header-main {
  background: linear-gradient(
    to bottom,
    rgba(6, 17, 23, 0.95) 0%,
    rgba(6, 17, 23, 0.7) 70%,
    rgba(6, 17, 23, 0.3) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none; /* Remove border */
}

/* Logo invert in hero (not scrolled) state - DESKTOP ONLY */
@media (min-width: 1025px) {
  .tbts-header:not(.is-scrolled) .site-branding img,
  .tbts-header:not(.is-scrolled) .site-branding .custom-logo,
  .tbts-header:not(.is-scrolled) .site-branding .site-logo {
    filter: invert(1) brightness(2) !important;
    transition: filter 0.4s ease !important;
  }
}

/* Remove logo invert effect when mobile nav is open */
.header-nav.is-open ~ .header-inner .site-branding img,
.header-nav.is-open ~ .header-inner .site-branding .custom-logo,
.header-nav.is-open ~ .header-inner .site-branding .site-logo,
.header-nav.is-open + .header-inner .site-branding img,
.header-nav.is-open + .header-inner .site-branding .custom-logo,
.header-nav.is-open + .header-inner .site-branding .site-logo {
  filter: none !important;
}

/* Also target when header has open nav class */
.tbts-header.nav-open .site-branding img,
.tbts-header.nav-open .site-branding .custom-logo,
.tbts-header.nav-open .site-branding .site-logo {
  filter: none !important;
}

/* ─── MOBILE NAVIGATION OVERRIDE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tbts-header {
    top: 0 !important;
    margin-top: 0 !important;
    position: fixed !important;
    pointer-events: auto;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
    transition: top 0s !important; /* instant snap — no gap flash */
    z-index: 999999 !important; /* Extra high */
  }
  /* Trust bar present: navbar sits flush immediately below the 40px bar */
  body.has-trust-bar .tbts-header {
    top: 40px !important;
    margin-top: 0 !important;
    z-index: 1000001 !important;
  }
  /* Removed admin bar offsets to stick to top edge */
  .header-main {
    margin: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important; /* solid white — kills transparent gap */
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
  }
  .header-inner {
    height: 72px !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: none !important;
  }
  .site-branding {
    position: relative !important;
    z-index: 100001 !important;
  }
  .header-actions {
    display: flex !important;
    margin-left: auto !important;
    position: relative !important;
    z-index: 100001 !important;
  }
  .header-actions .btn {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
  }
  .hamburger-bar {
    background: var(--tbts-green-dark) !important;
    height: 2px !important;
  }

  /* Full Screen Overlay - Starts below the header area */
  .header-nav {
    position: fixed !important;
    top: 72px !important; /* Height of header (72px) */
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 72px) !important;
    height: calc(100dvh - 72px) !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease !important;
    z-index: 1000000 !important; /* Just below header branding */
  }
  body.has-trust-bar .header-nav {
    top: 112px !important; /* 40px Trust Bar + 72px Header */
    height: calc(100vh - 112px) !important;
  }
  /* Removed admin bar offsets for overlay to maintain flush alignment */

  .header-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .nav-menu {
    flex-direction: column !important;
    gap: 32px !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
    transform: none !important;
  }
}

/* ─── Admin Bar Support ─── */
/* Removed offsets to ensure elements stick to the very top edge */
.admin-bar .trust-bar {
  top: 0 !important;
}
.admin-bar.has-trust-bar .tbts-header {
  top: 40px !important;
}
.admin-bar:not(.has-trust-bar) .tbts-header {
  top: 0 !important;
}

/* Scrolled State - Scroll-based animation to top: 0 */
body:not(.has-trust-bar) .tbts-header.is-scrolled {
  top: 0 !important; /* Moves to top on scroll when no trust bar */
}
body.has-trust-bar .tbts-header.is-scrolled {
  top: 40px !important; /* Stay below trust bar even when scrolled */
}
.tbts-header.is-scrolled .header-main {
  margin-top: 0;
  margin: 0; /* Full width - no side paddings */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.05);
  border-radius: 0; /* No corner radius */
}
.tbts-header.is-scrolled .header-inner {
  height: 60px; /* Reduced from 72px */
}
.tbts-header.is-scrolled .nav-menu > li > a {
  color: var(--tbts-gray-800) !important;
}
.tbts-header.is-scrolled .site-name {
  color: var(--tbts-green-dark) !important;
}
.tbts-header.is-scrolled .site-name-link {
  color: var(--tbts-green-dark) !important;
}
.tbts-header.is-scrolled .btn-primary {
  background: var(--tbts-green) !important;
  color: var(--tbts-white) !important;
}

/* Logo back to normal when scrolled */
.tbts-header.is-scrolled .site-branding img,
.tbts-header.is-scrolled .site-branding .custom-logo,
.tbts-header.is-scrolled .site-branding .site-logo {
  filter: none !important;
  transition: filter 0.4s ease !important;
}

/* header-main side margins removed on mobile — handled by the mobile
   navigation override block above with !important to avoid a gap */
@media (max-width: 1024px) {
  .header-main {
    margin: 0 !important; /* no side margins; prevents layout gap */
  }
}
.reveal-item:nth-child(4) {
  transition-delay: 0.3s;
}
.reveal-item:nth-child(5) {
  transition-delay: 0.4s;
}
.reveal-item:nth-child(6) {
  transition-delay: 0.5s;
}

/* ─── Floating Call Button ───────────────────────────────────────────────────── */
.floating-call-btn {
  display: none; /* Hidden - replaced by tbts-floating-actions */
}

/* Site Branding */
.site-branding {
  flex-shrink: 0;
}
.site-name-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-name-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.site-name-text {
  display: flex;
  flex-direction: column;
}
.site-name {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--tbts-green-dark) !important; /* Default color with !important */
  line-height: 1.1;
}
.site-tagline {
  font-size: 0.7rem;
  color: var(--tbts-gray-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-branding .custom-logo,
.site-branding .site-logo {
  max-height: 56px;
  width: auto;
  display: block;
}

/* Navigation */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px; /* Increased gap between links */
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li > a {
  display: block;
  padding: 8px 4px; /* Reduced side padding slightly for underline fit */
  margin: 0 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tbts-gray-800);
  transition: var(--ease-fast);
  position: relative;
}
.nav-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tbts-green-dark);
  transition: width 0.3s ease;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current_page_item > a::after {
  width: 100%;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
  color: var(--tbts-green-dark);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  padding: 8px;
}
.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--tbts-gray-800);
  border-radius: 2px;
  transition: var(--ease-fast);
}
.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--tbts-green-dark);
}
.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--tbts-green-dark);
}

/* Mobile Nav Overlay */
@media (max-width: 768px) {
  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    transform: scale(1.05);
    pointer-events: none;
  }
  .header-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
  }
  .nav-menu {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    width: 100%;
  }
  .nav-menu > li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    transition-delay: calc(var(--item-index, 0) * 0.1s);
  }
  .header-nav.is-open .nav-menu > li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-menu > li > a {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1c1c1c !important;
    font-family: var(--font-heading);
    padding: 10px;
    margin: 0;
  }

  /* Ensure mobile nav links are always visible */
  .header-nav.is-open .nav-menu > li > a {
    color: #1c1c1c !important;
  }
  .nav-menu > li > a::after {
    display: none; /* Hide underline on mobile */
  }
  .mobile-toggle {
    display: flex;
    z-index: 1001; /* Above overlay */
    position: relative;
  }
  .hamburger-bar {
    background: var(--tbts-green-dark) !important;
  }
}

/* Sticky header logic - Simplified for pill */
.tbts-header.is-scrolled .header-main {
  box-shadow: var(--shadow-lg);
}

/* Offset for floating header */
.site-content {
  padding-top: 0; /* Since it's floating, let the content sit under it or adjust if needed */
}
.tbts-header.is-scrolled {
  transform: translateY(0);
}

/* ─── HERO SECTION (Split Layout) ────────────────────────────────────────────── */

/* ── Prevent Testimonials rating stacking bug ── */
@media (max-width: 768px) {
  .testimonials-rating-summary {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .rating-stars {
    margin-bottom: 8px !important;
  }
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .about-content-col {
    order: 2 !important;
  }
  .about-image-col {
    order: 1 !important;
  }
}

/* Section wrapper */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  min-height: 70svh;
  background: #061117;
  overflow: hidden;
  padding-bottom: 48px;
}

/* ── Split Layout ── */
.hero-split-layout {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ── Left Panel (Dark Background) ── */
.hero-left-panel {
  flex: 0 0 45%;
  background: #061117;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 140px 60px 80px 80px;
  position: relative;
  z-index: 10;
}

/* ── Right Panel (Worker Image) ── */
.hero-right-panel {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
  height: 100%;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-worker-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-eyebrow {
  font-size: 0.9375rem; /* slightly larger */
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tbts-primary);
  margin-bottom: 18px;
}

.hero-title {
  font-family: "Empira", "Outfit", var(--font-heading), sans-serif;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 20px;
}
.hero-title-accent {
  color: var(--tbts-primary);
  font-family: "Empira", "Outfit", var(--font-heading), sans-serif;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 460px;
}

/* CTA Buttons */
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-btn-primary,
.hero-btn-dark-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

/* Arrow circle inside buttons */
.btn-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
  transition: var(--ease);
}
.hero-btn-primary:hover .btn-arrow-circle,
.hero-btn-dark-outline:hover .btn-arrow-circle {
  transform: translateX(2px);
}
.hqf-submit .btn-arrow-circle {
  border-color: rgba(255, 255, 255, 0.7);
}
.hqf-submit:hover .btn-arrow-circle {
  transform: translateX(2px);
}
.hero-btn-primary {
  background: var(--tbts-primary);
  color: #ffffff;
  border-color: var(--tbts-primary);
}
.hero-btn-primary:hover {
  background: var(--tbts-button-hover);
  border-color: var(--tbts-button-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(208, 89, 41, 0.4);
}
.hero-btn-dark-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
}
.hero-btn-dark-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Trust Badges */
.hero-trust {
  display: flex;
  flex-wrap: nowrap; /* Prevent vertical stacking as requested */
  gap: 14px 24px;
  overflow-x: auto; /* Allow scrolling if they don't fit on very small screens */
  scrollbar-width: none; /* Hide scrollbar Firefox */
  -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
  padding-bottom: 5px;
}
.hero-trust::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #5279937f;
  border: 1px solid rgba(112, 145, 161, 0.3);
  color: #ffff;
  flex-shrink: 0;
}

/* ── Floating Info Bar (between hero & next section) ── */
.hero-info-bar-wrap {
  position: relative;
  z-index: 20;
  padding-inline: 40px;
}
.hero-info-bar {
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.13),
    0 2px 8px rgba(0, 0, 0, 0.06);
  margin: -50px auto 0;
  max-width: 1400px; /* Increased width */
  padding-inline: 24px;
}
.hero-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 24px; /* Added gap for balance */
}
.hero-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 20px;
}

.hero-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tbts-primary);
  width: 26px;
  height: 26px;
}
.hero-info-icon--star {
  color: var(--tbts-primary);
}

.hero-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-info-label {
  font-size: 0.75rem;
  color: var(--tbts-gray-400);
  font-weight: 500;
}
.hero-info-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tbts-dark);
  text-decoration: none;
}
a.hero-info-value:hover {
  color: var(--tbts-primary);
}
.hero-info-sub {
  font-size: 0.8125rem;
  color: var(--tbts-gray-500);
  font-weight: 400;
}

.hero-info-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.hero-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -12px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-avatar--1 {
  background-image: url("https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=100&h=100&fit=crop&crop=face");
  margin-left: 0;
}
.hero-avatar--2 {
  background-image: url("https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=100&h=100&fit=crop&crop=face");
}
.hero-avatar--3 {
  background-image: url("https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=100&h=100&fit=crop&crop=face");
}
.hero-avatar--4 {
  background-image: url("https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=100&h=100&fit=crop&crop=face");
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-info-bar-wrap {
    padding-inline: 24px;
  }
  .hero-left-panel {
    padding: 160px 50px 60px 50px;
  }
}

@media (max-width: 860px) {
  .hero-split-layout {
    flex-direction: column;
  }
  .hero-left-panel {
    flex: none;
    width: 100%;
    padding: 140px 40px 60px 40px;
    text-align: center;
  }
  .hero-right-panel {
    flex: none;
    width: 100%;
    min-height: 400px;
  }
  .hero-subtitle {
    max-width: 100%;
  }
  .hero-info-bar-wrap {
    padding-inline: 16px;
  }
  .hero-info-bar {
    margin-top: -30px;
    border-radius: 12px;
  }
  .hero-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-info-item {
    border-right: none;
    border-bottom: 1px solid var(--tbts-gray-200);
  }
  .hero-info-item:nth-child(odd) {
    border-right: 1px solid var(--tbts-gray-200);
  }
  .hero-info-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .hero-section {
    min-height: auto;
  }
  .hero-left-panel {
    padding: 120px 24px 50px 24px;
  }
  .hero-right-panel {
    min-height: 300px;
    clip-path: none;
  }
  .hero-eyebrow {
    font-size: 0.875rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 0.9375rem;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .hero-ctas a {
    width: 100%;
    justify-content: center;
  }
  .hero-btn-primary,
  .hero-btn-dark-outline {
    padding: 12px 18px;
    font-size: 0.875rem;
  }
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    justify-items: start;
    margin-top: 32px;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
  .hero-trust-item {
    font-size: 0.8125rem;
  }
  .hero-trust-icon {
    width: 28px;
    height: 28px;
  }
  .hero-info-bar-wrap {
    padding-inline: 12px;
  }
  .hero-info-bar {
    margin-top: -20px;
    border-radius: 10px;
    padding-inline: 0;
  }
  .hero-info-grid {
    grid-template-columns: 1fr;
  }
  .hero-info-item {
    border-right: none !important;
    border-bottom: 1px solid var(--tbts-gray-200) !important;
  }
  .hero-info-item:last-child {
    border-bottom: none !important;
  }
  .site-content {
    padding-top: 0 !important;
  }
}

/* ─── ABOUT SECTION ──────────────────────────────────────────────────────────── */
.about-section {
  background: #faf8f5; /* warm off-white matching reference */
  overflow: hidden;
  position: relative;
}

/* ── 2-column grid ── */
.about-inner {
  display: grid;
  grid-template-columns: 48% 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1320px;
  margin-inline: auto;
  padding: 60px 60px 60px 40px;
}

/* ══════════════════════════════════════════════
   LEFT COLUMN — PHOTO COLLAGE
   ══════════════════════════════════════════════ */
.about-col--photo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Vertical "ABOUT US" strip ── */
.about-vertical-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-right: 20px;
  margin-top: -60px;
}

.about-vertical-title .about-vertical-line {
  display: block;
  width: 1.5px;
  height: 40px;
  background: #9a9fa2;
}

.about-vertical-title span:not(.about-vertical-line) {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #9a9fa2;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Collage container ── */
.about-collage {
  position: relative;
  width: 100%;
  height: 500px;
}

/* Back photo — landscape, slightly larger, offset top-left */
.about-photo-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  z-index: 1;
}

.about-photo-back .about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

/* Blue decorative square — sits behind front photo, offset right-bottom */
.about-deco-rect {
  position: absolute;
  bottom: 60px;
  right: 22%;
  width: 90px;
  height: 90px;
  background: #2c567e; /* muted teal-blue as in reference */
  border-radius: 8px;
  z-index: 2;
}

/* Front photo — arborist, smaller, overlaps bottom-right */
.about-photo-front {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58%;
  height: 65%;
  z-index: 3;
}

.about-photo-front .about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* Botanical leaf SVG deco — bottom-center of collage */
.about-leaf-deco {
  position: absolute;
  bottom: -12px;
  left: 42%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  z-index: 4;
  pointer-events: none;
}

.about-leaf-deco svg {
  width: 100%;
  height: 100%;
}

/* ══════════════════════════════════════════════
   RIGHT COLUMN — TEXT CONTENT
   ══════════════════════════════════════════════ */
.about-col--content {
  position: relative;
  display: flex;
  align-items: center;
}

.about-content-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Eyebrow label */
.about-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}

.about-label-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tbts-primary);
}

/* Heading */
.about-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--tbts-dark);
  line-height: 1.2;
  margin-bottom: 18px;
}

.about-heading-accent {
  color: #2a4f69; /* blue, matching reference "Delivered with Care." */
  display: block;
}

/* Description */
.about-description {
  font-size: 0.9375rem;
  color: var(--tbts-gray-600);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 440px;
}

/* Cursive signature */
.about-signature {
  margin-bottom: 22px;
}

.about-signature-svg {
  width: 200px;
  height: auto;
  display: block;
}

/* Horizontal rule divider */
.about-divider {
  border: none;
  border-top: 1px solid #e0dbd4;
  margin-bottom: 22px;
}

/* ── Feature Grid: 2 columns ── */
.about-feature-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}

.about-feature-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Filled circle icon */
.about-feature-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #2a4f69;
  margin-top: 2px;
}

.about-feature-text h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tbts-dark);
  margin-bottom: 5px;
  line-height: 1.35;
  font-family: var(--font-body);
}

.about-feature-text p {
  font-size: 0.825rem;
  color: var(--tbts-gray-600);
  line-height: 1.55;
  margin: 0;
}

/* ── CTA Buttons ── */
.about-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.about-btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tbts-primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
  letter-spacing: 0.04em;
}

.about-btn-quote:hover {
  background: var(--tbts-button-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

.about-btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--tbts-dark);
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #d4cfc8;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.about-btn-phone:hover {
  border-color: var(--tbts-primary);
  color: var(--tbts-primary);
  background: rgba(37, 99, 235, 0.05);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .about-inner {
    padding: 60px 48px 60px 32px;
    gap: 48px;
  }
}

@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 50% 1fr;
    padding: 48px 32px;
    gap: 36px;
  }
  .about-collage {
    height: 360px;
  }
}

@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
    padding: 56px 28px;
    gap: 40px;
  }
  .about-col--photo {
    order: 2;
  }
  .about-col--content {
    order: 1;
  }
  .about-collage {
    height: 340px;
  }
  .about-heading {
    font-size: 1.875rem;
  }
  .about-description {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .about-inner {
    padding: 40px 20px;
  }
  .about-collage {
    height: 280px;
  }
  .about-vertical-title {
    display: none;
  }
  .about-heading {
    font-size: 1.625rem;
  }
  .about-feature-blocks {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-ctas {
    flex-direction: column;
    width: 100%;
  }
  .about-btn-quote,
  .about-btn-phone {
    width: 100%;
    justify-content: center;
  }
  .about-deco-rect {
    width: 64px;
    height: 64px;
  }
  .about-leaf-deco {
    width: 64px;
    height: 64px;
  }
}

/* ─── SERVICES SECTION ───────────────────────────────────────────────────────── */
.services-section {
  background: #f4f4f4;
  position: relative;
  z-index: 5;
}

.services-inner {
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: stretch;
  max-width: 1320px;
  margin-inline: auto;
  padding: 72px 60px 72px 48px;
  gap: 48px;
}

/* ══════════════════════════════════════════════
   LEFT COLUMN
   ══════════════════════════════════════════════ */
.services-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Section Header ── */
.services-header {
  margin-bottom: 32px;
}

.services-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.services-label-icon {
  color: var(--tbts-primary);
  display: flex;
  align-items: center;
}

.services-label-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tbts-primary);
}

.services-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--tbts-dark);
  line-height: 1.2;
}

.services-heading em {
  font-style: italic;
  font-weight: 400;
}

/* ── Service Card List ── */
.svc-list {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e0d8;
}

.svc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e5e0d8;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
  position: relative;
  outline: none;
}

.svc-item:last-child {
  border-bottom: none;
}

.svc-item:hover:not(.is-active) {
  background: #f3ede5;
}

/* Active state — dark teal background */
.svc-item.is-active {
  background: #2c4a5a;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Icon */
.svc-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0ece5;
  color: #2c4a5a;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.svc-item.is-active .svc-item-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Body */
.svc-item-body {
  flex: 1;
  min-width: 0;
}

.svc-item-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tbts-dark);
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color 0.25s ease;
  font-family: var(--font-body);
}

.svc-item.is-active .svc-item-title {
  color: #ffffff;
}

.svc-item-desc {
  font-size: 0.8125rem;
  color: var(--tbts-gray-600);
  line-height: 1.5;
  margin: 0;
  transition: color 0.25s ease;
}

.svc-item.is-active .svc-item-desc {
  color: rgba(255, 255, 255, 0.72);
}

/* Arrow */
.svc-item-arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #d4cfc8;
  color: #6b6560;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
  text-decoration: none;
}

.svc-item:hover:not(.is-active) .svc-item-arrow {
  border-color: var(--tbts-primary);
  color: var(--tbts-primary);
}

.svc-item.is-active .svc-item-arrow {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* ══════════════════════════════════════════════
   RIGHT COLUMN — IMAGE PANEL
   ══════════════════════════════════════════════ */
.services-right {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  min-height: 480px;
}

/* Image container */
.svc-image-panel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  min-height: 480px;
}

/* All images stacked, crossfade on active */
.svc-tabpanel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
}

.svc-tabpanel.is-active {
  opacity: 1;
}

.svc-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.svc-panel-img.is-active {
  opacity: 1;
}

/* ── Emergency CTA Card (overlapping bottom-right) ── */
.svc-cta-card {
  position: absolute;
  bottom: -10px;
  right: -24px;
  width: 220px;
  background: #1c2a33;
  border-radius: 16px;
  padding: 24px 22px;
  color: #ffffff;
  z-index: 10;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.svc-cta-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.svc-cta-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin-bottom: 18px;
}

.svc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tbts-primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
  letter-spacing: 0.04em;
}

.svc-cta-btn:hover {
  background: var(--tbts-button-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

.svc-cta-btn-icon {
  display: flex;
  align-items: center;
}

.svc-cta-btn-arrow {
  display: flex;
  align-items: center;
  margin-left: 2px;
  opacity: 0.8;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .services-inner {
    padding: 64px 40px;
    gap: 36px;
  }
  .svc-cta-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 40px auto 20px;
    width: 100%;
    max-width: 400px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-radius: 12px;
  }
  .svc-cta-title {
    margin-bottom: 0;
    font-size: 0.9375rem;
  }
  .svc-cta-desc {
    display: none;
  }
}

@media (max-width: 1024px) {
  .services-inner {
    grid-template-columns: 1fr;
    padding: 56px 32px;
    gap: 0;
  }
  .services-right {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
    min-height: auto;
    border-radius: 16px;
  }
  .svc-image-panel {
    position: relative;
    min-height: 360px;
    height: 360px;
    border-radius: 16px;
  }
  .svc-panel-img,
  .svc-tabpanel {
    border-radius: 16px;
  }
  .svc-cta-card {
    margin: 24px auto 0;
  }
}

@media (max-width: 640px) {
  .services-inner {
    padding: 44px 20px;
  }
  .svc-item {
    padding: 14px 16px;
    gap: 12px;
  }
  .svc-item-icon {
    width: 38px;
    height: 38px;
  }
  .services-right {
    min-height: 280px;
  }
  .svc-image-panel {
    min-height: 280px;
  }
}

/* ─── CTA BANNER SECTION ─────────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(17, 17, 17, 0.7),
    rgba(17, 17, 17, 0.3),
    rgba(17, 17, 17, 0.7)
  );
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-banner-icon {
  display: inline-block;
  color: var(--tbts-primary);
  margin-bottom: 16px;
}

.cta-banner-sub {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  opacity: 0.95;
  color: #ffffff;
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 36px;
  line-height: 1.1;
  color: #ffffff;
}

.cta-banner-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.cta-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--tbts-primary);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(208, 89, 41, 0.3);
}

.cta-banner-btn:hover {
  background: #ffffff;
  color: var(--tbts-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-banner-btn-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: border-color 0.2s ease;
}

.cta-banner-btn:hover .cta-banner-btn-circle {
  border-color: #ffffff;
}

.cta-banner-btn--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.cta-banner-btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 56px 0;
  }
  .cta-banner-sub {
    font-size: 1.125rem;
  }
  .cta-banner-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .cta-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── ABOUT SECTION ──────────────────────────────────────────────────────────── */

.about-section {
  padding: var(--section-py) 0;
  background: #f8f9fa; /* Lighter gray background */
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Content first, then image */
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about-main-img,
.about-img-placeholder {
  width: 100%;
  height: 550px; /* Reduced from 650px */
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-img-placeholder {
  background: var(--tbts-green-pale);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.about-img-placeholder span {
  font-size: 4rem;
}

/* Floating Badges */
.about-badge {
  position: absolute;
  background: var(--tbts-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--tbts-gray-200); /* Increased visibility for white-on-white clarity */
  padding: 14px 18px;
}
.about-badge--experience {
  bottom: -20px;
  left: -20px;
  text-align: center;
  z-index: 2;
}

.about-badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--tbts-green);
  line-height: 1;
}

.about-badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tbts-gray-600);
  max-width: 100px;
  line-height: 1.3;
}

/* Secondary Image */
.about-secondary-image {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--tbts-white);
  z-index: 3;
}

.about-lead {
  font-size: 1.125rem;
  color: var(--tbts-gray-800);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.65;
}
.about-body {
  color: var(--tbts-gray-600);
  margin-bottom: 32px;
  line-height: 1.75;
}

.about-highlights {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-highlight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about-highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--tbts-green-pale);
  color: var(--tbts-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-highlight-item strong {
  display: block;
  font-weight: 700;
  color: var(--tbts-dark);
  margin-bottom: 3px;
}
.about-highlight-item p {
  color: var(--tbts-gray-600);
  font-size: 0.9rem;
  margin: 0;
}
.about-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.about-ctas-vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ─── STATS SECTION ──────────────────────────────────────────────────────────── */
.stats-section {
  padding: var(--section-py) 0;
  background: var(--tbts-white);
  position: relative;
}

.stats-header {
  text-align: center;
  margin-bottom: 60px;
}

.stats-header .section-desc {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.stats-bar-container {
  background: var(--tbts-green-dark);
  border-radius: 0;
  padding: 40px 60px;
  box-shadow: 0 20px 40px rgba(64, 57, 39, 0.15);
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}


.stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.stat-bar-item {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  position: relative;
}

.stat-bar-icon {
  width: 60px;
  height: 60px;
  background: var(--tbts-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tbts-white);
  flex-shrink: 0;
}

/* ─── STATS BAR SECTION ──────────────────────────────────────────────────────── */
.stats-bar-section {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
  color: #ffffff;
}

.stats-bar-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.stats-bar-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Crop to sky part as requested */
}

.stats-bar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.55); /* Reduced opacity for more visibility */
}

.stats-bar-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin-inline: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 40px;
}

/* Responsive Stats Section */
@media (max-width: 1024px) {
  .stats-bar-section {
    padding-inline: 40px; /* Space outside the card */
  }
  .stats-bar-container {
    padding: 40px 48px; /* Increased padding */
  }
}

@media (max-width: 768px) {
  .stats-bar-section {
    padding-inline: 20px; /* Space outside the card */
  }
  .stats-bar-container {
    padding: 40px 32px; /* Increased padding */
  }
}

.stats-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
  position: relative;
}

.stat-icon {
  width: 54px;
  height: 54px;
  color: var(--tbts-primary);
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-number {
  font-family: "Empira", serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-suffix {
  font-family: "Empira", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tbts-primary);
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.stat-divider {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-bar-inner {
    flex-wrap: wrap;
    gap: 40px 0;
  }
  .stat-item {
    flex: 0 0 50%;
  }
  .stat-divider {
    display: none;
  }
}

@media (max-width: 640px) {
  .stat-item {
    flex: 0 0 100%;
    justify-content: flex-start;
  }
  .stat-number {
    font-size: 2.25rem;
  }
}

/* ─── GALLERY SECTION ────────────────────────────────────────────────────────── */
.gallery-section {
  padding: 100px 0;
  background: #ffffff;
  overflow: hidden;
}

.gallery-container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 48px;
}

/* ── Header Row ── */
.gallery-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.gallery-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.gallery-label-icon {
  color: var(--tbts-primary);
  display: flex;
}

.gallery-label-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tbts-primary);
}

.gallery-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--tbts-dark);
  margin: 0;
  line-height: 1.1;
}

.gallery-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tbts-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.gallery-view-all-btn:hover {
  background: var(--tbts-dark);
  color: #ffffff;
  border-color: var(--tbts-dark);
}

.gallery-view-all-btn .btn-arrow-circle {
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.gallery-view-all-btn:hover .btn-arrow-circle {
  transform: translateX(3px);
}

/* ── Slider Wrapper ── */
.gallery-slider-wrapper {
  position: relative;
  margin-inline: -15px; /* Offset slide gap */
}

.gallery-slider-viewport {
  overflow: hidden;
  padding: 10px 15px;
}

.gallery-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-slide {
  flex: 0 0 33.333%;
  padding: 0 15px;
}

.gallery-slide-inner {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  overflow: hidden;
  background: var(--tbts-gray-100);
  cursor: pointer;
}

.gallery-slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-slide-inner:hover img {
  transform: scale(1.08);
}

/* Overlay */
.gallery-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-slide-inner:hover .gallery-slide-overlay {
  opacity: 1;
}

.gallery-slide-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tbts-primary);
  margin-bottom: 4px;
}

.gallery-slide-title {
  color: #ffffff;
  font-size: 1.125rem;
  margin: 0;
  font-family: var(--font-heading);
}

/* Navigation Buttons */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--tbts-gray-200);
  color: var(--tbts-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
  background: var(--tbts-primary);
  color: #ffffff;
  border-color: var(--tbts-primary);
  box-shadow: 0 6px 20px rgba(208, 89, 41, 0.25);
}

.gallery-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.gallery-prev {
  left: -27px;
}

.gallery-next {
  right: -27px;
}

/* Responsive */
@media (max-width: 1100px) {
  .gallery-slide {
    flex: 0 0 50%;
  }
}

@media (max-width: 768px) {
  .gallery-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .gallery-container {
    padding-inline: 24px;
  }
  .gallery-nav-btn {
    width: 44px;
    height: 44px;
  }
  .gallery-prev {
    left: -15px;
  }
  .gallery-next {
    right: -15px;
  }
}

@media (max-width: 600px) {
  .gallery-slide {
    flex: 0 0 100%;
  }
}

/* ─── GALLERY HIGHLIGHTS SECTION ─────────────────────────────────────────────── */
.gallery-highlights-section {
  padding-bottom: 100px; /* Space after gallery content */
  background: #ffffff;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--tbts-cream);
  border-radius: 16px;
  border: 1px solid var(--tbts-gray-100);
  transition: all 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: var(--tbts-primary);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: var(--tbts-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(208, 89, 41, 0.1);
}

.highlight-card:hover .highlight-icon {
  background: var(--tbts-primary);
  color: #ffffff;
}

.highlight-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tbts-dark);
  margin: 0 0 8px 0;
}

.highlight-desc {
  font-size: 0.875rem;
  color: var(--tbts-gray-600);
  line-height: 1.5;
  margin: 0;
}

/* Responsive Highlights */
@media (max-width: 1200px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  .gallery-highlights-section {
    padding-bottom: 60px;
  }
}

/* ─── TESTIMONIALS SECTION ───────────────────────────────────────────────────── */
.testimonials-section {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--tbts-white);
  overflow: hidden;
}
.testimonials-section .container {
  position: relative;
  z-index: 1;
}
.testimonials-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

.testimonials-rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.rating-stars {
  display: flex;
  gap: 3px;
  color: var(--tbts-star);
}
.rating-text {
  color: var(--tbts-gray-600);
  font-size: 0.9375rem;
}

/* Marquee Styles */
.testimonials-marquee {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  /* Premium side-fade gradients - wider visible area */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.testimonials-track {
  display: flex;
  align-items: stretch;
  gap: 28px;
  width: max-content;
  animation: testimonialsMarquee 45s linear infinite;
  will-change: transform;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  width: min(400px, 85vw); /* Fluid width for small screens */
  flex-shrink: 0;
  background: #ffffff !important; /* Solid white card */
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-quote-icon {
  color: var(--tbts-green);
  opacity: 0.2;
  margin-bottom: 12px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--tbts-star) !important; /* Vibrant gold stars */
  margin-bottom: 20px !important;
}

.testimonial-text {
  color: var(--tbts-dark) !important; /* Dark text for white background */
  font-size: 1rem !important;
  line-height: 1.7 !important;
  margin-bottom: 28px !important;
  font-style: italic !important;
  flex: 1 !important;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tbts-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-author-info {
  flex: 1;
}

.testimonial-author-name {
  display: block !important;
  font-weight: 700 !important;
  color: var(--tbts-dark) !important; /* Dark text for white background */
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
}

.testimonial-author-role {
  display: block !important;
  color: var(--tbts-green) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  margin-top: 2px !important;
}

.testimonial-date {
  color: var(--tbts-gray-600) !important; /* Dark gray for white background */
  font-size: 0.75rem !important;
}

@keyframes testimonialsMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 14px));
  }
}

/* CTA Buttons */
.testimonials-cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.testimonials-cta-buttons {
  display: flex;
  gap: 16px;
}

/* Rating summary inline button */
.rating-text-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.google-reviews-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--tbts-gray-200);
  border-radius: 50px;
  color: var(--tbts-dark);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.google-reviews-inline-btn:hover {
  background: var(--tbts-gray-100);
  border-color: var(--tbts-gray-300);
  transform: translateY(-1px);
}

/* Responsive CTA Buttons */
@media (max-width: 640px) {
  .testimonials-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .testimonials-cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
  .rating-text-wrapper {
    flex-direction: column;
    gap: 12px;
  }
}

/* ─── BLOG LISTING & SINGLE POST ─────────────────────────────────────────────── */

/* Archive Hero */
.page-hero--blog {
  position: relative;
  padding: 140px 0 100px;
  background: var(--tbts-dark);
  overflow: hidden;
  color: #ffffff;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero--contact .page-hero-bg {
  background: #061117;
}

.page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 40, 65, 0.95) 0%,
    rgba(30, 58, 90, 0.6) 60%,
    rgba(30, 58, 90, 0.2) 100%
  );
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-hero-desc {
  font-size: 1.125rem;
  opacity: 0.85;
  max-width: 600px;
  margin-inline: auto;
}

/* Layout */
.blog-listing-section,
.blog-preview-section,
.post-content-section {
  padding: var(--section-py, 100px) 0;
  background: #ffffff;
}

.blog-layout,
.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

/* Post Cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.posts-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.post-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--tbts-gray-100);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--tbts-primary);
}

.post-card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-card-img {
  transform: scale(1.08);
}

.post-card-cat-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--tbts-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.post-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--tbts-gray-400);
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-card-title a {
  color: var(--tbts-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card-title a:hover {
  color: var(--tbts-primary);
}

.post-card-excerpt {
  font-size: 0.9375rem;
  color: var(--tbts-gray-600);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--tbts-cream);
  padding: 32px;
  border-radius: 20px;
  margin-bottom: 30px;
  border: 1px solid var(--tbts-gray-100);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--tbts-dark);
  position: relative;
  padding-bottom: 12px;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--tbts-primary);
}

/* Sidebar Search */
.search-field-wrap {
  position: relative;
}

.search-field {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border-radius: 50px;
  border: 1px solid var(--tbts-gray-200);
  background: #ffffff;
  font-size: 0.9375rem;
  transition: border-color 0.3s ease;
}

.search-field:focus {
  border-color: var(--tbts-primary);
  outline: none;
}

.search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tbts-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-submit svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.5;
}

.search-submit:hover {
  background: var(--tbts-dark);
}

.search-submit:hover svg {
  stroke: #ffffff;
}

/* Side Post Links */
.side-post-link {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  text-decoration: none;
  align-items: center;
}

.side-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tbts-gray-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.side-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-post-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tbts-dark);
  line-height: 1.3;
  margin: 0 0 4px 0;
  transition: color 0.3s ease;
}

.side-post-link:hover .side-post-title {
  color: var(--tbts-primary);
}

.side-post-date {
  font-size: 0.75rem;
  color: var(--tbts-gray-400);
  font-weight: 600;
}

/* Side Cats */
.side-cats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-cats-list li {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-cats-list li a {
  color: var(--tbts-gray-600);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.side-cats-list li a:hover {
  color: var(--tbts-primary);
}

.side-cats-list .count {
  font-size: 0.75rem;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--tbts-gray-400);
  font-weight: 700;
}

/* ── Single Post Article ── */
.post-hero {
  position: relative;
  padding: 180px 0 100px;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  background: var(--tbts-dark);
}

.post-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.post-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 17, 17, 0.9) 0%,
    transparent 100%
  );
}

.post-cats {
  margin-bottom: 20px;
}

.post-cats a {
  background: var(--tbts-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.875rem;
  opacity: 0.8;
  font-weight: 500;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Content Typography */
.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--tbts-gray-800);
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-heading);
  color: var(--tbts-dark);
  margin: 40px 0 20px;
}

.entry-content p {
  margin-bottom: 28px;
}

.entry-content blockquote {
  padding: 40px;
  background: var(--tbts-cream);
  border-left: 4px solid var(--tbts-primary);
  border-radius: 0 20px 20px 0;
  font-style: italic;
  font-size: 1.25rem;
  margin: 40px 0;
  color: var(--tbts-dark);
}

/* Post Footer */
.post-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--tbts-gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--tbts-gray-100);
  color: var(--tbts-gray-600);
  font-size: 0.8125rem;
  border-radius: 6px;
  text-decoration: none;
  margin-right: 6px;
  transition: all 0.3s ease;
}

.post-tags a:hover {
  background: var(--tbts-primary);
  color: #ffffff;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-links {
  display: flex;
  gap: 8px;
}

.share-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.share-icon.fb {
  background: #3b5998;
}
.share-icon.tw {
  background: #1da1f2;
}

.share-icon:hover {
  transform: translateY(-3px);
}

/* Sidebar CTA Card */
.sidebar-cta-card {
  background: var(--tbts-dark);
  color: #ffffff;
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 30px;
  background-image: url("http://riversidetreeservicebuffalo.com/wp-content/uploads/2026/04/footer.webp");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.sidebar-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.85);
}

.sidebar-cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.sidebar-cta-card p {
  font-size: 0.9375rem;
  opacity: 0.8;
  margin-bottom: 24px;
}

/* Responsive Blog */
@media (max-width: 1024px) {
  .blog-layout,
  .post-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .blog-sidebar,
  .post-sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .page-hero--blog,
  .post-hero {
    padding: 120px 0 60px;
    text-align: center;
  }
  .post-meta {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
}

.post-card-title a {
  color: var(--tbts-dark);
}
.post-card-title a:hover {
  color: var(--tbts-green);
}
.post-card-excerpt {
  color: var(--tbts-gray-600);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
/* ─── BLOG POST CARD PREMUM ────────────────────────────────────────────── */
.post-card {
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease !important;
}
.post-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: var(--shadow-xl) !important;
}

.post-card-read-more {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: var(--tbts-green-pale) !important;
  color: var(--tbts-green-dark) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
  margin-top: 20px !important;
  transition: var(--ease) !important;
}
.post-card-read-more:hover {
  background: var(--tbts-green) !important;
  color: var(--tbts-white) !important;
  gap: 14px !important;
}
.post-card-read-more svg {
  transition: transform 0.3s ease !important;
}
.post-card-read-more:hover svg {
  transform: translateX(4px) !important;
}

/* ─── SECONDARY HERO (BLOG/CONTACT) ─────────────────────────────────────────── */
.page-hero {
  background: var(--tbts-green-dark) !important;
  padding: 120px 0 80px !important;
  position: relative !important;
  overflow: hidden !important;
  text-align: center !important;
}

/* Page hero variants inherit from .page-hero */
.page-hero-bg {
  position: absolute !important;
  inset: 0 !important;
  background-image: url("../images/hero-bg.png") !important;
  background-size: cover !important;
  background-position: center !important;
  opacity: 0.2 !important;
  z-index: 0 !important;
}

.page-hero-inner {
  position: relative !important;
  z-index: 1 !important;
}

.page-hero-title {
  color: var(--tbts-white) !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  margin-bottom: 20px !important;
  font-weight: 800 !important;
}

.page-hero-desc {
  color: rgba(255, 255, 255, 0.85) !important;
  max-width: 700px !important;
  margin-inline: auto !important;
  font-size: 1.125rem !important;
}

/* ─── REPLY / COMMENTS SECTION ─────────────────────────────────────────── */
.comments-area {
  margin-top: 80px !important;
  padding-top: 60px !important;
  border-top: 1px solid var(--tbts-gray-200) !important;
  background: var(--tbts-bg) !important;
}
.comments-title {
  font-family: var(--font-heading) !important;
  font-size: 2rem !important;
  margin-bottom: 40px !important;
  text-align: center !important;
}
.comment-list {
  max-width: 800px !important;
  margin-inline: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
}
.comment-body {
  background: var(--tbts-white) !important;
  padding: 32px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid var(--tbts-gray-200) !important;
}
.comment-meta {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}
.comment-author img {
  border-radius: var(--radius-full) !important;
}
.comment-metadata a {
  color: var(--tbts-gray-400) !important;
  font-size: 0.85rem !important;
}
.comment-content {
  color: var(--tbts-gray-600) !important;
  line-height: 1.7 !important;
}
.reply {
  margin-top: 16px !important;
}
.comment-reply-link {
  font-weight: 700 !important;
  color: var(--tbts-green-mid) !important;
  font-size: 0.9rem !important;
}

/* Comment Form */
.comment-respond {
  max-width: 800px !important;
  margin: 60px auto 0 !important;
  background: var(--tbts-white) !important;
  padding: 48px !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-xl) !important;
  border: 1px solid var(--tbts-green-pale) !important;
}
.comment-reply-title {
  font-family: var(--font-heading) !important;
  font-size: 1.75rem !important;
  margin-bottom: 32px !important;
  display: block !important;
}
.comment-form p {
  margin-bottom: 24px !important;
}
.comment-form label {
  display: block !important;
  font-weight: 600 !important;
  color: var(--tbts-dark) !important;
  margin-bottom: 8px !important;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100% !important;
  padding: 14px 20px !important;
  border: 1.5px solid var(--tbts-gray-200) !important;
  border-radius: var(--radius-md) !important;
  background: var(--tbts-bg) !important;
  transition: var(--ease-fast) !important;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--tbts-green) !important;
  background: var(--tbts-white) !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(118, 89, 47, 0.1) !important;
}
.form-submit {
  margin-top: 32px !important;
}
.submit {
  background: var(--tbts-green) !important;
  color: var(--tbts-white) !important;
  padding: 16px 40px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: var(--ease) !important;
}
.submit:hover {
  background: var(--tbts-green-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* ─── CONTACT SECTION ────────────────────────────────────────────────────────── */
.contact-section {
  padding: var(--section-py) 0;
  background: var(--tbts-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}

/* Form Card */
.contact-form-card {
  background: var(--tbts-bg);
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tbts-gray-800);
  margin-bottom: 6px;
}
.required {
  color: #e53e3e;
  margin-left: 2px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--tbts-gray-800);
  background: var(--tbts-white);
  transition: var(--ease-fast);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--tbts-green);
  box-shadow: 0 0 0 3px rgba(118, 89, 47, 0.12);
}
.form-control::placeholder {
  color: var(--tbts-gray-400);
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
}
.form-group--hidden {
  display: none;
}
.form-submit-row {
  margin-top: 8px;
}
.form-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--tbts-gray-400);
  margin-top: 12px;
  justify-content: center;
  text-align: center;
}

/* Form Response */
.form-response {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-response.is-success {
  display: block;
  background: var(--tbts-green-faint);
  border: 1px solid var(--tbts-green-pale);
  color: var(--tbts-green-dark);
}
.form-response.is-error {
  display: block;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
}

/* Contact Info Card */
.contact-info-card {
  background: var(--tbts-white);
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: sticky;
  top: 100px;
}
.contact-info-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tbts-dark);
  margin-bottom: 28px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--tbts-green-faint);
  color: var(--tbts-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tbts-gray-400);
  margin-bottom: 3px;
}
.contact-info-value {
  font-weight: 600;
  color: var(--tbts-dark);
}
a.contact-info-value:hover {
  color: var(--tbts-green);
}

.contact-emergency-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--tbts-green);
  color: var(--tbts-white);
  border-radius: var(--radius-md);
  padding: 20px;
}
.contact-emergency-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--tbts-gold);
}
.contact-emergency-banner strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-emergency-banner p {
  font-size: 0.875rem;
  opacity: 0.85;
  margin-bottom: 12px;
}
.contact-emergency-banner .btn-white {
  font-size: 0.875rem;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
.tbts-footer {
  position: relative;
  background: var(--tbts-dark);
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

/* Ocean Wave Background */
.footer-wave-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.footer-wave {
  position: absolute;
  left: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  background-position: 0 bottom;
  transform-origin: center bottom;
}

.wave-1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 200'%3E%3Cpath fill='%23527993' fill-opacity='0.06' d='M0,100 C200,150 400,50 600,100 C800,150 1000,50 1200,100 C1400,150 1600,50 1600,100 V200 H0 Z'/%3E%3C/svg%3E");
  animation: waveMove 18s linear infinite;
  z-index: 1;
  bottom: -20px;
}

.wave-2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 200'%3E%3Cpath fill='%23a9b3b8' fill-opacity='0.04' d='M0,80 C300,30 600,130 900,80 C1200,30 1500,130 1600,80 V200 H0 Z'/%3E%3C/svg%3E");
  animation: waveMove 22s linear infinite reverse;
  z-index: 2;
  bottom: -10px;
}

.wave-3 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 200'%3E%3Cpath fill='%23527993' fill-opacity='0.03' d='M0,120 C400,170 800,70 1200,120 C1600,170 2000,70 2400,120 V200 H0 Z'/%3E%3C/svg%3E");
  animation: waveMove 14s linear infinite;
  z-index: 3;
  bottom: 0;
}

@keyframes waveMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.footer-main {
  position: relative;
  z-index: 1;
  padding: 80px 0 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 48px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--tbts-white);
  display: block;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}
.footer-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cert-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(21, 69, 95, 0.225);
  border: 1px solid rgba(184, 179, 175, 0.736);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tbts-white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: var(--ease-fast);
}
.footer-links li a:hover {
  color: var(--tbts-white);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
.footer-contact-list svg {
  color: var(--tbts-green-light);
  flex-shrink: 0;
  margin-top: 1px;
}
.footer-contact-list a {
  color: rgba(255, 255, 255, 0.6);
}
.footer-contact-list a:hover {
  color: var(--tbts-white);
}

.footer-cta {
  margin-top: 8px;
}

.footer-minimap {
  margin-top: 16px;
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-minimap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--tbts-white);
}

.footer-copyright,
.footer-credits {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}
.footer-copyright a,
.footer-credits a {
  color: rgba(255, 255, 255, 0.5);
}
.footer-copyright a:hover,
.footer-credits a:hover {
  color: var(--tbts-white);
}

/* ─── BLOG PAGE ──────────────────────────────────────────────────────────────── */
.tbts-blog-main .site-content,
.tbts-single-main .site-content {
  padding-top: 0;
}

.page-hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
  background: var(--tbts-green-dark);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--tbts-green-dark) 0%,
    var(--tbts-green) 100%
  );
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--tbts-white);
  margin-bottom: 16px;
}
.page-hero-desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto;
}
.page-hero .section-label {
  color: var(--tbts-green-light);
}

/* Blog Layout */
.blog-content-section {
  padding: 80px 0;
}
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.posts-grid--blog {
  grid-template-columns: repeat(2, 1fr);
}
.posts-grid--featured {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 40px;
}

/* Horizontal Scroll Section */
.blog-horizontal-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--tbts-gray-200);
}
.blog-horizontal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tbts-dark);
  margin-bottom: 20px;
}
.blog-horizontal-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.blog-horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}
.blog-horizontal-scroll::-webkit-scrollbar-track {
  background: var(--tbts-gray-100);
  border-radius: 3px;
}
.blog-horizontal-scroll::-webkit-scrollbar-thumb {
  background: var(--tbts-green);
  border-radius: 3px;
}
.blog-horizontal-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--tbts-white);
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--ease);
}
.blog-horizontal-item:hover {
  border-color: var(--tbts-green);
  box-shadow: var(--shadow-md);
}
.blog-horizontal-thumb {
  display: block;
  width: 100%;
  height: 160px;
  overflow: hidden;
}
.blog-horizontal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-horizontal-item:hover .blog-horizontal-thumb img {
  transform: scale(1.05);
}
.blog-horizontal-content {
  padding: 16px;
}
.blog-horizontal-title-item {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.blog-horizontal-title-item a {
  color: var(--tbts-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-horizontal-title-item a:hover {
  color: var(--tbts-green);
}
.blog-horizontal-date {
  font-size: 0.8125rem;
  color: var(--tbts-gray-500);
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar-widget {
  background: var(--tbts-white);
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--tbts-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tbts-green-pale);
}
.search-input-wrap {
  position: relative;
}
.search-field {
  width: 100%;
  padding: 10px 44px 10px 14px;
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}
.search-field:focus {
  outline: none;
  border-color: var(--tbts-green);
}
.search-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tbts-green);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.search-submit svg {
  width: 18px;
  height: 18px;
  stroke: var(--tbts-green);
  fill: none;
  stroke-width: 2.5;
}

.search-submit:hover svg {
  stroke: var(--tbts-dark);
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.recent-post-thumb {
  flex-shrink: 0;
}
.recent-post-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.recent-post-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tbts-dark);
  line-height: 1.4;
  margin-bottom: 4px;
}
.recent-post-title:hover {
  color: var(--tbts-green);
}
.recent-post-date {
  font-size: 0.75rem;
  color: var(--tbts-gray-400);
}

.categories-list {
  list-style: none;
}
.categories-list li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--tbts-gray-600);
  border-bottom: 1px solid var(--tbts-gray-100);
}
.categories-list li a:hover {
  color: var(--tbts-green);
}

.sidebar-cta {
  background: var(--tbts-green-dark);
  border-color: transparent;
}
.sidebar-cta-inner {
  text-align: center;
}
.sidebar-cta-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}
.sidebar-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--tbts-white);
  margin-bottom: 8px;
}
.sidebar-cta p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}
.sidebar-cta-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
}
.sidebar-cta-features li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-cta-features li::before {
  content: "";
  display: none;
}
.sidebar-cta .btn-primary {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}
.sidebar-cta .btn-outline {
  width: 100%;
  justify-content: center;
  color: var(--tbts-white);
  border-color: rgba(255, 255, 255, 0.3);
}
.sidebar-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--tbts-white);
}

/* No Posts */
.no-posts-message {
  text-align: center;
  padding: 80px 40px;
  background: var(--tbts-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--tbts-gray-200);
}
.no-posts-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.no-posts-message h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.no-posts-message p {
  color: var(--tbts-gray-600);
  margin-bottom: 24px;
}

/* Pagination */
.tbts-pagination {
  margin-top: 48px;
}
.tbts-pagination ul {
  display: flex;
  gap: 8px;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}
.tbts-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tbts-gray-600);
  border: 1.5px solid var(--tbts-gray-200);
  background: var(--tbts-white);
  transition: var(--ease-fast);
}
.tbts-pagination .page-numbers:hover,
.tbts-pagination .page-numbers.current {
  background: var(--tbts-green);
  border-color: var(--tbts-green);
  color: var(--tbts-white);
}
.tbts-pagination .prev,
.tbts-pagination .next {
  width: auto;
  padding: 0 16px;
}

/* ─── SINGLE POST PAGE ───────────────────────────────────────────────────────── */
.post-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}
.post-hero-image {
  position: absolute;
  inset: 0;
  background: var(--tbts-green-dark);
}
.post-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-hero-image--no-thumb {
  background: linear-gradient(135deg, #1e3a5a, #527993);
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 40, 65, 0.95) 0%,
    rgba(30, 58, 90, 0.55) 60%,
    rgba(30, 58, 90, 0.15) 100%
  );
}
.post-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 48px 0 56px;
}

.post-breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.post-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}
.post-breadcrumb a:hover {
  color: var(--tbts-white);
}
.post-breadcrumb span[aria-current] {
  color: rgba(255, 255, 255, 0.5);
}

.post-cats {
  margin-bottom: 12px;
}
.post-cats a {
  display: inline-block;
  background: var(--tbts-green);
  color: var(--tbts-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-right: 6px;
}

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.875rem);
  font-weight: 700;
  color: var(--tbts-white);
  line-height: 1.2;
  max-width: 840px;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}
.post-meta-item svg {
  color: var(--tbts-green-light);
}
.post-meta-item a {
  color: rgba(255, 255, 255, 0.65);
}
.post-meta-item a:hover {
  color: var(--tbts-white);
}

/* Post Body */
.post-body-wrapper {
  padding: 72px 0;
}
.post-body-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
.post-content-col {
  min-width: 0;
}

/* Post Content Typography */
.post-content,
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--tbts-gray-800);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
.post-content h2,
.entry-content h2 {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--tbts-dark);
  margin: 40px 0 16px;
  padding-top: 12px;
  border-top: 2px solid var(--tbts-green-pale);
}
.post-content h3,
.entry-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tbts-dark);
  margin: 32px 0 12px;
}
.post-content p,
.entry-content p {
  margin-bottom: 20px;
}
.post-content ul,
.entry-content ul,
.post-content ol,
.entry-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}
.post-content li,
.entry-content li {
  margin-bottom: 8px;
}
.post-content ul li {
  list-style: disc;
}
.post-content ol li {
  list-style: decimal;
}
.post-content blockquote,
.entry-content blockquote {
  border-left: 4px solid var(--tbts-green);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--tbts-green-faint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--tbts-gray-600);
}
.post-content img,
.entry-content img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}
.post-content a,
.entry-content a {
  color: var(--tbts-green);
  text-decoration: underline;
  text-decoration-color: var(--tbts-green-pale);
}
.post-content a:hover,
.entry-content a:hover {
  color: var(--tbts-green-dark);
}

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--tbts-gray-200);
}
.post-tags-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tbts-gray-600);
}
.post-tags a {
  font-size: 0.8125rem;
  padding: 4px 12px;
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: var(--radius-full);
  color: var(--tbts-gray-600);
  text-decoration: none;
  transition: var(--ease-fast);
}
.post-tags a:hover {
  background: var(--tbts-green);
  border-color: var(--tbts-green);
  color: var(--tbts-white);
}

/* Share */
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.post-share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tbts-gray-600);
}
.post-share-buttons {
  display: flex;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--ease-fast);
  text-decoration: none;
}
.share-btn--facebook {
  background: #1877f2;
  color: white;
}
.share-btn--facebook:hover {
  background: #0d65d8;
  color: white;
}
.share-btn--twitter {
  background: #000;
  color: white;
}
.share-btn--twitter:hover {
  background: #333;
  color: white;
}
.share-btn--linkedin {
  background: #0a66c2;
  color: white;
}
.share-btn--linkedin:hover {
  background: #084d9b;
  color: white;
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--tbts-gray-200);
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--tbts-gray-200);
  transition: var(--ease-fast);
}
.post-nav-link:hover {
  border-color: var(--tbts-green);
  background: var(--tbts-green-faint);
}
.post-nav-link--next {
  text-align: right;
}
.post-nav-direction {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tbts-green);
  margin-bottom: 4px;
}
.post-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tbts-dark);
  line-height: 1.3;
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--tbts-gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
}
.author-bio-avatar img {
  border-radius: var(--radius-full);
}
.author-bio-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tbts-green);
}
.author-bio-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tbts-dark);
  margin: 4px 0 8px;
}
.author-bio-desc {
  font-size: 0.9rem;
  color: var(--tbts-gray-600);
}

/* Post Sidebar Sticky CTA */
.post-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.post-sidebar-cta-inner {
  background: var(--tbts-green-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.post-sidebar-cta-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}
.post-sidebar-cta-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--tbts-white);
  margin-bottom: 10px;
}
.post-sidebar-cta-inner p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}
.post-sidebar-cta-inner .btn-primary {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}
.post-sidebar-cta-inner .btn-outline {
  width: 100%;
  justify-content: center;
  color: var(--tbts-white);
  border-color: rgba(255, 255, 255, 0.3);
}
.post-sidebar-cta-inner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--tbts-white);
}

.post-sidebar-related {
  background: var(--tbts-white);
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.related-posts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.related-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.related-post-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.related-post-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tbts-dark);
  line-height: 1.4;
  margin-bottom: 4px;
}
.related-post-title:hover {
  color: var(--tbts-green);
}
.related-post-date {
  font-size: 0.75rem;
  color: var(--tbts-gray-400);
}

/* More Posts Section */
.more-posts-section {
  padding: 80px 0;
  background: var(--tbts-bg);
  border-top: 1px solid var(--tbts-gray-200);
}
.more-posts-cta {
  text-align: center;
  margin-top: 48px;
}

/* ─── PAGE TEMPLATE ──────────────────────────────────────────────────────────── */
.page-hero--has-thumb .page-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-content-section {
  padding: 72px 0;
}
.page-content-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* ─── 404 PAGE ───────────────────────────────────────────────────────────────── */
.tbts-404-main {
  background: var(--tbts-bg);
}
.error-404-section {
  padding: 120px 0;
}
.error-404-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.error-404-visual {
  font-size: 4rem;
  margin-bottom: 12px;
}
.error-404-title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--tbts-green-pale);
  line-height: 1;
  margin-bottom: 4px;
}
.error-404-subtitle {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--tbts-dark);
  margin-bottom: 16px;
}
.error-404-desc {
  color: var(--tbts-gray-600);
  margin-bottom: 32px;
}
.error-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.error-404-search p {
  font-size: 0.9rem;
  color: var(--tbts-gray-400);
  margin-bottom: 12px;
}
.error-404-search .search-form {
  display: flex;
  gap: 10px;
}
.error-404-search input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}
.error-404-search button {
  padding: 10px 20px;
  background: var(--tbts-green);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */

/* ─── TRUST BAR SECTION ──────────────────────────────────────────────────────── */
.trust-bar {
  padding: 6px 0;
  background: #061117;
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000002; /* Above header and admin bar */
  height: 40px;
  display: flex;
  align-items: center;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

/* Trust bar scrolled state - white background, black text */
.trust-bar.is-scrolled {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.trust-bar.is-scrolled .trust-logo-tag {
  color: #1a1f2e;
}

/* Mobile/tablet: trust bar positioning forced to top edge */
@media (max-width: 1024px) {
  .trust-bar {
    top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    z-index: 1000002 !important; /* Topmost element */
  }
  .admin-bar .trust-bar {
    top: 0 !important;
  }
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
}
.trust-bar-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tbts-gray-400);
  white-space: nowrap;
}
.trust-marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* Premium side-fade gradients */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

.trust-logos-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: trustMarquee 30s linear infinite;
  padding: 10px 0;
  will-change: transform;
}

.trust-logos-track:hover {
  animation-play-state: paused;
}

.trust-logo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.8;
  filter: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.trust-logo-item:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}

@keyframes trustMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 30px)); /* Half of the track + half gap */
  }
}
.trust-logo-icon {
  font-size: 1.1rem;
}
.trust-logo-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

/* ─── FAQ SECTION ────────────────────────────────────────────────────────────── */
.faq-section {
  padding: var(--section-py) 0;
  background: var(--tbts-bg);
  position: relative;
  overflow: hidden;
}

/* Background decorative image (left side) */
.faq-bg-deco {
  position: absolute;
  left: -5%;
  top: 0;
  bottom: 0;
  width: 30%;
  z-index: 0;
}

.faq-bg-deco-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.faq-section .container {
  position: relative;
  z-index: 1;
}

/* Responsive FAQ decorative image */
@media (max-width: 1024px) {
  .faq-bg-deco {
    width: 20%;
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .faq-bg-deco {
    display: none; /* Hide deco on small tablets/mobile for clarity */
  }
}
.faq-grid {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px; /* Reduced vertical gap */
}
.faq-item {
  background: var(--tbts-white);
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--ease);
}
.faq-item.is-active {
  border-color: var(--tbts-green-light);
  box-shadow: var(--shadow-md);
}
.faq-question {
  width: 100%;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tbts-dark);
  cursor: pointer;
}
.faq-icon {
  width: 24px;
  height: 24px;
  background: var(--tbts-green-faint);
  color: var(--tbts-green);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}
.faq-item.is-active .faq-icon {
  transform: rotate(180deg);
  background: var(--tbts-green);
  color: var(--tbts-white);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.is-active .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 32px 24px;
  color: var(--tbts-gray-600);
  line-height: 1.7;
}

/* ─── PREMIUM OVERRIDES & HARDENING ─────────────────────────────────────────── */
.btn {
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
}
/* Header Free Quote button - reduced corner radius */
.header-actions .btn {
  border-radius: 8px !important;
}
.hero-quick-card {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.tbts-header.is-scrolled .header-main {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px) !important;
}
.section-title {
  color: var(--tbts-dark) !important;
}
.section-label {
  color: var(--tbts-green-mid) !important;
}

/* Responsive fixes */
@media (max-width: 900px) {
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  .hero-quick-form--horizontal .form-row-horizontal {
    flex-direction: column;
  }

  .hero-quick-form--horizontal .form-group {
    width: 100%;
    min-width: auto;
  }

  .hero-quick-form--horizontal .form-group--submit {
    width: 100%;
  }

  .hero-quick-form--horizontal .form-group--submit .btn {
    width: 100%;
  }
}

/* Large tablets */
@media (max-width: 1100px) {
  .hero-container {
    max-width: 100%;
    padding: 0 20px;
  }
  .about-grid {
    gap: 48px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-card {
    position: static;
  }
  .posts-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-layout {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }
}

/* Tablets */
@media (max-width: 900px) {
  :root {
    --section-py: 72px;
  }
  .header-main {
    position: relative;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image-col {
    order: 2;
  }
  .about-content-col {
    order: 1;
  }
  .about-badge--experience {
    right: 0;
    bottom: -16px;
  }
  .about-badge--certified {
    left: 0;
    top: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid .gallery-item:first-child {
    grid-column: span 2;
  }

  .post-body-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --section-py: 56px;
    --container-px: 16px;
  }

  .header-top-bar {
    display: none;
  }
  .site-content {
    padding-top: 72px;
  }
  body.has-trust-bar .site-content {
    padding-top: 112px; /* 40px Trust Bar + 72px Header */
  }

  .hero-section {
    padding: 80px 0 60px;
    min-height: 85vh;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-trust {
    flex-direction: column;
    gap: 10px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-grid .gallery-item:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .testimonials-track {
    grid-template-columns: 1fr;
  }
  .testimonials-controls {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }

  .contact-form-card {
    padding: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  .posts-grid--blog,
  .posts-grid--3 {
    grid-template-columns: 1fr;
  }

  .post-title {
    font-size: 1.625rem;
  }
  .post-navigation {
    grid-template-columns: 1fr;
  }
  .author-bio {
    flex-direction: column;
  }

  .section-header--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── HELPER CLASSES ────────────────────────────────────────────────────────── */
.relative-z {
  position: relative !important;
  z-index: 5 !important;
}

/* ─── SIDEBAR POLISH ─────────────────────────────────────────────────────────── */
.sidebar-widget {
  background: var(--tbts-white) !important;
  padding: 24px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 24px !important;
  border: 1px solid var(--tbts-gray-200) !important;
}
.widget-title {
  font-size: 1.125rem !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--tbts-green-pale) !important;
}
.categories-list li {
  display: flex !important;
  justify-content: space-between !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--tbts-gray-100) !important;
}
.categories-list li:last-child {
  border-bottom: none !important;
}

/* ─── UTILITIES ─────────────────────────────────────────────────────────────── */
.text-center {
  text-align: center !important;
}
.mt-12 {
  margin-top: 48px !important;
}
.mb-6 {
  margin-bottom: 24px !important;
}

/* ─── FAQ FOOTER ────────────────────────────────────────────────────────────── */
.faq-footer {
  margin-top: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.faq-footer-text {
  font-size: 1.125rem;
  color: var(--tbts-gray-600);
  margin: 0;
  font-weight: 500;
}

@media (max-width: 640px) {
  .faq-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ─── PRE-FOOTER CTA SECTION ─────────────────────────────────────────────────── */
.pre-footer-cta {
  padding: 60px 0;
  background: #f4f4f4; /* Light gray background */
  overflow: hidden;
  position: relative;
}

.pre-footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.cta-content-wrapper {
  flex: 1.2;
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
}

.cta-branch-decoration {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 180px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.cta-text-content {
  position: relative;
  z-index: 1;
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--tbts-dark);
  margin-bottom: 20px;
  line-height: 1.1;
}

.cta-description {
  font-size: 1.0625rem;
  color: var(--tbts-gray-600);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 500px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.pill-btn {
  border-radius: 50px !important;
  padding: 14px 32px !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(208, 89, 41, 0.2);
}

.cta-phone-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.phone-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--tbts-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--tbts-gray-100);
}

.phone-info {
  display: flex;
  flex-direction: column;
}

.phone-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--tbts-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.phone-number {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--tbts-dark);
  text-decoration: none;
  transition: var(--ease);
}

.phone-number:hover {
  color: var(--tbts-primary);
}

.cta-image-wrapper {
  position: absolute;
  right: 0;
  top: 20px;
  bottom: 20px;
  width: auto;
  height: calc(100% - 40px);
  max-width: 40%;
  z-index: 0;
}

.cta-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 0 0 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  display: block;
}

/* Responsive Pre-Footer CTA */
@media (max-width: 1100px) {
  .pre-footer-cta-inner {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }
  .cta-content-wrapper {
    justify-content: center;
    gap: 0;
  }
  .cta-branch-decoration {
    display: none;
  }
  .cta-description {
    margin-inline: auto;
  }
  .cta-actions {
    justify-content: center;
  }
  .cta-image-wrapper {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: 0 auto;
  }
  .cta-main-img {
    border-radius: 20px;
    height: 300px;
  }
}

@media (max-width: 640px) {
  .pre-footer-cta {
    padding: 60px 0;
  }
  .cta-actions {
    flex-direction: column;
    gap: 24px;
  }
  .cta-phone-box {
    flex-direction: row;
    text-align: left;
  }
  .cta-image-wrapper {
    max-width: 100%;
    padding: 0 15px;
  }
  .cta-main-img {
    height: 200px;
  }
}

.reveal-section,
.reveal-item {
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  opacity: 1; /* Default to visible */
}

/* Specific reveal states - hidden until .is-visible is added by JS */
.reveal-item[data-reveal="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
}
.reveal-item[data-reveal="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section.is-visible {
  opacity: 1;
}

/* =============================================================================
   RESPONSIVE OVERHAUL
   ============================================================================= */

/* ─── Global Fluid Adjustments ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
    --container-px: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --container-px: 20px;
  }
  .section-header {
    margin-bottom: 40px;
  }
}

/* ─── Header & Premium Mobile Menu ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tbts-header {
    top: 0 !important; /* Flush to top on mobile */
  }

  .header-main {
    margin: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Defined edge */
  }

  .header-inner {
    padding: 0 20px;
    justify-content: space-between !important;
  }
  .tbts-header {
    padding-top: 0 !important;
  }

  /* Normal Dropdown Menu */
  .header-nav {
    position: absolute;
    top: 100%; /* flush to bottom of header */
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 0; /* Match full-width header */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: block; /* Switch from flex for vertical stacking */
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
  }

  .header-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header-nav.is-open .nav-menu > li > a {
    color: var(--tbts-gray-800) !important;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .nav-menu > li > a {
    font-size: 1.25rem;
    color: var(--tbts-gray-800) !important;
    padding: 8px 0;
    width: 100%;
  }

  .nav-menu > li > a::after {
    display: none; /* Hide underline on mobile for cleaner look */
  }

  .mobile-toggle {
    display: flex !important;
    z-index: 10000;
  }

  /* Admin Bar Support for flush header */
  .admin-bar .tbts-header {
    top: 32px !important;
  }
  @media (max-width: 782px) {
    .admin-bar .tbts-header {
      top: 0 !important; /* Mobile: flush to top, no admin bar offset */
    }
  }

  .site-branding {
    flex: 0 0 auto;
  }
  .header-actions {
    display: none;
  }
}

@media (max-width: 768px) {
  .tbts-header {
    top: 0 !important;
  }
  .header-main {
    margin: 0 !important;
  }
  .header-inner {
    height: 76px;
  }
  .site-name {
    font-size: 1rem;
  }
}

/* ─── Hero Section ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-section {
    padding-top: 0;
    text-align: center;
    min-height: 80vh;
  }
  .hero-split-layout {
    display: block; /* Remove flex split */
    position: relative;
  }
  .hero-left-panel {
    width: 100%;
    padding: 160px 24px 80px 24px;
    text-align: center;
    background: linear-gradient(
      to bottom,
      rgba(6, 17, 23, 0.8) 0%,
      rgba(6, 17, 23, 0.6) 100%
    );
    position: relative;
    z-index: 10;
  }
  .hero-right-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    clip-path: none; /* Remove desktop clip-path */
  }
  .hero-worker-img {
    filter: brightness(0.7);
  }
  .hero-subtitle {
    margin-inline: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 72px; /* Match navbar height to remove gap */
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-quick-card-inner {
    padding: 24px;
  }

  .hero-quick-form--horizontal .form-row-horizontal {
    flex-direction: column;
  }

  .hero-quick-form--horizontal .form-group {
    width: 100%;
    min-width: auto;
  }

  .hero-quick-form--horizontal .form-group--submit {
    width: 100%;
  }

  .hero-quick-form--horizontal .form-group--submit .btn {
    width: 100%;
  }
}

/* ─── About Section (Who We Are) ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .about-img-wrapper {
    max-width: 600px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .about-badge {
    padding: 10px 14px;
  }
  .about-badge--certified {
    top: 15px;
    left: 10px;
  }
  .about-badge--experience {
    position: relative !important; /* Change from absolute to relative */
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important; /* Full width */
    text-align: center !important;
    margin-top: 10px !important; /* Small gap below image */
    margin-left: 0 !important;
    margin-right: 0 !important;
    z-index: 10 !important;
  }
  .about-image img {
    height: 300px !important; /* Reduced height */
  }
}

/* ─── Services Section ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 28px;
  }
}

/* ─── Stats Section ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Gallery Section ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
}

/* ─── FAQ Section ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .faq-grid {
    flex-direction: column;
    gap: 16px;
  }
  .faq-column {
    gap: 16px;
  }
  .faq-question {
    padding: 16px 20px;
    font-size: 0.95rem;
  }
  .faq-answer-inner {
    padding: 0 20px 20px;
  }
}

/* ─── Blog Preview ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Footer Section ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }
}

/* ─── FLOATING ACTION BUTTONS ────────────────────────────────────────────────── */
.tbts-floating-actions {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
  pointer-events: auto;
}

.tbts-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  cursor: pointer;
}

.tbts-fab:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.fab-phone {
  background: var(--tbts-green-dark);
  color: var(--tbts-white);
  border: 2px solid #ffffff;
}

.fab-phone:hover svg {
  color: var(--tbts-primary) !important;
  stroke: var(--tbts-primary) !important;
}

.fab-contact {
  background: var(--tbts-white);
  color: var(--tbts-green-dark);
}

.tbts-fab svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.tbts-fab:hover svg {
  transform: scale(1.1);
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .tbts-floating-actions {
    bottom: 24px;
    right: 24px;
    gap: 12px;
  }
  .tbts-fab {
    width: 52px;
    height: 52px;
  }
}

/* =============================================================================
   ABOUT SECTION – Fluid Responsive Design
   ============================================================================= */

/* ── Section wrapper ────────────────────────────────────────────────────────── */
.about-section {
  position: relative;
  background-color: #ffffff; /* white */
  overflow: hidden;
  padding: clamp(60px, 8vw, 120px) 0;
}

/* Background decorative tree-ring + leaves image (right side, behind content) */
.about-bg-deco {
  position: absolute;
  top: -60px;
  right: -80px;
  width: clamp(300px, 45vw, 620px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: opacity 0.4s ease;
}
.about-bg-deco img {
  width: 100%;
  height: auto;
  display: block;
}

/* Left side background decoration */
.about-bg-deco--left {
  top: auto;
  bottom: -40px;
  right: auto;
  left: -60px;
  width: clamp(200px, 35vw, 400px);
  opacity: 0.3;
}
.about-bg-deco--left .about-bg-deco-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Inner two-column flex ──────────────────────────────────────────────────── */
.about-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Left column – photo side */
.about-col--photo {
  flex: 0 1 clamp(400px, 45vw, 600px);
  display: flex;
  align-items: flex-start;
}

/* Right column – content side */
.about-col--content {
  flex: 1 1 0;
  min-width: 0;
}

/* ── Vertical "ABOUT US" label ──────────────────────────────────────────────── */
.about-vertical-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-right: clamp(16px, 3vw, 32px);
  flex-shrink: 0;
}

.about-vertical-line {
  display: block;
  width: 1.5px;
  height: clamp(40px, 5vw, 60px);
  background: #5a6670;
  opacity: 0.4;
}

.about-vertical-text {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #5a6670;
  white-space: nowrap;
  line-height: 1;
}

/* ── Collage wrapper ────────────────────────────────────────────────────────── */
.about-collage {
  position: relative;
  width: 100%;
  aspect-ratio: 480 / 450;
  max-width: 520px;
}

/* Back photo – landscape river scene, upper-left */
.about-photo-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  height: 85%;
  border-radius: clamp(12px, 2vw, 24px);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  z-index: 1;
}
.about-photo-back .about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Steel-blue decorative rectangle – behind front photo */
.about-deco-rect {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 25%;
  height: 45%;
  background: #3e6b8a;
  border-radius: 12px;
  z-index: 0;
  opacity: 0.9;
}

/* Front photo – portrait arborist, overlapping lower-right */
.about-photo-front {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52%;
  height: 60%;
  border-radius: clamp(12px, 2vw, 24px);
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
  border: clamp(3px, 0.5vw, 6px) solid #ffffff;
  z-index: 3;
}
.about-photo-front .about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Botanical branch – bottom-center of collage */
.about-branch-deco {
  position: absolute;
  bottom: -5%;
  left: 15%;
  width: 30%;
  z-index: 4;
  pointer-events: none;
}
.about-branch-deco img {
  width: 100%;
  height: auto;
  transform: rotate(-15deg);
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.12));
}

/* ── Right: Content column ──────────────────────────────────────────────────── */
.about-content-inner {
  max-width: 580px;
}

/* Eyebrow / label */
.about-eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #527993;
  margin-bottom: 16px;
  line-height: 1;
}

/* Heading */
.about-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1a1f2e;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Accent line */
.about-heading-accent {
  color: #1e3a5a;
  display: block;
}

/* Body description */
.about-description {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
  color: #5a5f6e;
  margin-bottom: 36px;
}

/* ── Feature grid: 2 columns ────────────────────────────────────────────────── */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 40px;
  margin-bottom: 44px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-feature-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(62, 107, 138, 0.1);
  border: 1px solid rgba(62, 107, 138, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3e6b8a;
  transition: all 0.3s ease;
}
.about-feature:hover .about-feature-icon-wrap {
  background: #3e6b8a;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
}

.about-feature-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #1a1f2e;
  margin-bottom: 6px;
}

.about-feature-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ── CTA Buttons ────────────────────────────────────────────────────────────── */
.about-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.about-btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 36px;
  background: #527993;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid #527993;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(82, 121, 147, 0.2);
}
.about-btn-quote:hover {
  background: #415e71;
  border-color: #415e71;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(82, 121, 147, 0.3);
}

.about-btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  color: #1a1f2e;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid #e1e5e9;
  transition: all 0.3s ease;
}
.about-btn-phone svg {
  color: #3e6b8a;
  stroke: #3e6b8a;
}
.about-btn-phone:hover {
  border-color: #3e6b8a;
  color: #3e6b8a;
  background: rgba(62, 107, 138, 0.05);
  transform: translateY(-2px);
}

/* ── Responsive: Tablet (≤ 1140px) ─────────────────────────────────────────── */
@media (max-width: 1140px) {
  .about-inner {
    flex-direction: column;
    text-align: center;
    gap: clamp(30px, 5vw, 40px);
  }
  .about-col--photo {
    order: -1; /* Force photo to top */
    width: 100%;
    max-width: 520px;
    justify-content: center;
  }
  .about-col--content {
    order: 1; /* Force content below photo */
  }
  .about-vertical-label {
    display: none;
  }
  .about-content-inner {
    max-width: 800px;
  }
  .about-features {
    justify-content: center;
  }
  .about-ctas {
    justify-content: center;
  }
}

/* ── Responsive: Mobile (≤ 768px) ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-section {
    padding: 70px 0;
  }
  .about-inner {
    gap: 15px;
  }
  .about-collage {
    max-width: 440px;
    height: 320px; /* Fixed height to remove aspect-ratio gap */
    aspect-ratio: auto;
    margin-bottom: 0;
  }
  .about-features {
    grid-template-columns: 1fr;
    text-align: left;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-feature {
    justify-content: flex-start;
  }
  .about-bg-deco {
    display: none;
  }
}

/* ── Responsive: Small Mobile (≤ 480px) ────────────────────────────────────── */
@media (max-width: 480px) {
  .about-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .about-btn-quote,
  .about-btn-phone {
    width: 100%;
  }
}


/* =============================================================================
   CONTACT PAGE SECTION
   ============================================================================= */

/* ── Main contact row wrapper ── */
.contact-section {
  background: #ffffff;
  padding: 0;
}

.contact-main-row {
  padding: clamp(60px, 8vw, 100px) 0;
  background: #ffffff;
}

/* ── Two-column grid ── */
.contact-row-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

/* ── Left column: contact details ── */
.contact-details-col {
  position: sticky;
  top: 130px;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--tbts-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--tbts-gray-600);
  margin-bottom: 36px;
  line-height: 1.6;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(82, 121, 147, 0.1);
  border: 1px solid rgb(17, 74, 232);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tbts-primary);
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tbts-gray-400);
}

.contact-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tbts-dark);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

a.contact-value:hover {
  color: var(--tbts-primary);
}

/* ── Right column: contact form ── */
.contact-form-col {
  background: #f8f9fa;
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--tbts-gray-200);
}

.contact-form-col .contact-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  margin-bottom: 6px;
}

.contact-form-col .contact-subtitle {
  margin-bottom: 28px;
}

/* ── Form fields ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tbts-dark);
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--tbts-gray-200);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--tbts-gray-800);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--tbts-primary);
  box-shadow: 0 0 0 3px rgba(82, 121, 147, 0.12);
}

.form-input::placeholder {
  color: var(--tbts-gray-400);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

/* ── Submit button ── */
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 36px;
  background: var(--tbts-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid var(--tbts-primary);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(82, 121, 147, 0.2);
  letter-spacing: 0.04em;
}

.contact-submit-btn:hover {
  background: var(--tbts-button-hover);
  border-color: var(--tbts-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(82, 121, 147, 0.3);
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ── Form response message ── */
.form-response {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-response.is-success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.form-response.is-error {
  display: block;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
}

/* ── Full-width map embed ── */
.contact-map-section {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-top: 1px solid var(--tbts-gray-200);
}

.contact-map-section iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
  .contact-row-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-details-col {
    position: static;
  }
  .contact-info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 640px) {
  .contact-main-row {
    padding: 48px 0;
  }
  .contact-row-grid {
    gap: 36px;
  }
  .contact-info-list {
    grid-template-columns: 1fr;
  }
  .contact-form-col {
    padding: 24px;
    border-radius: 14px;
  }
  .contact-map-section {
    height: 300px;
  }
}

/* ─── SERVICE AREAS SECTION ─────────────────────────────────────────────────── */

.service-areas-section {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--tbts-cream);
}

.service-areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: stretch;
}

.service-areas-content {
  display: flex;
  flex-direction: column;
}

.service-areas-eyebrow {
  font-size: clamp(0.7rem, 1.2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tbts-primary);
  margin-bottom: 16px;
  line-height: 1;
}

.service-areas-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--tbts-dark-brand);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.service-areas-title-accent {
  display: block;
  color: #1e3a5a;
}

.service-areas-description {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
  color: var(--tbts-secondary);
  margin-bottom: 28px;
  max-width: 520px;
}

.service-areas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}

.service-area-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #dde3e8;
  color: var(--tbts-dark-brand);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-area-chip-icon {
  flex-shrink: 0;
  color: var(--tbts-primary);
  transition: color 0.25s ease;
}

.service-area-chip:hover,
.service-area-chip:focus-visible {
  background: var(--tbts-primary);
  border-color: var(--tbts-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(82, 121, 147, 0.25);
}

.service-area-chip:hover .service-area-chip-icon,
.service-area-chip:focus-visible .service-area-chip-icon {
  color: #ffffff;
}

.service-areas-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.service-areas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.service-areas-btn--primary {
  background: var(--tbts-primary);
  color: #ffffff;
  border: 1.5px solid var(--tbts-primary);
}

.service-areas-btn--primary:hover {
  background: var(--tbts-button-hover);
  border-color: var(--tbts-button-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.service-areas-btn--outline {
  background: transparent;
  color: var(--tbts-dark-brand);
  border: 1.5px solid #d4cfc8;
}

.service-areas-btn--outline:hover {
  border-color: var(--tbts-primary);
  color: var(--tbts-primary);
  transform: translateY(-2px);
}

.service-areas-map-wrap {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.service-areas-map {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(28, 28, 28, 0.12);
  border: 1px solid rgba(82, 121, 147, 0.15);
}

.service-areas-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.service-areas-map-caption {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--tbts-secondary);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .service-areas-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }

  .service-areas-description {
    max-width: none;
  }

  .service-areas-map-wrap {
    height: auto;
  }

  .service-areas-map {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .service-areas-section {
    padding: 48px 0;
  }

  .service-areas-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .service-areas-btn {
    width: 100%;
  }

  .service-areas-map {
    height: 280px;
    border-radius: 14px;
  }
}

