:root {
  /* Hometown in navy and gold (Eric 2026-11-20: "Navy and gold hometown looks amazing"; the drafts are in
     docs/style-options-2026-11-20/): the logo's navy, the Best of Rome medal's gold, soft blue sections, slab headlines.
     --gold is the stars, --gold-text the labels on light (5:1 or better), --sun the gold on navy (buttons, strip, labels). */
  --navy: #242b47; --navy-2: #1b2036; --white: #ffffff; --paper: #e8eef6; --ink: #20263b;
  --silver: #c3c9d6; --steel: #586078; --line: #dde3ec; --error: #9b1c1c;
  --gold: #b8860b; --gold-text: #7a5d0f; --sun: #e3b341; --sun-2: #f0c866;
  --serif: "Zilla Slab", Rockwell, serif; --sans: "Source Sans 3", system-ui, sans-serif;
  --w: 1200px; --gap: clamp(20px, 4vw, 40px); --section: clamp(72px, 10vw, 136px); --bar: 84px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 19px/1.62 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a[href^="tel:"] { white-space: nowrap; } /* Task 5: a phone number never breaks at a hyphen */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.06; letter-spacing: -.01em; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(44px, 6.4vw, 92px); letter-spacing: -.01em; }
.town-title { text-wrap: balance; } /* town h1s: "GA" never alone on the last line (2026-11-30) */
h2 { font-size: clamp(32px, 3.8vw, 54px); text-wrap: balance; }
h3 { font-size: clamp(21px, 2vw, 26px); }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gap); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }
.label { font: 600 18px/1.3 var(--sans); color: var(--gold-text); margin: 0 0 10px; }
.band--navy .label, .site-footer .label, .hero .label { color: var(--sun); }
.btn { display: inline-block; padding: 17px 28px; font: 600 18px/1 var(--sans); text-decoration: none; border: 2px solid transparent; border-radius: 10px; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.band--navy .btn--ghost, .hero .btn--ghost { color: var(--white); }
.band--navy .btn--ghost:hover, .hero .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.band--navy .btn--navy, .hero .btn--navy { background: var(--sun); color: var(--navy); }
.band--navy .btn--navy:hover, .hero .btn--navy:hover { background: var(--sun-2); }
/* keyboard focus: the ring takes the text color, so it reads on white and on navy; buttons set it by their background */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn:focus-visible { outline-color: var(--navy); }
.band--navy .btn:focus-visible, .hero .btn:focus-visible { outline-color: var(--white); }
/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header__bar { position: relative; display: flex; align-items: center; gap: 28px; min-height: var(--bar); }
.brand img { width: 132px; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a, .menu a, .drop summary { font: 600 17px/1 var(--sans); text-decoration: none; color: var(--navy); }
.site-nav a:hover, .menu a:hover, .drop summary:hover, .menu summary:hover { text-decoration: underline; text-underline-offset: 6px; }
.drop { position: relative; }
.drop summary { cursor: pointer; list-style: none; }
.drop summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
/* the plus or minus sign is its own inline box, so the hover underline stops at the word */
.drop > summary::after, .menu > summary::after, .menu__group > summary::after { content: "+"; display: inline-block; margin-left: .4em; }
.drop[open] > summary::after, .menu[open] > summary::after, .menu__group[open] > summary::after { content: "\2212"; }
/* the card's top edge sits on the header's bottom line: 50% is the label's own middle, which is the bar's middle, so half a bar below it is the line */
.drop__list { position: absolute; left: -20px; top: calc(50% + var(--bar) / 2); background: var(--white); border: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 14px; min-width: 230px; box-shadow: 0 18px 40px rgba(27, 32, 54, .12); }
/* Services: one wide panel under the header bar with a column per group (the bar is its positioned parent, so it spans the
   container whatever the summary's place), each group's name a small label over its links */
.drop--mega { position: static; }
.drop__list--mega { left: 0; right: 0; top: 100%; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 28px; padding: 24px 28px; align-items: start; }
.drop__group { display: grid; gap: 12px; align-content: start; }
.drop__group a, .drop__all { font: 500 17px/1.3 var(--sans); }
.drop__label { margin: 0 0 2px; font: 600 15px/1.2 var(--sans); color: var(--gold-text); }
.drop__all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; font-weight: 600; }
/* phone menu: each service group is a collapsible list; the panel never runs past the screen's sides */
.menu nav { min-width: 260px; max-width: calc(100vw - 2 * var(--gap)); }
.menu__group summary { padding: 12px 0; }
.menu__items { display: grid; padding: 0 0 8px 14px; border-left: 2px solid var(--line); }
.menu__items a { padding: 10px 0; font: 500 17px/1.25 var(--sans); }
/* hubs: grouped link lists */
.hub-links { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 28px; }
.hub-links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hub-links a { font-weight: 600; }
.hub-links .hub-links__sub { display: block; margin-top: 4px; font-size: 15px; color: var(--steel); }
.hub-links .hub-links__sub a { font-weight: 500; }
.menu { display: none; }
.menu summary { cursor: pointer; font: 600 17px/1 var(--sans); color: var(--navy); list-style: none; padding: 15px 0; white-space: nowrap; }
/* the phone panel hangs from the header line (the sticky header is its positioned parent) and scrolls inside itself on a short screen */
.menu nav { position: absolute; right: var(--gap); top: 100%; background: var(--white); border: 1px solid var(--line); padding: 8px 20px; display: grid; box-shadow: 0 18px 40px rgba(27, 32, 54, .12); max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; }
.menu nav a { padding: 12px 0; }
/* below 1081 px the Request service button is hidden and a compact Call button takes its place beside Menu */
.header-call { display: none; padding: 13px 18px; font-size: 17px; white-space: nowrap; }
@media (max-width: 1080px) { .site-nav, .header-cta { display: none; } .header-call { display: inline-block; margin-left: auto; } .menu { display: block; } }
/* small phones: logo + Call + Menu need about 328 px of the bar, so tighten the gaps and the button below 375 px and the logo below 340 px */
@media (max-width: 374px) { .site-header__bar { gap: 16px; } .header-call { padding: 13px 14px; } }
@media (max-width: 339px) { .brand img { width: 112px; } }
/* hero */
.hero { background: var(--navy); color: var(--white); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero__words { min-width: 0; }
.hero__photo { margin: 0; position: relative; justify-self: end; width: min(100%, 450px); }
.hero h1 { color: var(--white); font-size: clamp(52px, 7vw, 100px); }
.hero__lede { font-size: 22px; color: #d5dbe7; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 14%; border-radius: 18px; box-shadow: 16px 16px 0 var(--sun); }
/* the Best of Rome 2026 medal (OFFICE2) as a seal on the portrait's corner: decoration, since the memberships row names it in its alt text */
.hero__photo::after { content: ""; position: absolute; left: -52px; bottom: 40px; width: 156px; height: 156px; border-radius: 50%; background: var(--white) url("/assets/img/memberships/best-of-rome-2026.webp") center / 132px auto no-repeat; box-shadow: 0 12px 30px rgba(27, 32, 54, .25); }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } .hero__photo { max-width: 420px; width: calc(100% - 16px); justify-self: start; } .hero__photo::after { left: auto; right: -6px; bottom: 22px; width: 116px; height: 116px; background-size: 98px auto; } }
/* strip and sections */
.strip { list-style: none; margin: 0; padding: 24px var(--gap); background: var(--sun); color: var(--navy); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font: 600 18px/1.3 var(--sans); text-align: center; }
.strip li::before { content: "\2713"; margin-right: 8px; font-weight: 700; }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.band { padding: var(--section) 0; }
.band--navy { background: var(--navy); color: var(--white); padding: var(--section) 0; }
.band--navy h2 { color: var(--white); }
/* a plain link on navy is white (11/20: the home page's "towns we serve" link in the Where we work band was navy on navy, invisible) */
.band--navy a:not(.btn), .hero a:not(.btn) { color: var(--white); }
/* the hero's buttons keep a big bottom margin to space the hero's photo; in a band it only added to the band's own bottom padding */
.band--navy .hero__actions { margin-bottom: 0; }
.lead { font-size: 21px; max-width: 60ch; text-wrap: pretty; }
.label, .strip li { text-wrap: balance; }
/* the areas band's first line is its statement: a serif headline-size line, the office and hours line under it stays body size */
.band--navy [data-copy] .lead:first-child { font: 700 clamp(26px, 3vw, 36px)/1.2 var(--serif); text-wrap: balance; }
/* cards */
.cards { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
/* wide screens: four across, or three when there are five or more (the home page's six services), so no card sits alone on a row */
@media (min-width: 861px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards:has(> li:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--paper); border: 2px solid transparent; border-radius: 14px; padding: 28px 26px; transition: border-color .2s ease; }
.section--paper .card { background: var(--white); }
.card:hover { border-color: var(--sun); }
.card a { text-decoration: none; }
/* card and team-grid titles are styled text, not headings (the kit's headings gate: no heading inside data-chrome); they keep the h3 look */
.card__title { margin: 0 0 .5em; font: 700 clamp(23px, 2.2vw, 28px)/1.08 var(--serif); color: var(--navy); }
.cards + p, .team-grid + p { margin-top: 40px; }
/* team */
.team-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.team-grid:first-child { margin-top: 0; }
.member figure { margin: 0; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 5; border-radius: 14px; }
.member img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.member:hover img { transform: scale(1.04); }
.member .member__name { margin: 16px 0 4px; font: 700 24px/1.08 var(--serif); color: var(--navy); }
.member p { font-size: 15px; color: var(--steel); margin: 0; }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
/* a team member with no photo yet (Silver's 11/19 list: pictures to follow) shows their initials in the photo's place */
/* the About webpage's whole team, 16 people: four across on a wide screen, so no row is left with one card */
@media (min-width: 861px) { .team-grid--all { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.member__initials { display: grid; place-items: center; }
/* on the soft blue sections a blue tile would vanish into the section, so the tiles go white there (11/20: the about
   webpage's initials floated in an invisible frame) */
.section--paper .member figure { background: var(--white); }
.member__initials span { display: grid; place-items: center; width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--navy); color: #fff; font: 700 clamp(26px, 3vw, 38px)/1 var(--serif); letter-spacing: .02em; }
.member:hover .member__initials span { transform: none; }
/* the logos of the groups Silver belongs to and its badges (TAY1, OFFICE2): six white tiles, 6 / 3 / 2 across, so no row is
   left with one tile, wrapping on a phone (never a sliding row) */
.memberships { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.memberships li { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-height: 120px; }
.memberships img { width: auto; height: auto; max-width: 100%; max-height: 80px; }
.memberships-label { margin-top: 56px; }
@media (max-width: 860px) { .memberships { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .memberships { grid-template-columns: 1fr 1fr; gap: 12px; } .memberships li { min-height: 100px; padding: 14px; } .memberships img { max-height: 64px; } }
/* page heads, body, faq */
.page-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 32px; }
/* the label, the headline (and a lede, on /about/) sit beside the portrait's middle, not on its bottom edge: with "end" a portrait taller than the words left a 230 to 300 px gap above them */
.page-head--photo { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--gap); align-items: center; }
.page-head__photo { margin: 0; }
.page-head__photo img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; border-radius: 14px; }
.page-head__photo figcaption { font-size: 14px; color: var(--steel); margin-top: 10px; }
@media (max-width: 860px) { .page-head--photo { grid-template-columns: 1fr; } .page-head__photo { max-width: 360px; } }
/* on a phone the portrait is shown nearer its own size: the team portraits are 295 to 466 px wide, so the full column width looked soft, and it pushed the copy off the first screen */
@media (max-width: 560px) { .page-head__photo { max-width: 280px; } }
/* guide and Pests webpages: a 4:3 photo (960 px wide, so it stays sharp at full column width), not held to the portraits' phone sizes */
.page-head__photo--wide img { aspect-ratio: 4 / 3; max-height: none; object-position: center; }
@media (max-width: 860px) { .page-head__photo--wide { max-width: 560px; } }
.page-body { padding-bottom: var(--section); max-width: 820px; margin-left: max(0px, calc((100% - var(--w)) / 2)); margin-right: auto; }
.page-body h2 { margin-top: 1.6em; font-size: clamp(28px, 3vw, 40px); }
/* service webpages: the copy keeps the plain page body's 740 px text measure (its 820 px box less 40 px of padding a side) and its
   left edge on the headline's; above 1080 px a card sits beside it, its right edge on the head portrait's (the spare width goes
   between the columns, and the gap never drops below the site's own). At 1080 px and below (the header's phone layout) the card is hidden: the band and the footer
   carry the same details. The card sticks below the header while the copy scrolls; on a short window it scrolls inside itself. */
.svc { padding-bottom: var(--section); }
.svc__copy { max-width: 740px; }
.svc__copy h2 { margin-top: 1.6em; font-size: clamp(28px, 3vw, 40px); }
.svc__side { display: none; }
@media (width > 1080px) {
  .svc { display: grid; grid-template-columns: minmax(0, 740px) 300px; justify-content: space-between; column-gap: var(--gap); align-items: start; }
  .svc__side { display: block; position: sticky; top: calc(var(--bar) + 28px); max-height: calc(100vh - var(--bar) - 56px); max-height: calc(100dvh - var(--bar) - 56px); overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--sun); border-radius: 0 0 14px 14px; padding: 24px 26px 22px; color: var(--navy); }
}
.svc__group + .svc__group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.svc__side .label { margin-bottom: 6px; }
.svc__phone { margin: 0 0 14px; font: 700 29px/1.1 var(--serif); }
.svc__phone a { text-decoration: none; }
.svc__phone a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.svc__action { margin: 0; }
.svc__action .btn { display: block; text-align: center; }
.svc__lines { margin: 0 0 16px; font-style: normal; font-size: 16px; line-height: 1.55; }
.svc__lines:last-child { margin-bottom: 0; }
.svc__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* each link carries an arrow at the card's right edge (out of the text flow, so the hover underline stops at the words); it nudges on hover */
.svc__links a { position: relative; display: block; font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.svc__links a::after { content: "\2192"; content: "\2192" / ""; position: absolute; right: 0; top: 0; color: var(--steel); transition: transform .2s ease, color .2s ease; }
.svc__links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.svc__links a:hover::after { color: var(--navy); transform: translateX(3px); }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
/* a wrapped question hangs under its own text, not under the disclosure marker: the indent is the marker's width plus its gap */
.faq summary { cursor: pointer; font: 700 22px/1.3 var(--serif); color: var(--navy); padding-left: 1.06em; text-indent: -1.06em; }
.faq details p { margin: 12px 0 0; }
/* Pests and Guides webpages: the crumb's link keeps the label's color; the "Think you have ..." box on a guide webpage */
.crumbs a { color: inherit; }
.have-them { background: var(--paper); border-left: 4px solid var(--sun); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 0 0 28px; }
.have-them p { margin: 0; }
/* Pests and Guides webpages: the questions sit on a paper panel (the homepage's FAQ look), and the line or "Think you have ..." box after them clears it */
.page-body .faq { background: var(--paper); padding: 4px clamp(16px, 3vw, 24px); }
.page-body .faq details:first-child { border-top: 0; }
.page-body .faq + p, .page-body .faq + .have-them { margin-top: 28px; }
/* form */
.form { display: grid; gap: 18px; max-width: 680px; }
.field label { display: block; font: 600 17px/1.4 var(--sans); color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 400 17px/1.4 var(--sans); padding: 14px; border: 1px solid var(--steel); border-radius: 8px; color: var(--ink); background: var(--white); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { color: var(--error); font-weight: 600; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--navy); outline-offset: 1px; }
.field__error { display: none; color: var(--error); font-size: 14px; margin-top: 6px; }
.field.is-bad .field__error { display: block; }
.field.is-bad input, .field.is-bad select { border-color: var(--error); }
/* termite diagram */
.diagram { margin: 28px 0; padding: 24px; background: var(--paper); }
.diagram svg { width: 100%; height: auto; }
/* the termite and the ant sit side by side, and stack on a phone so their labels stay readable (about 14px at 390) */
.diagram__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.diagram figcaption { margin-top: 14px; font-size: 15px; color: var(--steel); }
@media (max-width: 600px) { .diagram { padding: 16px; } .diagram__pair { grid-template-columns: 1fr; gap: 20px; } }
/* one drawing on its own (the winged termite on what termites look like): held near the pair's panel size, so its labels match */
.diagram--one svg { max-width: 360px; display: block; margin: 0 auto; }
/* footer */
.site-footer { background: var(--navy-2); color: var(--silver); padding: 72px 0 28px; font-size: 16px; }
.site-footer a { color: var(--white); }
.site-footer__links a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--gap); }
.site-footer__logo { width: 170px; margin-bottom: 18px; }
.site-footer__links { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
/* the credit sits in a .wrap, so its hairline is a background drawn between the text columns (a border would run under the wrap's side padding) */
.site-footer__credit { margin-top: 48px; padding-top: 22px; background: linear-gradient(rgba(195, 201, 214, .25), rgba(195, 201, 214, .25)) center top / calc(100% - 2 * var(--gap)) 1px no-repeat; text-wrap: balance; font-size: 14px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the Google reviews band (_includes/reviews.njk): the build-time rating, then up to six live cards from the reviews
   worker; its tone is whichever of paper and white its neighbors aren't */
.rating { padding: clamp(48px, 7vw, 80px) 0; }
.rating--paper { background: var(--paper); }
.rating--white { background: var(--white); border-top: 1px solid var(--line); }
.rating__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; }
.rating__score { margin: 0; font: 700 clamp(64px, 8vw, 96px)/1 var(--serif); color: var(--navy); letter-spacing: -.02em; }
.rating__body p { margin: 0; }
.rating__stars { color: var(--gold); font-size: 26px; letter-spacing: 4px; line-height: 1; }
.rating__text { margin-top: 8px; font-weight: 600; color: var(--ink); }
.rating__link { display: inline-block; margin-top: 4px; padding-block: 6px; }
.live-reviews { margin-top: clamp(28px, 4vw, 44px); }
.live-reviews__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.live-reviews__credit { margin: 16px 0 0; color: var(--steel); font-size: 14px; text-align: center; }
.review-card { flex: 1 1 100%; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.rating--white .review-card { background: var(--paper); }
.review-card__stars { color: var(--gold); font-size: 17px; letter-spacing: 2px; line-height: 1; }
.review-card__text { margin: 0; font-size: 16px; line-height: 1.65; white-space: pre-line; }
.review-card__by { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.review-card__who { font-weight: 600; color: var(--navy); }
.review-card__when { color: var(--steel); font-size: 14px; }
@media (min-width: 700px) { .review-card { flex-basis: calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); } }
@media (min-width: 1000px) { .review-card { flex-basis: calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); } }
@media (max-width: 560px) { .rating__inner { flex-direction: column; text-align: center; } }
/* phones: Call now and Request a quote fixed to the bottom of the screen on every webpage (base.njk); the footer gets
   room under its credit so the bar never covers it */
.call-bar { display: none; }
@media (max-width: 767px) {
  html { scroll-padding-bottom: 88px; }
  .call-bar { position: fixed; inset: auto 0 0; z-index: 6; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px var(--gap) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--navy-2); box-shadow: 0 -8px 20px rgba(27, 32, 54, .25); }
  .call-bar .btn { min-height: 48px; padding: 16px 20px; text-align: center; }
  .call-bar .btn--ghost { color: var(--white); }
  .call-bar .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
  .call-bar .btn--navy { background: var(--sun); color: var(--navy); }
  .call-bar .btn--navy:hover { background: var(--sun-2); }
  .call-bar .btn:focus-visible { outline-color: var(--white); }
  .site-footer { padding-bottom: calc(28px + 70px + env(safe-area-inset-bottom, 0px)); }
}
/* motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js .reveal { opacity: 1; transform: none; } }
/* proposal print */
.pr-page { padding: var(--section) 0; }
/* proposal tables and the full map (Task 9) */
.plan { width: 100%; border-collapse: collapse; margin: 24px 0; }
.plan th, .plan td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan td:nth-child(n+2), .plan th:nth-child(n+2) { text-align: right; }
.plan small { display: block; color: var(--steel); font-size: 14px; margin-top: 4px; }
.plan tr { break-inside: avoid; }
.hero__note { font-size: 15px; color: var(--silver); max-width: 70ch; }
.map-page { font-size: 14px; line-height: 1.55; margin: 0 0 12px; max-width: 900px; }
/* the proposal's hero: their logo on its white ring above the label, and a lede wider than the homepage's (no portrait here) */
/* the proposal's logo is for the printed cover only; on screen the header already carries the logo */
.pr-logo { display: none; width: 170px; height: auto; margin: 0 0 28px; }
.pr-page.hero .hero__lede { max-width: 60ch; }
/* the proposal's prose keeps the site's 740 px text measure; a chapter label after a paragraph (05 to 07 share one printed
   page) and a full-map heading after a list get air above them */
.pr-page [data-copy="prose"] p { max-width: 740px; }
.pr-page p + .label { margin-top: clamp(48px, 6vw, 72px); }
.map-page + h3 { margin-top: 36px; }
/* the hiring table: today's row stands apart from the new website's three rows, and a rule sets off their total */
.plan tbody + tbody tr:first-child > *, .plan tbody tr:last-child > th { border-top: 2px solid var(--navy); }
/* phones: smaller type and tighter cells, so the four-column tables fit 360 px with no sideways scroll (measured 390 and 360) */
@media (max-width: 600px) {
  .plan { font-size: 14px; }
  .plan th, .plan td { padding: 10px 4px; }
  .plan th:first-child, .plan td:first-child { padding-left: 0; }
  .plan th:last-child, .plan td:last-child { padding-right: 0; }
  .plan small { font-size: 13px; }
}
/* print: each .pr-page starts a page, a heading stays with what follows it, and the hero fills page 1 as a navy cover */
@media print {
  .pr-logo { display: block; }
  .site-header, .site-footer, .skip, .call-bar { display: none; }
  /* a section that runs past one page repeats its 40 px of padding on every page it fills, so no table row or line of text meets the paper's edge */
  .pr-page { break-after: page; padding: 40px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .pr-page h2, .pr-page h3 { break-after: avoid; }
  .pr-page.hero { min-height: 9.4in; display: flex; flex-direction: column; justify-content: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pr-page.hero > .wrap { width: 100%; }
  .js .reveal { opacity: 1; transform: none; }
}
