/* =========================================================
   Redmond Electrical Solutions - CMS theme (header, banner, footer, home sections)
   Built on the CMS's Bootstrap 4.6; the shims below give the Bootstrap 5
   behaviour the design relies on (gutters, full-screen modal).
   ========================================================= */

/* ---------- Bootstrap 5 shims ---------- */
.row.g-0 { margin-left: 0; margin-right: 0; margin-top: 0; }
.row.g-0 > * { padding-left: 0; padding-right: 0; margin-top: 0; }
.row.g-3 { margin-left: -.5rem; margin-right: -.5rem; margin-top: -1rem; }
.row.g-3 > * { padding-left: .5rem; padding-right: .5rem; margin-top: 1rem; }
.row.g-4 { margin-left: -.75rem; margin-right: -.75rem; margin-top: -1.5rem; }
.row.g-4 > * { padding-left: .75rem; padding-right: .75rem; margin-top: 1.5rem; }
.row.g-5 { margin-left: -1.5rem; margin-right: -1.5rem; margin-top: -3rem; }
.row.g-5 > * { padding-left: 1.5rem; padding-right: 1.5rem; margin-top: 3rem; }
.portfolio-modal .modal-dialog { max-width: none; width: 100%; height: 100%; margin: 0; }
.portfolio-modal .modal-content { height: 100%; }
.portfolio-modal.modal { padding-right: 0 !important; }

