@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #075784;
  --navy-dark: #07324a;
  --ink: #102a3a;
  --cream: #f3e1cb;
  --sand: #faf5ee;
  --sky: #dbeef5;
  --white: #ffffff;
  --muted: #607482;
  --border: rgba(7, 87, 132, 0.15);
  --shadow: 0 24px 70px rgba(7, 50, 74, 0.13);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.modal-open { overflow: hidden; }
img { display: block; width: 100%; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
  position: fixed; left: 14px; top: -60px; z-index: 9999;
  padding: 10px 16px; background: var(--cream); color: var(--ink);
  border-radius: 0 0 10px 10px; font-weight: 800;
}
.skip-link:focus { top: 0; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 108px 0; position: relative; overflow: clip; }
.section-sm { padding: 74px 0; }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy-dark); color: var(--white); }
.bg-sky { background: var(--sky); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px; color: var(--navy); font-size: 0.76rem;
  font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.bg-navy .eyebrow { color: var(--cream); }
.display, h1, h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400; line-height: 1.08; letter-spacing: -0.025em;
}
h1 { font-size: clamp(3.15rem, 6.3vw, 6.25rem); margin-bottom: 24px; }
h2 { font-size: clamp(2.45rem, 4.4vw, 4.35rem); margin-bottom: 22px; }
h3 { font-size: 1.26rem; line-height: 1.3; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 650px; }
.bg-navy .lead { color: rgba(255,255,255,.73); }
.accent { color: var(--navy); font-style: italic; }
.bg-navy .accent { color: var(--cream); }

.btn {
  min-height: 52px; padding: 0 24px; border: 1px solid transparent;
  border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; gap: 10px; font-size: .88rem; font-weight: 800;
  letter-spacing: .025em; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cream); color: var(--ink); box-shadow: 0 12px 28px rgba(243,225,203,.18); }
.btn-primary:hover { background: #f9ead8; box-shadow: 0 16px 36px rgba(243,225,203,.28); }
.btn-blue { background: var(--navy); color: var(--white); box-shadow: 0 12px 28px rgba(7,87,132,.22); }
.btn-blue:hover { background: #064a70; }
.btn-outline { border-color: rgba(255,255,255,.4); color: var(--white); background: rgba(255,255,255,.04); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-light-outline { border-color: var(--border); color: var(--navy); background: var(--white); }
.btn-light-outline:hover { border-color: var(--navy); }
.btn svg { width: 18px; height: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-h);
  color: var(--white); transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}
.site-header.scrolled, .site-header.inner-header { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 10px 36px rgba(16,42,58,.08); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; min-width: 190px; }
.brand-mark {
  width: 182px; height: 70px; border-radius: 0; overflow: visible;
  background: transparent; border: 0;
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; object-position: left center; transform: none; padding: 0; }
.brand-copy { display: none; }
.brand-copy strong { display: block; font-size: .88rem; letter-spacing: .04em; }
.brand-copy span { display: block; margin-top: 5px; font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; opacity: .7; }
.main-nav { display: flex; align-items: center; gap: 29px; }
.main-nav > a:not(.btn) { position: relative; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.main-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--cream); transition: right .25s ease; }
.site-header.scrolled .main-nav > a:not(.btn)::after, .site-header.inner-header .main-nav > a:not(.btn)::after { background: var(--navy); }
.main-nav > a:hover::after, .main-nav > a.active::after { right: 0; }
.nav-cta { min-height: 44px; padding-inline: 20px; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; align-items: center; justify-content: center; flex-direction: column; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; flex: 0 0 2px; width: 19px; height: 2px; margin-inline: auto; background: currentColor; transition: .25s ease; }
.menu-toggle span { margin: 4px 0; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
.scroll-progress { position: fixed; inset: 0 auto auto 0; z-index: 1200; height: 3px; width: 0; background: var(--cream); }

.hero {
  min-height: 820px; color: var(--white); display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(4,31,47,.94) 0%, rgba(4,31,47,.79) 48%, rgba(4,31,47,.35) 100%),
              url("../images/exterior-commercial-painting-rockland-ma.webp") center/cover no-repeat;
  padding: 150px 0 88px; position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(243,225,203,.24); border-radius: 50%; right: -130px; top: 145px; box-shadow: 0 0 0 80px rgba(243,225,203,.04), 0 0 0 160px rgba(243,225,203,.025); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr .72fr; gap: 72px; align-items: center; }
.hero-copy { max-width: 710px; }
.hero h1 { max-width: 760px; }
.hero h1 em { color: var(--cream); font-weight: 400; }
.hero-copy > p { max-width: 650px; color: rgba(255,255,255,.8); font-size: 1.08rem; margin-bottom: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 34px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 5px rgba(243,225,203,.12); }
.estimate-card { background: rgba(255,255,255,.96); color: var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 28px 80px rgba(0,0,0,.27); }
.estimate-card .eyebrow { margin-bottom: 10px; }
.estimate-card h2 { font-size: 2rem; margin-bottom: 8px; }
.estimate-card > p { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #dce5e9; background: #f8fafb; color: var(--ink);
  border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(7,87,132,.08); }
.estimate-card .btn { width: 100%; margin-top: 15px; border-radius: 13px; }
.form-message { min-height: 24px; margin: 10px 0 0; font-size: .82rem; font-weight: 700; }
.form-success { color: #157448; }
.form-error { color: #b42318; }
.consent-field { grid-column: 1 / -1; }
.consent-label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: .68rem; line-height: 1.55; text-transform: none; letter-spacing: 0; font-weight: 500; }
.consent-label input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--navy); }
.consent-label a { color: var(--navy); text-decoration: underline; }

