/* castlerockproroofing.com skin over the Roofora template.
   Palette derived from Bike's Castle Rock Roofing Co. logo:
   near-black ink, charcoal grays, brick red, warm off-white. */

:root {
    --primary--color: #1b1b1b;      /* was navy #1e2e4f */
    --secondary--color: #ffffff;
    --accent--color: #c0221f;       /* logo red, was mustard #f19e1f */
    --text--color: #5c5c60;
    --black--color: #111111;
    --blue--color: #161616;
    --blue--color2: #262626;
    --sky--color: #f5f4f2;          /* warm light gray sections */
    --lemon--color: #f8efee;        /* pale red-tinted band */
    --green--color: #3bad20;
    --yellow--color: #a51d1a;       /* deep red */
    --lemon--color2: #faf6f4;
    --border--color: #d9d6d2;
    --border--color2: #e8e5e1;
    --light--blue--color: #b9b9bd;
    --light--blue--color2: #c2c2c6;
    --light--blue--color3: #b3b3b8;
}

/* ---------- demoted chrome headings keep heading look (see prep_css.py) ---------- */
.xh2, .xh3, .xh4, .xh6 { display: block; }

/* ---------- hero quote card (standing directive: email capture in the hero) ---------- */
.cr-hero-quote {
    background: #ffffff;
    border-radius: 20px;
    padding: 34px 32px 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    max-width: 400px;
    margin-left: auto;
    position: relative;
    z-index: 3;
}
.cr-hero-quote .cr-quote-title {
    font-family: "Oswald", sans-serif;
    font-size: 26px;
    line-height: 32px;
    color: var(--primary--color);
    font-weight: 600;
    margin-bottom: 6px;
}
.cr-hero-quote .cr-quote-sub {
    font-size: 14px;
    line-height: 21px;
    color: var(--text--color);
    margin-bottom: 18px;
}
.cr-quote-form .form-control {
    height: 48px;
    border: 1px solid var(--border--color);
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    padding: 6px 16px;
    color: var(--primary--color);
}
.cr-quote-form .form-control:focus {
    border-color: var(--accent--color);
    box-shadow: none;
}
.cr-form-btn {
    width: 100%;
    border: 0;
    cursor: pointer;
    text-align: center;
}
.cr-form-note {
    font-size: 12px;
    color: var(--text--color);
    margin-top: 10px;
    text-align: center;
}
.cr-form-status {
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    color: var(--accent--color);
}

/* hero layout: keep template banner height but let content + card sit side by side */
.banner-con .cr-hero-row { align-items: center; }
@media (max-width: 991px) {
    .cr-hero-quote { margin: 40px auto 0; max-width: 460px; }
}

/* ---------- band quote form note ---------- */
.cr-band-note { color: #d6d6da; margin-bottom: 18px; }

/* ---------- footer link columns ---------- */
.cr-footer-links {
    padding: 34px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 24px;
}
.cr-footer-head {
    color: #ffffff;
    font-family: "Oswald", sans-serif;
    font-size: 17px;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}
.cr-footer-links ul li { margin-bottom: 6px; }
.cr-footer-links ul li a {
    color: #c9c9cd;
    text-decoration: none;
    font-size: 14.5px;
}
.cr-footer-links ul li a:hover { color: var(--accent--color); }

/* ---------- long-form article measure on service/blog pages ---------- */
.cr-article { max-width: 900px; }
.cr-article p, .cr-article li { font-size: 16.5px; line-height: 28px; color: var(--text--color); }
.cr-article h2, .cr-article .xh2 { margin-top: 34px; }
.cr-article h3, .cr-article .xh3 { margin-top: 26px; }
.cr-article ul { padding-left: 20px; margin-bottom: 18px; }
.cr-article ul li { list-style: disc; margin-bottom: 8px; }
.cr-article .cr-callout {
    background: var(--sky--color);
    border-left: 4px solid var(--accent--color);
    border-radius: 8px;
    padding: 18px 22px;
    margin: 22px 0;
}
.cr-article .cr-callout p { margin-bottom: 0; }

/* fact table used on cost/permit pages */
.cr-table-wrap { overflow-x: auto; margin: 20px 0; }
.cr-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cr-table th, .cr-table td {
    border: 1px solid var(--border--color2);
    padding: 12px 16px;
    text-align: left;
    font-size: 15.5px;
    color: var(--text--color);
}
.cr-table th {
    background: var(--sky--color);
    color: var(--primary--color);
    font-family: "Oswald", sans-serif;
    font-weight: 600;
}

/* stat chips (hail history, elevations) */
.cr-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; }
.cr-stat {
    background: #ffffff;
    border: 1px solid var(--border--color2);
    border-radius: 14px;
    padding: 18px 22px;
    min-width: 150px;
    flex: 1 1 150px;
}
.cr-stat .num {
    font-family: "Oswald", sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--accent--color);
    display: block;
}
.cr-stat .lbl { font-size: 13.5px; color: var(--text--color); }

