:root {
    --green: #48776b;
    --green-soft: #618b7e;
    --orchid: #9f4e7a;
    --orchid-strong: #873d67;
    --mint: #e2f6e9;
    --lilac: #f1eafa;
    --rose: #fbe9f2;
    --white: #ffffff;
    --paper: #f8fcfa;
    --line: #b6d5c5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--green); background: var(--paper); font-family: Tahoma, Arial, sans-serif; line-height: 1.65; }
.frame { width: calc(100% - 74px); max-width: 1240px; margin-inline: auto; }
p { font-size: 16px; line-height: 1.67; margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--orchid); outline-offset: 4px; }
h1, h2, h3 { font-family: Cambria, Georgia, serif; color: var(--green); line-height: 1.17; font-weight: 700; }
h1 { margin: 0 0 21px; font-size: 40px; letter-spacing: -.7px; }
h2 { margin: 0 0 20px; font-size: 28px; letter-spacing: -.25px; }
h3 { margin: 0 0 10px; font-size: 23px; }
.lead { font-weight: 700; }
.eyebrow { display: inline-block; margin-bottom: 13px; color: var(--orchid); font-size: 12px; font-weight: 900; letter-spacing: 1.25px; text-transform: uppercase; }
.chapter-heading { max-width: 870px; margin-bottom: 31px; }
.chapter-heading h2 { margin-bottom: 14px; }

.masthead { background: var(--white); border-bottom: 2px solid var(--green); }
.masthead-utility { background: var(--rose); }
.utility-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 25px; padding-block: 8px; font-size: 12px; font-weight: 750; letter-spacing: .4px; }
.navigation-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 27px; min-height: 92px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font: 800 23px Cambria, Georgia, serif; text-decoration: none; white-space: nowrap; }
.wordmark strong { color: var(--orchid); }
.wordmark-symbol { display: inline-block; position: relative; width: 41px; height: 45px; flex-shrink: 0; background: var(--mint); border: 3px solid var(--green); border-radius: 3px; }
.wordmark-symbol::before { position: absolute; content: ""; width: 23px; height: 23px; border: 5px solid var(--orchid); border-radius: 50%; left: 6px; top: 12px; }
.wordmark-symbol::after { position: absolute; content: ""; left: 5px; top: 6px; width: 22px; border-top: 2px solid var(--green); }
.wordmark-symbol i { position: absolute; content: ""; top: 3px; right: 4px; width: 5px; height: 5px; background: var(--orchid); border-radius: 50%; }
.navigation-items { display: flex; align-items: center; justify-content: center; gap: clamp(17px, 3vw, 43px); }
.navigation-items a { display: inline-block; padding: 10px 0; text-decoration: none; border-bottom: 3px solid transparent; font-size: 14px; font-weight: 800; white-space: nowrap; }
.navigation-items a:hover { color: var(--orchid); }
.navigation-items a[aria-current="page"] { border-bottom-color: var(--orchid); }
.nav-phone { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 15px; background: var(--orchid); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 850; white-space: nowrap; }
.nav-phone:hover { background: var(--orchid-strong); }

.action-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; min-height: 52px; padding: 11px 20px; text-align: center; text-decoration: none; border: 2px solid var(--orchid); font-size: 15px; font-weight: 850; line-height: 1.25; }
.cta-solid { background: var(--orchid); color: var(--white); }
.cta-quiet { background: var(--white); color: var(--orchid); }
.cta-solid:hover { background: var(--orchid-strong); }
.cta-quiet:hover { background: var(--rose); }

.editorial-start { background: var(--mint); padding: 51px 0 0; }
.editorial-heading { border-left: 7px solid var(--orchid); padding-left: 22px; margin-bottom: 26px; }
.editorial-heading h1 { margin-bottom: 0; }
.intro-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.action-shelf { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 19px 30px; margin-top: 27px; padding: 20px 0 23px; border-top: 2px solid var(--green); }
.action-summary { display: flex; flex-wrap: wrap; gap: 10px 31px; font-size: 14px; }
.action-summary span { display: flex; flex-direction: column; }
.action-summary strong { font-size: 19px; font-family: Cambria, Georgia, serif; }