.trust-strip { position: relative; z-index: 3; margin-top: -34px; }
.trust-inner { background: var(--white); border-radius: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.trust-item { padding: 24px 28px; border-right: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }
.trust-item:last-child { border-right: 0; }
.trust-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; background: var(--sky); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: 0 0 42px; }
.trust-icon svg { display: block; width: 20px; height: 20px; margin: 0; flex: 0 0 20px; }
.trust-item strong { display: block; font-size: .86rem; line-height: 1.25; }
.trust-item span { display: block; font-size: .7rem; color: var(--muted); margin-top: 3px; }

.image-composition { position: relative; min-height: 590px; }
.image-composition .image-main { position: absolute; inset: 0 70px 50px 0; width: calc(100% - 70px); height: calc(100% - 50px); object-fit: cover; border-radius: 160px 24px 24px 24px; box-shadow: var(--shadow); }
.image-composition .image-small { position: absolute; width: 235px; height: 285px; right: 0; bottom: 0; object-fit: cover; border-radius: 24px; border: 8px solid var(--white); box-shadow: 0 18px 44px rgba(16,42,58,.2); }
.experience-badge { position: absolute; z-index: 2; top: 44px; right: 18px; width: 136px; height: 136px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--cream); color: var(--ink); box-shadow: 0 16px 35px rgba(16,42,58,.14); transform: rotate(4deg); }
.experience-badge strong { display: block; font-family: "DM Serif Display", serif; font-size: 2.6rem; line-height: .85; }
.experience-badge span { display: block; font-size: .63rem; line-height: 1.25; margin-top: 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.check-list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 650; }
.check-list li::before { content: "✓"; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--sky); color: var(--navy); font-size: .75rem; font-weight: 900; margin-top: 2px; }

.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.service-card { position: relative; min-height: 420px; overflow: hidden; border-radius: 26px; color: var(--white); isolation: isolate; }
.service-card:nth-child(1), .service-card:nth-child(4) { grid-column: span 7; }
.service-card:nth-child(2), .service-card:nth-child(3) { grid-column: span 5; }
.service-card:nth-child(5), .service-card:nth-child(6) { grid-column: span 6; min-height: 360px; }
.service-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -2; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,31,47,.04) 20%, rgba(4,31,47,.9) 100%); }
.service-card:hover img { transform: scale(1.06); }
.service-content { position: absolute; inset: auto 28px 27px; }
.service-number { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: .72rem; font-weight: 800; margin-bottom: 16px; }
.service-content h3 { font-family: "DM Serif Display", serif; font-size: 1.85rem; font-weight: 400; }
.service-content p { margin: 0; color: rgba(255,255,255,.75); font-size: .88rem; max-width: 490px; }