/* neighborhood chips */
.cr-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.cr-chips span {
    background: var(--sky--color);
    border: 1px solid var(--border--color2);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14.5px;
    color: var(--primary--color);
}

/* interior pages: kill the 1154px home hero sizing on inner wrapper */
.cr-inner-wrap .header-con { position: relative; }

/* sub-banner: real photography (Bike's dark tile roof) under a dark gradient,
   and the template's 182px/182px padding cut down: the header sits in normal
   flow on interior pages, so that padding was pure empty black space */
.sub-banner-con {
    background-image: linear-gradient(112deg, rgba(10, 10, 12, 0.92) 0%, rgba(22, 22, 26, 0.84) 55%, rgba(46, 24, 22, 0.80) 100%),
        url(../images/hero-bg.webp);
    background-position: center;
    background-size: cover;
    padding-top: 96px;
    padding-bottom: 84px;
}
.banner-con {
    background-image: linear-gradient(112deg, rgba(10, 10, 12, 0.90) 0%, rgba(22, 22, 26, 0.78) 55%, rgba(46, 24, 22, 0.72) 100%),
        url(../images/hero-bg.webp);
    background-position: center;
}

/* hero trust points (replace the template's floating white promise boxes) */
.cr-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 26px;
}
.cr-hero-points li {
    color: #e8e8ea;
    font-size: 15px;
    white-space: nowrap;
}
.cr-hero-points li i {
    color: var(--accent--color);
    margin-right: 7px;
}

/* long button labels collide with the absolute arrow circle: reserve its zone */
.secondary_btn, .elementary_btn { padding: 0 62px 0 26px !important; }
.cr-form-btn { padding: 0 26px !important; }

/* template demo bg images are dimension-placeholder JPGs: replace every one we use */
.footer-con {
    background-image: linear-gradient(160deg, #141414 0%, #1f1f22 70%, #2a1a19 100%) !important;
}
.services-con {
    background-image: linear-gradient(118deg, #181818 0%, #26262a 55%, #3a2220 100%) !important;
}
.cta-con {
    background-image: linear-gradient(105deg, #161616 0%, #292930 60%, #47201d 100%) !important;
}
.error-banner-con, .sub-banner-con.error {
    background-image: linear-gradient(118deg, #161616 0%, #2b2b2e 55%, #3d2422 100%) !important;
}

/* honest-info cards standing in for template testimonials */
.cr-local-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 30px; }
.cr-local-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border--color2);
    padding: 26px 26px 22px;
    text-align: left;
}
.cr-local-card .xh3 {
    font-size: 21px;
    line-height: 27px;
    color: var(--primary--color);
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
}
.cr-local-card p { margin-bottom: 0; font-size: 15px; line-height: 24px; }

/* nav labels must never break into two lines ("Cost Guide" wrap fix) */
.header-con .navbar-nav .nav-link { white-space: nowrap; }

/* header was designed for a 1605px wrapper: compact it on narrower desktops */
@media (max-width: 1620px) and (min-width: 992px) {
    .header-con .navbar-brand img { width: 190px !important; height: auto !important; }
    .header-contact .contact-btn figure { display: none !important; }
    .header-contact .contact-btn { padding-right: 0 !important; }
    .header-contact li.d-flex { display: none !important; }
    .header-con .navbar-expand-lg .navbar-nav { gap: 34px; padding-right: 20px; }
}
@media (max-width: 1240px) and (min-width: 992px) {
    .header-con .navbar-expand-lg .navbar-nav { gap: 22px; }
}

/* mobile hardening (playwright QA rule: verify at 375px) */
@media (max-width: 767px) {
    .text-size-120 { font-size: 44px; line-height: 52px; }
    .text-size-90 { font-size: 29px; line-height: 38px; }
    .text-size-60 { font-size: 30px; line-height: 38px; }
    .banner-con { height: auto; padding: 120px 0 60px; }
    .cr-hero-points li { white-space: normal; }
    .sub-banner-con { padding-top: 120px; padding-bottom: 80px; }
    .cr-footer-links { flex-direction: column; }
    .middle_portion { flex-direction: column; gap: 14px; text-align: center; }
    .copyright-con { flex-direction: column; gap: 10px; }
    .cr-quote-band { flex-direction: column; }
}
