/* ==========================================================================
   AHBIH Gutters - fixes & mobile optimisation
   Loaded after styles.css. Keeps the original template look, fixes layout
   bugs and makes every page comfortable on phones.
   ========================================================================== */

:root {
	--brand-red: #D7262E;
	--accent: #D7262E;
	--water: #2E86DE;
	--dark: #1E1F22;
	--cta-height: 58px;
}

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* Keyboard users: skip link + visible focus */
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100000;
	background: var(--dark); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--water);
	outline-offset: 2px;
}

/* ---------- Navigation ---------- */
/* new vector logo (wider than the old one): fixed height, natural width */
.navbar-logo img { height: 56px; width: auto; max-height: none; max-width: none; margin-left: 15px; display: block; }
.navbar-header-custom { padding: 12px 0; }
.footer-logo { width: 230px; max-width: 100%; height: auto; display: block; }
.navbar-custom .navbar-links-custom li.active > a { color: var(--accent); }
.navbar-custom .navbar-links-custom li.nav-phone a { color: var(--brand-red); white-space: nowrap; }
.navbar-custom .navbar-links-custom li.nav-phone a i { font-size: 12px; }

@media (max-width: 767px) {
	.navbar-logo img { height: 46px; }
	.navbar-custom .navbar-collapse { max-height: calc(100vh - 70px); border-top: 1px solid #f0f0f0; }
	/* bigger, easier tap targets in the mobile menu */
	.navbar-custom .navbar-links-custom li { padding: 0; }
	.navbar-custom .navbar-links-custom li a {
		display: block; font-size: 14px; padding: 14px 20px; letter-spacing: 1px;
	}
	.navbar-toggle { padding: 12px 10px; margin-right: 10px; }
}

/* ---------- Hero slider ---------- */
.hero-slider .slide-item { position: relative; background-position: center; }
.hero-slider .slide-item::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.6) 100%);
	z-index: 0;
}
.hero-slider .slide-item > .container { position: relative; z-index: 1; }
.hero-slider .pre-title-center {
	display: inline-block; opacity: 1; color: #fff; background: var(--brand-red);
	padding: 2px 12px; border-radius: 3px; text-transform: uppercase; letter-spacing: 2px; font-size: 13px;
}
.hero-slider .title-center {
	color: #fff; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.45);
	line-height: 1.15; margin: 16px 0 0;
}
.hero-slider .text-center p { color: #fff; font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero-slider .dark-button { background: var(--brand-red); }
.hero-slider .dark-button:hover { background: #fff; color: var(--dark); }
.hero-call {
	display: inline-block; margin-left: 8px; color: #fff; font-size: 11px; font-weight: 600;
	border: 2px solid rgba(255,255,255,.85); border-radius: 50px; padding: 8px 15px;
}
.hero-call:hover, .hero-call:focus { color: var(--dark); background: #fff; text-decoration: none; }

@media (max-width: 767px) {
	.hero-slider { height: auto; }
	.hero-slider .swiper-slide { padding: 0 10px; display: flex; align-items: center; min-height: 78vh; }
	.hero-slider .swiper-slide > .container { width: 100%; min-width: 0; }
	.hero-slider .slider-content { transform: none; padding: 40px 0 60px; }
	.hero-slider .title-center { font-size: 30px; }
	.hero-slider .text-center { font-size: 15px; }
	.hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { display: none; }
	.hero-slider .dark-button, .hero-call {
		display: block; width: 100%; max-width: 300px; margin: 10px auto 0; padding: 14px 20px;
		font-size: 13px; text-align: center;
	}
}

/* ---------- Sections & typography on phones ---------- */
@media (max-width: 767px) {
	.section-block, .section-block-bg { padding-top: 50px; padding-bottom: 50px; }
	.section-block-parallax { padding: 50px 0; }
	.section-heading h3 { font-size: 22px; line-height: 1.35; }
	.text-content p { font-size: 15px; line-height: 1.8; color: #555; }
	.project-title h2 { font-size: 26px; }
	.mt-100 { margin-top: 50px !important; }
	.outline-bordered-left, .outline-bordered-right { margin-top: 25px; }
	.dark-button.button-md { display: inline-block; padding: 13px 22px; font-size: 13px; }
}

/* Fixed backgrounds don't work on iOS/Android and showed up as a blank
   white block - use normal scrolling backgrounds on touch / small screens. */
@media (max-width: 991px), (hover: none) {
	.section-block-parallax, .clip { background-attachment: scroll !important; }
}
.section-block-parallax { position: relative; background-color: #333; }
.section-block-parallax::before {
	content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45);
}
.section-block-parallax > .container { position: relative; z-index: 1; }

/* Count-up block */
@media (max-width: 991px) {
	.outline-bordered-text-right:after { display: none; }
	.section-block-parallax .mt-70 { margin-top: 0 !important; }
	.section-block-parallax .section-heading h3 { color: #fff; }
}
@media (max-width: 767px) {
	.countup-box { margin: 20px 0 0; }
	.countup-box h4, .countup-box h4:after { font-size: 34px !important; text-shadow: none; }
	.countup-box strong { font-size: 11px !important; display: block; line-height: 1.3; }
}

/* ---------- Testimonial cards ---------- */
.blog-modern { position: relative; z-index: auto; height: 100%; }
.blog-moder-button { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.review-name {
	background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
	border-radius: 50px; padding: 6px 14px;
}
.review-stars { max-width: 120px; }
@media (max-width: 767px) {
	.blog-modern { border-right: 1px solid #ececec; margin-bottom: 15px; }
	.blog-modern p { font-size: 14px; color: #555; }
	.no-padding.col-xs-12 { padding-left: 15px !important; padding-right: 15px !important; }
}

/* About-page testimonials carousel */
.testmonial-block p, .testmonial-block h6 { color: #fff; }
@media (max-width: 767px) {
	.testmonial-block { padding: 0 5px; }
	.testmonial-block h4 { font-size: 21px; }
	.testmonial-block p { font-size: 15px; line-height: 1.7; }
}
#testmonials .owl-dots { text-align: center; margin-top: 20px; }
#testmonials .owl-dot span { width: 10px; height: 10px; margin: 5px; background: rgba(255,255,255,.4); display: block; border-radius: 50%; }
#testmonials .owl-dot.active span { background: #fff; }

/* ---------- Review / social boxes ---------- */
.review-box { padding-top: 30px; }
.review-box img { display: block; margin: 0 auto 20px; width: 100%; max-width: 230px; }
@media (max-width: 767px) {
	.review-box { padding: 20px 20px 15px; }
	.review-box img { max-width: 190px; }
	.pricing-button a { display: inline-block; padding: 12px 24px; }
}

/* ---------- Previous work tiles (About) ---------- */
/* Hover-only captions were invisible on touch screens: show them always. */
@media (hover: none), (max-width: 767px) {
	.team-member .team-member-overlay { opacity: 1; height: auto; padding: 0; bottom: 15px; }
	.team-member-name { position: static; transform: none; padding: 12px 10px 4px; white-space: normal; }
	.team-member-name h4 { font-size: 18px; }
	.team-member-content { position: static; transform: none; text-align: center; padding-bottom: 10px; }
}
@media (max-width: 767px) {
	.team-member { margin-bottom: 15px; padding: 0 15px; }
	.team-member img { width: 100%; }
}

/* ---------- Projects gallery ---------- */
.masonry-item { margin: 0 0 20px; }
.masonry-link { display: block; }
.masonry-item-overlay ul { margin: 0; padding: 0; }
.masonry-item-overlay li { color: #fff; }
@media (hover: none), (max-width: 767px) {
	.masonry-item-overlay { opacity: 1; height: auto; padding: 40px 14px 12px; pointer-events: none; }
	.masonry-item-overlay h4 { position: static; font-size: 17px; margin: 0 0 4px; }
	.masonry-item-overlay ul { position: static; }
	.masonry-item-overlay ul li { font-size: 12px; }
}
@media (min-width: 360px) and (max-width: 699px) {
	.masonry { column-count: 2; -webkit-column-count: 2; column-gap: 12px; margin: 12px; }
	.masonry-item { margin-bottom: 12px; }
	.masonry-item-overlay { padding: 30px 10px 8px; }
	.masonry-item-overlay h4 { font-size: 14px; }
	.masonry-item-overlay ul li { font-size: 11px; }
	.masonry-item-overlay ul li:last-child { display: none; }
	.masonry-item-overlay ul li:after { content: none !important; }
}

/* ---------- Contact page ---------- */
.form-heading { font-size: 22px; font-weight: 600; color: #2d2d2d; margin: 0 0 15px; }
.contact-info a { color: inherit; }
.contact-info a:hover { color: var(--accent); }
.contact-form input, .contact-form textarea { font-size: 16px; } /* 16px stops iOS zooming in */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 4px; margin-bottom: 20px; font-weight: 500; }
.form-status.is-ok { background: #e8f5e9; color: #1b5e20; }
.form-status.is-error { background: #fdecea; color: #b71c1c; }
#map iframe { display: block; width: 100%; max-width: 100%; }
@media (max-width: 767px) {
	.contact-box-info { margin-bottom: 30px; }
	#map iframe { height: 300px; }
}

/* ---------- Footer ---------- */
footer ul li a:hover { color: var(--accent); }
footer .footer-copy { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; margin-top: 30px; opacity: .8; }
.footer-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); margin-top: 10px;
}
@media (max-width: 767px) {
	footer { padding: 40px 0; }
	footer ul li, footer ul li a { font-size: 14px; }
	footer ul li { padding: 6px 0; }
	footer ul li a { display: inline-block; padding: 4px 0; }
}

/* ---------- Mobile call / estimate bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 767px) {
	.mobile-cta {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
		height: var(--cta-height); box-shadow: 0 -2px 12px rgba(0,0,0,.18);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.mobile-cta a {
		flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
		color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; letter-spacing: .3px;
	}
	.mobile-cta-call { background: var(--brand-red); }
	.mobile-cta-quote { background: var(--dark); }
	body { padding-bottom: var(--cta-height); }
	.scroll-to-top { bottom: calc(var(--cta-height) + 14px); }
}

/* ---------- 404 ---------- */
.error { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.error .dark-button { background: var(--accent); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.wow { visibility: visible !important; }
}

/* ---------- Facebook page card ---------- */
.fb-feed-section { background: #f7f7f7; }
.fb-feed-section .row { display: flex; flex-wrap: wrap; align-items: center; }
.fb-feed-wrap { max-width: 500px; margin: 0 auto; }
.fb-page-embed {
	width: 100%; min-height: 130px; background: #fff; border: 1px solid #ececec;
	box-shadow: 0 6px 24px rgba(0,0,0,.06); overflow: hidden;
}
.fb-page-embed iframe { display: block; max-width: 100%; }
.fb-page-placeholder {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	width: 100%; min-height: 130px; color: #1877f2; font-weight: 600; text-decoration: none;
}
.fb-page-placeholder i { font-size: 36px; }
.fb-page-placeholder span { color: #555; font-size: 14px; }
.fb-feed-fallback { font-size: 14px; margin-top: 14px; text-align: center; }
.fb-feed-fallback a { color: var(--accent); font-weight: 600; }
@media (max-width: 767px) {
	.fb-feed-section .section-heading { margin-bottom: 10px; }
	.fb-feed-section .dark-button { margin-bottom: 25px; }
}

/* ==========================================================================
   Refresh: new photography
   ========================================================================== */

/* ---------- Hero: photo layer with a slow "Ken Burns" zoom ---------- */
.hero-slider .slide-item { overflow: hidden; }
.hero-slider .slide-bg {
	position: absolute; inset: -2px; z-index: 0;
	background-size: cover; background-position: center;
	transform: scale(1.02); transition: transform 7s ease-out; will-change: transform;
}
.hero-slider .swiper-slide-active .slide-bg { transform: scale(1.1); }
.hero-slider .slide-item::before {
	z-index: 1;
	background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.32) 45%, rgba(0,0,0,.62) 100%);
}
.hero-slider .slide-item > .container { z-index: 2; }
.hero-bg-1 { background-image: url("../img/recent/hero-1.jpg"); background-position: 55% 55%; }
.hero-bg-2 { background-image: url("../img/recent/hero-2.jpg"); background-position: 50% 60%; }
.hero-bg-3 { background-image: url("../img/recent/hero-3.jpg"); background-position: 55% 45%; }
@media (max-width: 767px) {
	/* portrait crops so the house / truck stays in frame on phones */
	.hero-bg-1 { background-image: url("../img/recent/hero-1-m.jpg"); background-position: center; }
	.hero-bg-2 { background-image: url("../img/recent/hero-2-m.jpg"); background-position: center; }
	.hero-bg-3 { background-image: url("../img/recent/hero-3-m.jpg"); background-position: center; }
}

/* darker veil on photo bands so white text stays readable on bright houses */
.section-block-parallax::before { background: rgba(0,0,0,.55); }

/* ---------- Inner-page headers with a photo ---------- */
.page-title-photo {
	position: relative; overflow: hidden;
	background-color: #1d1d1d; background-size: cover; background-position: center;
	padding: 120px 0 110px;
}
.page-title-photo::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(18,18,20,.5) 0%, rgba(18,18,20,.78) 100%);
}
.page-title-photo .container { position: relative; z-index: 1; }
.page-title-photo #particles-js-pagetitle { display: none; }
.page-title-photo h1 { text-shadow: 0 2px 16px rgba(0,0,0,.45); }
@media (max-width: 767px) {
	.page-title-photo { padding: 70px 0 60px; }
}

/* ---------- Recent work grid (home) ---------- */
.recent-work-head { display: flex; flex-wrap: wrap; align-items: flex-end; }
.recent-work-cta { text-align: right; margin-bottom: 30px; }
.recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.recent-tile {
	position: relative; display: block; overflow: hidden; border-radius: 6px;
	aspect-ratio: 1 / 1; background: #e5e5e5; box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.recent-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.recent-tile:hover img, .recent-tile:focus-visible img { transform: scale(1.06); }
.recent-tile-label {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 14px;
	color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .04em;
	background: linear-gradient(transparent, rgba(0,0,0,.72));
}
@media (max-width: 767px) {
	.recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.recent-work-cta { text-align: left; margin-bottom: 22px; }
	.recent-tile-label { font-size: 12px; padding: 30px 10px 10px; }
}

/* carousel thumbnails are real photos now */
.client-item img { border-radius: 4px; }

/* Desktop / tablet hero: tall enough to show the photos and never clip the buttons */
@media (min-width: 768px) {
	.hero-slider { height: 80vh; min-height: 560px; max-height: 860px; }
	.hero-slider .swiper-slide { display: flex; align-items: center; height: 100%; padding: 40px 90px; margin: 0; box-sizing: border-box; }
	.hero-slider .swiper-slide > .container { min-width: 0; }
	.hero-slider .slider-content { transform: none; }
	.hero-slider .title-center { font-size: 56px; }
	.hero-slider .text-center p { font-size: 17px; line-height: 1.6; }
	.hero-slider .dark-button, .hero-slider .hero-call { font-size: 13px; padding: 14px 26px; }
}
@media (min-width: 768px) and (max-width: 991px) {
	.hero-slider .title-center { font-size: 42px; }
	.hero-slider .swiper-slide { padding: 40px 60px; }
}

/* consistent, modern photo frames for section images */
.outline-bordered-left img, .outline-bordered-right img {
	display: block; width: 100%; height: auto; border-radius: 6px;
	box-shadow: 0 18px 40px rgba(0,0,0,.14);
}