.feature-band { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 580px; }
.feature-media { min-height: 580px; }
.feature-media img { height: 100%; object-fit: cover; }
.feature-copy { padding: 80px clamp(36px, 6vw, 92px); display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: var(--white); }
.feature-copy p { color: rgba(255,255,255,.72); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.proof-item { border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; }
.proof-item strong { display: block; font-family: "DM Serif Display", serif; font-size: 2.05rem; color: var(--cream); font-weight: 400; }
.proof-item span { font-size: .73rem; color: rgba(255,255,255,.66); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: process; }
.process-card { counter-increment: process; padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: var(--white); position: relative; }
.process-card::before { content: "0" counter(process); display: block; color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 50px; }
.process-card::after { content: ""; position: absolute; top: 48px; left: 28px; width: 40px; height: 2px; background: var(--cream); }
.process-card p { color: var(--muted); font-size: .88rem; margin: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 165px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 18px; border: 0; padding: 0; background: var(--sky); }
.gallery-item:nth-child(6n+1), .gallery-item:nth-child(6n+4) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(6n+2), .gallery-item:nth-child(6n+3), .gallery-item:nth-child(6n+5), .gallery-item:nth-child(6n+6) { grid-row: span 1; }
.gallery-item:nth-child(6n+2), .gallery-item:nth-child(6n+5) { grid-column: span 7; }
.gallery-item:nth-child(6n+3), .gallery-item:nth-child(6n+6) { grid-column: span 7; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.gallery-item::after { content: "+"; position: absolute; inset: auto 14px 14px auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.3rem; transform: scale(.75); opacity: 0; transition: .3s ease; }
.gallery-item:hover img { transform: scale(1.05); filter: brightness(.83); }
.gallery-item:hover::after { transform: scale(1); opacity: 1; }
.gallery-link { margin-top: 34px; }
.gallery-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 430px; gap: 24px; }
.gallery-page-grid .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
.gallery-page-grid .gallery-item img { object-position: center; }
.gallery-page-grid .gallery-item.is-comparison img { object-fit: contain; background: #fff; }

.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; border: 0; background: transparent; color: var(--ink); text-align: left; padding: 24px 50px 24px 0; font-weight: 800; position: relative; }
.faq-question::before, .faq-question::after { content: ""; position: absolute; right: 4px; top: 50%; width: 18px; height: 2px; background: var(--navy); transition: transform .25s ease; }
.faq-question::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"]::after { transform: rotate(0); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { color: var(--muted); padding: 0 38px 24px 0; margin: 0; }
.faq-question[aria-expanded="true"] + .faq-answer { grid-template-rows: 1fr; }

.cta-panel { border-radius: var(--radius-lg); background: var(--navy-dark); color: var(--white); padding: 70px clamp(28px, 7vw, 84px); position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-panel::before { content: "P"; position: absolute; right: 34%; top: -80px; font-family: "DM Serif Display", serif; font-size: 25rem; line-height: 1; color: rgba(255,255,255,.035); }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { max-width: 670px; margin: 0; }
.cta-panel .button-row { flex: 0 0 auto; }

.page-hero { min-height: 510px; display: flex; align-items: flex-end; padding: 160px 0 84px; color: var(--white); background: linear-gradient(90deg, rgba(4,31,47,.94), rgba(4,31,47,.52)), var(--page-bg) center/cover; }
.page-hero .eyebrow { color: var(--cream); }
.page-hero h1 { font-size: clamp(3.2rem, 6vw, 5.8rem); max-width: 820px; margin-bottom: 16px; }
.page-hero p { max-width: 690px; color: rgba(255,255,255,.78); font-size: 1.08rem; margin: 0; }
.breadcrumbs { display: flex; gap: 8px; color: rgba(255,255,255,.62); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 22px; }
.breadcrumbs a { color: var(--cream); }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-detail { border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--white); display: grid; grid-template-columns: 210px 1fr; min-height: 250px; }
.service-detail img { height: 100%; object-fit: cover; }
.service-detail-copy { padding: 30px; }
.service-detail-copy span { color: var(--navy); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-detail-copy h2 { font-family: "DM Serif Display", serif; font-size: 1.7rem; margin: 10px 0; }
.service-detail-copy p { color: var(--muted); font-size: .87rem; margin: 0; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-top: 30px; }
.contact-card { border: 1px solid var(--border); border-radius: 18px; padding: 19px; display: flex; gap: 15px; align-items: center; transition: border-color .2s, transform .2s; }
.contact-card:hover { border-color: var(--navy); transform: translateX(3px); }
.contact-card .trust-icon { width: 46px; height: 46px; }
.contact-card strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.contact-card span { display: block; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.contact-details { display: grid; gap: 12px; margin-top: 26px; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); }
.contact-detail svg { width: 21px; height: 21px; flex: 0 0 21px; margin-top: 3px; color: var(--navy); }
.contact-actions { display: grid; gap: 12px; margin-top: 24px; }
.contact-action { min-height: 54px; border: 2px solid var(--ink); border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: .88rem; font-weight: 800; transition: transform .2s, background .2s, color .2s; }
.contact-action:hover { transform: translateY(-2px); }
.contact-action.call { border-color: var(--navy); background: var(--navy); color: #fff; }
.contact-action.whatsapp { border-color: #d8d2c8; }
.contact-action svg { width: 19px; height: 19px; }
.footer-contact-actions { display: grid; gap: 10px; margin-top: 18px; }
.footer-contact .footer-contact-action { min-height: 44px; padding: 9px 14px; border: 1.5px solid rgba(255,255,255,.88); border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: var(--ink); font-size: .76rem; font-weight: 800; line-height: 1.2; text-align: center; transition: transform .2s ease, background .2s ease; }
.footer-contact .footer-contact-action:hover { transform: translateY(-2px); background: var(--cream); color: var(--ink); }
.footer-contact .footer-contact-action.call { background: #4f79bf; border-color: #4f79bf; color: #fff; }
.footer-contact .footer-contact-action.call:hover { background: #3f68ab; color: #fff; }
.footer-contact-action::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; }
.footer-contact-action.call::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.9a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.5c.9.3 1.9.6 2.9.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.9a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.5c.9.3 1.9.6 2.9.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.footer-contact-action:not(.call):not(.whatsapp)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E"); }
.footer-contact-action.whatsapp::before { background: #21a75a; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M21 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20.5l1.6-5.2A8.5 8.5 0 1 1 21 11.5zM8.8 8.2c.3 3 2 4.8 5 5.8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M21 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20.5l1.6-5.2A8.5 8.5 0 1 1 21 11.5zM8.8 8.2c.3 3 2 4.8 5 5.8'/%3E%3C/svg%3E"); }
.contact-form { background: var(--sand); border-radius: 28px; padding: 38px; }
.contact-form h2 { font-size: 2.55rem; }
.legal-wrap { max-width: 900px; margin-inline: auto; }
.legal-wrap h2 { font-family: "DM Serif Display", serif; font-size: 2rem; margin-top: 42px; }
.legal-wrap h3 { margin-top: 30px; }
.legal-wrap p, .legal-wrap li { color: #4f6573; }
.legal-wrap a { color: var(--navy); text-decoration: underline; }

.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(3,23,35,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; width: auto; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.lightbox-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: var(--white); font-size: 1.7rem; }

.site-footer { background: #061f2f; color: var(--white); padding: 74px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .85fr 1fr; gap: 52px; padding-bottom: 54px; }
.footer-brand .brand { color: var(--white); margin-bottom: 22px; }
.footer-brand p { color: rgba(255,255,255,.62); max-width: 340px; font-size: .88rem; }
.footer-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: var(--cream); margin-bottom: 21px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a, .footer-contact span { color: rgba(255,255,255,.68); font-size: .85rem; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact { display: grid; gap: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.45); font-size: .72rem; }
.footer-legal { display: flex; gap: 18px; }
.mobile-actions { display: none; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1060px) {
  .main-nav { gap: 18px; }
  .main-nav > a:not(.btn) { font-size: .71rem; }
  .brand { min-width: auto; }
  .brand-copy { display: none; }
  .hero-grid { grid-template-columns: 1fr .77fr; gap: 34px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .service-detail { grid-template-columns: 170px 1fr; }
}

@media (max-width: 820px) {
  :root { --header-h: 74px; }
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section { padding: 82px 0; }
  .section-sm { padding: 58px 0; }
  .grid-2, .hero-grid, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
  .menu-toggle { display: flex; }
  .main-nav { position: fixed; top: var(--header-h); left: 15px; right: 15px; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); color: var(--ink); padding: 18px; border-radius: 20px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-14px); pointer-events: none; transition: .25s ease; }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav > a:not(.btn) { padding: 13px 8px; font-size: .82rem; }
  .main-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 10px; }
  .hero { padding-top: 130px; min-height: auto; background-position: 56% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(3,23,35,.22); }
  .hero-grid { gap: 42px; }
  .estimate-card { max-width: 610px; }
  .trust-strip { margin-top: 0; padding-top: 14px; background: var(--sand); }
  .image-composition { min-height: 510px; order: 2; }
  .service-card, .service-card:nth-child(n) { grid-column: span 6; min-height: 370px; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-media { min-height: 420px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(5n+1) { grid-row: span 2; }
  .gallery-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 270px; gap: 14px; }
  .gallery-page-grid .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15px; padding-bottom: 66px; }
  h1 { font-size: clamp(2.78rem, 14vw, 4rem); }
  h2 { font-size: clamp(2.25rem, 11vw, 3.2rem); }
  .header-inner { gap: 10px; }
  .brand { min-width: 0; }
  .brand-mark { width: 148px; height: 58px; }
  .hero { padding: 116px 0 56px; background-image: linear-gradient(180deg, rgba(4,31,47,.82) 0%, rgba(4,31,47,.91) 56%, rgba(4,31,47,.98) 100%), url("../images/exterior-commercial-painting-rockland-ma.webp"); }
  .hero h1 { font-size: 3.25rem; }
  .hero-copy > p { font-size: .98rem; }
  .hero-meta { gap: 12px; flex-direction: column; }
  .button-row { width: 100%; }
  .button-row .btn { flex: 1 1 100%; }
  .estimate-card { padding: 25px 20px; border-radius: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { min-height: 112px; padding: 17px 13px; align-items: center; flex-direction: row; gap: 10px; }
  .trust-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .trust-icon svg { width: 18px; height: 18px; flex-basis: 18px; }
  .image-composition { min-height: 420px; }
  .image-composition .image-main { inset: 0 34px 44px 0; width: calc(100% - 34px); height: calc(100% - 44px); border-radius: 90px 20px 20px; }
  .image-composition .image-small { width: 150px; height: 190px; border-width: 6px; }
  .experience-badge { width: 106px; height: 106px; right: 2px; }
  .experience-badge strong { font-size: 2rem; }
  .services-grid { display: grid; grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(n) { grid-column: auto; min-height: 360px; }
  .feature-media { min-height: 340px; }
  .feature-copy { padding: 56px 22px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:last-child { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card::before { margin-bottom: 34px; }
  .gallery-grid { grid-auto-rows: 190px; gap: 9px; }
  .gallery-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 1; }
  .gallery-page-grid { grid-template-columns: 1fr; grid-auto-rows: 310px; gap: 14px; }
  .gallery-page-grid .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .faq-layout { gap: 32px; }
  .cta-panel { padding: 48px 22px; border-radius: 24px; }
  .page-hero { min-height: 440px; padding: 138px 0 62px; }
  .page-hero h1 { font-size: 3.2rem; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail img { height: 230px; }
  .contact-form { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { flex-direction: column; }
  .mobile-actions { position: fixed; z-index: 1500; bottom: 0; left: 0; right: 0; height: 66px; display: grid; grid-template-columns: 1fr 1fr; background: var(--white); box-shadow: 0 -8px 24px rgba(7,50,74,.12); }
  .mobile-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: .82rem; }
  .mobile-actions a:first-child { background: var(--navy); color: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
