/* Community Roofing local DFC enhancements (staging preview). */
/* display:contents so .crm-desknav / .crm-mobnav can position:sticky against
   the viewport. A short wrapping box would end as soon as the header scrolled
   off, and the nav would go with it. */
#crm-chrome{display:contents;font-family:Arial,Helvetica,sans-serif}
.crm-open{background:#111;text-align:center;padding:6px 10px;font:600 14px/1.3 Arial,Helvetica,sans-serif}
.crm-pill{display:inline-flex;align-items:center;gap:8px;padding:4px 12px;border-radius:30px;background:rgba(46,204,64,.15);color:#9dffb0;border:1.5px solid rgba(46,204,64,.65)}
.crm-dot{width:9px;height:9px;border-radius:50%;background:#2ecc40;animation:crmping 1.8s infinite}
.crm-pill.closed{background:rgba(255,80,80,.14);color:#ffb3b3;border-color:rgba(255,99,99,.6)}
.crm-pill.closed .crm-dot{background:#ff4b4b;animation:none}
.crm-hrs{color:#ccc;margin-left:10px;font-weight:400}
@media(max-width:600px){.crm-open-main .crm-hrs,.crm-hrs{display:block;margin:4px 0 0}}
@media(min-width:760px){
  .crm-open .crm-burger{display:none !important}
}
@keyframes crmping{0%{box-shadow:0 0 0 0 rgba(46,204,64,.7)}70%{box-shadow:0 0 0 8px rgba(46,204,64,0)}100%{box-shadow:0 0 0 0 rgba(46,204,64,0)}}
@media(prefers-reduced-motion:reduce){.crm-dot{animation:none}}

.crm-trust{background:#111;color:#fff;display:flex;flex-wrap:wrap;justify-content:center;gap:0;padding:8px 10px 10px}
.crm-trust span{flex:1 1 33%;min-width:110px;text-align:center;padding:4px 8px;font-size:12px;line-height:1.25;border-right:1px solid #333;box-sizing:border-box}
.crm-trust span:last-child{border-right:0}
.crm-trust b{display:block;color:#f46e00;font-size:14px}
@media(min-width:768px){.crm-trust{padding:10px 24px}.crm-trust span{font-size:13px;min-width:180px}.crm-trust b{font-size:15px}}

.crm-mobnav{display:none}
@media(max-width:759px){
  /* Hamburger lives in the hours row, sticky at the top-right, always reachable. */
  .crm-open{
    position:sticky;top:0;z-index:10010;
    display:flex;align-items:center;justify-content:center;
    padding:6px 52px 6px 10px;box-sizing:border-box;background:#111
  }
  .crm-open-main{display:block;text-align:center;min-width:0}
  .crm-burger{
    position:absolute;right:4px;top:50%;transform:translateY(-50%);
    background:#111;color:#fff;border:0;border-radius:8px;
    width:44px;height:44px;display:flex;align-items:center;justify-content:center;
    box-shadow:0 2px 6px rgba(0,0,0,.35);cursor:pointer;padding:0;z-index:1
  }
  .crm-burger svg{display:block}

  /* Logo bar stays in normal flow (not sticky) and is shorter without the burger. */
  .crm-mobnav{display:block;background:#111;padding:6px 12px;position:relative;z-index:1}
  .crm-mobnav-row{display:flex;align-items:center;justify-content:flex-start;gap:10px;position:relative}
  /* a:link{color:inherit} in xr_main.css is more specific than a class and was inheriting black body text. */
  a.crm-mobnav-brand,a.crm-mobnav-brand:link,a.crm-mobnav-brand:visited,a.crm-mobnav-brand:hover,a.crm-mobnav-brand:focus{
    display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;
    text-decoration:none;color:#f3dcb0
  }
  .crm-mobnav-brand img{height:32px;width:auto;flex:0 0 auto}

  /* Raise this stacking context above #crm-flow and the sticky hours bar so
     the fixed panel actually covers the page (nothing shows through). */
  .crm-mobnav.open,
  .crm-mobnav.is-closing{z-index:10021}
  /* Content-height sheet from top:0 (head + links + handle, no empty black
     below the last link). Dimmed page shows under the handle, never solid black. */
  .crm-drop-backdrop{
    position:fixed;inset:0;z-index:10020;
    background:rgba(0,0,0,.55);
    opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .2s ease-out,visibility .2s ease-out
  }
  .crm-mobnav.open .crm-drop-backdrop,
  .crm-mobnav.is-closing .crm-drop-backdrop{
    visibility:visible;pointer-events:auto;opacity:1
  }
  .crm-drop{
    display:flex;flex-direction:column;
    position:fixed;left:0;right:0;top:0;
    width:100%;height:auto;max-height:100dvh;max-height:100%;
    z-index:10021;margin:0;padding:0;box-sizing:border-box;
    background:#111;
    box-shadow:0 16px 32px rgba(0,0,0,.45);
    transform:translate3d(0,-105%,0);
    visibility:hidden;pointer-events:none;
    transition:transform .2s ease-out;
    overflow:hidden
  }
  .crm-mobnav.open .crm-drop,
  .crm-mobnav.is-closing .crm-drop{
    visibility:visible;pointer-events:auto;
    will-change:transform
  }
  .crm-mobnav.open .crm-drop{transform:translate3d(0,0,0)}
  .crm-mobnav.is-dragging .crm-drop,
  .crm-mobnav.is-dragging .crm-drop-backdrop{transition:none}
  .crm-drop[hidden],.crm-drop-backdrop[hidden]{display:none !important}
  .crm-drop-head{
    flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;
    padding:8px 6px 8px 12px;background:#111;border-bottom:4px solid #f46e00;box-sizing:border-box
  }
  a.crm-drop-brand,a.crm-drop-brand:link,a.crm-drop-brand:visited,a.crm-drop-brand:hover,a.crm-drop-brand:focus{
    display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto;
    color:#f3dcb0;text-decoration:none;background:transparent;
    text-transform:none;letter-spacing:0;padding:0;border:0
  }
  .crm-drop-brand img{height:32px;width:auto;display:block;flex:0 0 auto}
  .crm-drop-close{
    flex:0 0 auto;background:#111;color:#fff;border:0;border-radius:8px;
    width:44px;height:44px;display:flex;align-items:center;justify-content:center;
    cursor:pointer;padding:0;margin-left:4px
  }
  .crm-drop-close svg{display:block}
  .crm-drop-head{touch-action:none}
  .crm-drop-scroll{
    overflow-y:auto;-webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    flex:0 1 auto;min-height:0;
    touch-action:pan-y
  }
  .crm-drop-handle{
    flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));
    background:#111;border-top:1px solid #2a2a2a;
    touch-action:none;cursor:grab
  }
  .crm-drop-handle-bar{
    width:44px;height:5px;border-radius:999px;
    background:#f3dcb0;box-shadow:0 0 0 1px rgba(244,110,0,.4)
  }
  .crm-drop-handle-hint{
    font:600 11px/1 Arial,Helvetica,sans-serif;
    letter-spacing:.08em;text-transform:uppercase;color:#c4a05a
  }
  .crm-drop a{display:block;color:#fff;text-decoration:none;text-transform:uppercase;letter-spacing:2px;padding:16px 24px;border-left:4px solid transparent;border-bottom:1px solid #2a2a2a;font:600 13px/1.2 Arial,Helvetica,sans-serif}
  .crm-drop a.current{border-left-color:#f46e00;color:#f46e00}
  .crm-drop a:focus,.crm-drop a:hover{background:#1a1a1a}
  .crm-drop a.crm-drop-brand:focus,.crm-drop a.crm-drop-brand:hover{background:transparent;color:#fff}
  .crm-wordmark{
    display:flex;flex-direction:column;justify-content:center;gap:1px;
    min-width:0;flex:1 1 auto;
    color:#f3dcb0;text-transform:none;letter-spacing:0
  }
  .crm-wordmark-name{
    display:block;color:#f3dcb0;white-space:nowrap;
    font:700 13px/1.15 Arial,Helvetica,sans-serif
  }
  .crm-wordmark-sub{
    display:block;color:#f3dcb0;white-space:nowrap;
    font:600 10px/1.2 Arial,Helvetica,sans-serif
  }
  @media(max-width:370px){
    .crm-wordmark-name{font:700 12px/1.15 Arial,Helvetica,sans-serif}
    .crm-wordmark-sub{font:600 9.5px/1.2 Arial,Helvetica,sans-serif}
  }
}

html.crm-menu-lock,body.crm-menu-lock{
  overflow-y:hidden !important;
  overscroll-behavior:none
}
@media(prefers-reduced-motion:reduce){
  .crm-drop,.crm-drop-backdrop{transition-duration:.01s}
}

/* Clean desktop / mobile header contact (replaces blocky icon boxes and blue circles). */
.crm-head-contact{position:absolute;right:18px;top:14px;z-index:8;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:14px 22px;max-width:430px;font-family:Arial,Helvetica,sans-serif}
.crm-head-contact a{color:#f3dcb0;text-decoration:none;font:600 13px/1.2 Arial,Helvetica,sans-serif;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.crm-head-contact a:hover,.crm-head-contact a:focus{color:#fff}
.crm-head-contact-m{position:absolute;left:0;right:0;top:74px;z-index:8;display:flex;justify-content:center;gap:18px;font-family:Arial,Helvetica,sans-serif}
.crm-head-contact-m a{color:#f3dcb0;text-decoration:none;font:600 13px/1.2 Arial,Helvetica,sans-serif;display:inline-flex;align-items:center;gap:6px}

.crm-pagebar{background:#1a1a1a;color:#fff;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 20px;border-top:1px solid #333}
.crm-pagebar-title{margin:0;font:700 16px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#f3dcb0}
@media(max-width:767px){.crm-pagebar{padding:12px 14px;justify-content:center;text-align:center}}

.crm-cta-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center}
.crm-btn{display:inline-block;text-decoration:none;font:700 14px/1 Arial,Helvetica,sans-serif;letter-spacing:.04em;text-transform:uppercase;padding:13px 20px;border-radius:8px;border:0}
/* Orange CTA: same #f46e00 + bold white as the sticky Call bar.
   .crm-ygrene a { color:#c85800 } is more specific and was making these orange-on-orange. */
.crm-btn-primary,
a.crm-btn-primary,
a.crm-btn-primary:link,
a.crm-btn-primary:visited,
.crm-ygrene a.crm-btn-primary,
.crm-ygrene a.crm-btn-primary:link,
.crm-ygrene a.crm-btn-primary:visited,
.crm-ygrene-office a.crm-btn-primary{
  background:#f46e00;color:#fff
}
.crm-btn-primary:hover,.crm-btn-primary:focus,
a.crm-btn-primary:hover,a.crm-btn-primary:focus,
.crm-ygrene a.crm-btn-primary:hover,.crm-ygrene a.crm-btn-primary:focus{
  background:#c85800;color:#fff
}
.crm-btn-call{background:#212121;color:#f3dcb0;border:1.5px solid #c4a05a}
.crm-btn-call:hover,.crm-btn-call:focus{background:#111;color:#fff}
.crm-btn-ghost{background:transparent;color:#fff;border:1.5px solid #fff}
.crm-btn-ghost:hover,.crm-btn-ghost:focus{background:#fff;color:#111}

.crm-sticky{display:none}
@media(max-width:767px){
  .crm-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:10002;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#111;box-shadow:0 -6px 20px rgba(0,0,0,.35)}
  .crm-sticky a{flex:1;text-align:center;text-decoration:none;font:700 14px/1 Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase;padding:14px 8px;border-radius:8px}
  .crm-sticky a.call,.crm-sticky a.call:link,.crm-sticky a.call:visited{background:#f46e00;color:#fff}
  .crm-sticky a.call:hover,.crm-sticky a.call:focus{background:#c85800;color:#fff}
  .crm-sticky a.txt{background:#fff;color:#111}
  body.crm-has-sticky{padding-bottom:84px!important}
}

.crm-services{font-family:Arial,Helvetica,sans-serif;background:#f3dcb0;color:#111;padding:32px 16px 36px}
.crm-services h2,.crm-reviews h2{margin:0 0 8px;font-size:22px;letter-spacing:.04em;text-transform:uppercase;text-align:center}
.crm-svc-lead{max-width:720px;margin:0 auto 22px;text-align:center;font-size:14px;line-height:1.45;color:#333}
.crm-svc-grid{display:grid;grid-template-columns:1fr;gap:12px;max-width:1100px;margin:0 auto 22px}
.crm-svc-card{display:block;background:#fff;border-top:4px solid #f46e00;padding:16px 18px;text-decoration:none;color:#111;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.crm-svc-card strong{display:block;font-size:16px;margin:0 0 6px;color:#212121}
.crm-svc-card span{font-size:13px;line-height:1.4;color:#444}
.crm-svc-card:hover,.crm-svc-card:focus{box-shadow:0 4px 14px rgba(0,0,0,.14)}
@media(min-width:700px){.crm-svc-grid{grid-template-columns:1fr 1fr 1fr}}

.crm-reviews{font-family:Arial,Helvetica,sans-serif;background:#f4f4f4;color:#111;padding:28px 16px 32px;margin:0}
.crm-reviews .crm-rev-head{text-align:center;margin:0 0 18px}
.crm-reviews .crm-score{font-size:42px;font-weight:800;color:#111;line-height:1}
.crm-reviews .crm-score small{font-size:16px;font-weight:700;color:#444}
.crm-reviews .crm-g{font-size:13px;color:#444;margin-top:4px}
.crm-g-link{display:inline-block;margin-top:8px;color:#f46e00;font:700 13px/1.3 Arial,Helvetica,sans-serif;text-decoration:none}
.crm-g-link:hover,.crm-g-link:focus{text-decoration:underline}
.crm-stars{color:#f46e00;letter-spacing:1px;font-weight:700}
.crm-rev-grid{display:flex;flex-direction:column;gap:12px;max-width:1100px;margin:0 auto}
.crm-rev-card{display:block;background:#fff;border-top:4px solid #f46e00;padding:14px 16px 16px;box-shadow:0 2px 8px rgba(0,0,0,.08);text-decoration:none;color:#111}
.crm-rev-card:hover,.crm-rev-card:focus{box-shadow:0 4px 14px rgba(0,0,0,.14)}
.crm-rev-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:4px}
.crm-rev-top strong{font-size:15px}
.crm-rev-src{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#888;white-space:nowrap;text-decoration:none}
.crm-rev-src:hover,.crm-rev-src:focus{color:#f46e00;text-decoration:underline}
.crm-rev-date{font-size:12px;color:#666;margin:0 0 6px}
.crm-rev-card .crm-rev-body{margin:8px 0 0;font-size:14px;line-height:1.45;color:#111;white-space:pre-wrap}
.crm-rev-more{display:none;margin:10px 0 0;padding:0;border:0;background:none;color:#f46e00;font:700 13px/1.2 Arial,Helvetica,sans-serif;cursor:pointer;letter-spacing:.03em;text-transform:uppercase}
.crm-rev-more:hover,.crm-rev-more:focus{text-decoration:underline}
@media(max-width:767px){
  .crm-rev-card.is-clamped:not(.is-open) .crm-rev-body{max-height:8.7em;overflow:hidden}
  .crm-rev-card.is-clamped .crm-rev-more{display:inline-block}
  .crm-rev-card.is-clamped .crm-rev-more[hidden]{display:none}
}
@media(min-width:768px){
  .crm-rev-grid{display:grid;grid-template-columns:1fr 1fr}
  .crm-reviews{padding:36px 40px 40px}
  .crm-reviews h2{font-size:22px}
}
@media(min-width:1100px){.crm-rev-grid{grid-template-columns:1fr 1fr 1fr}}

.crm-bottom-cta{font-family:Arial,Helvetica,sans-serif;background:#212121;color:#fff;padding:28px 16px 32px;text-align:center}
.crm-bottom-cta p{margin:0 0 14px;font:700 20px/1.3 Arial,Helvetica,sans-serif}

/* Hide Xara's original mobile hamburger; Triple D menu in #crm-chrome replaces it. */
@media(max-width:767px){
  #xr_nb7, #xr_nb17, #xr_nb27, #xr_nb37, #xr_nb47{display:none !important}
}

/* Hide the inactive Xara viewport AND its full-width color strips so they cannot
   overflow, cover taps, or leave leftover canvas height. Use classes, not just IDs. */
@media screen and (min-width: 760px){
  .xr_mvp_2, .xr_mvp_4, .xr_mvp_6, .xr_mvp_8, .xr_mvp_10{display:none !important; pointer-events:none !important}
  .xr_mvp_1, .xr_mvp_3, .xr_mvp_5, .xr_mvp_7, .xr_mvp_9{display:block !important}
}
@media screen and (max-width: 759px){
  .xr_mvp_1, .xr_mvp_3, .xr_mvp_5, .xr_mvp_7, .xr_mvp_9{display:none !important; pointer-events:none !important}
  .xr_mvp_2, .xr_mvp_4, .xr_mvp_6, .xr_mvp_8, .xr_mvp_10{display:block !important}
}
#xr_bph{pointer-events:none !important}
html,body{height:auto;min-height:0}
html,body{overflow-x:clip}

/* Manufacturer logo cards on Roofing Services — same URLs as the live site. */
.crm-brand-card{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:8px;padding:10px 8px 12px;background:#fff;border:1px solid #e6e0d4;border-radius:10px;
  text-decoration:none;color:#111;box-shadow:0 1px 3px rgba(0,0,0,.08);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-tap-highlight-color:rgba(244,110,0,.25);cursor:pointer
}
.crm-brand-card:hover,.crm-brand-card:focus-visible{
  transform:translateY(-3px);box-shadow:0 8px 18px rgba(0,0,0,.16);background:#fffdf8;outline:none
}
.crm-brand-card:active{transform:translateY(0) scale(.98);box-shadow:0 2px 6px rgba(0,0,0,.12)}
.crm-brand-label{
  display:block;text-align:center;font:700 11px/1.25 Arial,Helvetica,sans-serif;
  letter-spacing:.02em;color:#b34d00;padding:0 2px
}
.crm-brand-card img{
  max-width:124px !important;max-height:52px !important;width:auto !important;height:auto !important;
  object-fit:contain
}
.crm-brand-label{font-size:10px;line-height:1.25;max-width:100%}


#crm-midstack{font-family:Arial,Helvetica,sans-serif}


/* Desktop HTML text nav over the existing header bar (image tabs hidden). Not sticky. */
.crm-desk-bar{display:none}
@media screen and (min-width:760px){
  .crm-desk-bar{
    display:flex;position:absolute;left:400px;right:16px;top:0;height:87px;
    align-items:center;justify-content:space-between;gap:16px;z-index:9;
    font-family:Arial,Helvetica,sans-serif
  }
  .crm-desk-nav{display:flex;align-items:center;flex-wrap:nowrap;gap:16px;min-width:0}
  .crm-desk-nav a{
    color:#f3dcb0;text-decoration:none;font:600 14px/1.2 Arial,Helvetica,sans-serif;
    padding:6px 0;white-space:nowrap;border-bottom:2px solid transparent
  }
  .crm-desk-nav a.current{color:#fff;border-bottom-color:#f46e00}
  .crm-desk-nav a:hover,.crm-desk-nav a:focus{color:#fff}
  .crm-desk-contact{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:5px;flex:0 0 auto}
  .crm-desk-contact a{color:#f3dcb0;text-decoration:none;font:600 13px/1.2 Arial,Helvetica,sans-serif;white-space:nowrap}
  .crm-desk-contact a:hover,.crm-desk-contact a:focus{color:#fff}
  .crm-head-contact{display:none !important}
}

/* Home hero — estate aerial hero-estate.jpg (Austin, Nov 20) */
.crm-hero{
  position:relative;min-height:420px;color:#fff;
  background:#212121 url('hero-estate.jpg') 45% 72% / cover no-repeat
}
.crm-hero::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(0,0,0,.58) 0%,rgba(0,0,0,.28) 55%,rgba(0,0,0,.12) 100%)
}
.crm-hero-inner{position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:72px 28px 80px;text-align:left}
.crm-hero-title{margin:0 0 12px;font:800 36px/1.15 Arial,Helvetica,sans-serif;max-width:16ch}
.crm-hero-lead{margin:0 0 22px;max-width:34em;font:400 16px/1.5 Arial,Helvetica,sans-serif;color:#f4f4f4}
.crm-hero-license{
  margin:0 0 12px;max-width:100%;box-sizing:border-box;
  display:inline-block;padding:8px 12px;
  font:700 13px/1.35 Arial,Helvetica,sans-serif;
  letter-spacing:.06em;text-transform:uppercase;
  color:#fff;background:#f46e00;border-radius:8px;border:1.5px solid #f46e00;
  overflow-wrap:anywhere
}
.crm-hero-license a.crm-license-link,
.crm-hero-license a.crm-license-link:link,
.crm-hero-license a.crm-license-link:visited{
  color:#fff;text-decoration:underline;text-underline-offset:2px;font:inherit
}
.crm-hero-license a.crm-license-link:hover,
.crm-hero-license a.crm-license-link:focus{color:#fff;text-decoration:underline}
@media(max-width:430px){
  .crm-hero-license{font-size:12px;letter-spacing:.04em;padding:7px 10px;margin-bottom:10px}
}
#crm-site-footer .crm-footer-license{
  max-width:1100px;margin:0 auto 20px;padding:0 0 16px;
  text-align:center;box-sizing:border-box;
  font:700 14px/1.4 Arial,Helvetica,sans-serif;
  letter-spacing:.06em;text-transform:uppercase;color:#fff;
  border-bottom:1px solid #333;overflow-wrap:anywhere
}
#crm-site-footer .crm-footer-license a.crm-license-link,
#crm-site-footer .crm-footer-license a.crm-license-link:link,
#crm-site-footer .crm-footer-license a.crm-license-link:visited{
  color:#f3dcb0;text-decoration:underline;text-underline-offset:2px;font:inherit
}
#crm-site-footer .crm-footer-license a.crm-license-link:hover,
#crm-site-footer .crm-footer-license a.crm-license-link:focus{color:#fff}

@media(max-width:759px){
  .crm-hero{min-height:300px}
  .crm-hero-inner{padding:36px 16px 44px}
  .crm-hero-title{font-size:26px}
}

.crm-projects{font-family:Arial,Helvetica,sans-serif;background:#f4f4f4;color:#111;padding:28px 16px 36px}
.crm-projects h2,.crm-faq h2,.crm-jotform h2{margin:0 0 8px;font-size:22px;letter-spacing:.04em;text-transform:uppercase;text-align:center}
.crm-projects-note{text-align:center;color:#555;font-size:14px;margin:0 auto 22px}
.crm-projects-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:1100px;margin:0 auto}
@media(min-width:800px){.crm-projects-grid{grid-template-columns:1fr 1fr 1fr;gap:18px}}
.crm-project{margin:0;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08);display:flex;flex-direction:column}
.crm-project img{display:block;width:100%;height:180px;object-fit:cover;background:#ddd}
.crm-project figcaption{padding:10px 12px 12px;font:600 13px/1.35 Arial,Helvetica,sans-serif;color:#333}

.crm-faq{font-family:Arial,Helvetica,sans-serif;background:#f4f4f4;color:#111;padding:28px 16px 36px}
.crm-faq-draft{text-align:center;margin:0 auto 18px;font:700 12px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#8a5a00}
.crm-faq-list{max-width:800px;margin:0 auto;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.crm-faq-item{padding:16px 18px 18px;border-top:4px solid #f46e00;border-bottom:1px solid #eee;text-align:left}
.crm-faq-item:last-child{border-bottom:0}
.crm-faq-item h3{margin:0 0 8px;font:700 16px/1.3 Arial,Helvetica,sans-serif}
.crm-faq-item p{margin:0;font:400 14px/1.5 Arial,Helvetica,sans-serif;color:#333}
.crm-faq-item a{color:#f46e00}

.crm-jotform{font-family:Arial,Helvetica,sans-serif;background:#f4f4f4;color:#111;padding:28px 16px 8px}
.crm-jotform-lead{max-width:720px;margin:0 auto 16px;text-align:center;font-size:14px;line-height:1.45;color:#333}
.crm-jotform-frame{max-width:900px;margin:0 auto;background:#f7f4ea}
.crm-jotform iframe{display:block;width:100%;background:#f7f4ea}


/* Financing page — Ygrene information block (fills the content area above the footer). */
.crm-ygrene{font-family:Arial,Helvetica,sans-serif;background:linear-gradient(#fffdf8,#f4f0e6);color:#111;padding:28px 16px 40px}
.crm-ygrene-inner{max-width:980px;margin:0 auto;text-align:left}
.crm-ygrene-kicker{margin:0 0 6px;font:700 12px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#8a5a00}
.crm-ygrene h2{margin:0 0 14px;font:800 26px/1.2 Arial,Helvetica,sans-serif;letter-spacing:0;text-transform:none;text-align:left}
.crm-ygrene h3{margin:22px 0 8px;font:700 18px/1.3 Arial,Helvetica,sans-serif}
.crm-ygrene p,.crm-ygrene li{font:400 15px/1.55 Arial,Helvetica,sans-serif;color:#222}
.crm-ygrene a{color:#c85800}
.crm-ygrene-steps{margin:8px 0 0;padding:0 0 0 20px}
.crm-ygrene-steps li{margin:0 0 10px}
.crm-ygrene-choose{margin:22px 0 0;padding:16px 18px;background:#fff;border-top:4px solid #f46e00;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.crm-ygrene-choose h3{margin-top:0}
.crm-ygrene-cards{display:grid;grid-template-columns:1fr;gap:14px;margin:22px 0 0}
@media(min-width:760px){.crm-ygrene-cards{grid-template-columns:1.2fr .9fr;align-items:stretch}}
.crm-ygrene-card{background:#fff;border-top:4px solid #f46e00;box-shadow:0 2px 8px rgba(0,0,0,.08);padding:16px 18px 20px}
.crm-ygrene-card h3{margin-top:0}
.crm-ygrene-card ul{margin:0;padding:0 0 0 18px}
.crm-ygrene-card li{margin:0 0 6px}
.crm-ygrene-office{display:flex;flex-direction:column;justify-content:center;background:#212121;color:#fff;border-top-color:#f46e00}
.crm-ygrene-office h3,.crm-ygrene-office p{color:#fff}
.crm-ygrene-office a.crm-btn{align-self:flex-start;margin-top:6px}
.crm-ygrene-office-alt{margin:14px 0 0}
.crm-ygrene-office-alt a{color:#f3dcb0}
.crm-ygrene-legal{margin:24px 0 0;padding:14px 16px;background:#fff;border:1px solid #e6e0d4}
.crm-ygrene-legal h3{margin:0 0 8px;font-size:14px;letter-spacing:.04em;text-transform:uppercase;color:#555}
.crm-ygrene-legal li{font-size:13px;line-height:1.5;color:#444;margin:0 0 8px}

.crm-ygrene-badge{margin:0 0 26px;padding:26px 22px 24px;background:#212121;color:#fff;border-top:6px solid #f46e00;box-shadow:0 2px 8px rgba(0,0,0,.12);text-align:center}
.crm-ygrene .crm-ygrene-badge p{margin:0 auto;max-width:42em;color:#eee;font:400 16px/1.45 Arial,Helvetica,sans-serif}
.crm-ygrene .crm-ygrene-badge p.crm-ygrene-badge-kicker{margin:0 0 8px;font:700 13px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#f3dcb0}
.crm-ygrene .crm-ygrene-badge p.crm-ygrene-badge-name{margin:0 0 12px;max-width:none;font:800 34px/1.15 Arial,Helvetica,sans-serif;letter-spacing:.02em;color:#fff}
.crm-ygrene .crm-ygrene-badge a{color:#f3dcb0;text-decoration:underline}
.crm-ygrene-glance strong{font-weight:700;color:#111}
.crm-ygrene-glance{margin:18px 0 8px;padding:18px 18px 12px;background:#fff;border:1px solid #e6e0d4;border-top:5px solid #f46e00;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.crm-ygrene-glance h3{margin:0 0 6px}
.crm-ygrene-source{font:400 13px/1.45 Arial,Helvetica,sans-serif;color:#555;margin:0 0 12px}
.crm-ygrene-glance dl{margin:0;padding:0}
.crm-ygrene-glance dl>div{display:grid;grid-template-columns:1fr;gap:2px;padding:10px 0;border-top:1px solid #eee}
@media(min-width:760px){.crm-ygrene-glance dl>div{grid-template-columns:200px 1fr;gap:16px;align-items:start}}
.crm-ygrene-glance dt{margin:0;font:700 14px/1.35 Arial,Helvetica,sans-serif;color:#111}
.crm-ygrene-glance dd{margin:0;font:400 14px/1.5 Arial,Helvetica,sans-serif;color:#222}


.crm-brand-grid{position:absolute;z-index:8;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;box-sizing:border-box;background:transparent;padding:4px}
.crm-brand-grid-shingles{background:#fff}
@media screen and (min-width:760px){
  .crm-brand-grid-shingles{grid-template-columns:repeat(4,minmax(0,1fr))}
  .crm-brand-grid-metal,.crm-brand-grid-flat{grid-template-columns:1fr;max-width:240px}
}
.crm-brand-card{position:relative;left:auto;top:auto;width:auto;min-height:0}


/* ========== Flow layout: replace Xara absolute text (Nov 19, 2026) ========== */
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
html,body{max-width:100%;}
body{
  background-image:none !important;
  background-color:#fff !important;
}

/* Hide the Xara canvas so fixed-size text layers cannot paint or intercept taps. */
#xr_xr,
.xr_strb,
#xr_bph{
  display:none !important;
  height:0 !important;
  min-height:0 !important;
  overflow:hidden !important;
  pointer-events:none !important;
  visibility:hidden !important;
}

/* Desktop nav lives in #crm-chrome now that the Xara header is hidden. */
.crm-desknav{display:none}
@media screen and (min-width:760px){
  .crm-mobnav{display:none !important}
  .crm-desknav{
    display:flex;align-items:center;justify-content:space-between;gap:20px;
    background:#212121;padding:8px 24px;min-height:87px;box-sizing:border-box;
    position:sticky;top:0;z-index:10003
  }
  .crm-desknav-brand{display:flex;align-items:center;flex:0 0 auto}
  .crm-desknav-brand img{height:70px;width:auto;display:block}
  .crm-desknav-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;min-width:0;flex:1 1 auto}
  .crm-desknav-links a{
    color:#f3dcb0;text-decoration:none;font:600 14px/1.2 Arial,Helvetica,sans-serif;
    padding:6px 0;white-space:nowrap;border-bottom:2px solid transparent
  }
  .crm-desknav-links a.current{color:#fff;border-bottom-color:#f46e00}
  .crm-desknav-links a:hover,.crm-desknav-links a:focus{color:#fff}
  .crm-desknav-contact{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex:0 0 auto}
  .crm-desknav-contact a{color:#f3dcb0;text-decoration:none;font:600 13px/1.2 Arial,Helvetica,sans-serif;white-space:nowrap}
  .crm-desknav-contact a:hover,.crm-desknav-contact a:focus{color:#fff}
}
@media screen and (max-width:759px){
  .crm-mobnav{display:block}
  .crm-desknav{display:none !important}
}

/* Pagebar keeps the CTAs; the visible heading is the h1 in #crm-flow. */
.crm-pagebar-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

#crm-flow{
  font-family:"Open Sans",Arial,Helvetica,sans-serif;
  color:#333;
  background:#fff;
  width:100%;
  box-sizing:border-box;
  position:relative;
  z-index:1;
}
.crm-flow-inner{
  max-width:800px;
  margin:0 auto;
  padding:28px 16px 16px;
  box-sizing:border-box;
  width:100%;
}
#crm-flow h1{
  margin:0 0 16px;
  color:#8e8e8e;
  font-family:Georgia,"Palatino Linotype",Palatino,"Times New Roman",Times,serif;
  font-weight:700;
  font-style:normal;
  font-size:clamp(1.45rem, 5.4vw, 2.25rem);
  line-height:1.2;
  overflow-wrap:anywhere;
  word-wrap:break-word;
}
#crm-flow h2{
  margin:28px 0 10px;
  color:#333;
  font-family:Georgia,"Palatino Linotype",Palatino,"Times New Roman",Times,serif;
  font-weight:700;
  font-style:normal;
  font-size:clamp(1.2rem, 4.2vw, 1.75rem);
  line-height:1.25;
  overflow-wrap:anywhere;
  word-wrap:break-word;
}
#crm-flow p{
  margin:0 0 12px;
  font-family:"Open Sans",Arial,Helvetica,sans-serif;
  font-size:clamp(0.95rem, 3.1vw, 1.05rem);
  line-height:1.55;
  color:#555;
  overflow-wrap:anywhere;
  word-wrap:break-word;
}
#crm-flow a:not(.crm-btn):not(.crm-brand-card){color:#c85800}
#crm-flow img{
  max-width:100%;
  height:auto;
  display:block;
  box-sizing:border-box;
}
#crm-flow .crm-bbb{
  width:149px;
  max-width:40%;
  height:auto;
  margin:0 0 20px;
}
#crm-flow .crm-welcome{
  margin:0 0 18px;
  padding:18px 16px;
  background:#f3dcb0;
  border:0;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
}
#crm-flow .crm-welcome p{
  margin:0;
  color:#212121;
  font-family:"Times New Roman",Times,"Liberation Serif","Noto Serif",Georgia,serif;
  font-weight:700;
  font-style:italic;
  font-size:clamp(1.05rem, 4.4vw, 1.5rem);
  line-height:1.4;
}
#crm-flow .crm-lead{color:#6a6a6a}
#crm-flow .crm-lead-em{
  color:#555;
  font-weight:700;
}
#crm-flow .crm-cta-row{
  display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 20px
}
#crm-flow figure.crm-photo{
  margin:8px 0 20px;
  max-width:100%;
}
#crm-flow figure.crm-photo img{
  width:100%;
  height:auto;
  background:#eee;
}
#crm-flow .crm-map{
  margin:8px 0 16px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
#crm-flow .crm-map iframe{
  display:block;
  width:100%;
  height:260px;
  border:0;
  max-width:100%;
}
@media screen and (min-width:760px){
  #crm-flow .crm-map iframe{height:400px}
  .crm-flow-inner{padding:36px 24px 24px}
}

/* Brand cards in normal flow (not absolutely placed on the Xara canvas). */
#crm-flow .crm-brand-grid{
  position:static;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  width:100%;
  max-width:100%;
  margin:8px 0 20px;
  padding:8px;
  box-sizing:border-box;
  background:#fff;
  left:auto;top:auto;
}
@media screen and (min-width:760px){
  #crm-flow .crm-brand-grid-shingles{grid-template-columns:repeat(4,minmax(0,1fr))}
  #crm-flow .crm-brand-grid-metal,
  #crm-flow .crm-brand-grid-flat{grid-template-columns:minmax(0,240px)}
}

#crm-midstack{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  width:100% !important;
  z-index:1;
  max-width:100%;
  box-sizing:border-box;
}

#crm-site-footer{
  font-family:Arial,Helvetica,sans-serif;
  background:#212121;
  color:#f3dcb0;
  padding:32px 16px 40px;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
}
.crm-footer-inner{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px 20px;
  box-sizing:border-box;
}
@media screen and (min-width:760px){
  .crm-footer-inner{grid-template-columns:1.2fr .8fr 1fr 1fr;padding:0 8px}
}
#crm-site-footer h2{
  margin:0 0 10px;
  font:700 13px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
}
#crm-site-footer ul{list-style:none;margin:0;padding:0}
#crm-site-footer li{margin:0 0 8px}
#crm-site-footer a{color:#f3dcb0;text-decoration:none;font:400 14px/1.35 Arial,Helvetica,sans-serif;overflow-wrap:anywhere}
#crm-site-footer a:hover,#crm-site-footer a:focus{color:#fff;text-decoration:underline}
#crm-site-footer p{margin:0 0 8px;font:400 14px/1.4 Arial,Helvetica,sans-serif;color:#f3dcb0;overflow-wrap:anywhere}
#crm-site-footer .crm-social{display:flex;gap:12px;align-items:center}
#crm-site-footer .crm-social img{width:28px;height:28px;object-fit:contain}

.crm-fin-banner{
  width:100%;
  max-width:100%;
  min-height:72px;
  background:#3d4a3d url('1682@2x.png') center center / cover no-repeat;
  margin:0 0 16px;
  box-sizing:border-box;
}


/* Flow polish: shorter mobile hero so the welcome box clears the sticky bar;
   dark card for the white Tri-County Metals logo; balanced headings. */
@media screen and (max-width:759px){
  .crm-hero{min-height:0}
  .crm-hero-inner{padding:22px 16px 28px}
  .crm-hero-title{font-size:clamp(1.35rem, 6.2vw, 1.7rem);max-width:18ch}
  .crm-hero-lead{font-size:15px;margin-bottom:16px}
  #crm-flow .crm-flow-inner{padding-top:16px}
}
#crm-flow h1,#crm-flow h2{text-wrap:balance}
#crm-flow .crm-brand-grid-metal .crm-brand-card{
  background:#212121;border-color:#212121
}
#crm-flow .crm-brand-grid-metal .crm-brand-label{color:#f3dcb0}
#crm-flow .crm-brand-grid-metal .crm-brand-card:hover,
#crm-flow .crm-brand-grid-metal .crm-brand-card:focus-visible{
  background:#2a2a2a
}


/* Home hero Financing button (v10): opposite edges, equal size */
.crm-hero-cta{
  display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:stretch;
  width:100%;max-width:100%;box-sizing:border-box;gap:10px
}
.crm-hero-cta .crm-btn{
  flex:0 0 calc(50% - 5px);width:calc(50% - 5px);max-width:calc(50% - 5px);
  box-sizing:border-box;text-align:center;white-space:nowrap;
  display:flex;align-items:center;justify-content:center;
  min-height:44px;padding:13px 12px;border-width:1.5px;border-style:solid
}
.crm-hero-cta a.crm-btn-primary,.crm-hero-cta a.crm-btn-primary:link,.crm-hero-cta a.crm-btn-primary:visited{
  border-color:#f46e00
}
a.crm-btn-fin,a.crm-btn-fin:link,a.crm-btn-fin:visited{
  background:#f3dcb0;color:#212121;border:1.5px solid #f3dcb0
}
a.crm-btn-fin:hover,a.crm-btn-fin:focus{
  background:#fff;color:#111;border-color:#fff
}
@media (max-width:430px){
  .crm-hero-cta{gap:8px}
  .crm-hero-cta .crm-btn{flex-basis:calc(50% - 4px);width:calc(50% - 4px);max-width:calc(50% - 4px);padding:12px 8px;font-size:12px;letter-spacing:.03em}
}

/* Home hero desktop cap (v11) */
@media (min-width:768px){
  .crm-hero-lead{max-width:520px}
  .crm-hero-cta{
    width:520px;max-width:520px;gap:20px;
    justify-content:space-between
  }
  .crm-hero-cta .crm-btn{
    flex:0 0 250px;width:250px;min-width:250px;max-width:250px
  }
}

/* ========== v12 media / desktop width (mobile 360–430 ATF unchanged) ========== */
/* Home wrappers: head/split stay pass-through on mobile. Mid-band is real on all widths. */
.crm-home-head,
.crm-home-id,
.crm-home-intro,
.crm-home-copy,
.crm-home-more,
.crm-split,
.crm-split-copy{display:block;margin:0;padding:0;border:0;background:transparent}
.crm-home-head::before,
.crm-home-intro::before,
.crm-home-more::before,
.crm-split::before{content:none}

/* All widths: no mid-page house photo or repeated Financing / Free Estimate CTAs
   (hero already has both). Lead + body copy share one #f5f5f5 band; video sits under it. */
.crm-home-intro .crm-photo,
.crm-home-intro .crm-cta-row,
.crm-home-more .crm-cta-row{display:none !important}

.crm-home-band{
  display:block;
  position:relative;
  z-index:0;
  padding:16px 0
}
.crm-home-band::before{
  content:"";
  position:absolute;
  top:0;bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:100vw;
  z-index:-1;
  background:#f5f5f5;
  pointer-events:none
}
.crm-home-copy{max-width:100%;margin:0;padding-bottom:12px}
.crm-home-copy .crm-lead,
.crm-home-copy .crm-lead-em{
  margin:0;
  max-width:none;
  line-height:1.4
}
.crm-home-copy .crm-lead-em{
  margin-top:4px;
  color:#212121;
  font-weight:700
}
.crm-home-more{
  display:grid;
  grid-template-columns:1fr;
  gap:12px
}
.crm-home-more > p{margin:0}

.crm-flow-home .crm-video-section{
  position:relative;
  z-index:0;
  padding:14px 0 16px;
  margin:0
}
.crm-flow-home .crm-video-section h2{margin-top:0;margin-bottom:10px;text-align:center}

@media screen and (min-width:768px) and (max-width:1023px){
  .crm-home-band{padding:16px 0}
  .crm-home-copy{padding-bottom:14px}
  .crm-home-more{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
}

/* Responsive 16:9 YouTube embed. Max ~900px, centered, shrinks to 360px phones. */
.crm-embed{
  position:relative;
  width:100%;
  max-width:900px;
  margin:0 auto;
  aspect-ratio:16/9;
  background:#111;
}
.crm-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
  z-index:1
}
.crm-yt-facade{
  position:absolute;inset:0;z-index:2;
  display:block;margin:0;padding:0;border:0;width:100%;height:100%;
  cursor:pointer;background:#111;-webkit-appearance:none;appearance:none
}
.crm-yt-facade[hidden],
.crm-embed.is-playing .crm-yt-facade,
.crm-embed.is-ended .crm-yt-facade{display:none !important}
.crm-yt-thumb{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;display:block;pointer-events:none
}
.crm-yt-play{
  position:absolute;left:50%;top:50%;
  width:68px;height:48px;
  transform:translate(-50%,-50%);
  background:#f46e00;border-radius:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.45);
  pointer-events:none
}
.crm-yt-play::before{
  content:"";
  position:absolute;left:50%;top:50%;
  transform:translate(-35%,-50%);
  border-style:solid;
  border-width:10px 0 10px 18px;
  border-color:transparent transparent transparent #fff
}
/* Branded end panel covers YouTube's related-video grid when playback ends.
   Absolutely positioned so the 16:9 embed size (and the home first screen) do not change. */
.crm-video-end{
  position:absolute;inset:0;z-index:3;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:8px;padding:10px 12px;box-sizing:border-box;
  background:#111;
  color:#f3dcb0;text-align:center;
  overflow:auto;-webkit-overflow-scrolling:touch
}
.crm-embed.is-ended iframe{visibility:hidden;pointer-events:none}
.crm-video-end[hidden]{display:none !important}
.crm-video-end-title{
  margin:0;
  font:700 15px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing:.04em;text-transform:uppercase;color:#fff
}
.crm-video-end-links,
.crm-video-end-actions{
  display:flex;flex-wrap:wrap;gap:6px 8px;justify-content:center;width:100%
}
.crm-video-end a,
.crm-video-end button{
  display:inline-block;
  font:700 11px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing:.04em;text-transform:uppercase;
  text-decoration:none;border-radius:8px;padding:8px 11px;
  border:0;cursor:pointer;box-sizing:border-box
}
.crm-video-end-more{
  background:#212121;color:#f3dcb0;border:1.5px solid #c4a05a
}
.crm-video-end-more:hover,.crm-video-end-more:focus{background:#2a2a2a;color:#fff}
.crm-video-end-replay{background:#f3dcb0;color:#111}
.crm-video-end-replay:hover,.crm-video-end-replay:focus{background:#fff;color:#111}
.crm-video-end-channel{
  background:transparent;color:#f3dcb0;border:1.5px solid #f3dcb0
}
.crm-video-end-channel:hover,.crm-video-end-channel:focus{background:#f3dcb0;color:#111}
.crm-video-end-estimate,
a.crm-video-end-estimate,
a.crm-video-end-estimate:link,
a.crm-video-end-estimate:visited{background:#f46e00;color:#fff}
.crm-video-end-estimate:hover,
.crm-video-end-estimate:focus,
a.crm-video-end-estimate:hover,
a.crm-video-end-estimate:focus{background:#c85800;color:#fff}
@media screen and (min-width:768px){
  .crm-video-end{gap:14px;padding:20px 24px}
  .crm-video-end-title{font-size:22px}
  .crm-video-end a,
  .crm-video-end button{font-size:13px;padding:10px 16px}
}
/* Beat #crm-flow p / #crm-flow a color so the end panel stays readable. */
#crm-flow .crm-video-end,
#crm-flow .crm-video-end p{margin:0;color:#f3dcb0;font-family:Arial,Helvetica,sans-serif}
#crm-flow p.crm-video-end-title, #crm-flow .crm-video-end-title{
  margin:0;color:#fff;
  font:700 15px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing:.04em;text-transform:uppercase
}
#crm-flow .crm-video-end-more,
#crm-flow a.crm-video-end-more,
#crm-flow a.crm-video-end-more:link,
#crm-flow a.crm-video-end-more:visited{background:#212121;color:#f3dcb0;border:1.5px solid #c4a05a}
#crm-flow .crm-video-end-more:hover,
#crm-flow a.crm-video-end-more:hover,
#crm-flow a.crm-video-end-more:focus{background:#2a2a2a;color:#fff}
#crm-flow .crm-video-end-channel,
#crm-flow a.crm-video-end-channel,
#crm-flow a.crm-video-end-channel:link,
#crm-flow a.crm-video-end-channel:visited{background:transparent;color:#f3dcb0;border:1.5px solid #f3dcb0}
#crm-flow .crm-video-end-channel:hover,
#crm-flow a.crm-video-end-channel:hover,
#crm-flow a.crm-video-end-channel:focus{background:#f3dcb0;color:#111}
#crm-flow .crm-video-end-estimate,
#crm-flow a.crm-video-end-estimate,
#crm-flow a.crm-video-end-estimate:link,
#crm-flow a.crm-video-end-estimate:visited{background:#f46e00;color:#fff}
#crm-flow .crm-video-end-estimate:hover,
#crm-flow a.crm-video-end-estimate:hover,
#crm-flow a.crm-video-end-estimate:focus{background:#c85800;color:#fff}
@media screen and (min-width:768px){
  #crm-flow p.crm-video-end-title, #crm-flow .crm-video-end-title{font-size:22px}
}
.crm-video-section{margin:8px 0 8px}
.crm-video-section h2{text-align:center}
.crm-video-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  margin:16px 0 20px;
}
@media screen and (min-width:768px){
  .crm-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.crm-video-card{margin:0}
.crm-video-card figcaption{
  margin:10px 0 0;
  font:600 15px/1.4 "Open Sans",Arial,Helvetica,sans-serif;
  color:#333;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.crm-video-title{display:block}
.crm-brand-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font:700 11px/1 Arial,Helvetica,sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#c85800;
}
.crm-brand-dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--crm-brand,#f46e00);
  flex:0 0 auto;
}
.crm-brand-owens-corning{--crm-brand:#D6006F;color:#D6006F}
.crm-brand-atlas{--crm-brand:#ED1C24;color:#ED1C24}
.crm-brand-gaf{--crm-brand:#C8102E;color:#C8102E}
.crm-brand-tamko{--crm-brand:#9E1B32;color:#9E1B32}
.crm-brand-tri-county{--crm-brand:#0054A6;color:#0054A6}
.crm-brand-gaco{--crm-brand:#0072BC;color:#0072BC}
.crm-brand-neutral{--crm-brand:#f46e00;color:#c85800}
.crm-split[id],
.crm-video-card[id]{scroll-margin-top:88px}
@media screen and (min-width:760px){
  .crm-split[id],
  .crm-video-card[id]{scroll-margin-top:112px}
}
.crm-youtube-more,
.crm-projects-youtube{margin:18px 0 8px;text-align:center}
.crm-youtube-more a,
.crm-projects-youtube a{
  color:#c85800;
  font:700 16px/1.35 Arial,Helvetica,sans-serif;
  text-decoration:none
}
.crm-youtube-more a:hover,
.crm-youtube-more a:focus,
.crm-projects-youtube a:hover,
.crm-projects-youtube a:focus{text-decoration:underline;color:#a34700}

/* Supply partners */
.crm-partners{padding:8px 16px 24px;box-sizing:border-box;width:100%}
.crm-partners-inner{max-width:800px;margin:0 auto}
.crm-partners h2{
  margin:20px 0 12px;
  color:#333;
  font-family:Georgia,"Palatino Linotype",Palatino,"Times New Roman",Times,serif;
  font-weight:700;
  font-size:clamp(1.2rem, 4.2vw, 1.75rem);
  line-height:1.25;
  text-align:left
}
.crm-partners-compact{
  font-family:Arial,Helvetica,sans-serif;
  background:#faf6ee;
  padding:28px 16px 32px;
  margin:0
}
.crm-partners-compact h2{
  margin:0 0 16px;
  font:700 22px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing:.04em;
  text-transform:uppercase;
  text-align:center;
  color:#111
}
.crm-brand-grid-partners{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  width:100%;
  margin:8px 0 8px
}
@media screen and (min-width:600px){
  .crm-brand-grid-partners{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Header social icons (desktop contact block; mobile logo bar). */
.crm-social-links{display:flex;align-items:center;gap:10px;line-height:0}
.crm-desknav-social{
  display:inline-flex;align-items:center;justify-content:center;
  margin-top:0;line-height:0;padding:2px
}
.crm-desknav-social svg{display:block;width:24px;height:24px;fill:#f3dcb0;color:#f3dcb0}
.crm-desknav-social:hover svg,
.crm-desknav-social:focus svg{fill:#fff;color:#fff}
@media(max-width:759px){
  .crm-mobnav-row{justify-content:space-between;gap:8px}
  .crm-mobnav-row .crm-social-links{flex:0 0 auto;margin-left:auto}
  .crm-mobnav-row .crm-desknav-social svg{width:22px;height:22px}
}
#crm-site-footer .crm-social a svg{display:block;width:28px;height:28px;fill:#f3dcb0;color:#f3dcb0}
#crm-site-footer .crm-social a:hover svg,
#crm-site-footer .crm-social a:focus svg{fill:#fff;color:#fff}

/* Keep the tighter tablet nav only below 1024 so it cannot shrink the desktop header. */
@media screen and (min-width:760px) and (max-width:1023px){
  .crm-desknav-links{gap:8px 12px}
  .crm-desknav-links a{font-size:13px}
}

/* Desktop header (>=1024): larger links, spread evenly between logo and contact. */
@media screen and (min-width:1024px){
  .crm-desknav{gap:16px;padding:8px 28px}
  .crm-desknav-links{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:space-evenly;
    flex-wrap:nowrap;
    gap:0;
    min-width:0
  }
  .crm-desknav-links a{
    font:600 16px/1.2 Arial,Helvetica,sans-serif;
    padding:10px 8px;
    white-space:nowrap
  }
}
/* 1024–1279 is tight: 16px labels plus the contact block need a slightly
   smaller logo and tighter bar padding so links do not overlap email/phone. */
@media screen and (min-width:1024px) and (max-width:1279px){
  .crm-desknav{gap:10px;padding:8px 16px}
  .crm-desknav-brand img{height:56px}
  .crm-desknav-links a{padding:10px 0}
}
@media screen and (min-width:1280px){
  .crm-desknav-links a{
    font-size:17px;
    padding:10px 12px
  }
}

/* Desktop >=1024: widen to match reviews, two-column zigzag, full-width bands.
   Nothing in this block applies at 360–430 or 768. */
@media screen and (min-width:1024px){
  .crm-flow-inner{max-width:1140px}
  .crm-ygrene-inner,
  .crm-svc-grid,
  .crm-rev-grid,
  .crm-projects-grid,
  .crm-footer-inner,
  .crm-hero-inner,
  .crm-partners-inner{max-width:1140px}

  .crm-home-head,
  .crm-home-intro,
  .crm-home-more,
  .crm-video-section,
  .crm-split{
    position:relative;
    z-index:0;
    padding-top:32px;
    padding-bottom:32px
  }
  .crm-home-head::before,
  .crm-home-intro::before,
  .crm-home-more::before,
  .crm-video-section::before,
  .crm-split::before{
    content:"";
    position:absolute;
    top:0;bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:100vw;
    z-index:-1;
    pointer-events:none
  }
  .crm-home-head::before,
  .crm-home-more::before,
  .crm-split:not(.crm-split-rev)::before{background:#faf6ee}
  .crm-home-intro::before,
  .crm-video-section::before,
  .crm-split-rev::before{background:#f5f5f5}

  /* Home first row: top-align the welcome box with the heading, less section padding. */
  .crm-flow-home .crm-flow-inner{padding-top:12px}
  .crm-home-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:32px 48px;
    align-items:flex-start;
    padding-top:10px;
    padding-bottom:28px
  }
  .crm-home-head .crm-welcome{
    margin:0;
    height:auto;
    display:block;
    box-sizing:border-box
  }
  .crm-home-head .crm-bbb{margin-bottom:0}

  /* Shorten the desktop hero just enough that the welcome box clears 1366x768 / 1440x900. */
  .crm-hero{min-height:0}
  .crm-hero-inner{padding:28px 28px 32px}
  .crm-hero-title{margin-bottom:8px}
  .crm-hero-lead{margin-bottom:16px}

  /* Desktop mid-band: keep one continuous #f5f5f5 fill on the wrapper.
     The earlier generic ::before/padding rules would otherwise paint
     .crm-home-more cream and reopen a seam. */
  .crm-home-intro::before,
  .crm-home-more::before{content:none;background:none}
  .crm-home-intro,
  .crm-home-more{padding-top:0;padding-bottom:0}
  .crm-home-band{padding:18px 0}
  .crm-home-copy{padding-bottom:14px}
  .crm-home-copy .crm-lead,
  .crm-home-copy .crm-lead-em{font-size:1.05rem}
  .crm-home-more{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 28px}
  .crm-flow-home .crm-video-section{padding:16px 0 20px}
  .crm-flow-home .crm-video-section h2{margin-bottom:12px}
  .crm-flow-home .crm-embed{max-width:1140px}

  .crm-split{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:32px 48px;
    align-items:center
  }
  .crm-split .crm-photo{margin:0}
  .crm-split-rev .crm-photo{grid-column:1;grid-row:1}
  .crm-split-rev .crm-split-copy{grid-column:2;grid-row:1}
  .crm-split .crm-split-copy h2{margin-top:0}

  .crm-flow-services .crm-partners{
    position:relative;
    z-index:0;
    padding:36px 24px 40px;
    background:#faf6ee
  }

  .crm-video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Partners on home live in #crm-midstack, outside #crm-flow, so they must not
   inherit the leftover position:absolute from the old .crm-brand-grid rule. */
.crm-partners .crm-brand-grid,
.crm-brand-grid-partners{
  position:static;
  left:auto;
  top:auto;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}

/* Partners grid: beat #crm-flow .crm-brand-grid (2-col) so three official cards stay in a row. */
#crm-flow .crm-brand-grid-partners,
.crm-partners .crm-brand-grid-partners{
  grid-template-columns:1fr
}
@media screen and (min-width:600px){
  #crm-flow .crm-brand-grid-partners,
  .crm-partners .crm-brand-grid-partners{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}
/* Official QXO logo is white; use a dark card like Tri-County Metals. */
.crm-brand-card-qxo,
#crm-flow .crm-brand-card-qxo{
  background:#212121;border-color:#212121
}
.crm-brand-card-qxo .crm-brand-label,
#crm-flow .crm-brand-card-qxo .crm-brand-label{color:#f3dcb0}
.crm-brand-card-qxo:hover,
.crm-brand-card-qxo:focus-visible,
#crm-flow .crm-brand-card-qxo:hover,
#crm-flow .crm-brand-card-qxo:focus-visible{
  background:#2a2a2a
}

@media screen and (min-width:1024px) and (max-height:820px){
  .crm-hero-inner{padding:16px 28px 20px}
  .crm-flow-home .crm-flow-inner{padding-top:8px}
  .crm-home-head{padding-top:8px;padding-bottom:24px}
}


/* ---- Nav dropdowns (Roofing Services + Videos) ---- */
.crm-nav-item{position:relative}
.crm-nav-toprow{display:flex;align-items:stretch}
.crm-nav-caret{
  display:inline-flex;align-items:center;justify-content:center;
  margin:0;padding:0;border:0;background:transparent;cursor:pointer;
  color:inherit;flex:0 0 auto
}
.crm-submenu{list-style:none;margin:0;padding:0}

/* Mobile hamburger: tap-expand submenus */
@media screen and (max-width:759px){
  .crm-drop .crm-nav-item{border-bottom:1px solid #2a2a2a}
  .crm-drop .crm-nav-item > .crm-nav-toprow > .crm-nav-top,
  .crm-drop a.crm-nav-top{
    flex:1 1 auto;
    border-bottom:0
  }
  .crm-drop .crm-nav-caret{
    width:52px;min-height:52px;
    color:#f3dcb0;
    border-left:1px solid #2a2a2a;
    font-size:16px;line-height:1
  }
  .crm-drop .crm-nav-item.open .crm-nav-caret{color:#f46e00}
  .crm-drop .crm-submenu{display:none;background:#1a1a1a}
  .crm-drop .crm-nav-item.open .crm-submenu{display:block}
  .crm-drop .crm-submenu a{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    padding:12px 20px 12px 32px;
    text-transform:none;
    letter-spacing:0;
    font:600 14px/1.35 Arial,Helvetica,sans-serif;
    color:#f3dcb0;
    border-left:4px solid transparent;
    border-bottom:1px solid #2a2a2a;
    white-space:normal
  }
  .crm-drop .crm-submenu a.sub-current,
  .crm-drop .crm-submenu a.current{border-left-color:#f46e00;color:#fff}
  .crm-drop .crm-submenu .crm-brand-tag{color:inherit}
  .crm-drop .crm-submenu .crm-brand-tag{letter-spacing:.06em;font-size:10px;color:#fff}
  .crm-drop .crm-submenu .crm-brand-owens-corning{color:#ff7ab5}
  .crm-drop .crm-submenu .crm-brand-atlas{color:#ff8a8a}
}

/* Desktop hover + click dropdowns */
@media screen and (min-width:760px){
  .crm-desknav-links .crm-nav-item{
    display:flex;
    align-items:center;
    flex:0 0 auto
  }
  .crm-desknav-links .crm-nav-toprow{align-items:center}
  .crm-desknav-links .crm-nav-caret{
    width:18px;height:28px;padding:0;
    color:#f3dcb0;font-size:11px;line-height:1;
    margin-left:1px
  }
  .crm-desknav-links .crm-nav-caret:hover,
  .crm-desknav-links .crm-nav-caret:focus{color:#fff}
  .crm-desknav-links .crm-submenu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    min-width:280px;
    max-width:360px;
    padding:8px 0;
    background:#212121;
    border-top:3px solid #f46e00;
    box-shadow:0 12px 28px rgba(0,0,0,.4);
    z-index:10020
  }
  .crm-desknav-links .crm-submenu-end{left:auto;right:0}
  .crm-desknav-links .crm-nav-item:hover > .crm-submenu,
  .crm-desknav-links .crm-nav-item:focus-within > .crm-submenu,
  .crm-desknav-links .crm-nav-item.open > .crm-submenu{display:block}
  .crm-desknav-links .crm-submenu a{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
    white-space:normal;
    padding:10px 16px;
    border-bottom:0;
    font:600 13px/1.35 Arial,Helvetica,sans-serif;
    color:#f3dcb0;
    letter-spacing:0
  }
  .crm-desknav-links .crm-submenu a:hover,
  .crm-desknav-links .crm-submenu a:focus{background:#2a2a2a;color:#fff}
  .crm-desknav-links .crm-submenu a.sub-current,
  .crm-desknav-links .crm-submenu a.current{color:#fff;border-bottom-color:transparent;background:#2a2a2a}
  .crm-desknav-links .crm-submenu .crm-brand-tag{font-size:10px}
  .crm-desknav-links .crm-submenu .crm-brand-owens-corning{color:#ff7ab5}
  .crm-desknav-links .crm-submenu .crm-brand-atlas{color:#ff8a8a}
}
/* 1024–1279: the bar is already tight. Hide in-flow carets (hover/focus-within
   still opens the menus) and slightly tighten label type so links cannot overlap
   the contact block or each other. */
@media screen and (min-width:1024px) and (max-width:1279px){
  .crm-desknav-links .crm-nav-caret{display:none}
  .crm-desknav-links{gap:0 8px;justify-content:space-between}
  .crm-desknav-links > a,
  .crm-desknav-links .crm-nav-top{
    font-size:15px;
    padding:10px 0
  }
  .crm-desknav-links .crm-submenu{min-width:260px;max-width:320px}
}
