:root {
  --blue: #0647a8;
  --blue2: #0b64d8;
  --dark-blue: #021f4d;
  --light-blue: #edf5ff;
  --text: #172033;
  --muted: #5f6b7a;
  --white: #fff;
  --border: #dbe6f5;
  --shadow: 0 24px 70px rgba(3, 38, 88, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.skip-link { position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { left: 14px; top: 14px; z-index: 99999; background: white; padding: 10px; border-radius: 8px; }

.top-bar { background: var(--dark-blue); color: white; display: flex; justify-content: center; gap: 28px; padding: 9px 18px; font-size: .94rem; font-weight: 800; }
.top-bar a { text-decoration: underline; text-underline-offset: 3px; }
.site-header { background: white; position: sticky; top: 0; z-index: 50; box-shadow: 0 6px 30px rgba(0,0,0,.08); }
.nav { max-width: 1220px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { width: 330px; max-width: 44vw; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 21px; font-weight: 900; color: var(--dark-blue); }
.nav-links a:hover { color: var(--blue); }
.nav-cta { background: var(--blue); color: white!important; padding: 12px 18px; border-radius: 999px; }
.menu-toggle { display: none; background: var(--blue); color: white; border: 0; border-radius: 10px; padding: 8px 12px; font-size: 1.35rem; }

.hero { position: relative; min-height: 760px; display: flex; align-items: center; background: linear-gradient(rgba(2,31,77,.82), rgba(2,31,77,.72)), url("project-photos/project-16.jpg") center/cover no-repeat; color: white; overflow: hidden; }
.hero::after { content:""; position:absolute; inset:auto 0 0 0; height: 140px; background: linear-gradient(transparent, white); opacity:.95; }
.hero-inner { max-width: 1220px; margin: 0 auto; padding: 88px 22px 120px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 38px; align-items: center; position: relative; z-index: 2; }
.eyebrow { color: var(--blue2); text-transform: uppercase; letter-spacing: .13em; font-weight: 950; font-size: .82rem; margin: 0 0 12px; }
.hero .eyebrow { color: #9dccff; }
h1,h2,h3 { line-height: 1.1; margin-top: 0; color: var(--dark-blue); }
.hero h1 { color: white; font-size: clamp(2.7rem, 6vw, 5.7rem); letter-spacing: -.06em; margin-bottom: 20px; }
h2 { font-size: clamp(2rem, 3.6vw, 3.45rem); letter-spacing: -.045em; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
.hero-text { max-width: 760px; font-size: 1.22rem; color: rgba(255,255,255,.88); margin-bottom: 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 14px 22px; border-radius: 999px; font-weight: 950; border: 2px solid var(--blue); cursor: pointer; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.btn.primary { background: var(--blue); color: white; }
.btn.secondary { background: white; color: var(--blue); }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-row span { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28); color: white; border-radius: 999px; padding: 9px 13px; font-weight: 850; backdrop-filter: blur(8px); }

.estimate-card { border-radius: 28px; overflow: hidden; background: white; color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.34); transform: rotate(1deg); }
.estimate-card img { width: 100%; height: 310px; object-fit: cover; display: block; }
.estimate-card div { padding: 26px; }
.estimate-card h2 { font-size: 1.75rem; margin-bottom: 8px; }
.estimate-card p { color: var(--muted); margin: 0; }

.stats { max-width: 1120px; margin: -70px auto 20px; padding: 0 22px 35px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; position: relative; z-index: 3; }
.stats div { border: 1px solid var(--border); border-radius: 24px; padding: 22px; text-align: center; background: white; box-shadow: var(--shadow); }
.stats strong { display: block; color: var(--blue); font-size: 2.1rem; line-height: 1; }
.stats span { color: var(--muted); font-weight: 850; }

.section,.split-section,.contact-section { max-width: 1220px; margin: 0 auto; padding: 76px 22px; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading p,.split-section p,.contact-section p,.feature-copy p { color: var(--muted); font-size: 1.06rem; }

.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.service-card { border: 1px solid var(--border); border-radius: 24px; padding: 24px; background: white; transition: .2s ease; box-shadow: 0 12px 35px rgba(3,38,88,.06); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card span,.project-card span { display: inline-block; color: var(--blue); background: var(--light-blue); border-radius: 999px; padding: 5px 10px; font-size: .75rem; font-weight: 950; margin-bottom: 12px; }
.service-card p { color: var(--muted); margin: 0; }

.feature-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.feature-strip img { width: 100%; height: 460px; object-fit: cover; display: block; border-radius: 30px; box-shadow: var(--shadow); }
.feature-copy { background: var(--light-blue); border: 1px solid var(--border); border-radius: 30px; padding: 36px; }

.split-section { display: grid; grid-template-columns: 1fr .9fr; gap: 34px; align-items: center; }
.blue-panel { border-radius: 30px; padding: 34px; box-shadow: var(--shadow); background: linear-gradient(145deg, var(--dark-blue), var(--blue)); color: white; }
.blue-panel h3,.blue-panel li { color: white; }
.blue-panel ul { padding-left: 20px; margin-bottom: 0; }
.blue-panel li { margin: 10px 0; }

.gallery-section { padding-top: 84px; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.filter-btn { border: 1px solid var(--border); background: white; color: var(--dark-blue); border-radius: 999px; padding: 10px 15px; font-weight: 900; cursor: pointer; }
.filter-btn.active,.filter-btn:hover { background: var(--blue); color: white; border-color: var(--blue); }
.project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.project-card { border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: white; box-shadow: 0 12px 35px rgba(3,38,88,.07); cursor: pointer; }
.project-card img { width: 100%; height: 255px; object-fit: cover; display: block; transition: transform .25s ease; }
.project-card:hover img { transform: scale(1.04); }
.project-card div { padding: 20px; }
.project-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.project-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.project-card.hidden { display: none; }

.testimonials { background: linear-gradient(180deg, white, var(--light-blue)); border-radius: 34px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.testimonial-grid article { background: white; border: 1px solid var(--border); border-radius: 24px; padding: 26px; box-shadow: 0 12px 35px rgba(3,38,88,.07); }
.testimonial-grid p { color: var(--muted); font-size: 1.05rem; }
.testimonial-grid strong { color: var(--dark-blue); }

.areas { background: var(--light-blue); border-radius: 34px; }
.area-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.area-list span { background: white; color: var(--dark-blue); border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; font-weight: 850; }

.contact-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-top: 24px; }
.contact-card { border: 1px solid var(--border); border-radius: 18px; padding: 18px; background: white; box-shadow: 0 10px 30px rgba(3,38,88,.05); }
.contact-card strong { color: var(--dark-blue); display: block; margin-bottom: 3px; }
.contact-card span { color: var(--muted); }
.contact-form { background: white; border: 1px solid var(--border); border-radius: 30px; padding: 32px; box-shadow: var(--shadow); }
label { display: block; color: var(--dark-blue); font-weight: 950; margin-bottom: 16px; }
input,select,textarea { width: 100%; margin-top: 7px; padding: 14px 15px; border-radius: 14px; border: 1px solid var(--border); font: inherit; color: var(--text); background: white; }
textarea { resize: vertical; }
button.btn { width: 100%; font-size: 1rem; }

.lightbox { position: fixed; inset: 0; background: rgba(2,20,45,.92); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 28px; }
.lightbox.open { display: flex; }
.lightbox-content { max-width: 1080px; width: 100%; max-height: 90vh; background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.lightbox-content img { width: 100%; max-height: 72vh; object-fit: contain; background: #071d3d; display: block; }
.lightbox-caption { padding: 18px 24px 22px; }
.lightbox-caption h3 { margin-bottom: 6px; }
.lightbox-caption p { margin: 0; color: var(--muted); }
.lightbox-close,.lightbox-prev,.lightbox-next { position: absolute; border: 0; background: white; color: var(--dark-blue); border-radius: 999px; cursor: pointer; font-weight: 950; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.lightbox-close { top: 22px; right: 22px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lightbox-prev,.lightbox-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2.8rem; line-height: .8; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.mobile-call { display: none; position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 60; background: var(--blue); color: white; text-align: center; padding: 15px; border-radius: 999px; font-weight: 950; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.footer { text-align: center; padding: 48px 22px 86px; background: var(--dark-blue); color: white; }
.footer img { width: 320px; max-width: 86vw; background: white; border-radius: 16px; padding: 10px; margin-bottom: 12px; }
.footer p { margin: 8px 0; }
.footer a { font-weight: 900; text-decoration: underline; }

@media (max-width: 1020px) {
  .hero-inner,.feature-strip,.split-section,.contact-section { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .project-grid { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); margin-top: -40px; }
  .logo { width: 280px; max-width: 68vw; }
  .menu-toggle { display:block; }
  .nav-links { display:none; position:absolute; left:22px; right:22px; top:130px; background:white; border:1px solid var(--border); border-radius:20px; padding:18px; box-shadow:var(--shadow); flex-direction:column; align-items:stretch; }
  .nav-links.open { display:flex; }
  .nav-links a { padding:8px; }
  .nav-cta { text-align:center; }
}

@media (max-width: 650px) {
  .top-bar { flex-direction: column; gap: 2px; text-align: center; font-size: .85rem; }
  .nav { padding: 12px 16px; }
  .logo { width: 235px; max-width: 70vw; }
  .nav-links { top: 132px; }
  .hero { min-height: 720px; }
  .hero-inner { padding: 58px 18px 100px; }
  .hero-buttons .btn { width: 100%; }
  .stats,.service-grid,.project-grid,.testimonial-grid { grid-template-columns: 1fr; }
  .section,.split-section,.contact-section { padding: 58px 18px; }
  .feature-strip img { height: 330px; }
  .project-card img { height: 290px; }
  .estimate-card { transform: none; }
  .estimate-card img { height: 250px; }
  .mobile-call { display: block; }
  .lightbox { padding: 14px; }
  .lightbox-content { max-height: 86vh; border-radius: 18px; }
  .lightbox-content img { max-height: 65vh; }
  .lightbox-prev,.lightbox-next { width:42px; height:42px; font-size:2rem; }
  .lightbox-prev { left:8px; }
  .lightbox-next { right:8px; }
  .lightbox-close { top:8px; right:8px; }
}