/* ---------- CMS block output (blocks render as Markdown, so text arrives wrapped in <p>/<h1>) ---------- */
.rd-topbar-tagline p, .tb-label p, .hp-text span p, .hero-badge p, .check-list li p, .partners-title p,
.footer-title p, .footer-contact strong p, .footer-bottom-text p { display: inline; margin: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.hero-heading h1, .hero-heading h2, .hero-heading p { font: inherit; letter-spacing: inherit; margin: 0; color: #fff; }
.footer-title h1, .footer-title h2, .footer-title h3, .footer-title h4, .footer-title h5, .footer-title h6 { font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; margin: 0; color: inherit; }
.rd-topbar :is(h1,h2,h3,h4,h5,h6), .partners-title :is(h1,h2,h3,h4,h5,h6), .hero-badge :is(h1,h2,h3,h4,h5,h6),
.check-list li :is(h1,h2,h3,h4,h5,h6), .footer-contact strong :is(h1,h2,h3,h4,h5,h6), .footer-bottom-text :is(h1,h2,h3,h4,h5,h6) { display: inline; margin: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.footer-about p { font-size: 16px; line-height: 27.2px; }
.footer-about p:last-child { margin-bottom: 0; }
.hero-badge p { margin: 0; }
.check-list li p { margin: 0; }
.dynamic-form-container { height: 100%; }
.contact-heading h1, .contact-heading h2, .contact-heading h3 { font-size: 42px; line-height: 49px; font-weight: 600; color: #fff; margin: 0 0 20px; }

/* nav dropdown: the CMS's navigation.js puts .show on the <li>, not the link */
.site-header .dropdown.show > .nav-link { color: #fff !important; background: rgba(255,255,255,.1); }
.site-header .dropdown.show > .dropdown-toggle::after { transform: rotate(180deg); }
.site-header .navbar-nav .dropdown-menu { display: none; }
.site-header .navbar-nav .dropdown-menu.show { display: block; }
.site-header .navbar-nav .nav-item { list-style: none; }

/* form select arrow (Bootstrap 4 has no .form-select) */
.contact-form select.form-control { -webkit-appearance: none; -moz-appearance: none; appearance: none; height: auto; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 10px; padding-right: 42px; }
.contact-form .form-control { height: auto; }
.contact-form .g-recaptcha { margin-top: 4px; }
.contact-form .form-response { font-size: 14px; border-radius: 10px; }
.contact-form .btn-pill[disabled] { opacity: .6; cursor: not-allowed; }


:root {
    --red: #d82e1d;
    --maroon: #4e150f;
    --green: #073123;
    --dark: #262626;
    --text: #383838;
    --muted: #516961;
    --yellow: #ebbb0d;
    --font: 'Rethink Sans', sans-serif;
}

* { box-sizing: border-box; }
body { font-family: var(--font); font-weight: 500; color: var(--text); letter-spacing: -0.15px; overflow-x: hidden; }
img { max-width: 100%; }
a { text-decoration: none; transition: all .3s ease; }
.text-red { color: var(--red); }
.section-pad { padding: 90px 0; }

.container { max-width: 1410px; }

/* ---------- Badges & titles ---------- */
.section-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 50px; padding: 5px 14px; font-size: 16px; line-height: 24px; border: 1px solid rgba(255,255,255,.2); margin-bottom: 20px; }
.badge-red { background: var(--red); color: #fff; }
.badge-white { background: #fff; color: var(--green); }
.badge-icon { width: 20px; height: 20px; flex: 0 0 20px; background: currentColor; -webkit-mask: url(../images/redmond/icon-badge.svg) no-repeat center / 20px 20px; mask: url(../images/redmond/icon-badge.svg) no-repeat center / 20px 20px; }
.section-title { font-size: 42px; line-height: 1.17; font-weight: 600; color: var(--dark); margin-bottom: 20px; }
.title-center { max-width: 760px; margin-left: auto; margin-right: auto; margin-bottom: 40px; }
.section-text { font-size: 16px; line-height: 24px; color: var(--muted); margin-bottom: 25px; }
.section-text p { margin-bottom: 12px; }
.section-text p:last-child { margin-bottom: 0; }
.section-intro { max-width: 680px; margin: -20px auto 45px; font-size: 16px; line-height: 26px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 6px 0 24px; border-radius: 100px; font-size: 16px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; line-height: 16px; }
.btn-arrow { width: 40px; height: 40px; display: inline-flex; transform: rotate(-45deg); transition: transform .3s ease; }
.btn-arrow img { width: 40px; height: 40px; }
.btn-pill:hover .btn-arrow { transform: rotate(0deg); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b9220f; color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #f3f3f3; color: var(--red); }

/* ---------- Top bar ---------- */
.rd-topbar { position: relative; z-index: 21; background: #0b0b0b; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.rd-topbar::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--red) 0%, var(--red) 30%, transparent 100%); }
.rd-topbar-inner { padding: 0 75px; }
.rd-topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; }
.rd-topbar-tagline { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.9); }
.rd-topbar-tagline img { width: 18px; height: 18px; }
.rd-topbar-contact { display: flex; align-items: center; margin: 0; }
.rd-topbar-contact li { display: flex; align-items: center; gap: 10px; padding: 0 0 0 26px; margin-left: 26px; border-left: 1px solid rgba(255,255,255,.12); }
.rd-topbar-contact li:first-child { border-left: 0; margin-left: 0; padding-left: 0; }
.rd-topbar-contact li > a { display: flex; align-items: center; gap: 10px; color: #fff; }
.tb-icon { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: rgba(216,46,29,.15); border: 1px solid rgba(216,46,29,.6); color: #ff5a47; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all .3s ease; }
.rd-topbar-contact li:hover .tb-icon { background: var(--red); color: #fff; }
.tb-text { display: flex; flex-direction: column; font-size: 14px; line-height: 17px; font-weight: 600; }
.tb-text { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
.tb-label { width: 100%; font-size: 10px; line-height: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.tb-text a { color: #fff; }
.rd-topbar-contact a:hover, .rd-topbar-contact a:hover .tb-text { color: #ff5a47; }
.rd-topbar-contact .sep { color: rgba(255,255,255,.35); margin: 0 6px; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 53px; left: 0; right: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.12); transition: background .3s ease, box-shadow .3s ease; }
.site-header .navbar { padding: 16px 15px; transition: padding .3s ease; }
.header-inner { padding: 0 75px; }
.navbar-brand { display: flex; align-items: center; gap: 18px; padding: 0; margin: 0; }
.logo-main { width: 260px; height: auto; transition: width .3s ease; }
.brand-divider { width: 1px; height: 52px; background: rgba(255,255,255,.2); }
.logo-accreditation { width: 82px; height: auto; transition: width .3s ease; }
.brand-exp { display: flex; align-items: center; gap: 10px; margin: 0 auto 0 18px; padding: 7px 14px 7px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.04); color: #fff; white-space: nowrap; flex-shrink: 0; }
.exp-num { font-size: 26px; line-height: 1; font-weight: 700; color: #ff5a47; }
.exp-text { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.8); }
.site-header.is-sticky .brand-exp { padding: 5px 12px 5px 10px; }
.site-header.is-sticky .exp-num { font-size: 22px; }
.site-header .navbar-nav { gap: 4px; padding: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 50px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-header .nav-link { white-space: nowrap; position: relative; font-weight: 500; font-size: 14px; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.8) !important; padding: 10px 22px !important; border-radius: 40px; transition: background .3s ease, color .3s ease, box-shadow .3s ease; }
.site-header .nav-link:hover, .site-header .nav-link.show { color: #fff !important; background: rgba(255,255,255,.1); }
.site-header .nav-link.active { color: #fff !important; background: var(--red); box-shadow: 0 6px 18px rgba(216,46,29,.45); }
.site-header .nav-link:focus { box-shadow: none; outline: 0; }
.site-header .nav-link.active:focus { box-shadow: 0 6px 18px rgba(216,46,29,.45); }
.site-header .nav-link.show:focus-visible { outline: 0; }
.site-header .nav-link:focus-visible { outline: 1px dashed rgba(255,255,255,.6); outline-offset: 2px; }
.site-header .dropdown-toggle::after { border: 0; content: "\F282"; font-family: bootstrap-icons; vertical-align: -2px; margin-left: 6px; font-size: 11px; transition: transform .3s ease; display: inline-block; }
.site-header .dropdown-toggle.show::after { transform: rotate(180deg); }
.site-header .dropdown-menu { background: #121212; isolation: isolate; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 0; margin-top: 16px !important; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.site-header .dropdown-menu::after { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.mega-menu { width: 620px; left: 50% !important; transform: translateX(-50%); }
.mega-menu::before { content: ""; display: block; height: 3px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, var(--red), #ff7a5c 60%, transparent); }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 14px; }
.mega-feature { grid-column: 1 / -1; background: rgba(216,46,29,.08); border: 1px solid rgba(216,46,29,.25); }
.site-header .mega-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 12px; white-space: normal; color: #fff; transition: background .25s ease, transform .25s ease; }
.site-header .mega-item:hover, .site-header .mega-item:focus { background: rgba(255,255,255,.06); color: #fff; transform: translateX(3px); }
.mega-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: rgba(216,46,29,.15); border: 1px solid rgba(216,46,29,.45); color: #ff5a47; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all .25s ease; }
.mega-item:hover .mega-icon { background: var(--red); border-color: var(--red); color: #fff; }
.mega-text { display: flex; flex-direction: column; gap: 3px; }
.mega-text strong { font-size: 15px; line-height: 20px; font-weight: 600; }
.mega-text small { font-size: 13px; line-height: 18px; color: rgba(255,255,255,.55); }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); border-radius: 0 0 18px 18px; font-size: 13px; color: rgba(255,255,255,.6); }
.mega-foot a { color: #ff5a47; font-weight: 700; font-size: 14px; white-space: nowrap; }
.mega-foot a:hover { color: #fff; }
.site-header.is-sticky .navbar-nav { background: rgba(255,255,255,.05); }
.header-cta { display: flex; align-items: center; gap: 22px; }
.header-phone { display: none; align-items: center; gap: 10px; color: #fff; }
.hp-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all .3s ease; }
.header-phone:hover .hp-icon { background: var(--red); border-color: var(--red); }
.hp-text { display: flex; flex-direction: column; font-size: 16px; line-height: 19px; font-weight: 700; }
.hp-text span { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.6); }
.header-phone:hover { color: #fff; }
.btn-sm-pill { height: 48px; font-size: 14px; font-weight: 800; padding-left: 20px; gap: 10px; }
.btn-sm-pill .btn-arrow, .btn-sm-pill .btn-arrow img { width: 36px; height: 36px; }
.navbar-toggler { border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 10px 9px; display: flex; flex-direction: column; gap: 5px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s ease; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* sticky state */
.site-header.is-sticky { position: fixed; top: 0; background: rgba(11,11,11,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.25); border-bottom-color: rgba(255,255,255,.06); animation: headerDown .4s ease; }
.site-header.is-sticky .navbar { padding: 10px 15px; }
.site-header.is-sticky .logo-main { width: 210px; }
.site-header.is-sticky .logo-accreditation { width: 64px; }
@keyframes headerDown { from { transform: translateY(-100%); } to { transform: none; } }

/* ---------- Hero ---------- */
.hero-section { position: relative; min-height: 1087px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(1.5px) saturate(.9); transform: scale(1.04); }
.hero-poster { filter: none; } /* the still is saved already softened, so no live blur is needed */
.hero-video { opacity: 0; transition: opacity .8s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.72) 30%, rgba(0,0,0,.72) 75%, rgba(0,0,0,.88) 100%); z-index: 1; }
.hero-mesh { position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(rgba(0,0,0,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.55) 1px, transparent 1px); background-size: 3px 3px; }
.hero-content { position: absolute; left: 0; right: 0; top: 260px; z-index: 2; color: #fff; }
.hero-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,0,4,.42); border: 1px solid rgba(255,0,4,.56); border-radius: 50px; padding: 5px 14px; font-size: 16px; line-height: 24px; margin-bottom: 20px; }
.hero-title { font-size: 64px; line-height: 76.8px; font-weight: 600; margin: 0 auto 40px; max-width: 1255px; }
.hero-text { font-size: 20px; line-height: 27.2px; max-width: 997px; margin: 0 auto 40px; }
.hero-points { margin-top: 70px; max-width: 700px; margin-left: auto; margin-right: auto; text-align: left; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 24px; margin-bottom: 15px; }
.check-list img { width: 22px; height: 22px; }

.partners-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 0 0; height: 127px; }
.partners-inner { padding: 0 155px; }
.partners-title { font-weight: 500; font-size: 25px; line-height: 27.2px; color: #fff; margin: 0; white-space: nowrap; }
.partner-logos { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.partner-logos img { width: 101px; height: 75px; object-fit: contain; }

/* ---------- Marquee ---------- */
.marquee-section { padding: 50px 0; overflow: hidden; background: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-group { display: flex; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; font-size: 48px; line-height: 57.6px; font-weight: 700; color: var(--green); padding-right: 30px; white-space: nowrap; }
.marquee-item img { width: 35px; height: 35px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-section { padding-top: 30px; }
.about-image { position: relative; border-radius: 12px; padding-right: 50px; }
.about-image > img { width: 100%; border-radius: 12px; height: 717px; object-fit: cover; }
.about-years { position: absolute; right: 0; bottom: -10px; width: 229px; background: var(--red); border: 10px solid #fff; border-radius: 12px; color: #fff; text-align: center; padding: 18px 8px; display: flex; flex-direction: column; }
.years-num { font-size: 48px; line-height: 57.6px; font-weight: 700; }
.years-label { font-size: 20px; line-height: 24px; font-weight: 700; }
.years-sub { font-size: 16px; line-height: 24px; margin-top: 10px; }
.about-section .section-title { font-size: 48px; line-height: 57.6px; }
.about-boxes { margin-bottom: 35px; }
.about-box { border-radius: 12px; padding: 22px 28px 28px; height: 100%; }
.box-dark { background: var(--dark); color: #fff; }
.box-light { background: rgba(216,46,29,.06); border: 2px solid var(--red); color: var(--green); }
.box-num { display: block; font-size: 48px; line-height: 57.6px; font-weight: 700; margin-bottom: 4px; }
.about-box h3 { font-size: 20px; line-height: 24px; font-weight: 600; margin-bottom: 18px; }
.about-box p { font-size: 16px; line-height: 27.2px; margin: 0; }

/* ---------- Pattern backgrounds ---------- */
.pattern-bg { background: var(--maroon) center top / cover no-repeat; }
/* The texture is added once the page has loaded (redmond.js adds .bg-ready) so it never delays the first paint */
html.bg-ready .pattern-bg, html.bg-ready .contact-info { background-image: url(../images/redmond/section-pattern.webp); }

/* ---------- Services ---------- */
.services-head { margin-bottom: 50px; }
.services-intro { color: #fff; font-size: 18px; line-height: 24px; font-weight: 400; margin: 0; }
.service-card { background: #fff; border-radius: 12px; padding: 24px; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.service-card .service-img { margin-top: auto; }
.service-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,.2); margin-bottom: 14px; }
.service-head h3 { font-size: 25px; line-height: 28px; font-weight: 600; color: var(--red); margin: 0; }
.service-link { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; transform: rotate(-45deg) scaleY(-1); transition: transform .3s ease; margin-top: -10px; }
.service-link img { width: 18px; height: 18px; }
.service-card:hover .service-link { transform: rotate(0deg) scaleY(-1); }
.service-card p { font-size: 16px; line-height: 24px; color: var(--text); min-height: 48px; margin-bottom: 18px; }
.service-img { border-radius: 12px; overflow: hidden; aspect-ratio: 392 / 314; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-img img { transform: scale(1.06); }
.services-foot { margin-top: 55px; color: #fff; }
.services-foot h3 { font-size: 20px; line-height: 24px; font-weight: 600; margin-bottom: 4px; }
.services-foot p { font-size: 18px; line-height: 30px; font-weight: 400; margin-bottom: 35px; }

/* ---------- Why choose ---------- */
.why-section { background: #fff; overflow: hidden; }
.why-media { position: relative; min-height: 720px; }
.why-gallery { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: hidden; }
.why-img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.why-img-top { object-position: center 15%; }
.why-content { padding: 60px 145px 60px 150px; }
.why-content .section-title { line-height: 49px; }
.why-item { position: relative; display: flex; align-items: center; gap: 24px; border: 1px solid rgba(0,0,0,.2); border-bottom: 3px solid #b1b1b1; border-radius: 12px; padding: 20px 24px; margin-bottom: 12px; color: var(--green); }
.why-icon { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: 0 0 3.6px var(--red); display: flex; align-items: center; justify-content: center; }
.why-icon img { width: 30px; height: 30px; }
.why-icon i { font-size: 26px; color: var(--red); line-height: 1; }
.why-item-feature { border-color: var(--red); border-bottom-color: var(--red); background: rgba(216,46,29,.04); }
.why-item-feature .why-icon { background: var(--red); box-shadow: 0 6px 16px rgba(216,46,29,.35); }
.why-item-feature .why-icon i { color: #fff; }
.why-item h3 { flex: 0 0 165px; font-size: 20px; line-height: 24px; font-weight: 600; margin: 0; }
.why-item p { font-size: 16px; line-height: 22px; margin: 0; }
.why-content .btn-pill { margin-top: 30px; }

/* ---------- Stats ---------- */
.stats-section { position: relative; background: #4e140f url(../images/redmond/stats-bg.webp) center / cover no-repeat; padding: 80px 0 78px; color: #fff; overflow: hidden; }
.stats-bolt { position: absolute; right: 0; top: 0; height: 100%; width: 9.5%; object-fit: contain; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 48px; line-height: 57.6px; font-weight: 700; }
.stat-label { font-size: 15px; line-height: 16px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-top: 13px; }
.stats-section .col-lg-3:nth-child(2) .stat, .stats-section .col-lg-3:nth-child(3) .stat { padding-left: 115px; }
.stats-section .col-lg-3:nth-child(4) .stat { padding-left: 190px; }

/* ---------- Gallery ---------- */
.gallery-item { position: relative; margin: 0; height: 428px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: #000; color: #fff; font-size: 18px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-btn { margin-top: 55px; }

/* ---------- Testimonials ---------- */
.testimonials-section { background-color: #4e140f; }
.testimonials-intro { color: #fff; max-width: 618px; margin: -20px auto 50px; font-size: 16px; line-height: 24px; }
.rating-card { background: #fff; border-radius: 12px; padding: 24px; height: 100%; color: #000; display: flex; flex-direction: column; }
.rating-num { font-size: 64px; line-height: 76.8px; font-weight: 700; }
.rating-label { font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: auto; }
.rating-avatars { display: flex; margin-top: 70px; margin-bottom: 18px; }
.rating-avatars img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -10px; }
.rating-avatars img:first-child { margin-left: 0; }
.rating-text { font-size: 16px; line-height: 27.2px; max-width: 230px; margin: 0; }
.testimonial-card { background: #2f2f2f; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 32px 35px; height: 100%; color: #fff; box-shadow: 9px 11px 7px rgba(0,0,0,.1); }
.stars { display: flex; gap: 4px; margin-bottom: 20px; }
.stars img { width: 18px; height: 18px; }
.testimonial-card p { font-size: 16px; line-height: 27.2px; margin-bottom: 28px; }
.author { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }

/* ---------- Team ---------- */
.team-card { text-align: center; background: #fff; border: 1px solid #dcdcdc; border-radius: 12px; padding: 20px 20px 24px; height: 100%; }
.team-img { background: #f3f3f3; border-radius: 8px; overflow: hidden; margin-bottom: 18px; aspect-ratio: 1 / 1; }
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 20px; line-height: 26px; min-height: 26px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.team-role { display: block; color: var(--red); font-weight: 600; margin-bottom: 4px; }
.team-section .team-card { max-width: 400px; margin: 0 auto; }
.team-card p { color: #5f6980; font-size: 15px; margin-bottom: 14px; }
.team-social { display: inline-flex; align-items: center; gap: 6px; color: var(--dark); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.team-social img { width: 22px; height: 22px; }
.team-social:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background-color: #000; color: #fff; position: relative; overflow: hidden; padding-top: 70px; }
.footer-top { position: relative; z-index: 1; }
.footer-title { font-size: 15px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 26px; }
.site-footer p { font-size: 16px; line-height: 27.2px; }
.footer-badge { width: 110px; height: auto; margin-top: 14px; }
.footer-links li { margin-bottom: 12px; padding-left: 16px; position: relative; }
.footer-links li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.footer-links a, .footer-contact a { color: #fff; }
.footer-links a:hover, .footer-contact a:hover { color: var(--red); }
.footer-contact li { display: flex; gap: 14px; margin-bottom: 18px; font-size: 15px; line-height: 22px; }
.footer-contact strong { display: block; font-weight: 700; }
.footer-contact a { word-break: break-word; }
.fc-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; }
.fc-icon img { width: 18px; height: 18px; }
.footer-contact address { font-style: normal; }
.footer-bottom { position: relative; z-index: 1; margin-top: 40px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 14px; }

/* ---------- Get in touch ---------- */
.contact-section { background: #f6f3f2; }
.contact-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.12); }
.contact-info { position: relative; height: 100%; padding: 55px 50px; color: #fff; background: var(--maroon) center / cover no-repeat; }
.contact-info .section-title { font-size: 42px; line-height: 49px; }
.contact-intro { font-size: 16px; line-height: 26px; color: rgba(255,255,255,.85); margin-bottom: 35px; }
.contact-intro p { margin-bottom: 10px; }
.contact-intro p:last-child { margin-bottom: 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 16px; line-height: 24px; }
.contact-list a { color: #fff; word-break: break-word; }
.contact-list a:hover { color: #ffb3a9; }
.ci-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ci-label { display: block; font-size: 12px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 3px; }
.contact-form-card { background: #fff; height: 100%; padding: 55px 50px; }
.contact-form-card h3 { font-size: 30px; line-height: 36px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.contact-form-card > p { color: var(--muted); margin-bottom: 28px; }
.contact-form .form-label { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.contact-form .form-control, .contact-form .form-select { font-family: var(--font); font-size: 15px; border: 1px solid #dcdcdc; border-radius: 10px; padding: 13px 16px; background-color: #faf9f9; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(216,46,29,.12); background-color: #fff; }
.contact-form textarea { resize: vertical; }
.contact-form .btn-pill { margin-top: 8px; }
.footer-bottom a { color: #fff; }
.builtby-logo { height: 22px; width: auto; vertical-align: middle; margin-left: 4px; }


/* ---------- Portfolio folders ---------- */
.portfolio-folder { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; position: relative; cursor: pointer; }
.folder-cover { position: relative; display: block; height: 340px; border-radius: 14px; z-index: 1; }
.folder-cover::before, .folder-cover::after { content: ""; position: absolute; left: 14px; right: 14px; border-radius: 14px; background: #d9d4d3; z-index: -1; transition: transform .35s ease; }
.folder-cover::before { top: -8px; bottom: 8px; }
.folder-cover::after { top: -16px; bottom: 16px; left: 28px; right: 28px; background: #ebe7e6; z-index: -2; }
.folder-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; transition: transform .5s ease, filter .5s ease; }
.folder-count { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 30px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; font-weight: 600; }
.folder-count i { margin-right: 4px; color: #ff7a66; }
.folder-info { display: flex; align-items: center; gap: 14px; margin-top: -34px; margin-left: 16px; margin-right: 16px; position: relative; z-index: 2; padding: 16px 18px; background: #fff; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.12); transition: box-shadow .35s ease; }
.folder-icon { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: rgba(216,46,29,.1); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 21px; transition: all .3s ease; }
.folder-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.folder-text small { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.folder-text strong { font-size: 17px; line-height: 22px; font-weight: 600; color: var(--dark); }
.folder-arrow { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e2dcdb; color: var(--dark); display: flex; align-items: center; justify-content: center; transition: all .3s ease; }
.portfolio-folder:hover .folder-cover img { filter: brightness(1.06); }
.portfolio-folder:hover .folder-cover::before { transform: translateY(-4px) rotate(-1.2deg); }
.portfolio-folder:hover .folder-cover::after { transform: translateY(-7px) rotate(1.5deg); }
.portfolio-folder:hover .folder-icon { background: var(--red); color: #fff; }
.portfolio-folder:hover .folder-arrow { background: var(--red); border-color: var(--red); color: #fff; transform: translateX(3px); }
.portfolio-folder:hover .folder-info { box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.portfolio-folder:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; border-radius: 14px; }
.portfolio-folders { padding-top: 16px; }

/* ---------- Portfolio viewer ---------- */
.portfolio-modal .modal-content { background: #0d0d0d; color: #fff; border: 0; border-radius: 0; display: flex; flex-direction: column; }
.pm-head { display: flex; align-items: center; gap: 20px; padding: 18px 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pm-heading { flex: 1; min-width: 0; }
.pm-kind { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #ff7a66; }
.pm-title { font-size: 22px; font-weight: 600; margin: 0; color: #fff; }
.pm-count { font-size: 14px; color: rgba(255,255,255,.7); white-space: nowrap; }
.pm-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: none; color: #fff; font-size: 18px; transition: all .3s ease; }
.pm-close:hover { background: var(--red); border-color: var(--red); }
.pm-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px 24px; position: relative; }
.pm-figure { flex: 1; min-width: 0; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pm-img { max-width: 100%; max-height: calc(100% - 44px); object-fit: contain; border-radius: 8px; transition: opacity .25s ease; }
.pm-img.is-loading { opacity: .25; }
.pm-caption { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.85); text-align: center; }
.pm-nav { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.05); color: #fff; font-size: 20px; transition: all .3s ease; }
.pm-nav:hover { background: var(--red); border-color: var(--red); }
.pm-thumbs { display: flex; gap: 8px; padding: 14px 24px 20px; overflow-x: auto; justify-content: safe center; scrollbar-width: thin; }
.pm-thumb { flex: 0 0 76px; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; opacity: .55; transition: all .25s ease; }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-thumb:hover { opacity: .9; }
.pm-thumb.active { opacity: 1; border-color: var(--red); }


/* ---------- Scroll animations ---------- */
.js-anim [data-anim] { opacity: 0; transition: opacity .8s ease, transform .9s cubic-bezier(.2,.65,.3,1); transition-delay: var(--d, 0s); }
.js-anim [data-anim="up"] { transform: translateY(45px); }
.js-anim [data-anim="left"] { transform: translateX(-60px); }
.js-anim [data-anim="right"] { transform: translateX(60px); }
.js-anim [data-anim="zoom"] { transform: scale(.9); }
.js-anim [data-anim].in-view { opacity: 1; transform: none; }
.about-years { transition: transform .4s ease; }
.about-image:hover .about-years { transform: translateY(-6px); }
.btn-pill { position: relative; overflow: hidden; }
.btn-pill::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.btn-pill:hover::after { left: 125%; }
.why-img, .team-img img { transition: transform .6s ease, filter .6s ease; }
.team-card:hover .team-img img { transform: scale(1.05); }
.why-img:hover { filter: brightness(1.08); }
.team-card, .testimonial-card, .about-box { transition: transform .35s ease, box-shadow .35s ease; }
.team-card:hover, .testimonial-card:hover, .about-box:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.service-card { transition: transform .35s ease, box-shadow .35s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) {
    .js-anim [data-anim] { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
}


/* ---------- Floating actions ---------- */
.float-call { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: none; align-items: center; gap: 8px; height: 50px; padding: 0 20px 0 6px; border-radius: 50px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 25px rgba(216,46,29,.4); }
.float-call i { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 16px; position: relative; }
/* Pulse ring drawn on its own layer (transform + opacity only) so it never repaints the page */
.float-call i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: ringPulse 2s ease-out infinite; pointer-events: none; }
.float-call:hover { color: #fff; }
@keyframes ringPulse { 0% { transform: scale(1); opacity: 1; } 70% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(1.6); opacity: 0; } }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--dark); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(15px); transition: all .35s ease; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--red); }


/* =========================================================
   Responsive
   ========================================================= */

/* ---------- Portfolio page: one card per gallery ---------- */
.re-ga-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.re-ga-cards .re-ga-card { width: auto; max-width: none; margin: 0; height: 100%; }
.re-ga-gallery { scroll-margin-top: 110px; }

/* Mobile */
@media (max-width: 767px) {
    html.bg-ready .pattern-bg, html.bg-ready .contact-info { background-image: url(../images/redmond/section-pattern-sm.webp); }
    .re-ga-cards { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
    .re-ga-gallery { scroll-margin-top: 80px; }
    .contact-heading h1, .contact-heading h2, .contact-heading h3 { font-size: 28px; line-height: 36px; }
    .folder-cover { height: 260px; }
    .folder-text strong { font-size: 16px; }
    .pm-head { padding: 12px 16px; gap: 12px; }
    .pm-title { font-size: 17px; }
    .pm-count { display: none; }
    .pm-stage { padding: 10px 8px; gap: 6px; }
    .pm-nav { flex-basis: 40px; width: 40px; height: 40px; font-size: 16px; }
    .pm-thumbs { padding: 10px 12px 16px; }
    .pm-thumb { flex-basis: 58px; width: 58px; height: 58px; }
    .brand-exp { display: none; }
    .section-intro { margin-top: -10px; margin-bottom: 30px; }
    .hero-title { margin-bottom: 28px; }
    .mega-feature { background: none; border: 0; }
    .float-call { display: inline-flex; }
    .back-to-top { right: 16px; bottom: 16px; width: 50px; height: 50px; }
    .footer-bottom { padding-bottom: 80px; }
    .contact-info, .contact-form-card { padding: 35px 22px; }
    .contact-info .section-title { font-size: 28px; line-height: 36px; }
    .contact-form-card h3 { font-size: 24px; line-height: 30px; }
    .header-phone { display: flex; }
    .rd-topbar-inner, .header-inner, .partners-inner { padding: 0 15px; }
    .rd-topbar-row { justify-content: center; min-height: 46px; padding: 6px 0; }
    .rd-topbar-tagline { display: none; }
    .rd-topbar-contact li { padding-left: 14px; margin-left: 14px; }
    .tb-icon { flex-basis: 28px; width: 28px; height: 28px; }
    .tb-label { display: none; }
    .rd-topbar-contact li:first-child .tb-text { display: none; }
    .rd-topbar-contact li:first-child .tb-icon { margin-right: 0; }
    .tb-text { font-size: 13px; }
    .site-header { top: 47px; }
    .site-header .navbar { padding: 12px 0; }
    .logo-main { width: 170px; }
    .brand-divider { height: 36px; }
    .logo-accreditation { width: 52px; }
    .navbar-brand { gap: 12px; }
    .site-header.is-sticky .logo-main { width: 150px; }
    .site-header.is-sticky .logo-accreditation { width: 46px; }
    .hero-section { min-height: 1080px; }
    .hero-content { top: 180px; }
    .navbar-collapse { background: #121212; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 18px 20px; margin-top: 14px; max-height: calc(100vh - 120px); overflow-y: auto; }
    .site-header .navbar-nav { gap: 0; padding: 0; background: none; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .site-header .nav-link { padding: 13px 0 !important; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .site-header .nav-link:hover, .site-header .nav-link.show { background: none; }
    .site-header .nav-link.active { color: #ff5a47 !important; background: none; box-shadow: none; }
    .mega-menu { width: auto; left: auto !important; transform: none; }
    .mega-menu::before { display: none; }
    .mega-grid { grid-template-columns: 1fr; padding: 4px 0; }
    .site-header .mega-item { padding: 10px 6px; }
    .mega-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
    .mega-text small { display: none; }
    .mega-foot { padding: 10px 6px; background: none; }
    .mega-foot span { display: none; }
    .site-header .dropdown-menu { margin-top: 0 !important; border: 0; border-left: 2px solid var(--red); border-radius: 0; box-shadow: none; background: transparent; padding: 4px 0 8px 10px; }
    .header-cta { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 18px; }
    .section-pad { padding: 55px 0; }
    .section-title, .about-section .section-title { font-size: 28px; line-height: 36px; }
    .hero-content { top: 200px; }
    .hero-badge { font-size: 13px; line-height: 18px; text-align: left; }
    .hero-title { font-size: 32px; line-height: 40px; }
    .hero-text { font-size: 16px; line-height: 24px; margin-bottom: 25px; }
    .hero-points { margin-top: 30px; }
    .check-list li { font-size: 15px; margin-bottom: 10px; }
    .partners-strip { height: auto; padding-bottom: 25px; }
    .partners-title { text-align: center; font-size: 20px; }
    .partner-logos { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .partner-logos img { width: 70px; height: 52px; }
    .marquee-section { padding: 30px 0; }
    .marquee-item { font-size: 28px; line-height: 34px; }
    .marquee-item img { width: 24px; height: 24px; }
    .about-image { padding-right: 0; }
    .about-image > img { height: 420px; }
    .about-years { width: 180px; right: 10px; }
    .years-num { font-size: 36px; line-height: 42px; }
    .service-head h3 { font-size: 21px; }
    .why-media { min-height: 0; }
    .why-gallery { position: static; grid-template-rows: repeat(3, 150px); }
    .why-content { padding: 50px 15px; }
    .why-content .section-title { line-height: 36px; }
    .why-item { flex-wrap: wrap; gap: 14px; }
    .why-item h3 { flex: 1; }
    .why-item p { flex: 0 0 100%; }
    .stats-section { padding: 50px 0; }
    .stats-section .col-lg-3 .stat { padding-left: 0 !important; }
    .stat-num { font-size: 36px; line-height: 42px; }
    .stat-label { font-size: 13px; }
    .gallery-item { height: 300px; }
    .rating-num { font-size: 48px; line-height: 58px; }
    .rating-avatars { margin-top: 30px; }
    .testimonial-card { padding: 25px; }
    .footer-bottom { font-size: 13px; }
}


/* ios */
@media (max-width: 340px) {
    .logo-main { width: 140px; }
    .logo-accreditation { width: 42px; }
    .tb-text { font-size: 12px; }
    .hero-title { font-size: 27px; line-height: 34px; }
    .section-title, .about-section .section-title { font-size: 24px; line-height: 31px; }
    .btn-pill { font-size: 14px; padding-left: 18px; }
}

/* windows */
@media (min-width: 451px) and (max-width: 767px) {
    .hero-title { font-size: 38px; line-height: 46px; }
    .why-gallery { grid-template-rows: repeat(3, 190px); }
}


/*tab portrait view*/
@media (min-width: 768px) and (max-width: 991px) {
    .re-ga-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-heading h1, .contact-heading h2, .contact-heading h3 { font-size: 34px; line-height: 42px; }
    .folder-cover { height: 300px; }
    .brand-exp { margin-left: 14px; }
    .mega-feature { background: none; border: 0; }
    .float-call { display: inline-flex; }
    .footer-bottom { padding-bottom: 80px; }
    .contact-info, .contact-form-card { padding: 45px 35px; }
    .contact-info .section-title { font-size: 34px; line-height: 42px; }
    .header-phone { display: flex; }
    .rd-topbar-inner, .header-inner, .partners-inner { padding: 0 25px; }
    .rd-topbar-tagline { display: none; }
    .rd-topbar-row { justify-content: center; }
    .site-header { top: 53px; }
    .logo-main { width: 220px; }
    .logo-accreditation { width: 66px; }
    .hero-section { min-height: 1000px; }
    .hero-content { top: 210px; }
    .navbar-collapse { background: #121212; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 18px 20px; margin-top: 14px; max-height: calc(100vh - 120px); overflow-y: auto; }
    .site-header .navbar-nav { gap: 0; padding: 0; background: none; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent;}
    .site-header .nav-link { padding: 13px 0 !important; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .site-header .nav-link:hover, .site-header .nav-link.show { background: none; }
    .site-header .nav-link.active { color: #ff5a47 !important; background: none; box-shadow: none; }
    .mega-menu { width: auto; left: auto !important; transform: none; }
    .mega-menu::before { display: none; }
    .mega-grid { grid-template-columns: 1fr; padding: 4px 0; }
    .site-header .mega-item { padding: 10px 6px; }
    .mega-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
    .mega-text small { display: none; }
    .mega-foot { padding: 10px 6px; background: none; }
    .mega-foot span { display: none; }
    .site-header .dropdown-menu { margin-top: 0 !important; border: 0; border-left: 2px solid var(--red); border-radius: 0; box-shadow: none; background: transparent; padding: 4px 0 8px 10px; }
    .header-cta { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 18px; }
    .section-pad { padding: 70px 0; }
    .section-title, .about-section .section-title { font-size: 34px; line-height: 42px; }
    .hero-content { top: 200px; }
    .hero-title { font-size: 46px; line-height: 56px; }
    .hero-text { font-size: 18px; }
    .hero-points { margin-top: 40px; }
    .partners-strip { height: auto; padding-bottom: 30px; }
    .partners-title { text-align: center; }
    .partner-logos { flex-wrap: wrap; justify-content: center; }
    .marquee-item { font-size: 36px; line-height: 44px; }
    .about-image { max-width: 560px; margin: 0 auto; }
    .about-image > img { height: 600px; }
    .why-media { min-height: 0; }
    .why-gallery { position: static; grid-template-rows: repeat(3, 240px); }
    .why-content { padding: 60px 30px; }
    .stats-section .col-lg-3 .stat { padding-left: 0 !important; }
}


/*tab landscape*/
@media (min-width: 992px) and (max-width: 1199px) {
    .re-ga-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-heading h1, .contact-heading h2, .contact-heading h3 { font-size: 34px; line-height: 42px; }
    .folder-cover { height: 280px; }
    .folder-text strong { font-size: 16px; }
    .mega-feature { background: none; border: 0; }
    .float-call { display: inline-flex; }
    .footer-bottom { padding-bottom: 80px; }
    .contact-info, .contact-form-card { padding: 45px 35px; }
    .contact-info .section-title { font-size: 34px; line-height: 42px; }
    .header-phone { display: flex; }
    .rd-topbar-inner, .header-inner { padding: 0 30px; }
    .rd-topbar-tagline { font-size: 12px; letter-spacing: 1px; }
    .logo-main { width: 230px; }
    .logo-accreditation { width: 70px; }
    .hero-section { min-height: 1000px; }
    .hero-content { top: 220px; }
    .navbar-collapse { background: #121212; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 18px 20px; margin-top: 14px; max-height: calc(100vh - 120px); overflow-y: auto; }
    .site-header .navbar-nav { gap: 0; padding: 0; background: none; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .site-header .nav-link { padding: 13px 0 !important; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .site-header .nav-link:hover, .site-header .nav-link.show { background: none; }
    .site-header .nav-link.active { color: #ff5a47 !important; background: none; box-shadow: none; }
    .mega-menu { width: auto; left: auto !important; transform: none; }
    .mega-menu::before { display: none; }
    .mega-grid { grid-template-columns: 1fr; padding: 4px 0; }
    .site-header .mega-item { padding: 10px 6px; }
    .mega-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
    .mega-text small { display: none; }
    .mega-foot { padding: 10px 6px; background: none; }
    .mega-foot span { display: none; }
    .site-header .dropdown-menu { margin-top: 0 !important; border: 0; border-left: 2px solid var(--red); border-radius: 0; box-shadow: none; background: transparent; padding: 4px 0 8px 10px; }
    .header-cta { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 18px; }
    .section-title { font-size: 36px; line-height: 44px; }
    .about-section .section-title { font-size: 38px; line-height: 46px; }
    .partners-inner { padding: 0 30px; }
    .hero-content { top: 210px; }
    .hero-title { font-size: 52px; line-height: 62px; }
    .partners-title { text-align: center; margin-bottom: 10px; }
    .partners-strip { height: auto; padding-bottom: 25px; }
    .marquee-item { font-size: 40px; }
    .about-image > img { height: 640px; }
    .about-years { width: 190px; }
    .service-head h3 { font-size: 21px; }
    .why-media { min-height: 680px; }
    .why-content { padding: 50px 30px 50px 40px; }
    .why-content .section-title { line-height: 44px; }
    .why-item { flex-wrap: wrap; gap: 14px; }
    .why-item h3 { flex: 1; }
    .why-item p { flex: 0 0 100%; }
    .stats-section .col-lg-3 .stat { padding-left: 0 !important; }
    .gallery-item { height: 340px; }
}

/* 1200 - 1279 (between tab landscape and 1280) */
@media (min-width: 1200px) and (max-width: 1279px) {
    .brand-exp { margin-left: 12px; margin-right: 10px; padding: 5px 10px; }
    .exp-num { font-size: 20px; }
    .exp-text { font-size: 9.5px; line-height: 12px; letter-spacing: .5px; }
    .header-inner, .rd-topbar-inner { padding: 0 30px; }
    .logo-main { width: 200px; }
    .brand-divider, .header-phone { display: none; }
    .logo-accreditation { width: 62px; }
    .site-header .nav-link { padding: 9px 14px !important; font-size: 13px; }
    .partners-inner { padding: 0 40px; }
    .why-content { padding: 50px 40px 50px 60px; }
    .why-item h3 { flex-basis: 140px; }
    .stats-section .col-lg-3 .stat { padding-left: 40px !important; }
    .stats-section .col-lg-3:first-child .stat { padding-left: 0 !important; }
    .gallery-item { height: 360px; }
}


/* 1280 resolution */
@media (min-width: 1280px) and (max-width: 1365px) {
    .site-header .nav-link { padding: 10px 14px !important; }
    .brand-exp { margin-left: 14px; margin-right: 12px; padding: 6px 11px; }
    .exp-num { font-size: 22px; }
    .exp-text { font-size: 10px; line-height: 13px; }
    .header-inner, .rd-topbar-inner { padding: 0 35px; }
    .logo-main { width: 210px; }
    .logo-accreditation { width: 64px; }
    .header-phone { display: none; }
    .partners-inner { padding: 0 40px; }
    .hero-title { font-size: 56px; line-height: 68px; }
    .why-content { padding: 50px 50px 50px 70px; }
    .why-item h3 { flex-basis: 145px; }
    .stats-section .col-lg-3 .stat { padding-left: 50px !important; }
    .stats-section .col-lg-3:first-child .stat { padding-left: 0 !important; }
    .gallery-item { height: 380px; }
}

/* 1366 - 1399 */
@media (min-width: 1366px) and (max-width: 1399px) {
    .brand-exp { margin-left: 14px; margin-right: 12px; padding: 6px 11px; }
    .exp-num { font-size: 22px; }
    .exp-text { font-size: 10px; line-height: 13px; }
    .site-header .nav-link { padding: 10px 16px !important; }
    .logo-accreditation { width: 66px; }
    .header-inner, .rd-topbar-inner, .partners-inner { padding: 0 45px; }
    .logo-main { width: 220px; }
    .header-phone { display: none; }
    .why-content { padding: 50px 60px 50px 80px; }
    .stats-section .col-lg-3 .stat { padding-left: 60px !important; }
    .stats-section .col-lg-3:first-child .stat { padding-left: 0 !important; }
}


/* large screen */
@media (min-width: 1400px) {
    .header-inner, .rd-topbar-inner { padding: 0 45px; }
    .logo-main { width: 230px; }
    .brand-exp { margin-left: 14px; margin-right: 14px; padding: 6px 11px; }
    .exp-num { font-size: 22px; }
    .exp-text { font-size: 10px; line-height: 13px; }
    .site-header .nav-link { padding: 10px 16px !important; }
    .why-content { padding: 60px 70px 60px 100px; }
}

@media (min-width: 1440px) and (max-width: 1599px) {
    .header-inner, .rd-topbar-inner { padding: 0 50px; }
    .logo-main { width: 230px; }
    .header-phone { display: none; }
    .partners-inner { padding: 0 60px; }
    .why-content { padding: 60px 70px 60px 90px; }
    .stats-section .col-lg-3 .stat { padding-left: 70px !important; }
    .stats-section .col-lg-3:first-child .stat { padding-left: 0 !important; }
}


/*Large View*/
@media (min-width: 1600px) {
    .header-phone { display: flex; }
    .why-content { padding: 60px 100px 60px 120px; }
}


@media (min-width: 1920px) {
    .header-inner, .rd-topbar-inner { padding: 0 75px; }
    .logo-main { width: 260px; }
    .brand-exp { margin-left: 18px; margin-right: 18px; padding: 7px 14px 7px 12px; }
    .exp-num { font-size: 26px; }
    .exp-text { font-size: 11px; line-height: 14px; }
    .site-header .nav-link { padding: 10px 22px !important; }
    .why-content { padding: 60px 145px 60px 150px; }
}


/* ie */
@media all and (-ms-high-contrast:none) {
    .badge-icon { background: none; }
}


/* FireFox */
@-moz-document url-prefix() {
}

/* ===== QA fixes 28-10-2026 ===== */
/* No underline on link hover/focus */
a:hover, a:focus { text-decoration: none; }

/* Dropdown active / focus: brand red instead of Bootstrap blue */
.dropdown-item.active, .dropdown-item:active { background-color: var(--red); color: #fff; }
.site-header .mega-item.active, .site-header .mega-item:active { background: var(--red); color: #fff; }
.site-header .mega-item.active .mega-icon { background: #fff; border-color: #fff; color: var(--red); }
.navbar .nav-link:focus, .dropdown-toggle:focus { outline: none; box-shadow: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Contact form: brand colours instead of Bootstrap blue */
.form-control:focus, .form-select:focus { border-color: var(--red); box-shadow: 0 0 0 .2rem rgba(216,46,29,.2); }
.form-check-input:checked, .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--red); border-color: var(--red); }
.btn-primary, .btn-primary:disabled, .btn-primary.disabled { background-color: var(--red); border-color: var(--red); color: #fff; border-radius: 50px; font-weight: 700; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary:not(:disabled):not(.disabled):active { background-color: var(--maroon); border-color: var(--maroon); color: #fff; }
.btn:focus, .btn.focus, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active:focus { box-shadow: 0 0 0 .2rem rgba(216,46,29,.3); }

/* Footer phone icon: rotate handset to the standard direction */
.footer-contact img[src*="icon-footer-phone"] { transform: rotate(-90deg); }

/* Why Choose Us cards: highlight style on hover for every item */
.why-item, .why-icon, .why-icon i { transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, color .3s ease; }
.why-item:hover { border-color: var(--red); border-bottom-color: var(--red); background: rgba(216,46,29,.04); }
.why-item:hover .why-icon { background: var(--red); box-shadow: 0 6px 16px rgba(216,46,29,.35); }
.why-item:hover .why-icon i { color: #fff; }
/* only the hovered card is highlighted while another card is hovered */
:has(> .why-item:hover) > .why-item-feature:not(:hover) { border-color: rgba(0,0,0,.2); border-bottom-color: #b1b1b1; background: transparent; }
:has(> .why-item:hover) > .why-item-feature:not(:hover) .why-icon { background: #fff; box-shadow: 0 0 3.6px var(--red); }
:has(> .why-item:hover) > .why-item-feature:not(:hover) .why-icon i { color: var(--red); }

/* Home: reduce gap between Portfolio and Meet the Team sections */
#portfolio.gallery-section { padding-bottom: 30px; }
#team.team-section { padding-top: 40px; }
@media (max-width: 767px) {
    #portfolio.gallery-section { padding-bottom: 20px; }
    #team.team-section { padding-top: 30px; }
}


/* Services arrow as an inline icon (works without the icon font) */
.site-header .dropdown-toggle::after {content:"";font-family:inherit;width:11px;height:11px;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E %3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3E %3C/svg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E %3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3E %3C/svg%3E") no-repeat center/contain}

/* Tablet/mobile: keep inner-page hero content below the absolute header (2026-10-29) */
@media (max-width: 991px) {
    .slider-section.layout-slider {
        padding-top: 120px;
        background-image: linear-gradient(#0b0b0b 0, #0b0b0b 120px, rgba(255,255,255,0) 120px), radial-gradient(circle at 90% 85%, rgba(216,46,29,.10) 0, rgba(216,46,29,0) 45%), linear-gradient(135deg, #fbf1ef 0%, #fff 65%);
    }
}
@media (max-width: 767px) {
    .slider-section.layout-slider {
        padding-top: 96px;
        background-image: linear-gradient(#0b0b0b 0, #0b0b0b 96px, rgba(255,255,255,0) 96px), radial-gradient(circle at 90% 85%, rgba(216,46,29,.10) 0, rgba(216,46,29,0) 45%), linear-gradient(135deg, #fbf1ef 0%, #fff 65%);
    }
}

/* Tablet/mobile menu: stack the Services dropdown under its link (2026-10-29) */
@media (max-width: 1199px) {
    .site-header .navbar-nav .nav-item.dropdown { display: block; }
    .site-header .navbar-nav .dropdown.show > .nav-link { background: transparent; }
    .site-header .navbar-nav .nav-item.dropdown .mega-menu { margin: 0 0 12px; }
}

/* Header NICEIC Approved Contractor + 15 years badge (2026-11-11) — transparent PNG, height matched to .logo-main */
.logo-niceic { width: auto; height: 80px; transition: height .3s; }
.site-header.is-sticky .logo-niceic { height: 65px; }

/* Mobile */
@media (max-width: 767px) {
    .logo-niceic { height: 46px; }
    .site-header.is-sticky .logo-niceic { height: 42px; }
}
/* ios */
@media (max-width: 340px) {
    .logo-niceic { height: 36px; }
}
/* tab portrait */
@media (min-width: 768px) and (max-width: 991px) {
    .logo-niceic { height: 68px; }
}
/* tab landscape */
@media (min-width: 992px) and (max-width: 1199px) {
    .logo-niceic { height: 71px; }
}
@media (min-width: 1200px) and (max-width: 1279px) {
    .logo-niceic { height: 62px; }
}
/* 1280 resolution */
@media (min-width: 1280px) and (max-width: 1365px) {
    .logo-niceic { height: 65px; }
}
@media (min-width: 1366px) and (max-width: 1399px) {
    .logo-niceic { height: 68px; }
}
/* large screen */
@media (min-width: 1400px) {
    .logo-niceic { height: 71px; }
}
/* min 1920 */
@media (min-width: 1920px) {
    .logo-niceic { height: 80px; }
}

/* Hero: partners strip removed (2026-11-11) — let the hero size to its content instead of a fixed min-height */
.hero-section { min-height: 0; }
.hero-content { position: relative; top: auto; padding: 260px 0 110px; }

/* Mobile */
@media (max-width: 767px) {
    .hero-content { top: auto; padding: 200px 0 80px; }
    .hero-section { min-height: 0; }
}
/* tab portrait */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-content { top: auto; padding: 200px 0 90px; }
    .hero-section { min-height: 0; }
}
/* tab landscape */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content { top: auto; padding: 210px 0 100px; }
    .hero-section { min-height: 0; }
}

/* ===== QA fixes 2026-11-20 (tasks 2215, 2216, 2219) ===== */
/* 2216: cookie banner must sit above the floating Call Us / back-to-top buttons */
#cookie-banner { z-index: 999; }
/* 2219: space left and right of the logo and hamburger on mobile/tablet */
@media (max-width: 1199px) {
    .site-header .header-inner { padding-left: 12px; padding-right: 12px; flex-wrap: wrap; }
    .site-header .navbar-brand { flex: 1 1 0%; min-width: 0; margin-right: 10px; }
    .site-header .navbar-collapse { flex-basis: 100%; } /* open menu drops below as a full-width panel */
}
/* 2215: long pill buttons wrap instead of running off the screen on phones */
@media (max-width: 575px) {
    .btn-pill { white-space: normal; max-width: 100%; height: auto; min-height: 48px; line-height: 1.3; text-align: left; padding-top: 6px; padding-bottom: 6px; }
    .btn-pill .btn-arrow { flex-shrink: 0; }
}

/* Space safety net 2026-11-20: the page builder strips spaces next to bold text and links when a page is reopened,
   so these keep a visible space even after a future builder save (extra spaces collapse, no double gaps). */
.re-pp li > strong::after { content: " "; }
.re-pp li > a[href^="tel:"]::before,
.re-pp li > a[href^="mailto:"]::before { content: " "; }
.re-cta p > a:not([class])::before,
.re-cta p > a:not([class])::after { content: " "; }

/* Mobile + tablet portrait: hide "Need help?" phone and "Get a Free Quote" inside the open menu */
@media (max-width: 991px) {
    #mainNav .header-cta { display: none !important; }
}

/* Mobile + tablet portrait: smaller "Built by JP WEB" logo in the footer (same 553:128 ratio) */
@media (max-width: 991px) {
    .footer-bottom-text a[title="JP Web Solutions"] img { width: 60px; height: 14px; }
}

/* Open mobile/tablet menu: the sticky-header pill background must not show behind the menu links (text was touching its edge) */
@media (max-width: 1199px) {
    .site-header.is-sticky .navbar-nav { background: none; }
}

/* Floating "Call Us" on the right (kept off the Cookie Settings button).
   Sits in the bottom corner on page load; moves up above the back-to-top arrow only while the arrow is showing. */
@media (max-width: 1199px) {
    .float-call { left: auto; right: 20px; bottom: 20px; transition: bottom .3s ease; }
    .float-call:has(+ .back-to-top.show) { bottom: 78px; }
}
@media (max-width: 767px) {
    .float-call { right: 16px; bottom: 16px; }
    .float-call:has(+ .back-to-top.show) { bottom: 76px; }
}