.service-territory { background: var(--lilac); padding: 47px 0 56px; }
.ribbon-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 26px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 21px; border-bottom: 2px solid var(--green); }
.ribbon-heading h2 { margin: 0; }
.territory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.territory-item { padding-top: 16px; border-top: 4px solid var(--orchid); }
.territory-item > span { display: block; color: var(--orchid); font-size: 13px; font-weight: 850; margin-bottom: 12px; }

.fault-editor { padding-top: 72px; padding-bottom: 80px; }
.fault-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 37px; }
.fault-topic { border-top: 3px solid var(--green); padding-top: 17px; }
.fault-topic:nth-child(even) { border-top-color: var(--orchid); }
.topic-title { display: flex; align-items: baseline; gap: 17px; margin-bottom: 17px; }
.topic-title span { color: var(--orchid); font-size: 15px; font-weight: 900; }
.topic-title h3 { margin: 0; }

.diagnostic-stage { padding: 55px 0 62px; background: var(--rose); }
.stage-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 42px; align-items: center; }
.stage-visual { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 23px; padding: 19px 22px; background: var(--white); border: 2px solid var(--green); }
.knob-graphic { display: grid; place-items: center; position: relative; height: 135px; background: var(--mint); border: 3px solid var(--green); }
.knob-center { display: grid; place-items: center; width: 106px; height: 106px; border: 15px solid var(--orchid); border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 5px var(--green); }
.knob-center span { width: 36px; height: 7px; border-radius: 4px; background: var(--orchid); transform: rotate(37deg); }
.knob-graphic i { position: absolute; top: 11px; left: 50%; width: 6px; height: 13px; background: var(--green); }
.stage-timings { display: flex; justify-content: space-between; gap: 15px; }
.stage-timings > div { display: flex; flex-direction: column; gap: 5px; }
.stage-timings span { font-size: 12px; }
.stage-timings strong { font-family: Cambria, Georgia, serif; font-size: 18px; }
.stage-text h2 { margin-bottom: 16px; }

.contact-end { padding-top: 65px; padding-bottom: 72px; }
.contact-heading { border-bottom: 2px solid var(--green); padding-bottom: 10px; margin-bottom: 20px; }
.contact-heading h2 { margin-bottom: 0; }
.contact-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.contact-body p { margin: 0; }

.home-mast { background: var(--lilac); padding: 51px 0 56px; }
.home-mast h1 { padding-bottom: 21px; margin-bottom: 23px; border-bottom: 3px solid var(--orchid); }
.home-opening { display: grid; grid-template-columns: 1fr 1fr; gap: 37px; }
.home-first-actions { margin-top: 25px; }
.scan-section { padding-top: 72px; padding-bottom: 78px; }
.scan-lines { border-top: 3px solid var(--green); }
.scan-row { padding: 22px 0 30px; border-bottom: 1px solid var(--line); }
.scan-name { display: flex; align-items: baseline; gap: 17px; margin-bottom: 15px; }
.scan-name span { color: var(--orchid); font-size: 15px; font-weight: 900; }
.scan-name h3 { margin: 0; }
.scan-copy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-diagnosis { padding: 55px 0 62px; background: var(--mint); }
.home-diagnosis-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 37px; align-items: center; }
.home-diagnosis-copy h2 { margin-bottom: 16px; }
.home-diagnosis-box { display: flex; flex-direction: column; gap: 5px; background: var(--white); border-left: 6px solid var(--orchid); padding: 23px 26px; }
.home-diagnosis-box span { font-size: 13px; }
.home-diagnosis-box strong { margin-bottom: 13px; font: 800 22px Cambria, Georgia, serif; }
.home-diagnosis-box strong:last-child { margin-bottom: 0; }
.home-last { padding-top: 63px; padding-bottom: 73px; }
.home-last p { max-width: 970px; }
.home-last .action-buttons { margin-top: 24px; }

