/* services.css - Services hub page (services.php)
   Colors and fonts follow -desktop-style.css: Montserrat / Gilda Display, blue #00539f, orange #fe6a00.
   Mobile first, one media-query block in ascending order. Everything is scoped to .svc.
-----------------------------------------------------------------------------*/
.svc {
--blue: #00539f;
--navy: #003c86;
--orange: #fe6a00;
--orange-text: #bf4f00;  /* darker orange so text links pass WCAG AA (4.8:1 on white) */
--ink: #1a3a14;
--muted: #4d6168;
--mist: #e5f5f9;
--line: #cfe3ea;
--r: 10px;
--fs: .92rem;   /* body text in cards, parents and children share it */
--fsw: 1rem;    /* full-width text: intro, section intros, outro */
overflow-wrap: break-word;
}
.svc a,
.svc a:hover { text-decoration: none; }


/* intro and trust cards
-----------------------------------------------------------------------------*/
.svc-intro {
margin: 0 0 1.6rem;
font-size: calc(var(--fsw) * 1.04);
line-height: 1.7;
}
.svc-trust {
list-style: none;
margin: 0 0 1.6rem;
padding: 1rem;
display: grid;
gap: .9rem;
background: var(--mist);
border-radius: 14px;
}
.svc-trust li {
display: flex;
align-items: center;
gap: .9rem;
padding: .9rem 1rem;
background: #fff;
border: 1px solid var(--line);
border-radius: var(--r);
color: var(--ink);
}
.svc-trust li::before {
content: "";
flex: none;
width: 3.2rem;
height: 3.2rem;
border-radius: 50%;
background: var(--blue) var(--ico) center / 54% no-repeat;
}
.svc-trust strong {
display: block;
font-size: .92rem;
line-height: 1.25;
color: var(--navy);
}
.svc-trust span {
display: block;
margin-top: .2rem;
font-size: .78rem;
line-height: 1.4;
color: var(--muted);
}
.tr-year    { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8M5 10v10h14V10M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.tr-promise { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.2 8-8 9-4.8-1-8-4.5-8-9V6zM8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.tr-pools   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 15c2.5 0 2.5-2 5-2s2.5 2 5 2 2.5-2 5-2 2.5 2 5 2M2 20c2.5 0 2.5-2 5-2s2.5 2 5 2 2.5-2 5-2 2.5 2 5 2M8 13V5a2 2 0 0 1 4 0M15 13V5a2 2 0 0 1 4 0'/%3E%3C/svg%3E"); }
.tr-design  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l9 5v10l-9 5-9-5V7zM3 7l9 5 9-5M12 12v10'/%3E%3C/svg%3E"); }


/* jump buttons
-----------------------------------------------------------------------------*/
.svc-jump {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .6rem;
margin: 0 0 2.6rem;
}
.svc-jump span {
margin-right: .3rem;
font-size: .78rem;
font-weight: 600;
letter-spacing: 1.5px;
text-transform: uppercase;
color: var(--muted);
}
.svc-jump button {
padding: .6rem 1.15rem;
font-family: inherit;
font-size: .8rem;
font-weight: 600;
line-height: 1.1;
letter-spacing: .8px;
color: var(--blue);
background: #fff;
border: 1px solid var(--blue);
border-radius: 25px;
cursor: pointer;
}
.svc-jump button:focus-visible {
color: #fff;
background: var(--blue);
outline: 2px solid var(--orange);
outline-offset: 2px;
}


/* groups
-----------------------------------------------------------------------------*/
.svc-group {
margin: 0 0 3.4rem;
scroll-margin-top: 6rem;
}
.svc-group > h2 {
position: relative;
margin: 0;
padding: 0 0 .75rem;
font-size: 2.1rem;
}
.svc-group > h2::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 3.5rem;
height: 3px;
border-radius: 2px;
background: var(--orange);
}
.svc-lead {
margin: .8rem 0 1.5rem;
font-size: var(--fsw);
line-height: 1.7;
}
.svc-grid {
display: grid;
gap: 1.6rem;
}


/* parent cards
-----------------------------------------------------------------------------*/
.svc-card {
display: grid;
grid-template-areas: "i" "h" "p" "l";
padding: 1.4rem;
background: #fff;
border: 1px solid var(--line);
border-top: 4px solid var(--blue);
border-radius: var(--r);
box-shadow: 0 2px 12px rgba(0, 60, 134, .07);
}
.svc-card img {
grid-area: i;
width: 200px;
max-width: 100%;
height: auto;
aspect-ratio: 4 / 3;
margin: 0 0 1rem;
border-radius: 8px;
object-fit: cover;
}
.svc-card h3 {
grid-area: h;
margin: 0 0 .5rem;
padding: 0;
font-size: 1.6rem;
line-height: 1.15;
}
.svc-card h3 a { color: var(--blue); }
.svc-card h3 a::after {
content: " \00bb";
content: " \00bb" / "";   /* hidden from screen readers where supported */
color: var(--orange);
}
.svc-card p {
grid-area: p;
margin: 0;
font-size: var(--fs);
line-height: 1.65;
}
.svc-card p a {
font-weight: 600;
color: var(--orange-text);
}


/* child buttons
-----------------------------------------------------------------------------*/
.svc-links {
grid-area: l;
list-style: none;
margin: 1.3rem 0 0;
padding: 1.2rem 0 0;
border-top: 1px dashed var(--line);
display: grid;
grid-auto-rows: 1fr;
gap: .7rem;
}
.svc-links li {
position: relative;
padding: .7rem 1.9rem .7rem .95rem;
background: var(--mist);
border-left: 4px solid var(--blue);
border-radius: 6px 10px 10px 6px;
}
.svc-links li::before {
content: "";
position: absolute;
top: 50%;
right: .8rem;
width: .45rem;
height: .45rem;
border: solid var(--orange);
border-width: 2px 2px 0 0;
transform: translateY(-50%) rotate(45deg);
}
.svc-links a {
display: block;
font-size: var(--fs);
font-weight: 700;
line-height: 1.25;
color: var(--navy);
}
.svc-links a::after {   /* whole button is clickable */
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
}
.svc-links a:focus-visible::after {
outline: 3px solid var(--orange);
outline-offset: 2px;
}
.svc-links span {
display: block;
margin-top: .2rem;
font-size: var(--fs);
line-height: 1.5;
color: var(--ink);
}


/* closing call to action: blurred slideshow photo (set by the script in services.php)
-----------------------------------------------------------------------------*/
.svc-cta {
position: relative;
overflow: hidden;
isolation: isolate;
padding: 3.2rem 1.4rem;
border-radius: 14px;
background: var(--blue);
color: #fff;
text-align: center;
}
.svc-cta h2 {
margin: 0;
font-size: 2.3rem;
color: #fff;
}
.svc-cta p {
margin: 1rem 0 1.7rem;
font-size: calc(var(--fsw) * 1.04);
line-height: 1.7;
}
.svc-cta .a_button,
.svc-cta .a_button1 {
box-sizing: border-box;
max-width: 100%;
margin: 0 .35rem .6rem;
padding-right: 1.6rem;
padding-left: 1.6rem;
white-space: normal;
}
.svc-cta .a_button { background: #fff; color: var(--blue); }
.svc-cta-photo::before {   /* the photo, blurred */
content: "";
position: absolute;
z-index: -2;
inset: -24px;
background: var(--photo) center 78% / cover no-repeat;
filter: blur(6px);
}
.svc-cta-photo::after {   /* dark blue wash so the white text stays readable */
content: "";
position: absolute;
z-index: -1;
inset: 0;
background: linear-gradient(rgba(0, 40, 90, .45), rgba(0, 60, 134, .7));
}


/* breakpoints, ascending
-----------------------------------------------------------------------------*/
@media (min-width: 540px) {
.svc-trust { grid-template-columns: repeat(2, 1fr); }
.svc-cta .a_button,
.svc-cta .a_button1 { padding-right: 3rem; padding-left: 3rem; }
}
@media (min-width: 600px) {
.svc-links { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
.svc-card {
grid-template-columns: 200px 1fr;
grid-template-rows: auto auto 1fr;
grid-template-areas: "i h" "i p" "l l";
column-gap: 1.5rem;
}
.svc-card img { margin: 0; }
}
@media (min-width: 900px) {
.svc-links { grid-template-columns: repeat(3, 1fr); }
.svc-card p a { white-space: nowrap; }
}
@media (min-width: 1100px) {
.svc-trust { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1442px) {
.svc {   /* text grows smoothly with the screen from 1442px up (capped at 23.4px) */
--fs: min(23.4px, calc((100vw - 423px) / 64));
--fsw: min(23.4px, calc((100vw - 135px) / 76.3));
}
}


/* hover effects only on devices that can hover (no sticky hover on touch screens)
-----------------------------------------------------------------------------*/
@media (hover: hover) {
.svc-jump button:hover {
color: #fff;
background: var(--blue);
}
.svc-card h3 a:hover { color: var(--orange-text); }
.svc-card p a:hover { color: var(--blue); }
.svc-links li:hover {
background: var(--blue);
border-left-color: var(--orange);
box-shadow: 0 6px 14px rgba(0, 60, 134, .22);
}
.svc-links li:hover a { color: #fff; }
.svc-links li:hover span { color: #d3e6f6; }
.svc-links li:hover::before { border-color: #fff; }
.svc-cta .a_button:hover { color: #fff; background: var(--orange); }
}


/* motion only when the visitor allows it
-----------------------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
.svc-links li,
.svc-jump button,
.svc-card h3 a { transition: transform .25s, box-shadow .25s, background-color .25s, color .25s, border-color .25s; }
.svc-links li:hover { transform: translateY(-2px); }
html { scroll-behavior: smooth; }
}
