/* about.css - About page (about.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 .abt.
-----------------------------------------------------------------------------*/
.abt {
--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;
--gap: 2.6rem;   /* space between sections */
--fs: .92rem;    /* body text in cards and panels */
--fsw: 1rem;     /* full-width text: story, how we work, mission, outro */
overflow-wrap: break-word;
}
.abt > * { margin: 0 0 var(--gap); }
.abt > :last-child { margin-bottom: 0; }
:where(.abt) ul { margin: 0; padding: 0; list-style: none; }
.abt a,
.abt a:hover { text-decoration: none; }
.abt a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.abt p a { font-weight: 600; color: var(--orange-text); }

/* headings */
:where(.abt) h2 { margin: 0; line-height: 1.15; }
.abt-h {
position: relative;
margin-bottom: 1.2rem;
padding-bottom: .75rem;
font-size: clamp(1.7rem, 5.5vw, 2.1rem);
}
.abt-h::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 3.5rem;
height: 3px;
border-radius: 2px;
background: var(--orange);
}
.abt-text p {
margin: 0 0 1rem;
font-size: var(--fsw);
line-height: 1.75;
}
.abt-text p:last-child { margin-bottom: 0; }

/* shared surfaces: mist panels hold white tiles, white cards have a blue top edge */
.abt-stats,
.abt-benefits {
padding: 1rem;
display: grid;
gap: .9rem;
background: var(--mist);
border-radius: 14px;
}
.abt-stats li,
.abt-benefits li {
background: #fff;
border: 1px solid var(--line);
border-radius: var(--r);
}
.abt-promise,
.abt-panel {
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);
}


/* story: text and photo
-----------------------------------------------------------------------------*/
.abt-story {
display: grid;
gap: 1.6rem;
align-items: center;
}
.abt-photo { position: relative; margin: 0; }
.abt-photo figcaption {
position: absolute;
left: 1rem;
bottom: -1.1rem;
padding: .7rem 1.2rem;
border-radius: 8px;
background: var(--orange);
box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
font-size: .8rem;
font-weight: 700;
letter-spacing: 1.2px;
text-transform: uppercase;
color: #fff;
}
.abt-photo img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 4 / 3;
border-radius: 14px;
object-fit: cover;
box-shadow: 0 6px 22px rgba(0, 60, 134, .18);
}


/* numbers
-----------------------------------------------------------------------------*/
.abt-stats li {
display: grid;
grid-template-columns: 5.2rem 1fr;
align-items: center;
gap: .6rem;
padding: .9rem 1rem;
border-bottom: 4px solid var(--blue);
}
.abt-stats strong {
font-family: "Gilda Display", serif;
font-size: 1.9rem;
font-weight: 400;
line-height: 1;
text-align: center;
white-space: nowrap;
color: var(--blue);
}
.abt-stats span {
font-size: .85rem;
line-height: 1.45;
color: var(--muted);
}


