/* service.css - service parent pages (page index) and service child pages (related strip, closing box)
   Colors and fonts follow -desktop-style.css: Montserrat / Gilda Display, blue #00539f, orange #fe6a00.
   Plain rows and one soft panel on purpose, so it stays quiet next to the page text.
   Mobile first, one media-query block in ascending order. Class prefix: sv-
-----------------------------------------------------------------------------*/
.sv-list,
.sv-more,
.sv-cta {
--blue: #00539f;
--navy: #003c86;
--orange-text: #bf4f00;  /* darker orange so text links pass WCAG AA */
--muted: #4d6168;
--mist: #e5f5f9;
--line: #cfe3ea;
}


/* parent page: index of the child pages, thumbnail + title + text
-----------------------------------------------------------------------------*/
.sv-list {
clear: both;
display: grid;
list-style: none;
margin: 1.2rem 0 2.2rem;
padding: 0;
border-bottom: 1px solid var(--line);
}
.sv-list li {
position: relative;
display: grid;
grid-template-columns: 1fr;
justify-items: start;
gap: .9rem;
margin: 0;
padding: 1.3rem 0;
border-top: 1px solid var(--line);
}
.sv-list img {
width: 200px;
max-width: 100%;
height: auto;
aspect-ratio: 4 / 3;
border-radius: 6px;
object-fit: cover;
}
.sv-list a {
display: inline-block;
font-family: "Gilda Display", serif;
font-size: 1.5rem;
line-height: 1.15;
color: var(--blue);
}
.sv-list a::after {   /* the whole row is clickable */
content: "";
position: absolute;
inset: 0;
}
.sv-list a:focus-visible::after {
outline: 3px solid var(--orange-text);
outline-offset: -3px;
}
.sv-list p {
margin: .5rem 0 0;
font-size: .95rem;
line-height: 1.65;
}


/* child page: related pages strip
-----------------------------------------------------------------------------*/
.sv-label {
clear: both;
margin: 1.8rem 0 .9rem;
font-size: .78rem;
font-weight: 600;
letter-spacing: 1.5px;
text-transform: uppercase;
color: #4d6168;
}
.sv-more {
list-style: none;
margin: 0 0 1.8rem;
padding: 0;
display: grid;
gap: .9rem;
}
.sv-more li {
position: relative;
display: flex;
align-items: center;
gap: .9rem;
margin: 0;
padding: .55rem;
background: #fff;
border: 1px solid var(--line);
border-radius: 10px;
}
.sv-more img {
flex: none;
width: 96px;
height: 72px;
border-radius: 6px;
object-fit: cover;
}
.sv-more a {
font-size: .9rem;
font-weight: 600;
line-height: 1.3;
color: var(--navy);
}
.sv-more a::after {
content: "";
position: absolute;
inset: 0;
}
.sv-more a:focus-visible::after {
outline: 3px solid var(--orange-text);
outline-offset: 2px;
border-radius: 10px;
}


/* closing call to action (parent and child pages)
-----------------------------------------------------------------------------*/
.sv-cta {
clear: both;
margin: 1.8rem 0 1rem;
padding: 1.4rem 1.6rem;
background: var(--mist);
border-left: 4px solid #fe6a00;
border-radius: 4px 10px 10px 4px;
}
.sv-cta h4 {
padding: 0 0 .5rem;
color: var(--blue);
}
.sv-cta a { font-weight: 600; color: var(--orange-text); }
.sv-cta strong { color: var(--navy); }


/* body paragraphs on service pages: normal text size
   (the site stylesheet has the rule "#service_area_list a, p { font-size: 120% }", which enlarges every <p>;
   text written without <p> tags is the normal size, so <p> body text is set back to match it)
-----------------------------------------------------------------------------*/
#content .page_wrapper > p:not([class]) {
font-size: 1rem;
margin: 0 0 1.8rem;
}
#content .page_wrapper > p:not([class]) + ul,
#content .page_wrapper > p:not([class]) + ol { margin-top: -.65rem; }   /* list right under its lead-in paragraph: small gap */


/* highlighted words: orange (darker shade so it passes WCAG AA), benefits row, gallery button
-----------------------------------------------------------------------------*/
.sv-hl,
.sv-key b,
.sv-key strong { color: #c75200; font-weight: 700; }
.sv-benefits {
display: flex;
flex-wrap: wrap;
gap: .45rem;
list-style: none;
margin: .8rem 0 1.1rem;
padding: 0;
}
.sv-benefits li {
margin: 0;
padding: .35rem .8rem .35rem 1.9rem;
font-size: .78rem;
font-weight: 600;
line-height: 1.3;
white-space: nowrap;
color: #003c86;
background: #e5f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c75200' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") no-repeat .65rem center / .85rem;
border-radius: 25px;
}
.sv-btn { margin: 1.2rem 0 0; }


/* breakpoints, ascending
-----------------------------------------------------------------------------*/
@media (min-width: 560px) {
.sv-list li {
grid-template-columns: 200px 1fr;
justify-items: stretch;
column-gap: 1.5rem;
}
.sv-list img { grid-row: 1 / span 2; }
.sv-list li > div { align-self: start; }
.sv-more { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
.sv-list {
grid-template-columns: 1fr 1fr;
column-gap: 3rem;
}
.sv-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}


/* hover effects only on devices that can hover
-----------------------------------------------------------------------------*/
@media (hover: hover) {
.sv-list li:hover a { color: var(--orange-text); }
.sv-more li:hover { border-color: var(--blue); }
.sv-cta a:hover { text-decoration: underline; }
}


/* motion only when the visitor allows it
-----------------------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
.sv-list a,
.sv-more li { transition: color .2s, border-color .2s; }
}


/* photos on small screens: above 800px the site stylesheet floats them, below it they become centered blocks.
   Inline margins added to keep floated photos apart on wide screens are reset here, the blank line left by
   <br><br> above a photo is pulled in a little so the gap matches a normal paragraph gap, and a photo that
   follows a list or a heading gets some room above it
-----------------------------------------------------------------------------*/
@media (max-width: 800px) {
#content img.images_left,
#content img.images_right {
margin-top: 0 !important;
margin-bottom: 20px !important;
}
#content br + img.images_left,
#content br + img.images_right { margin-top: -10px !important; }
#content ul + img.images_left,
#content ul + img.images_right,
#content ol + img.images_left,
#content ol + img.images_right { margin-top: 22px !important; }
#content h2 + img.images_left,
#content h2 + img.images_right,
#content h3 + img.images_left,
#content h3 + img.images_right { margin-top: 14px !important; }
}