.offer-opening { background: var(--rose); padding: 50px 0 57px; }
.offer-opening h1 { border-bottom: 3px solid var(--green); padding-bottom: 21px; margin-bottom: 23px; }
.offer-intro-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; }
.offer-work { padding-top: 70px; padding-bottom: 76px; }
.offer-rows { border-top: 3px solid var(--green); }
.offer-row { display: grid; grid-template-columns: minmax(205px, .75fr) minmax(0, 1.65fr); gap: 29px; padding: 20px 8px 24px; border-bottom: 1px solid var(--line); }
.offer-label { display: flex; align-items: baseline; gap: 14px; }
.offer-label span { color: var(--orchid); font-size: 14px; font-weight: 900; }
.offer-label h3 { margin: 0; font-size: 21px; }
.offer-row p { margin: 0; }
.offer-cost { padding: 53px 0 61px; background: var(--mint); }
.cost-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: 42px; align-items: center; }
.cost-copy h2 { margin-bottom: 15px; }
.cost-hours { display: flex; flex-direction: column; border-top: 2px solid var(--green); }
.cost-hours strong { display: block; padding: 13px 2px; border-bottom: 1px solid var(--line); font-family: Cambria, Georgia, serif; font-size: 19px; }
.offer-end { padding-top: 64px; padding-bottom: 70px; }
.offer-end p { max-width: 960px; }
.offer-end .action-buttons { margin-top: 24px; }

.footer-area { background: var(--green); color: var(--white); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 16px 25px; padding-top: 27px; padding-bottom: 30px; }
.footer-row > span { font: 800 19px Cambria, Georgia, serif; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 25px; align-items: baseline; }
.footer-row a { font-size: 14px; font-weight: 800; text-decoration: none; }
.footer-row a:hover { color: var(--mint); }
.footer-row .privacy-link { opacity: .8; font-size: 12px; font-weight: 400; }

@media (max-width: 1120px) {
    .navigation-row { gap: 17px; }
    .navigation-items { gap: 17px; }
    .navigation-items a { font-size: 13px; }
    .nav-phone { padding-inline: 11px; font-size: 13px; }
    .stage-layout { grid-template-columns: .85fr 1.15fr; gap: 26px; }
    .contact-body { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .frame { width: calc(100% - 48px); }
    .navigation-row { grid-template-columns: minmax(0, 1fr) auto; padding-top: 12px; padding-bottom: 10px; gap: 11px; }
    .navigation-items { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 7px; }
    .territory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .territory-item:last-child { grid-column: 1 / -1; }
    .stage-layout { grid-template-columns: 1fr 1fr; gap: 22px; }
    .stage-visual { padding: 16px; }
    .stage-timings { flex-direction: column; }
    .scan-copy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scan-copy p:last-child { grid-column: 1 / -1; }
    .home-diagnosis-grid { grid-template-columns: 1.1fr .9fr; gap: 22px; }
    .offer-row { grid-template-columns: 200px 1fr; gap: 20px; }
}

@media (max-width: 680px) {
    .frame { width: calc(100% - 34px); }
    .navigation-row { grid-template-columns: 1fr; }
    .navigation-items { grid-column: auto; grid-row: auto; }
    .nav-phone { justify-self: start; }
    .editorial-start, .home-mast, .offer-opening { padding-top: 39px; }
    .intro-pair, .territory-grid, .fault-columns, .stage-layout, .home-opening, .scan-copy, .home-diagnosis-grid, .offer-intro-pair, .offer-row, .cost-grid { grid-template-columns: 1fr; }
    .intro-pair, .home-opening, .offer-intro-pair { gap: 12px; }
    .action-shelf { align-items: flex-start; }
    .service-territory { padding: 39px 0 46px; }
    .territory-grid { gap: 16px; }
    .territory-item:last-child, .scan-copy p:last-child { grid-column: auto; }
    .fault-editor, .scan-section, .offer-work { padding-top: 48px; padding-bottom: 54px; }
    .fault-columns { gap: 21px; }
    .diagnostic-stage, .home-diagnosis, .offer-cost { padding: 44px 0 49px; }
    .stage-visual { max-width: 440px; }
    .stage-timings { flex-direction: row; }
    .contact-end, .home-last, .offer-end { padding-top: 48px; padding-bottom: 54px; }
    .scan-copy { gap: 10px; }
    .offer-row { gap: 8px; }
    .cost-grid { gap: 23px; }
}

@media (max-width: 390px) {
    .cta { width: 100%; }
    .utility-inner { font-size: 11px; }
    .stage-timings { flex-direction: column; }
    .footer-row nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
