/* V31.6 — logo trim + premium system consistency + mobile booking tightening */

:root{
  --tgz-navy:#17324d;
  --tgz-navy-strong:#10253b;
  --tgz-stone:#f7f4ee;
  --tgz-stone-strong:#f2eee5;
  --tgz-sand:#d7b77b;
  --tgz-line:rgba(16,37,59,.12);
  --tgz-shadow:0 14px 30px rgba(16,37,59,.08);
}

/* Shared premium buttons and pills */
.topbar .brand.brandSystem{display:inline-flex;align-items:center;gap:12px}
.topbar .brand.brandSystem .brandMark img{width:100% !important;height:auto !important}
.drawerBrand .drawerBrandMark img{width:100% !important;height:auto !important}
.btn,
.utilityBtn,
.v29Price,
.heroPill,
.v29Tag,
.chip,
.visitorChip,
.badge,
.buildTrustStrip span,
.bookHeroCompactRail .v29Tag,
.buildInlineEstimateLines .receiptChip,
.langPill,
.liveNavChip,
.smartDockBadge,
.pill{
  transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.btn.primary,
.headerPrimaryCta,
.v30WhatsApp,
.smartDockBadge,
.siteLiveWidgetReopen{
  background:linear-gradient(180deg,var(--tgz-navy),var(--tgz-navy-strong)) !important;
  color:#fff !important;
  border:1px solid rgba(16,37,59,.08) !important;
  box-shadow:var(--tgz-shadow);
}
.btn.primary:hover,
.headerPrimaryCta:hover,
.v30WhatsApp:hover,
.siteLiveWidgetReopen:hover{
  filter:none !important;
  background:linear-gradient(180deg,#1b3856,#112a41) !important;
}

.btn.secondary,
.btn:not(.primary):not(.utilityBtn),
.utilityBtn,
.langPill,
.pill,
.visitorChip,
.heroPill,
.v29Tag,
.buildTrustStrip span,
.bookHeroCompactRail .v29Tag,
.badge,
.buildInlineEstimateLines .receiptChip,
.liveNavChip{
  background:linear-gradient(180deg,#fffdf9,var(--tgz-stone)) !important;
  color:var(--tgz-navy) !important;
  border:1px solid rgba(16,37,59,.12) !important;
  box-shadow:0 8px 18px rgba(16,37,59,.05);
}

.btn.secondary:hover,
.btn:not(.primary):not(.utilityBtn):hover,
.utilityBtn:hover,
.langPill:hover,
.pill:hover,
.visitorChip:hover,
.liveNavChip:hover{
  background:linear-gradient(180deg,#fff,var(--tgz-stone-strong)) !important;
}

.v29Price{
  padding:8px 14px !important;
  border-radius:999px !important;
  background:linear-gradient(180deg,var(--tgz-navy),var(--tgz-navy-strong)) !important;
  color:#f7efe1 !important;
  border:1px solid rgba(16,37,59,.08) !important;
  font-size:12px !important;
  letter-spacing:.03em;
  box-shadow:0 12px 24px rgba(16,37,59,.12);
}
.v29Price::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--tgz-sand);
  display:inline-block;
  margin-right:8px;
  box-shadow:0 0 0 4px rgba(215,183,123,.15);
}

.heroPill,
.v29Tag,
.bookHeroCompactRail .v29Tag,
.buildTrustStrip span,
.badge,
.buildInlineEstimateLines .receiptChip{
  font-weight:850 !important;
}

/* Brand system with trimmed logo pack */
.brand,
.drawerBrand,
.footerBrandLogo{
  display:inline-flex;
  align-items:center;
  gap:12px;
}
.brandMark,
.footerBrandMark,
.drawerBrandMark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border-radius:18px;
}
.brandMark img,
.footerBrandMark img,
.drawerBrandMark img{
  display:block;
  width:100%;
  height:auto;
}
.brandMark{width:46px}
.drawerBrandMark{width:52px}
.footerBrandMark{width:64px}
.brandText,
.footerBrandText,
.drawerBrandText{display:grid;gap:2px;line-height:1.05}
.brandText strong,
.footerBrandText strong,
.drawerBrandText strong{font-size:1.05rem;font-weight:950;letter-spacing:-.03em;color:var(--tgz-navy)}
.brandText small,
.footerBrandText small,
.drawerBrandText small{font-size:.72rem;color:#5c7082;font-weight:700;letter-spacing:.01em}
.footerBrandLogo{max-width:none !important;margin-bottom:12px}
.footerBrand{min-width:0}
.footerBrand .notice{max-width:32ch}

.buildInlineEstimateButton::before{
  width:22px !important;
  height:22px !important;
  margin-bottom:0 !important;
  margin-right:10px;
  display:inline-block;
  vertical-align:middle;
  border-radius:0 !important;
  background:url("/assets/brand/logo-receipt.png") center/contain no-repeat !important;
}
.buildInlineEstimateTop{display:flex;justify-content:space-between;gap:10px;align-items:center}
.buildInlineEstimateButton{
  background:linear-gradient(180deg,#fff,var(--tgz-stone)) !important;
}
.receiptHeroCard{
  background:linear-gradient(180deg,var(--tgz-navy),var(--tgz-navy-strong)) !important;
}

/* Build page cleanup */
.buildValidationBox.is-info{display:none !important}
.buildPage .buildHelpBubble{align-self:flex-start}
.buildPage .buildTrustStrip span{font-size:11px}
.buildPage .buildInlineEstimate.compactReceipt{margin-bottom:8px}
.buildPage .buildProgress{margin-bottom:10px}
.buildPage .heroContent .btnRow .btn{min-height:48px}
.buildPage .modeResponsePanel{margin-top:4px}
.buildPage .buildHeroQuickRow{margin-bottom:10px}

/* Home mobile CTA cleanup */
.homePage .heroCompareBtn,
.homePage .heroContentRefined .utilityBtn{min-height:52px}

/* Contact/footer layout cleanup */
.contactMiniMeta .chip,
.footerMetaLine .utilityBtn{
  white-space:nowrap;
}

/* Smart dock avoids overlapping bottom navigation */
@media (max-width:900px){
  body{padding-bottom:132px}
  .smartDock,
  .siteLiveWidgetReopen{bottom:124px !important}
}

@media (max-width:780px){
  .brand{gap:10px}
  .brandMark{width:40px}
  .brandText strong{font-size:1rem}
  .brandText small{font-size:.64rem}
  .drawerBrandMark{width:48px}
  .footerBrandMark{width:54px}
  .footerBrandText strong{font-size:1rem}

  .homePage .heroContentRefined .btnRow{
    grid-template-columns:1fr 1fr !important;
  }
  .homePage .heroCompareBtn,
  .homePage .heroContentRefined .utilityBtn{
    grid-column:1 / -1;
  }

  .buildPage .heroWrapV18 .heroImg{height:240px !important}
  .buildPage .heroContent{top:16px !important;left:16px !important;right:16px !important}
  .buildPage .heroContent h1{max-width:13ch !important;font-size:clamp(24px,7.2vw,36px) !important}
  .buildPage .heroContent p{display:none}
  .buildPage .heroContent .btnRow{grid-template-columns:1fr 1fr !important;max-width:none !important}
  .buildPage .bookHeroCompactRail{
    margin-top:10px;
    display:flex;
    flex-wrap:nowrap;
    overflow:auto;
    gap:8px;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .buildPage .bookHeroCompactRail::-webkit-scrollbar{display:none}
  .buildPage .bookHeroCompactRail .v29Tag,
  .buildPage .buildTrustStrip span{white-space:nowrap}
  .buildPage .buildHeroQuickRow{grid-template-columns:1fr auto !important;gap:8px !important}
  .buildPage .buildTrustStrip{
    flex-wrap:nowrap !important;
    overflow:auto;
    gap:8px !important;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .buildPage .buildTrustStrip::-webkit-scrollbar{display:none}
  .buildPage .buildTrustStrip span{width:auto !important;justify-content:center !important}
  .buildPage .buildInlineEstimateButton{padding:10px 12px !important;border-radius:18px !important}
  .buildPage .buildInlineEstimateMeta{font-size:13px}
  .buildPage .buildProgressTop .badge{padding:8px 12px !important}
  .buildPage .stepBody{padding-top:12px}
  .buildPage .buildHelpBubble summary{width:32px;height:32px}
  .buildPage .buildAssuranceSection{margin-top:4px}
}

@media (max-width:560px){
  .brandText small,
  .drawerBrandText small{display:none}
  .footerBrandLogo{align-items:flex-start}
  .footerBrandText small{display:block}
  .buildPage main.container{padding-top:12px !important}
}