/* how we work: text and benefit cards
-----------------------------------------------------------------------------*/
.abt-how {
display: grid;
gap: 1.6rem;
}
.abt-text .abt-pull {
margin: 1.4rem 0;
padding: 1rem 1.2rem;
border-left: 4px solid var(--orange);
border-radius: 0 var(--r) var(--r) 0;
background: var(--mist);
font-family: "Gilda Display", serif;
font-size: 1.4rem;
line-height: 1.3;
color: var(--navy);
}
.abt-benefits { align-content: start; }
.abt-benefits li {
display: flex;
align-items: flex-start;
gap: .9rem;
padding: .9rem 1rem;
color: var(--ink);
}
.abt-benefits li::before {
content: "";
flex: none;
width: 3rem;
height: 3rem;
border-radius: 50%;
background: var(--blue) var(--ico) center / 54% no-repeat;
}
.abt-benefits strong {
display: block;
font-size: .95rem;
line-height: 1.25;
color: var(--navy);
}
.abt-benefits span {
display: block;
margin-top: .25rem;
font-size: .85rem;
line-height: 1.5;
color: var(--muted);
}
.b-clean   { --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 3l1.8 4.6L18.5 9l-4.7 1.4L12 15l-1.8-4.6L5.5 9l4.7-1.4zM18.5 15l.9 2.1 2.1.9-2.1.9-.9 2.1-.9-2.1-2.1-.9 2.1-.9z'/%3E%3C/svg%3E"); }
.b-value   { --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"); }
.b-team    { --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%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6M16 5.2a3.2 3.2 0 0 1 0 5.6M18 14.4c2.3.7 3.5 2.6 3.5 5.6'/%3E%3C/svg%3E"); }
.b-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"); }


/* mission statement and guarantee: one card, two centered halves
-----------------------------------------------------------------------------*/
.abt-promise {
display: grid;
border-bottom: 4px solid var(--blue);
}
.abt-pledge {
padding: 1.6rem 1.2rem 1.7rem;
text-align: center;
}
.abt-pledge + .abt-pledge { border-top: 1px solid var(--line); }
.abt-pledge h2 {
position: relative;
margin-bottom: 1rem;
padding-bottom: .7rem;
font-size: clamp(1.5rem, 5vw, 1.9rem);
}
.abt-pledge h2::after {
content: "";
position: absolute;
left: 50%;
bottom: 0;
width: 3.5rem;
height: 3px;
border-radius: 2px;
background: var(--orange);
transform: translateX(-50%);
}
.abt-pledge p {
max-width: 64rem;
margin: 0 auto;
font-size: var(--fsw);
line-height: 1.75;
text-wrap: pretty;
}


/* work photos: each photo is one link to its gallery
-----------------------------------------------------------------------------*/
.abt-work { display: grid; gap: 1.2rem; }
.abt-work li {
position: relative;
overflow: hidden;
border-radius: var(--r);
box-shadow: 0 2px 12px rgba(0, 60, 134, .12);
}
.abt-work img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 4 / 3;
object-fit: cover;
}
.abt-work a {
position: absolute;
inset: 0;
display: flex;
align-items: flex-end;
padding: 1rem 1.1rem;
background: linear-gradient(transparent 55%, rgba(0, 40, 90, .88));
font-size: .86rem;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
color: #fff;
}
.abt-work a::after {
content: "\00a0\00bb";
content: "\00a0\00bb" / "";   /* hidden from screen readers where supported */
color: var(--orange);
}
.abt-work a:focus-visible { outline-offset: -4px; }


/* services and parishes
-----------------------------------------------------------------------------*/
.abt-lists { display: grid; gap: 1.4rem; align-items: start; }   /* each panel is only as tall as its chips */
.abt-panel { padding: 1.3rem 1.1rem; }
.abt-panel h2 { margin-bottom: 1rem; font-size: 1.7rem; }
.abt-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.abt-chips li {
flex: 1 1 auto;   /* chips grow so every row fills the panel edge to edge */
display: flex;
background: var(--mist);
border-radius: 25px;
font-size: var(--fs);
font-weight: 600;
line-height: 1.3;
color: var(--navy);
}
.abt-chips a,
.abt-chips span {
flex: 1 0 auto;   /* auto basis keeps the chip's natural width when rows are packed */
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: .8rem .75rem;   /* 44px+ tall touch target */
border-radius: 25px;
}
.abt-chips a { color: var(--navy); }
.abt-services li { background: none; }   /* the link carries the color, so alternate chips can swap */
.abt-services a { background: var(--mist); }
.abt-services li:nth-child(even) a { background: var(--blue); color: #fff; }


/* closing call to action: blurred portfolio photo
-----------------------------------------------------------------------------*/
.abt-cta {
position: relative;
overflow: hidden;
isolation: isolate;
padding: 2.6rem 1.2rem;
border-radius: 14px;
background: var(--blue);
color: #fff;
text-align: center;
}
.abt-cta::before {   /* the photo, blurred */
content: "";
position: absolute;
z-index: -2;
inset: -24px;
background: url("images/portfolio/big/22_outdoor-living_02.jpg") center 60% / cover no-repeat;
filter: blur(6px);
}
.abt-cta::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));
}
.abt-cta h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); color: #fff; }
.abt-cta p {
margin: 1rem 0 1.5rem;
font-size: calc(var(--fsw) * 1.04);
line-height: 1.7;
}
.abt-cta .a_button,
.abt-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;
}
.abt-cta .a_button { background: #fff; color: var(--blue); }


/* breakpoints, ascending
-----------------------------------------------------------------------------*/
@media (min-width: 540px) {
.abt { --gap: 3.2rem; }
.abt-work { grid-template-columns: repeat(3, 1fr); }
.abt-cta .a_button,
.abt-cta .a_button1 { padding-right: 3rem; padding-left: 3rem; }
}
@media (min-width: 640px) {
.abt-stats { grid-template-columns: repeat(2, 1fr); padding: 1.1rem; }
.abt-stats li {
grid-template-columns: 1fr;
justify-items: center;
gap: .5rem;
padding: 1.2rem 1rem;
text-align: center;
}
.abt-stats strong { font-size: 2.8rem; }
.abt-benefits { grid-template-columns: 1fr 1fr; }
.abt-panel { padding: 1.4rem; }
}
@media (min-width: 900px) {
.abt-story { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
.abt-how { grid-template-columns: 1.4fr 1fr; gap: 2.6rem; }
.abt-benefits { grid-template-columns: 1fr; }
.abt-lists { grid-template-columns: 1.5fr 1fr; gap: 1.6rem; }
.abt-cta { padding-right: 3rem; padding-left: 3rem; }
.abt-pledge { padding: 1.9rem 2.4rem 2rem; }
}
@media (min-width: 1100px) {
.abt-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1442px) {
.abt {   /* 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) {
.abt p a:hover { color: var(--blue); }
.abt-services li:nth-child(odd) a:hover { background: var(--blue); color: #fff; }
.abt-services li:nth-child(even) a:hover { background: var(--mist); color: var(--navy); }
.abt-work a:hover { color: #ffd2b3; }
.abt-cta .a_button:hover { color: #fff; background: var(--orange); }
}


/* motion only when the visitor allows it
-----------------------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
.abt-chips a,
.abt-work a { transition: background-color .25s, color .25s; }
.abt-work img { transition: transform .5s; }
.abt-work li:hover img { transform: scale(1.04); }
}
