:root {
  --navy: #082b43;
  --navy-deep: #041e30;
  --blue: #078db6;
  --cyan: #50c7db;
  --ice: #eaf7f8;
  --cream: #f6f4ee;
  --white: #ffffff;
  --ink: #173443;
  --muted: #607680;
  --line: #dbe7e9;
  --shadow: 0 20px 60px rgba(4, 30, 48, .14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "DM Sans", sans-serif; background: var(--white); line-height: 1.65; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--white); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.topbar { background: var(--navy-deep); color: #cfe5ea; font-size: 13px; letter-spacing: .02em; }
.topbar-inner { height: 38px; display: flex; align-items: center; justify-content: space-between; }
.topbar a { color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(219,231,233,.8); backdrop-filter: blur(10px); }
.nav-wrap { height: 82px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 206px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 48px; border-radius: 52% 52% 58% 58% / 42% 42% 68% 68%; background: linear-gradient(145deg, var(--cyan), var(--blue)); color: white; font: 800 22px/1 "Manrope"; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand b { font: 800 24px/1.1 "Manrope"; color: var(--navy); letter-spacing: -.04em; }
.brand small { margin-top: 5px; color: var(--blue); font-weight: 800; letter-spacing: .22em; font-size: 10px; }
nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
nav a { font-size: 14px; font-weight: 600; color: #314f5d; }
nav a:hover { color: var(--blue); }
.menu-toggle { display: none; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border: 0; border-radius: 8px; padding: 0 24px; background: linear-gradient(135deg, var(--blue), #0ea4c2); color: white; font-weight: 700; cursor: pointer; box-shadow: 0 9px 24px rgba(7,141,182,.22); transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(7,141,182,.3); }
.button-small { min-height: 44px; padding: 0 18px; font-size: 14px; }

.hero { position: relative; min-height: 690px; color: var(--white); overflow: hidden; background: var(--navy-deep); }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url("assets/portland-water-hero.png") center/cover no-repeat; }
.hero-shade { background: linear-gradient(90deg, rgba(3,24,39,.95) 0%, rgba(4,34,53,.77) 42%, rgba(4,30,48,.32) 72%, rgba(4,30,48,.55) 100%); }
.hero-grid { position: relative; z-index: 2; min-height: 690px; display: grid; grid-template-columns: 1fr 425px; gap: 64px; align-items: center; padding-top: 62px; padding-bottom: 62px; }
.hero-copy { max-width: 640px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow.light { color: #81dce9; }
h1, h2, h3 { margin-top: 0; font-family: "Manrope", sans-serif; line-height: 1.12; color: var(--navy-deep); }
h1 { max-width: 650px; margin-bottom: 22px; color: white; font-size: clamp(44px, 5.6vw, 72px); letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.045em; }
h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: -.025em; }
.hero-lead { max-width: 580px; margin: 0 0 24px; color: #d9eaed; font-size: 19px; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; color: var(--navy); background: var(--cyan); font-weight: 800; font-size: 12px; line-height: 19px; text-align: center; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.text-link { color: var(--blue); font-weight: 700; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.light-link { color: white; }

.lead-card { padding: 30px; border-radius: var(--radius); background: rgba(255,255,255,.97); color: var(--ink); box-shadow: var(--shadow); }
.form-kicker { margin: 0 0 3px; color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.lead-card h2 { margin-bottom: 20px; font-size: 28px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 5px; color: #42606c; font-size: 12px; font-weight: 700; }
input, select { width: 100%; height: 48px; border: 1px solid #ccdadd; border-radius: 7px; padding: 0 13px; background: white; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,141,182,.11); }
.button-full { width: 100%; margin-top: 16px; }
.form-note { margin: 11px 0 0; color: #768a93; font-size: 11px; text-align: center; line-height: 1.4; }
.form-success { margin: 13px 0 0; padding: 10px 12px; border-radius: 7px; background: #e2f7ec; color: #12643e; font-size: 13px; font-weight: 700; }

.trust-strip { border-bottom: 1px solid var(--line); background: white; }
.trust-grid { min-height: 116px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.trust-grid > div { display: flex; align-items: center; justify-content: center; gap: 15px; border-right: 1px solid var(--line); }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid span { color: var(--cyan); font: 800 20px/1 "Manrope"; }
.trust-grid p { display: grid; margin: 0; line-height: 1.3; }
.trust-grid strong { color: var(--navy); font-size: 15px; }
.trust-grid small { color: var(--muted); font-size: 12px; }

.section { padding: 108px 0; }
.section-heading { max-width: 720px; margin-bottom: 45px; }
.section-heading.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.process { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { position: relative; min-height: 315px; padding: 38px 32px; border: 1px solid #e2e3dc; border-radius: var(--radius); background: white; }
.step-card.featured { background: var(--navy); border-color: var(--navy); transform: translateY(-12px); }
.step-card.featured h3, .step-card.featured p { color: white; }
.step-card.featured p { color: #c6d9df; }
.step-number { position: absolute; top: 25px; right: 25px; color: #cbd9dc; font: 800 18px/1 "Manrope"; }
.icon-tile { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 30px; border-radius: 15px; background: var(--ice); color: var(--blue); font-size: 24px; font-weight: 800; }
.featured .icon-tile { background: rgba(80,199,219,.17); color: var(--cyan); }
.step-card p { margin: 0; color: var(--muted); font-size: 15px; }

.services { background: white; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; }
.split-heading p:last-child { padding-bottom: 8px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-4px); border-color: #afdbe2; box-shadow: 0 18px 44px rgba(4,30,48,.08); }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 24px; border-radius: 13px; background: var(--ice); color: var(--blue); font: 800 13px/1 "Manrope"; }
.service-card p { min-height: 102px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.service-card a { color: var(--blue); font-size: 13px; font-weight: 800; }
.service-card a span { margin-left: 5px; }

.about { background: var(--ice); }
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 82px; align-items: center; }
.about-photo { position: relative; min-height: 600px; border-radius: 26px; background: url("assets/portland-water-hero.png") 69% center/cover no-repeat; box-shadow: var(--shadow); }
.photo-badge { position: absolute; left: -24px; bottom: 32px; display: grid; min-width: 210px; padding: 19px 22px; border-radius: 12px; background: white; box-shadow: var(--shadow); }
.photo-badge strong { color: var(--navy); font: 800 24px/1.1 "Manrope"; }
.photo-badge span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.dark-list { gap: 11px; margin: 26px 0 31px; }
.dark-list li::before { background: var(--cyan); }

.areas { position: relative; color: white; background: radial-gradient(circle at 70% 30%, #0e5872 0, transparent 37%), linear-gradient(135deg, var(--navy-deep), var(--navy)); overflow: hidden; }
.areas::after { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; bottom: -330px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.area-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 85px; align-items: center; }
.areas h2 { color: white; }
.areas p:not(.eyebrow) { color: #c2dae0; font-size: 17px; }
.button-light { background: white; color: var(--navy); box-shadow: none; }
.towns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.towns span { padding: 12px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.06); font-size: 14px; }
.towns span::before { content: "•"; margin-right: 9px; color: var(--cyan); }

.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; }
.faq-intro { position: sticky; top: 130px; align-self: start; }
.faq-intro > p:not(.eyebrow) { color: var(--muted); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { position: relative; padding: 24px 48px 24px 0; color: var(--navy); font: 700 18px/1.4 "Manrope"; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 8px; top: 18px; color: var(--blue); font-size: 28px; font-weight: 400; }
.accordion details[open] summary::after { content: "−"; }
.accordion details p { margin: -4px 48px 24px 0; color: var(--muted); }

.cta-section { padding: 0 0 90px; }
.cta-card { min-height: 245px; display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: 52px 60px; border-radius: 26px; color: white; background: linear-gradient(135deg, var(--blue), #0eabc8); }
.cta-card h2 { max-width: 690px; margin-bottom: 0; color: white; }
.cta-actions { min-width: 235px; display: grid; gap: 15px; text-align: center; }
.cta-actions > a:last-child { color: white; font-weight: 700; }

footer { padding: 78px 0 26px; color: #b7ced5; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 58px; }
.footer-brand b { color: white; }
.footer-grid > div:first-child p { max-width: 340px; }
.footer-grid h3 { color: white; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a:not(.brand) { display: block; margin: 8px 0; color: #b7ced5; font-size: 14px; }
.footer-grid a:hover { color: white; }
.footer-grid p { color: #8faab3; font-size: 14px; }
.footer-grid .footer-phone { color: white; font: 700 19px/1.3 "Manrope"; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }

/* Service pages */
.service-hero { position: relative; min-height: 585px; display: flex; align-items: center; overflow: hidden; color: white; background: var(--navy-deep); }
.service-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,24,39,.96) 0%, rgba(4,34,53,.84) 48%, rgba(4,30,48,.34) 100%); }
.service-hero-image { position: absolute; inset: 0; background: url("assets/portland-water-hero.png") center/cover no-repeat; }
.service-hero .service-hero-image { background-image: url("assets/portland-water-hero.png"); }
.service-hero-inner { position: relative; z-index: 1; padding-top: 85px; padding-bottom: 85px; }
.service-hero-inner > div { max-width: 765px; }
.service-hero h1 { font-size: clamp(43px, 5.5vw, 68px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 40px; color: #bcd3d9; font-size: 13px; }
.breadcrumbs a:hover { color: white; }
.breadcrumbs span { color: var(--cyan); }
.service-intro { padding: 100px 0; }
.service-intro-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 88px; align-items: center; }
.service-intro-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.symptom-card { padding: 38px; border-radius: var(--radius); background: var(--ice); border: 1px solid #cde8ec; }
.symptom-card h3 { margin-bottom: 24px; font-size: 23px; }
.symptom-card .dark-list { margin: 0; }
.service-details { background: var(--navy-deep); }
.service-details .section-heading h2 { color: white; }
.service-details .section-heading p:last-child { color: #b7ced5; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.detail-grid article { min-height: 260px; padding: 34px 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.055); }
.detail-grid span { display: block; margin-bottom: 45px; color: var(--cyan); font: 800 14px/1 "Manrope"; }
.detail-grid h3 { color: white; font-size: 22px; }
.detail-grid p { margin: 0; color: #b7ced5; font-size: 15px; }
.pale-section { background: var(--cream); }
.two-column-copy { display: grid; grid-template-columns: .7fr 1.3fr; gap: 95px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 34px; }
.feature-list > div { padding-top: 20px; border-top: 2px solid #cce4e7; }
.feature-list h3 { margin-bottom: 8px; }
.feature-list p { margin: 0; color: var(--muted); font-size: 15px; }
.compact-faq { padding-bottom: 82px; }
.related-services { padding: 50px 0 100px; }
.related-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-links a { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 18px 21px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); font-weight: 700; transition: transform .2s, border-color .2s; }
.related-links a:hover { transform: translateY(-3px); border-color: var(--cyan); }
.related-links span { color: var(--blue); }
.service-cta { padding-top: 0; }

@media (max-width: 980px) {
  .nav-cta { display: none; }
  nav { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr 390px; gap: 35px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 45px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / -1; }
  .service-intro-grid { gap: 45px; }
  .two-column-copy { gap: 55px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar-inner > span { display: none; }
  .topbar-inner { justify-content: center; }
  .nav-wrap { height: 72px; }
  .brand { min-width: auto; }
  .brand b { font-size: 20px; }
  .brand-mark { width: 36px; height: 41px; }
  .menu-toggle { display: block; margin-left: auto; border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; background: white; color: var(--navy); font-weight: 700; }
  nav { position: absolute; top: 72px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: white; }
  nav.open { display: flex; }
  nav a { padding: 11px; }
  .hero { min-height: auto; }
  .hero-shade { background: linear-gradient(180deg, rgba(3,24,39,.9), rgba(4,30,48,.72)); }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding-top: 66px; padding-bottom: 55px; }
  h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .lead-card { padding: 25px 20px; }
  .trust-grid { grid-template-columns: 1fr; padding: 18px 0; }
  .trust-grid > div { justify-content: flex-start; padding: 14px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .section { padding: 78px 0; }
  .steps, .service-grid, .split-heading, .about-grid, .area-grid, .faq-grid { grid-template-columns: 1fr; }
  .service-intro-grid, .two-column-copy, .detail-grid { grid-template-columns: 1fr; }
  .service-hero { min-height: 540px; }
  .service-hero::after { background: linear-gradient(180deg, rgba(3,24,39,.93), rgba(4,30,48,.72)); }
  .service-hero-inner { padding-top: 65px; padding-bottom: 65px; }
  .breadcrumbs { margin-bottom: 30px; }
  .service-intro { padding: 78px 0; }
  .service-intro-grid, .two-column-copy { gap: 34px; }
  .detail-grid { gap: 13px; }
  .detail-grid article { min-height: auto; }
  .detail-grid span { margin-bottom: 22px; }
  .related-links { grid-template-columns: 1fr; }
  .steps { gap: 14px; }
  .step-card.featured { transform: none; }
  .split-heading, .area-grid, .faq-grid { gap: 30px; }
  .service-card p { min-height: auto; }
  .about-photo { min-height: 430px; order: 2; }
  .photo-badge { left: 18px; }
  .faq-intro { position: static; }
  .cta-card { align-items: flex-start; flex-direction: column; padding: 38px 25px; }
  .cta-actions { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .field-grid, .towns { grid-template-columns: 1fr; }
  .field-grid .full { grid-column: auto; }
  .section-heading { margin-bottom: 32px; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { grid-column: auto !important; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .feature-list { grid-template-columns: 1fr; }
  .symptom-card { padding: 28px 22px; }
}
