/* ==========================================================================
   AHBIH Gutters - brand theme
   Palette: Red #D7262E · Charcoal #1E1F22 · Water blue #2E86DE
            Paper #F5F5F2 · Slate #5E6168
   Loaded last: modern type, cards, labels and section rhythm on top of the
   original template.
   ========================================================================== */

:root {
	--red: #D7262E;
	--red-dark: #B51E25;
	--red-on-dark: #EF3B3B;
	--charcoal: #1E1F22;
	--water: #2E86DE;
	--paper: #F5F5F2;
	--line: #E4E4DE;
	--slate: #5E6168;
	--muted: #6B6F76;
	--radius: 12px;
	--shadow: 0 14px 40px rgba(30, 31, 34, .08);
	--shadow-hover: 0 22px 54px rgba(30, 31, 34, .15);
	/* variables used by mobile.css */
	--brand-red: #D7262E;
	--accent: #D7262E;
	--dark: #1E1F22;
}

html, body { color: var(--charcoal); background: #fff; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3, h4, h5, h6 { color: var(--charcoal); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline-color: var(--water); }

/* ---------- Section rhythm ---------- */
.bg-soft, .section-block.bg-soft { background-color: var(--paper); }
.section-block-bg { background-color: var(--paper); }
.fb-feed-section { background: #fff; }

/* ---------- Section labels: red eyebrow with a short bar (was a gold box) ---------- */
.section-heading h2 {
	background: none; color: var(--red);
	padding: 0 0 0 46px; margin-bottom: 14px;
	font-size: 13px; font-weight: 700; letter-spacing: .28em; line-height: 1.4;
}
.section-heading h2:after {
	content: ""; position: absolute; left: 0; top: 50%;
	width: 34px; height: 3px; margin: 0; padding: 0; border: 0; border-radius: 2px;
	background: var(--red); transform: translateY(-50%);
}
.section-heading h3 {
	font-size: 32px; font-weight: 800; letter-spacing: -.5px; line-height: 1.25; color: var(--charcoal);
}
.white-color h3, .section-block-parallax .section-heading h3 { color: #fff; }
@media (max-width: 767px) {
	.section-heading h3 { font-size: 24px; }
}

/* ---------- Text ---------- */
.text-content p { color: var(--slate); font-size: 15px; line-height: 1.85; font-weight: 500; }
.white-color p, .text-content.white-color p { color: #fff; }

/* ---------- Buttons ---------- */
.dark-button, .primary-button {
	font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
	transition: background-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.dark-button.button-md, .primary-button.button-md { padding: 14px 26px; }
.dark-button { background: var(--charcoal); color: #fff; }
.dark-button:hover, .dark-button:focus {
	background: var(--red); color: #fff; text-decoration: none;
	transform: translateY(-2px); box-shadow: 0 10px 24px rgba(215, 38, 46, .28);
}
.primary-button { background: var(--red); color: #fff; }
.primary-button:hover, .primary-button:focus { background: var(--charcoal); color: #fff; }
.dark-button:after, .primary-button:after { display: none; }

/* hero keeps red primary + white outline buttons */
.hero-slider .dark-button { background: var(--red); }
.hero-slider .dark-button:hover { background: #fff; color: var(--charcoal); box-shadow: none; }
.hero-slider .pre-title-center { background: var(--red); }

/* ---------- Navigation ---------- */
.navbar-custom { border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(30, 31, 34, .06); }
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
	background: transparent !important; color: var(--red) !important;
	box-shadow: inset 0 -3px 0 var(--red);
}
.navbar-custom .navbar-links-custom li a:hover { color: var(--red); }
.navbar-custom .navbar-toggle .icon-bar { background-color: var(--charcoal); }
@media (min-width: 768px) {
	.navbar-custom .navbar-links-custom li a { font-size: 12px; letter-spacing: .08em; }
}
@media (min-width: 992px) {
	.navbar-custom .navbar-links-custom li.nav-phone a {
		background: var(--red); color: #fff; border-radius: 40px; padding: 11px 18px; margin-left: 10px;
		transition: background-color .25s;
	}
	.navbar-custom .navbar-links-custom li.nav-phone a:hover { background: var(--charcoal); color: #fff; }
}
@media (max-width: 767px) {
	.navbar-default .navbar-nav > .active > a { box-shadow: inset 4px 0 0 var(--red); }
}

/* ---------- Page headers ---------- */
.page-title { background-color: var(--charcoal); }
.page-title h1 { font-weight: 800; letter-spacing: -.5px; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.page-title h1:before { width: 60px; height: 4px; border-radius: 2px; background: var(--red); margin-bottom: 16px; }
.page-title h6 { letter-spacing: .55em; font-weight: 600; }
@media (max-width: 767px) {
	.page-title h1 { font-size: 34px; }
	.page-title h6 { letter-spacing: .3em; }
}

/* ---------- About / features ---------- */
.top-article i { color: var(--water); text-shadow: none; }
.top-article-content h5 { font-weight: 700; color: var(--charcoal); }
.top-article-content p { color: var(--slate); }

/* ---------- Services ---------- */
.project-title h3 { color: var(--red); font-size: 18px; font-weight: 800; letter-spacing: .2em; }
.project-title h2 { font-weight: 800; letter-spacing: -.5px; }
.project-title h2:after { width: 56px; border-bottom: 4px solid var(--charcoal); border-radius: 2px; transition: width .3s, border-color .3s; }
.project-row:hover .project-title h2:after { width: 96px; border-bottom: 4px solid var(--red); }
@media (max-width: 767px) {
	.project-title h2 { font-size: 28px; }
}

/* ---------- Testimonial cards ---------- */
.blog-modern {
	background: #fff; border: 1px solid var(--line) !important; border-radius: var(--radius);
	box-shadow: var(--shadow); margin: 0 8px 16px; padding: 28px;
	transition: transform .3s, box-shadow .3s;
}
.blog-modern:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-modern h3 { font-size: 19px; font-weight: 700; min-height: 0; max-height: none; color: var(--charcoal); }
.blog-modern strong { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.blog-modern p { color: var(--slate); font-size: 14px; border-bottom: 1px solid var(--line); }
.review-name { background: var(--red); }

/* ---------- Count-up band ---------- */
.countup-box h4 { font-weight: 800; text-shadow: none; }
.countup-box h4:after { color: var(--red-on-dark); font-weight: 800; text-shadow: none; }
.countup-box strong { letter-spacing: .12em; }

/* ---------- Review / social cards ---------- */
.pricing-box {
	border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
	box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.pricing-box:hover { border: 1px solid var(--line); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pricing-best-center, .pricing-best-center:hover { border: 2px solid var(--red); }
.pricing-center { background: var(--red); border-radius: 0 0 8px 8px; padding: 6px 14px; margin-top: -1px; }
.pricing-button a { border-radius: 40px; letter-spacing: .06em; }
.pricing-button a:hover { color: #fff; }

/* ---------- Recent work + gallery ---------- */
.recent-tile { border-radius: var(--radius); }
.recent-tile-label { padding-left: 18px; }
.recent-tile-label:before {
	content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px;
	background: var(--red-on-dark); vertical-align: middle; margin-right: 8px;
}
.masonry-item-overlay h4 { font-weight: 700; }

/* ---------- Facebook card ---------- */
.fb-page-embed { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow); }
.fb-feed-fallback a { color: var(--red); }

/* ---------- Contact ---------- */
.contact-icon i { color: var(--water); border-color: rgba(46, 134, 222, .35); }
.contact-box-icon:hover .contact-icon i { background: var(--water); color: #fff; border-color: var(--water); }
.contact-info h5 { color: var(--red); font-weight: 700; }
.contact-info p, .contact-info a { color: var(--slate); }
.form-heading { font-weight: 800; letter-spacing: -.3px; color: var(--charcoal); }
.contact-form input, .contact-form textarea { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--charcoal); }
.contact-form input:focus, .contact-form textarea:focus {
	border-color: var(--water); box-shadow: 0 0 0 3px rgba(46, 134, 222, .15); outline: none;
}
.contact-form .primary-button { background: var(--red); font-size: 13px; }
.contact-form .primary-button:hover { background: var(--charcoal); }

/* ---------- Footer ---------- */
footer { background: var(--charcoal); }
footer p { color: rgba(255, 255, 255, .78); }
footer .footer-title h2 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
footer .footer-title h2:after { width: 34px; height: 3px; border-radius: 2px; background: var(--red); }
footer a:hover, footer ul li a:hover { color: var(--red-on-dark); }
.footer-social a:hover { background: var(--red); color: #fff; }

/* ---------- Small details ---------- */
.scroll-to-top { background: var(--red); }
.scroll-to-top:hover { background: var(--charcoal); }
.cube1 { background-color: var(--charcoal); }
.cube2 { background-color: var(--red); }
.mobile-cta-call { background: var(--red); }
.mobile-cta-quote { background: var(--charcoal); }
.error { background: var(--charcoal); }
.error .dark-button { background: var(--red); }
