PageSourceSearch

https://www.ccsroof.com/services/

html ccsroof.com collected 2026-09-30 14:30:31 UTC 46,387 bytes, 346 lines download raw bytes

1<!DOCTYPE html><html lang="en"> <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="description" content="CCS Roofing LLC offers roof replacement, repair, asphalt shingle roofing, tile roofing, flat roofing, storm damage repair, siding, and gutter installation in the Denver metro area."><meta name="robots" content="index, follow"><link rel="canonical" href="https://ccsroof.com/services/"><!-- Google Tag Manager -->
1<script>
vendor: 343 bytes, lines 1-5
1(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
2    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
3    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
4    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
5    })(window,document,'script','dataLayer','
5GTM-MDD2Z9P9
vendor: 3 bytes, line 5
5');
5</script>
5<!-- End Google Tag Manager --><!-- Microsoft Clarity -->
5<script>(function(c,l,a,r,i,t,y){c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);})(window,document,"clarity","script","wasb83wfph");</script>
5<!-- End Microsoft Clarity --><!-- ============================================================
6         GOOGLE ANALYTICS 4 (GA4)
7         Replace G-XXXXXXXXXX with your GA4 Measurement ID.
8         Get yours at: https://analytics.google.com → Admin → Data Streams
9         ============================================================ --><!--
vendor: 74 bytes, line 9
9 <script is:inline async src="https://www.googletagmanager.com/gtag/js?id=
9G-XXXXXXXXXX
vendor: 16 bytes, lines 9-10
9"></script>
10    
10<script is:inline>
11      
vendor: 145 bytes, lines 11-14
11window.dataLayer = window.dataLayer || [];
12      function gtag(){dataLayer.push(arguments);}
13      gtag('js', new Date());
14      gtag('config', '
14G-XXXXXXXXXX
vendor: 8 bytes, lines 14-15
14');
15    
15</script>
15 --><!-- ============================================================
16         FACEBOOK / META PIXEL
17         Replace XXXXXXXXXXXXXXXX with your 15-16 digit Pixel ID.
18         Get yours at: https://business.facebook.com → Events Manager
19         ============================================================ --><!-- 
19<script is:inline>
20      !function(f,b,e,v,n,t,s)
21      {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
22      n.callMethod.apply(n,arguments):n.queue.push(arguments)};
23      if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
24      n.queue=[];t=b.createElement(e);t.async=!0;
25      t.src=v;s=b.getElementsByTagName(e)[0];
26      s.parentNode.insertBefore(t,s)}(window, document,'script',
27      'https://connect.facebook.net/en_US/fbevents.js');
28      fbq('init', 'XXXXXXXXXXXXXXXX');
29      fbq('track', 'PageView');
30    </script>
30
31    <noscript><img height="1" width="1" style="display:none"
32      src="https://www.facebook.com/tr?id=XXXXXXXXXXXXXXXX&ev=PageView&noscript=1"
33    /></noscript> --><!-- ============================================================
34         CALL TRACKING (CallRail / WhatConverts / CallTrackingMetrics)
35         Paste your call tracking provider's script snippet below.
36         This will dynamically swap your phone number for tracking.
37         ============================================================ --><!-- 
37<script is:inline>
38      // PASTE YOUR CALL TRACKING SCRIPT HERE
39      // Example for CallRail:
40      // (function(a,e,c,f,g,h,b,d){...})(window,document,...,'YOUR-COMPANY-ID');
41    </script>
41 --><!-- Open Graph --><meta property="og:title" content="Roofing, Siding &#38; Gutter Services | CCS Roofing LLC | Westminster, CO"><meta property="og:description" content="CCS Roofing LLC offers roof replacement, repair, asphalt shingle roofing, tile roofing, flat roofing, storm damage repair, siding, and gutter installation in the Denver metro area."><meta property="og:type" content="website"><meta property="og:url" content="https://ccsroof.com/services/"><meta property="og:image" content="https://ccsroof.com/images/hero-background.webp"><meta property="og:site_name" content="CCS Roofing"><meta property="og:locale" content="en_US"><!-- Twitter --><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="Roofing, Siding &#38; Gutter Services | CCS Roofing LLC | Westminster, CO"><meta name="twitter:description" content="CCS Roofing LLC offers roof replacement, repair, asphalt shingle roofing, tile roofing, flat roofing, storm damage repair, siding, and gutter installation in the Denver metro area."><meta name="twitter:image" content="https://ccsroof.com/images/hero-background.webp"><!-- Geo Tags for Local SEO --><meta name="geo.region" content="US-CO"><meta name="geo.placename" content="Westminster, Colorado"><!-- Preconnect to Google Fonts --><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap" rel="stylesheet"><link rel="icon" type="image/x-icon" href="/favicon.ico"><link rel="icon" type="image/png" sizes="192x192" href="/favicon-192.png"><link rel="apple-touch-icon" href="/favicon-192.png"><title>Roofing, Siding &amp; Gutter Services | CCS Roofing LLC | Westminster, CO</title><!-- LocalBusiness / RoofingContractor Schema (site-wide, every page) -->
41<script type="application/ld+json">{"@context":"https://schema.org","@type":["RoofingContractor","LocalBusiness"],"@id":"https://ccsroof.com/#business","name":"CCS Roofing LLC","image":"https://ccsroof.com/images/ccs-roofing-logo.png","url":"https://ccsroof.com","telephone":"+1-720-446-6907","priceRange":"$$","address":{"@type":"PostalAddress","streetAddress":"8781 Sheridan Boulevard #6034","addressLocality":"Westminster","addressRegion":"CO","postalCode":"80003","addressCountry":"US"},"geo":{"@type":"GeoCoordinates","latitude":39.855284,"longitude":-105.0553},"areaServed":[{"@type":"City","name":"Westminster"},{"@type":"City","name":"Arvada"},{"@type":"City","name":"Broomfield"},{"@type":"City","name":"Northglenn"},{"@type":"City","name":"Thornton"},{"@type":"City","name":"Federal Heights"},{"@type":"City","name":"Wheat Ridge"},{"@type":"City","name":"Lakewood"},{"@type":"City","name":"Golden"},{"@type":"City","name":"Brighton"},{"@type":"City","name":"Denver"}],"openingHoursSpecification":[{"@type":"OpeningHoursSpecification","dayOfWeek":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"opens":"07:00","closes":"19:00"}],"aggregateRating":{"@type":"AggregateRating","ratingValue":"5.0","reviewCount":"107"},"sameAs":["https://www.facebook.com/61580763144741","https://maps.google.com/?cid=4088157246884300628"],"hasOfferCatalog":{"@type":"OfferCatalog","name":"Roofing Services","itemListElement":[{"@type":"Offer","itemOffered":{"@type":"Service","name":"Asphalt Shingle Roofing"}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"Tile Roofing"}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"Flat Roofing (TPO, EPDM, Mod Bit)"}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"Vinyl Siding Installation"}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"Hardie Board Siding Installation"}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"LP SmartSide Siding Installation"}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"K-Style Gutter Installation"}}]}}</script>
41<!-- Page-specific head content (e.g. FAQPage schema on the homepage) --><link rel="stylesheet" href="/_astro/contact.D7Bv40Fe.css"></head> <body class="bg-white text-gray-900"> <!-- Google Tag Manager (noscript) -->
vendor: 68 bytes, line 41
41 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=
41GTM-MDD2Z9P9
vendor: 83 bytes, line 41
41" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 
41<!-- End Google Tag Manager (noscript) --> <!-- Header --> <header class="fixed top-0 left-0 right-0 z-50 bg-dark/95 backdrop-blur-sm border-b border-white/10" id="header"> <!-- Top Bar --> <div class="bg-gold text-dark text-sm font-semibold"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-1.5 flex justify-center items-center"> <a href="tel:+17204466907" class="flex items-center gap-1 hover:text-dark-light transition-colors"> <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path></svg>
42(720) 446-6907
43</a> </div> </div> <!-- Main Nav --> <nav class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <div class="flex items-center justify-between h-16"> <!-- Logo --> <a href="/" class="block -my-1"> <img src="/images/ccs-roofing-logo.png" alt="CCS Roofing - Westminster CO Roofing Contractor" class="h-[62px] w-auto"> </a> <!-- Desktop Navigation --> <div class="hidden lg:flex items-center gap-8"> <div class="relative" id="services-dropdown-wrapper"> <a href="/services/" class="text-white/80 hover:text-gold transition-colors text-sm font-medium inline-flex items-center gap-1">
44Services
45<svg class="w-3.5 h-3.5 transition-transform duration-200" id="services-chevron" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M19 9l-7 7-7-7"></path></svg> </a> <div class="absolute top-full left-0 pt-2 hidden" id="services-dropdown"> <div class="bg-dark border border-white/10 rounded-lg shadow-xl py-2 w-56"> <a href="/services/roof-replacement/" class="block px-4 py-2 text-sm text-white/70 hover:text-gold hover:bg-white/5 transition-colors">Roof Replacement</a> <a href="/services/roof-repair/" class="block px-4 py-2 text-sm text-white/70 hover:text-gold hover:bg-white/5 transition-colors">Roof Repair</a> <a href="/services/asphalt-shingle-roofing/" class="block px-4 py-2 text-sm text-white/70 hover:text-gold hover:bg-white/5 transition-colors">Asphalt Shingle Roofing</a> <a href="/services/tile-roofing/" class="block px-4 py-2 text-sm text-white/70 hover:text-gold hover:bg-white/5 transition-colors">Tile Roofing</a> <a href="/services/flat-roofing/" class="block px-4 py-2 text-sm text-white/70 hover:text-gold hover:bg-white/5 transition-colors">Flat Roofing</a> <a href="/services/storm-damage/" class="block px-4 py-2 text-sm text-white/70 hover:text-gold hover:bg-white/5 transition-colors">Storm Damage</a> <a href="/services/insurance-restoration/" class="block px-4 py-2 text-sm text-white/70 hover:text-gold hover:bg-white/5 transition-colors">Insurance Restoration</a> <a href="/services/siding/" class="block px-4 py-2 text-sm text-white/70 hover:text-gold hover:bg-white/5 transition-colors">Siding Installation</a> <a href="/services/gutters/" class="block px-4 py-2 text-sm text-white/70 hover:text-gold hover:bg-white/5 transition-colors">K-Style Gutters</a> <div class="border-t border-white/10 mt-2 pt-2"> <a href="/services/" class="block px-4 py-2 text-sm text-gold font-medium hover:bg-white/5 transition-colors">View All Services</a> </div> </div> </div> </div> <a href="/projects/" class="text-white/80 hover:text-gold transition-colors text-sm font-medium">Project Gallery</a> <a href="/locations/" class="text-white/80 hover:text-gold transition-colors text-sm font-medium">Locations</a> <a href="/#about" class="text-white/80 hover:text-gold transition-colors text-sm font-medium">About</a> <a href="/#testimonials" class="text-white/80 hover:text-gold transition-colors text-sm font-medium">Reviews</a> <a href="/contact/" class="text-white/80 hover:text-gold transition-colors text-sm font-medium">Contact</a> <a href="/contact/" class="bg-gold hover:bg-gold-light text-dark font-bold px-6 py-2.5 rounded-lg transition-colors text-sm">
46Get Free Estimate
47</a> </div> <!-- Mobile menu button --> <button id="mobile-menu-btn" class="lg:hidden text-white p-2" aria-label="Toggle navigation menu" aria-expanded="false"> <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" id="menu-icon-open"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path> </svg> <svg class="w-6 h-6 hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24" id="menu-icon-close"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path> </svg> </button> </div> <!-- Mobile Navigation --> <div id="mobile-menu" class="lg:hidden hidden pb-4"> <div class="flex flex-col gap-2"> <button id="mobile-services-toggle" class="flex items-center justify-between w-full text-white/80 hover:text-gold transition-colors py-2 text-sm font-medium text-left cursor-pointer">
48Services
49<svg class="w-3.5 h-3.5 transition-transform duration-200" id="mobile-services-chevron" fill="none" stroke="currentColor" viewBox="0 0 24 24">
49<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M19 9l-7 7-7-7"></path></svg> </button> <div id="mobile-services-dropdown" class="hidden pl-4 flex flex-col gap-1"> <a href="/services/roof-replacement/" class="text-white/60 hover:text-gold transition-colors py-1.5 text-sm mobile-nav-link">Roof Replacement</a> <a href="/services/roof-repair/" class="text-white/60 hover:text-gold transition-colors py-1.5 text-sm mobile-nav-link">Roof Repair</a> <a href="/services/asphalt-shingle-roofing/" class="text-white/60 hover:text-gold transition-colors py-1.5 text-sm mobile-nav-link">Asphalt Shingle Roofing</a> <a href="/services/tile-roofing/" class="text-white/60 hover:text-gold transition-colors py-1.5 text-sm mobile-nav-link">Tile Roofing</a> <a href="/services/flat-roofing/" class="text-white/60 hover:text-gold transition-colors py-1.5 text-sm mobile-nav-link">Flat Roofing</a> <a href="/services/storm-damage/" class="text-white/60 hover:text-gold transition-colors py-1.5 text-sm mobile-nav-link">Storm Damage</a> <a href="/services/insurance-restoration/" class="text-white/60 hover:text-gold transition-colors py-1.5 text-sm mobile-nav-link">Insurance Restoration</a> <a href="/services/siding/" class="text-white/60 hover:text-gold transition-colors py-1.5 text-sm mobile-nav-link">Siding Installation</a> <a href="/services/gutters/" class="text-white/60 hover:text-gold transition-colors py-1.5 text-sm mobile-nav-link">K-Style Gutters</a> <a href="/services/" class="text-gold hover:text-gold-light transition-colors py-1.5 text-sm font-medium mobile-nav-link">View All Services</a> </div> <a href="/projects/" class="text-white/80 hover:text-gold transition-colors py-2 text-sm font-medium mobile-nav-link">Project Gallery</a> <a href="/locations/" class="text-white/80 hover:text-gold transition-colors py-2 text-sm font-medium mobile-nav-link">Locations</a> <a href="/#about" class="text-white/80 hover:text-gold transition-colors py-2 text-sm font-medium mobile-nav-link">About</a> <a href="/#testimonials" class="text-white/80 hover:text-gold transition-colors py-2 text-sm font-medium mobile-nav-link">Reviews</a> <a href="/contact/" class="text-white/80 hover:text-gold transition-colors py-2 text-sm font-medium mobile-nav-link">Contact</a> <a href="/contact/" class="bg-gold hover:bg-gold-light text-dark font-bold px-6 py-2.5 rounded-lg transition-colors text-sm text-center mt-2">
50Get Free Estimate
51</a> </div> </div> </nav> </header> <main>   <section class="bg-dark pt-32 pb-16 lg:pt-40 lg:pb-20"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <nav class="text-sm mb-6" aria-label="Breadcrumb"> <ol class="flex items-center gap-2 text-white/50"> <li><a href="/" class="hover:text-gold transition-colors">Home</a></li> <li>/</li> <li class="text-gold">Services</li> </ol> </nav> <div class="max-w-3xl"> <h1 class="text-4xl sm:text-5xl font-black text-white leading-tight mb-6">
52Our <span class="text-gold">Services</span> </h1> <p class="text-white/70 text-lg leading-relaxed">
53CCS Roofing LLC provides comprehensive roofing, siding, and gutter services for homes across the Denver metro area. Every project is backed by our 5-year workmanship warranty.
54</p> </div> </div> </section>  <section class="py-16 bg-white"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <h2 class="text-2xl font-black text-dark mb-8"> <span class="text-gold">Roofing</span> Services
55</h2> <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6"> <a href="/services/roof-replacement/" class="group bg-white rounded-xl border border-gray-200 p-6 hover:border-gold/50 hover:shadow-lg transition-all"> <div class="w-12 h-12 bg-gold/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gold/20 transition-colors"> <svg class="w-6 h-6 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path> </svg> </div> <h3 class="text-lg font-bold text-dark group-hover:text-gold transition-colors mb-2">Roof Replacement</h3> <p class="text-gray-500 text-sm leading-relaxed mb-4">Expert tear-off and installation backed by a 5-year workmanship warranty. Protecting Denver metro homes with quality mat...</p> <div class="inline-flex items-center gap-1 text-gold font-semibold text-sm group-hover:gap-2 transition-all">
56Learn more
57<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
57<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg> </div> </a><a href="/services/roof-repair/" class="group bg-white rounded-xl border border-gray-200 p-6 hover:border-gold/50 hover:shadow-lg transition-all"> <div class="w-12 h-12 bg-gold/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gold/20 transition-colors"> <svg class="w-6 h-6 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path> </svg> </div> <h3 class="text-lg font-bold text-dark group-hover:text-gold transition-colors mb-2">Roof Repair</h3> <p class="text-gray-500 text-sm leading-relaxed mb-4">Fast response, honest assessments, and lasting repairs. We fix leaks, storm damage, and wear — without pushing a full re...</p> <div class="inline-flex items-center gap-1 text-gold font-semibold text-sm group-hover:gap-2 transition-all">
58Learn more
59<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg> </div> </a><a href="/services/asphalt-shingle-roofing/" class="group bg-white rounded-xl border border-gray-200 p-6 hover:border-gold/50 hover:shadow-lg transition-all"> <div class="w-12 h-12 bg-gold/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gold/20 transition-colors"> <svg class="w-6 h-6 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path> </svg> </div> <h3 class="text-lg font-bold text-dark group-hover:text-gold transition-colors mb-2">Asphalt Shingle Roofing</h3> <p class="text-gray-500 text-sm leading-relaxed mb-4">Colorado&#39;s most popular roofing material, installed by experts. We work with premium brands to deliver roofs that last t...</p> <div class="inline-flex items-center gap-1 text-gold font-semibold text-sm group-hover:gap-2 transition-all">
60Learn more
61<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg> </div> </a><a href="/services/tile-roofing/" class="group bg-white rounded-xl border border-gray-200 p-6 hover:border-gold/50 hover:shadow-lg transition-all"> <div class="w-12 h-12 bg-gold/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gold/20 transition-colors"> <svg class="w-6 h-6 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm10 0a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zm10 0a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"></path> </svg> </div> <h3 class="text-lg font-bold text-dark group-hover:text-gold transition-colors mb-2">Tile Roofing</h3> <p class="text-gray-500 text-sm leading-relaxed mb-4">Elegant, durable, and built to last a lifetime. Our tile roofing expertise brings premium protection and timeless aesthe...</p> <div class="inline-flex items-center gap-1 text-gold font-semibold text-sm group-hover:gap-2 transition-all">
62Learn more
63<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
63<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg> </div> </a><a href="/services/flat-roofing/" class="group bg-white rounded-xl border border-gray-200 p-6 hover:border-gold/50 hover:shadow-lg transition-all"> <div class="w-12 h-12 bg-gold/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gold/20 transition-colors"> <svg class="w-6 h-6 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 12H4"></path> </svg> </div> <h3 class="text-lg font-bold text-dark group-hover:text-gold transition-colors mb-2">Flat Roofing</h3> <p class="text-gray-500 text-sm leading-relaxed mb-4">TPO, EPDM, and Modified Bitumen — expert installation of commercial and residential flat roof systems engineered for Col...</p> <div class="inline-flex items-center gap-1 text-gold font-semibold text-sm group-hover:gap-2 transition-all">
64Learn more
65<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg> </div> </a><a href="/services/storm-damage/" class="group bg-white rounded-xl border border-gray-200 p-6 hover:border-gold/50 hover:shadow-lg transition-all"> <div class="w-12 h-12 bg-gold/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gold/20 transition-colors"> <svg class="w-6 h-6 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"></path> </svg> </div> <h3 class="text-lg font-bold text-dark group-hover:text-gold transition-colors mb-2">Storm Damage &amp; Insurance Claims</h3> <p class="text-gray-500 text-sm leading-relaxed mb-4">Colorado&#39;s hailstorms are relentless. We&#39;re your partner from initial inspection through insurance approval to final rep...</p> <div class="inline-flex items-center gap-1 text-gold font-semibold text-sm group-hover:gap-2 transition-all">
66Learn more
67<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg> </div> </a><a href="/services/insurance-restoration/" class="group bg-white rounded-xl border border-gray-200 p-6 hover:border-gold/50 hover:shadow-lg transition-all"> <div class="w-12 h-12 bg-gold/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gold/20 transition-colors"> <svg class="w-6 h-6 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path> </svg> </div> <h3 class="text-lg font-bold text-dark group-hover:text-gold transition-colors mb-2">Insurance Restoration</h3> <p class="text-gray-500 text-sm leading-relaxed mb-4">We handle your entire insurance claim from the first inspection to the final shingle. Dozens of Westminster homeowners h...</p> <div class="inline-flex items-center gap-1 text-gold font-semibold text-sm group-hover:gap-2 transition-all">
68Learn more
69<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg> </div> </a> </div> </div> </section><section class="py-16 bg-gray-light"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <h2 class="text-2xl font-black text-dark mb-8"> <span class="text-gold">Siding</span> Services
70</h2> <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6"> <a href="/services/siding/" class="group bg-white rounded-xl border border-gray-200 p-6 hover:border-gold/50 hover:shadow-lg transition-all"> <div class="w-12 h-12 bg-gold/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gold/20 transition-colors"> <svg class="w-6 h-6 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 10
70h16M4 14h16M4 18h16"></path> </svg> </div> <h3 class="text-lg font-bold text-dark group-hover:text-gold transition-colors mb-2">Siding Installation</h3> <p class="text-gray-500 text-sm leading-relaxed mb-4">Transform your home&#39;s exterior with premium siding. Vinyl, Hardie Board, and LP SmartSide — installed by experts who und...</p> <div class="inline-flex items-center gap-1 text-gold font-semibold text-sm group-hover:gap-2 transition-all">
71Learn more
72<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg> </div> </a> </div> </div> </section><section class="py-16 bg-white"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <h2 class="text-2xl font-black text-dark mb-8"> <span class="text-gold">Gutters</span> Services
73</h2> <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6"> <a href="/services/gutters/" class="group bg-white rounded-xl border border-gray-200 p-6 hover:border-gold/50 hover:shadow-lg transition-all"> <div class="w-12 h-12 bg-gold/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gold/20 transition-colors"> <svg class="w-6 h-6 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"></path> </svg> </div> <h3 class="text-lg font-bold text-dark group-hover:text-gold transition-colors mb-2">K-Style Gutter Installation</h3> <p class="text-gray-500 text-sm leading-relaxed mb-4">Complete gutter systems that protect your home&#39;s foundation, landscaping, and exterior. Professional installation with p...</p> <div class="inline-flex items-center gap-1 text-gold font-semibold text-sm group-hover:gap-2 transition-all">
74Learn more
75<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg> </div> </a> </div> </div> </section> <section class="py-16 bg-gold"> <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center"> <h2 class="text-3xl font-black text-dark mb-4">Not Sure What You Need?</h2> <p class="text-dark/70 text-lg mb-8 max-w-2xl mx-auto">
76Schedule a free inspection and we'll assess your home's needs. No obligation, no pressure — just honest recommendations.
77</p> <div class="flex flex-col sm:flex-row gap-4 justify-center"> <a href="/#quote" class="bg-dark hover:bg-dark-light text-white font-bold px-8 py-4 rounded-lg transition-colors">
78Get Your Free Estimate
79</a> <a href="tel:+17204466907" class="bg-white hover:bg-gray-100 text-dark font-bold px-8 py-4 rounded-lg transition-colors flex items-center justify-center gap-2"> <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path></svg>
80(720) 446-6907
81</a> </div> </div> </section>  </main> <!-- Footer --> <footer class="bg-dark text-white"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10"> <!-- Company Info --> <div> <a href="/" class="inline-block mb-4"> <img src="/images/ccs-roofing-logo.png" alt="CCS Roofing - Westminster CO Roofing Contractor" class="h-16 w-auto"> </a> <p class="text-white/60 text-sm leading-relaxed mb-4">
82Colorado's trusted roofing, siding, and gutter experts. Quality craftsmanship backed by a 5-year warranty on all work.
83</p> <a href="https://www.facebook.com/profile.php?id=61580763144741" target="_blank" rel="noopener noreferrer" class="inline-flex items-center gap-2 text-white/60 hover:text-gold transition-colors text-sm" aria-label="Visit CCS Roofing on Facebook"> <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"></path></svg>
84Follow us on Facebook
85</a> </div> <!-- Services --> <div> <h3 class="text-gold font-bold text-sm uppercase tracking-wider mb-4">Services</h3> <ul class="space-y-2 text-sm text-white/60"> <li><a href="/services/roof-replacement/" class="hover:text-gold transition-colors">Roof Replacement</a></li> <li><a href="/services/roof-repair/" class="hover:text-gold transition-colors">Roof Repair</a></li> <li><a href="/services/asphalt-shingle-roofing/" class="hover:text-gold transition-colors">Asphalt Shingle Roofing</a></li> <li><a href="/services/tile-roofing/" class="hover:text-gold transition-colors">Tile Roofing</a></li> <li><a href="/services/flat-roofing/" class="hover:text-gold transition-colors">Flat Roofing</a></li> <li><a href="/services/storm-damage/" class="hover:text-gold transition-colors">Storm Damage &amp; Insurance</a></li> <li><a href="/services/siding/" class="hover:text-gold transition-colors">Siding Installation</a></li> <li><a href="/services/gutters/" class="hover:text-gold transition-colors">K-Style Gutters</a></li> </ul> </div> <!-- Service Areas --> <div> <h3 class="text-gold font-bold text-sm uppercase tracking-wider mb-4">Service Areas</h3> <ul class="space-y-2 text-sm text-white/60"> <li><a href="/locations/westminster-co/" class="hover:text-gold transition-colors">Westminster</a></li> <li><a href="/locations/arvada-co/" class="hover:text-gold transition-colors">Arvada</a></li> <li><a href="/locations/lakewood-co/" class="hover:text-gold transition-colors">Lakewood</a></li> <li><a href="/locations/wheat-ridge-co/" class="hover:text-gold transition-colors">Wheat Ridge</a></li> <li><a href="/locations/broomfield-co/" class="hover:text-gold transition-colors">Broomfield</a></li> <li><a href="/locations/federal-heights-co/" class="hover:text-gold transition-colors">Federal Heights</a></li> <li><a href="/locations/golden-co/" class="hover:text-gold transition-colors">Golden</a></li> <li><a href="/locations/thornton-co/" class="hover:text-gold transition-colors">Thornton</a></li> <li><a href="/locations/northglenn-co/" class="hover:text-gold transition-colors">Northglenn</a></li> <li><a href="/locations/brighton-co/" class="hover:text-gold transition-colors">Brighton</a></li> </ul> </div> <!-- Contact Info --> <div> <h3 class="text-gold font-bold text-sm uppercase tracking-wider mb-4">Contact Us</h3> <ul class="space-y-3 text-sm text-white/60"> <li class="flex items-start gap-2"> <svg class="w-5 h-5 mt-0.5 shrink-0 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24">
85<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path></svg> <span>8781 Sheridan Blvd #6034<br>Westminster, CO 80003</span> </li> <li class="flex items-center gap-2"> <svg class="w-5 h-5 shrink-0 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path></svg> <a href="tel:+17204466907" class="hover:text-gold transition-colors">(720) 446-6907</a> </li> <li class="flex items-start gap-2"> <svg class="w-5 h-5 mt-0.5 shrink-0 text-gold" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span>Mon - Sat: 7AM - 7PM<br>Sunday: Closed</span> </li> </ul> </div> </div> <!-- Bottom Bar --> <div class="border-t border-white/10 mt-12 pt-8 flex flex-col sm:flex-row justify-between items-center gap-4"> <p class="text-white/40 text-sm">
86&copy; 2026 CCS Roofing LLC. All rights reserved.
87</p> <p class="text-white/40 text-sm">
88Serving Westminster, CO &amp; the Greater Denver Metro Area
89</p> </div> </div> </footer> <!-- Mobile Menu Script --> 
89<script type="module">const n=document.getElementById("mobile-menu-btn"),t=document.getElementById("mobile-menu"),s=document.getElementById("menu-icon-open"),o=document.getElementById("menu-icon-close"),r=document.querySelectorAll(".mobile-nav-link");function m(){const e=!t?.classList.contains("hidden");t?.classList.toggle("hidden"),s?.classList.toggle("hidden"),o?.classList.toggle("hidden"),n?.setAttribute("aria-expanded",String(!e))}n?.addEventListener("click",m);r.forEach(e=>e.addEventListener("click",()=>{t?.classList.add("hidden"),s?.classList.remove("hidden"),o?.classList.add("hidden"),n?.setAttribute("aria-expanded","false")}));const d=document.getElementById("services-dropdown-wrapper"),i=document.getElementById("services-dropdown"),c=document.getElementById("services-chevron");let l;d?.addEventListener("mouseenter",()=>{clearTimeout(l),i?.classList.remove("hidden"),c?.classList.add("rotate-180")});d?.addEventListener("mouseleave",()=>{l=setTimeout(()=>{i?.classList.add("hidden"),c?.classList.remove("rotate-180")},150)});const a=document.getElementById("mobile-services-toggle"),g=document.getElementById("mobile-services-dropdown"),u=document.getElementById("mobile-services-chevron");a?.addEventListener("click",()=>{g?.classList.toggle("hidden"),u?.classList.toggle("rotate-180")});</script>
89 <!-- Attribution Capture & Form Submission Script --> 
89<script>
90      (function() {
91        var COOKIE_LAST = 'ccs_attribution';
92        var COOKIE_FIRST = 'ccs_attribution_first';
93        var COOKIE_DAYS = 90;
94        var UTM_KEYS = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content'];
95        var CLICK_ID_KEYS = ['gclid', 'gbraid', 'wbraid'];
96        var ALL_PARAM_KEYS = CLICK_ID_KEYS.concat(UTM_KEYS);
97
98        var debug = false;
99        try {
100          var qs = new URLSearchParams(window.location.search);
101          debug = qs.get('debug') === 'attr' || (window.localStorage && localStorage.getItem('ccs_debug') === '1');
102        } catch (_) {}
103        function log() {
104          if (!debug) return;
105          try { console.log.apply(console, ['[ccs-attr]'].concat([].slice.call(arguments))); } catch (_) {}
106        }
107
108        function setCookie(name, value, days) {
109          var d = new Date();
110          d.setTime(d.getTime() + days * 24 * 60 * 60 * 1000);
111          var secure = window.location.protocol === 'https:' ? '; Secure' : '';
112          document.cookie = name + '=' + encodeURIComponent(value) +
113            '; expires=' + d.toUTCString() +
114            '; path=/; SameSite=Lax' + secure;
115        }
116        function getCookie(name) {
117          var match = document.cookie.match(new RegExp('(?:^|; )' + name.replace(/[.$?*|{}()[\]\\/+^]/g, '\\$&') + '=([^;]*)'));
118          return match ? decodeURIComponent(match[1]) : '';
119        }
120        function readJSONCookie(name) {
121          var raw = getCookie(name);
122          if (!raw) return null;
123          try { return JSON.parse(raw); } catch (_) { return null; }
124        }
125        function writeJSONCookie(name, obj) {
126          setCookie(name, JSON.stringify(obj), COOKIE_DAYS);
127        }
128
129        function parseInbound() {
130          var params = new URLSearchParams(window.location.search);
131          var hasClickId = false;
132          var inbound = {};
133          CLICK_ID_KEYS.forEach(function(k) {
134            var v = params.get(k);
135            if (v) { inbound[k] = v; hasClickId = true; }
136          });
137          var hasUtm = false;
138          UTM_KEYS.forEach(function(k) {
139            var v = params.get(k);
140            if (v) { inbound[k] = v; hasUtm = true; }
141          });
142          return { data: inbound, hasClickId: hasClickId, hasUtm: hasUtm };
143        }
144
145        function captureAttribution() {
146          var inbound = parseInbound();
147          var landingPage = window.location.pathname + window.location.search;
148          var nowIso = new Date().toISOString();
149
150          // FIRST-TOUCH: write only if cookie does not exist. Always write
151          // on first visit, even without ad params, so we capture organic
152          // referrer and landing page.
153          if (!getCookie(COOKIE_FIRST)) {
154            var firstPayload = {
155              gclid: inbound.data.gclid || '',
156              gbraid: inbound.data.gbraid || '',
157              wbraid: inbound.data.wbraid || '',
158              utm_source: inbound.data.utm_source || '',
159              utm_medium: inbound.data.utm_medium || '',
160              utm_campaign: inbound.data.utm_campaign || '',
161              utm_term: inbound.data.utm_term || '',
162              utm_content: inbound.data.utm_content || '',
163              landing_page: landingPage,
164              referrer: document.referrer || '',
165              first_touch_at: nowIso
166            };
167            writeJSONCookie(COOKIE_FIRST, firstPayload);
168            log('first-touch written', firstPayload);
169          }
170
171          // LAST-TOUCH: overwrite if a new gclid/gbraid/wbraid OR new utm
172          // arrives. If neither arrives, leave the existing last-touch alone.
173          if (inbound.hasClickId || inbound.hasUtm) {
174            var lastPayload = {
175              gclid: inbound.data.gclid || '',
176              gbraid: inbound.data.gbraid || '',
177              wbraid: inbound.data.wbraid || '',
178              utm_source: inbound.data.utm_source || '',
179              utm_medium: inbound.data.utm_medium || '',
180              utm_campaign: inbound.data.utm_campaign || '',
181              utm_term: inbound.data.utm_term || '',
182              utm_content: inbound.data.utm_content || '',
183              landing_page: landingPage,
184              touched_at: nowIso
185            };
186            writeJSONCookie(COOKIE_LAST, lastPayload);
187            log('last-touch written', lastPayload);
188          }
189        }
190
191        function getAttributionForForm() {
192          var last = readJSONCookie(COOKIE_LAST) || {};
193          var first = readJSONCookie(COOKIE_FIRST) || {};
194          return {
195            gclid: last.gclid || '',
196            gbraid: last.gbraid || '',
197            wbraid: last.wbraid || '',
198            utm_source: last.utm_source || '',
199            utm_medium: last.utm_medium || '',
200            utm_campaign: last.utm_campaign || '',
201            utm_term: last.utm_term || '',
202            utm_content: last.utm_content || '',
203            landing_page: last.landing_page || first.landing_page || '',
204            referrer: first.referrer || '',
205            first_touch_at: first.first_touch_at || ''
206          };
207        }
208
209        // Old field names kept for the existing Zapier mapping; ad_* names
210        // are the new canonical names. Both are sent during the transition.
211        var LEGACY_FIELD_MAP = {
212          gclid: 'gclid',
213          gbraid: 'gbraid',
214          wbraid: 'wbraid',
215          utm_source: 'utm_source',
216          utm_medium: 'utm_medium',
217          utm_campaign: 'utm_campaign',
218          utm_term: 'utm_term',
219          utm_content: 'utm_content',
220          landing_page: 'landing_page'
221        };
222        var AD_FIELD_MAP = {
223          gclid: 'ad_gclid',
224          gbraid: 'ad_gbraid',
225          wbraid: 'ad_wbraid',
226          utm_source: 'ad_utm_source',
227          utm_medium: 'ad_utm_medium',
228          utm_campaign: 'ad_utm_campaign',
229          utm_term: 'ad_utm_term',
230          utm_content: 'ad_utm_content',
231          landing_page: 'ad_landing_page',
232          referrer: 'ad_referrer',
233          first_touch_at: 'ad_first_touch_at'
234        };
235
236        function ensureHidden(form, name) {
237          var existing = form.querySelector('input[name="' + name + '"][type="hidden"]');
238          if (existing) return existing;
239          var input = document.createElement('input');
240          input.type = 'hidden';
241          input.name = name;
242          form.appendChild(input);
243          return input;
244        }
245
246        // Instrumentation only — neither field can block a submission.
247        // form_rendered_at is stamped once, when the form is wired up.
248        // ref_code_2 is a honeypot: off-screen, unfocusable, never announced.
249        function addInstrumentation(form) {
250          ensureHidden(form, 'form_rendered_at').value = String(Date.now());
251
252          if (form.querySelector('input[name="ref_code_2"]')) return;
253          var trap = document.createElement('input');
254          trap.type = 'text';
255          trap.name = 'ref_code_2';
256          trap.tabIndex = -1;
257          trap.autocomplete = 'off';
258          trap.setAttribute('aria-hidden', 'true');
259          trap.style.cssText = 'position:absolute;left:-9999px;width:1px;height:1px;opacity:0;';
260          form.appendChild(trap);
261        }
262
263        function applyAttributionToForm(form) {
264          var attr = getAttributionForForm();
265          // Legacy names (only those that existed before)
266          Object.keys(LEGACY_FIELD_MAP).forEach(function(srcKey) {
267            ensureHidden(form, LEGACY_FIELD_MAP[srcKey]).value = attr[srcKey] || '';
268          });
269          // New ad_* names (full set including referrer/first_touch_at)
270          Object.keys(AD_FIELD_MAP).forEach(function(srcKey) {
271            ensureHidden(form, AD_FIELD_MAP[srcKey]).value = attr[srcKey] || '';
272          });
273          return attr;
274        }
275
276        function setupForms() {
277          document.querySelectorAll('form[data-form-source]').forEach(function(form) {
278            if (form.dataset.formReady) return;
279            form.dataset.formReady = 'true';
280
281            applyAttributionToForm(form);
282            addInstrumentation(form);
283
284            form.addEventListener('submit', function(e) {
285              e.preventDefault();
286              var btn = form.querySelector('button[type="submit"]');
287              var originalText = btn ? btn.textContent : '';
288              if (btn) {
289                btn.disabled = true;
290                btn.textContent = 'Sending...';
291              }
292
293              // Refresh attribution values right before send
294              var attrSnapshot = applyAttributionToForm(form);
295              log('submitting form', form.id || '(unnamed)', attrSnapshot);
296
297              var data = {};
298              new FormData(form).forEach(function(value, key) {
299                data[key] = value;
300              });
301              if (data.name) data.display_name = data.name;
302              data.form_source = form.dataset.formSource || '';
303
304              fetch('/api/lead', {
305                method: 'POST',
306                headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
307                body: new URLSearchParams(data).toString()
308              }).then(function(response) {
309                if (!response.ok) throw new Error('lead post failed: ' + response.status);
310                return response.json().catch(function() { return {}; });
311              }).then(function(result) {
312                // Default to /thank-you/ so an unreadable body never strands a
313                // real customer on the wrong page.
314                var target = (result && result.redirect) || '/thank-you/';
315                if (target === '/thank-you/') {
316                  try { sessionStorage.setItem('ccs_lead_ok', '1'); } catch (err) {}
317                }
318                window.location.href = target;
319              }).catch(function() {
320                if (btn) {
321                  btn.disabled = false;
322                  btn.textContent = 'Something went wrong. Please call us.';
323                  setTimeout(function() { btn.textContent = originalText; }, 4000);
324                }
325              });
326            });
327          });
328        }
329
330        // Expose for /test-attribution and debugging
331        window.ccsAttribution = {
332          get: getAttributionForForm,
333          last: function() { return readJSONCookie(COOKIE_LAST); },
334          first: function() { return readJSONCookie(COOKIE_FIRST); },
335          rawCookies: function() { return document.cookie; }
336        };
337
338        captureAttribution();
339
340        if (document.readyState === 'loading') {
341          document.addEventListener('DOMContentLoaded', setupForms);
342        } else {
343          setupForms();
344        }
345      })();
346    </script>
346 </body> </html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.