/* HomeSquare CMS page templates - About Us, Contact, FAQ (templates/pages/about_us, contact, faq and
   their shared partials/hs_page_head, hs_page_cta). Loaded by theme.json only on those three screens
   ("pages/about_us", "pages/contact", "pages/faq"). Builds on theme.css (.wrap, .eb, .h2, .mark, .btn,
   .card, .ic, the --hs-* tokens, .hs-joinform for the form); only what those do not cover is set here.
   Every rule is scoped to body.hs. Minimum text size 14px (owner rule). */

/* ---------- hero band (partials/hs_page_head) ---------- */
.hs .hs-pg-hero { position: relative; overflow: hidden; padding: var(--hs-section-y-s) 0 var(--hs-gap-xl); background: linear-gradient(180deg, #FFF4DF 0%, #FFF8EC 50%, #EEF9F3 100%); }
.hs .hs-pg-hero::before, .hs .hs-pg-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.hs .hs-pg-hero::before { width: 520px; height: 320px; right: -120px; top: -120px; background: rgba(255, 210, 122, .55); }
.hs .hs-pg-hero::after { width: 460px; height: 260px; left: -160px; bottom: -140px; background: rgba(189, 236, 214, .7); }
.hs .hs-pg-hero__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hs .hs-pg-hero__grid.has-img { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hs .hs-pg-hero__copy { max-width: 760px; }
.hs .hs-pg-h1 { font: 900 clamp(40px, 5.6vw, 76px)/1 var(--hs-display); letter-spacing: -.035em; margin-top: 20px; color: var(--hs-ink); }
.hs .hs-pg-lead { font: 500 clamp(18px, 1.6vw, 22px)/1.45 var(--hs-display); color: var(--hs-muted); margin-top: 20px; max-width: 58ch; }
.hs .hs-pg-hero__img { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 34px 34px 34px 8px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(11, 116, 102, .55); }
.hs .hs-pg-hero__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(16, 48, 44, .06); }
.hs .hs-pg-hero__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the page's own editor body, under the hero */
.hs .hs-pg-body { padding: var(--hs-gap-l) 0 0; }
.hs .hs-pg-body__card { padding: clamp(22px, 4vw, 48px); font-size: 17px; line-height: 1.7; }

/* ---------- sections ---------- */
.hs .hs-pg-sec { padding: var(--hs-section-y-s) 0; }
.hs .hs-pg-sec--tight { padding: var(--hs-gap-xl) 0 var(--hs-section-y-s); }
.hs .hs-pg-sec--cards { padding: var(--hs-gap-l) 0 0; }
.hs .hs-pg-sec--cards:last-child { padding-bottom: var(--hs-section-y-s); } /* no form below (a portal without one): room before the footer */
.hs .hs-pg-sec--form { padding: var(--hs-gap-l) 0 var(--hs-section-y-s); }
.hs .hs-pg-sec--cta { padding: 0 0 var(--hs-section-y-s); }
.hs .hs-pg-sec--mint { background: linear-gradient(180deg, var(--hs-cream) 0%, var(--hs-mint) 100%); }
.hs .hs-pg-head { margin-bottom: var(--hs-gap-l); }
.hs .hs-pg-intro { font-size: 18px; line-height: 1.6; color: var(--hs-muted); margin-top: 16px; max-width: 60ch; }

/* About: mission and value cards */
.hs .hs-pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--hs-gap-m); }
.hs .hs-pg-card { display: grid; gap: 12px; align-content: start; padding: 26px 24px 28px; }
.hs .hs-pg-card h3 { font: 800 22px/1.2 var(--hs-display); letter-spacing: -.015em; color: var(--hs-ink); }
.hs .hs-pg-card p { font-size: 16px; line-height: 1.6; color: var(--hs-muted); }
.hs .hs-pg-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px 14px 14px 4px; font: 600 15px var(--hs-mono); color: var(--hs-ink); background: var(--hs-yellow); }
.hs .hs-pg-card:nth-child(4n+2) .hs-pg-num { background: var(--hs-mint); color: var(--hs-teal-d); }
.hs .hs-pg-card:nth-child(4n+3) .hs-pg-num { background: #FFE1D8; color: #B3361B; }
.hs .hs-pg-card:nth-child(4n+4) .hs-pg-num { background: #E3F2FB; color: #1F6E96; }

/* About: who we serve - the photo and the list */
.hs .hs-pg-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hs .hs-pg-split.is-solo { grid-template-columns: minmax(0, 1fr); }
.hs .hs-pg-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 34px 34px 8px 34px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(16, 48, 44, .5); }
.hs .hs-pg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs .hs-pg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hs .hs-pg-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--hs-line); }
.hs .hs-pg-list b { display: block; font: 700 17px/1.25 var(--hs-display); color: var(--hs-ink); }
.hs .hs-pg-list small { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--hs-muted); }
.hs .hs-pg-tick { width: 34px; height: 34px; background: var(--hs-teal); color: #FFFFFF; }

/* ---------- closing band (partials/hs_page_cta) ---------- */
.hs .hs-pg-cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding: clamp(32px, 6vw, 64px); border-radius: 34px; color: #FFFFFF; background: linear-gradient(120deg, var(--hs-teal) 0%, #12968A 55%, #57C99A 100%); box-shadow: 0 40px 80px -40px rgba(11, 116, 102, .7); }
.hs .hs-pg-cta::before { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 300px; border-radius: 50%; background: rgba(255, 210, 122, .45); filter: blur(50px); pointer-events: none; }
.hs .hs-pg-cta__copy { position: relative; max-width: 680px; }
.hs .hs-pg-cta__title { font: 900 clamp(32px, 4.4vw, 56px)/1.02 var(--hs-display); letter-spacing: -.035em; color: #FFFFFF; }
.hs .hs-pg-cta__title .mark { background: none; padding: 0; color: #FFD27A; }
.hs .hs-pg-cta__text { margin-top: 14px; font-size: 18px; line-height: 1.55; color: #E6FAF2; }
.hs .hs-pg-cta .btn { position: relative; }

/* ---------- Contact: the cards, the form, the map ---------- */
.hs .hs-pg-reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.hs .hs-pg-reach__card { display: grid; gap: 8px; align-content: start; padding: 22px; }
.hs .hs-pg-reach__ic { width: 44px; height: 44px; margin-bottom: 6px; background: var(--hs-mint); color: var(--hs-teal-d); }
.hs .hs-pg-reach__card:nth-child(4n+2) .hs-pg-reach__ic { background: #FFF1D6; color: #9A6400; }
.hs .hs-pg-reach__card:nth-child(4n+3) .hs-pg-reach__ic { background: #FFE1D8; color: #B3361B; }
.hs .hs-pg-reach__card:nth-child(4n+4) .hs-pg-reach__ic { background: #E3F2FB; color: #1F6E96; }
.hs .hs-pg-reach__label { font: 500 14px var(--hs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hs-muted); }
.hs .hs-pg-reach__value { font: 700 19px/1.35 var(--hs-display); color: var(--hs-ink); text-decoration: none; overflow-wrap: anywhere; }
.hs a.hs-pg-reach__value:hover { color: var(--hs-teal); text-decoration: underline; text-underline-offset: 3px; }
.hs .hs-pg-contact { display: grid; gap: 20px; }
.hs .hs-pg-contact.has-map { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: stretch; }
.hs .hs-pg-form { display: grid; gap: 20px; align-content: start; padding: clamp(22px, 4vw, 40px); }
.hs .hs-pg-form__title { font: 800 28px/1.15 var(--hs-display); letter-spacing: -.015em; color: var(--hs-ink); }
.hs .hs-pg-form__note { font-size: 14px; }
.hs .hs-pg-map { overflow: hidden; min-height: 360px; padding: 0; }
.hs .hs-pg-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- FAQ: native <details>, the first open ---------- */
.hs .hs-pg-faq { max-width: 920px; margin: 0 auto; padding: 8px 32px; border-radius: 26px; }
.hs .hs-pg-q { border-bottom: 1px solid var(--hs-line); }
.hs .hs-pg-q:last-child { border-bottom: 0; }
.hs .hs-pg-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; cursor: pointer; font: 700 19px/1.35 var(--hs-display); color: var(--hs-ink); }
.hs .hs-pg-q summary::-webkit-details-marker { display: none; }
.hs .hs-pg-q summary::after { content: "+"; flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px 12px 12px 3px; font: 600 22px/1 var(--hs-body); background: var(--hs-mint); color: var(--hs-teal-d); transition: transform .2s, background-color .2s; }
.hs .hs-pg-q[open] summary::after { content: "\2212"; background: var(--hs-teal); color: #FFFFFF; }
.hs .hs-pg-q summary:hover { color: var(--hs-teal-d); }
.hs .hs-pg-q summary:focus-visible { outline: 3px solid rgba(11, 116, 102, .35); outline-offset: 4px; border-radius: 8px; }
.hs .hs-pg-q p { padding: 0 54px 24px 0; font-size: 16px; line-height: 1.7; color: var(--hs-muted); }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
    .hs .hs-pg-hero__grid.has-img, .hs .hs-pg-split, .hs .hs-pg-contact.has-map { grid-template-columns: minmax(0, 1fr); }
    .hs .hs-pg-hero__img { max-width: 640px; }
    .hs .hs-pg-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
    .hs .hs-pg-list { grid-template-columns: minmax(0, 1fr); }
    .hs .hs-pg-faq { padding: 4px 20px; }
    .hs .hs-pg-q summary { font-size: 17px; padding: 18px 0; }
    .hs .hs-pg-q p { padding-right: 0; font-size: 15px; }
    .hs .hs-pg-cta .btn { width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .hs .hs-pg-q summary::after { transition: none; }
}
