/* Full-bleed photography, readable overlays and accessible intake controls. */
.home-hero{position:relative;overflow:hidden;min-height:calc(100svh - 130px);background:#17284b}
.home-hero::before{display:none}
.home-hero .hero-grid{position:relative;display:flex;align-items:center;min-height:calc(100svh - 130px);isolation:isolate}
.home-hero .hero-photo{position:absolute;inset:0 calc((100% - 100vw)/2);margin:0;min-height:100%;height:100%;border-radius:0;box-shadow:none;z-index:-1;overflow:hidden}
.home-hero .hero-photo>img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:62% 45%}
.home-hero .hero-photo::after{inset:0;background:linear-gradient(90deg,rgba(9,22,46,.9) 0%,rgba(13,29,54,.78) 36%,rgba(13,29,54,.2) 77%,rgba(13,29,54,.12)),linear-gradient(0deg,rgba(9,22,46,.25),transparent 60%)}
.home-hero .hero-copy{position:relative;width:min(640px,65%);padding:90px 0 100px;z-index:1}
.home-hero .hero-copy h1{font-size:clamp(46px,5.8vw,86px);line-height:1.08}
.home-hero .hero-copy h1 em::after{display:none}
.home-hero .hero-copy>p{color:#fff;max-width:420px;text-shadow:0 1px 8px #09162e80}
.home-hero .hero-photo-note{left:auto;right:max(30px,calc((100vw - 1280px)/2));bottom:30px;max-width:260px}
.social-links{display:flex;gap:12px;align-items:center}
.social-links a{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid #ffffff40;border-radius:50%;color:#fff}
.social-links a:hover{color:#fff;background:var(--rust);border-color:var(--rust);transform:translateY(-2px)}
.social-links svg{width:22px;height:22px}
.footer-brand .qls-member{display:inline-block;margin-top:28px;padding:14px 18px;background:#fff;border-radius:8px;max-width:230px}
.footer-brand .qls-member img{width:190px;max-width:100%;height:auto;margin:0}
.intake-form{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:26px}
.intake-form>div{min-width:0}.intake-form .full{grid-column:1/-1}
.intake-form label{display:block;font-size:15px;font-weight:700;margin-bottom:8px;color:var(--navy)}
.intake-form label span{font-weight:400;color:var(--muted)}
.intake-form input,.intake-form textarea{display:block;width:100%;min-height:52px;padding:13px 15px;border:1px solid #b9c3d5;background:#fff;border-radius:8px;color:var(--ink);font:inherit;font-size:16px;line-height:1.6}
.intake-form textarea{min-height:165px;resize:vertical}.intake-form input:focus,.intake-form textarea:focus{outline:2px solid var(--blue);outline-offset:2px}
.intake-form input[type=file]{font-size:14px;overflow:hidden}.intake-form input::file-selector-button{font:inherit;background:#edf1f8;color:var(--navy);border:0;border-radius:5px;padding:8px 12px;margin-right:12px;cursor:pointer}
.intake-form .field-help{display:block;font-size:13px;line-height:1.6;color:var(--muted);margin-top:8px}.intake-form button:disabled{opacity:.6;cursor:wait}
.leap-intake-thanks{padding:40px 28px;border-radius:16px;background:#eef3fb;border:1px solid #d6e0f1;margin-top:28px}.leap-intake-thanks h2{color:var(--blue)}
@media(max-width:900px){.home-hero .hero-copy{width:75%;padding-block:80px 100px}.home-hero .hero-photo>img{object-position:66% center}.home-hero .hero-photo-note{display:none}}
@media(max-width:640px){.home-hero,.home-hero .hero-grid{min-height:calc(100svh - 112px)}.home-hero .hero-copy{width:100%;padding:65px 0 70px}.home-hero .hero-copy h1{font-size:clamp(42px,11.5vw,64px)}.home-hero .hero-photo::after{background:linear-gradient(90deg,#09162ee0,#0d1d3680),linear-gradient(0deg,#09162e80,transparent)}.home-hero .hero-photo>img{object-position:65% center}.home-hero .hero-copy .button-row{gap:22px;flex-wrap:wrap}.intake-form{grid-template-columns:1fr;gap:20px}.intake-form button{width:100%}.contact-form-section h2{font-size:32px}.footer-brand .qls-member img{width:175px}}
.home-hero.team-photo-hero .hero-grid{align-items:flex-end;min-height:max(720px,calc(100svh - 130px))}
.home-hero.team-photo-hero .hero-copy{width:min(920px,100%);padding:240px 0 44px}
.home-hero.team-photo-hero .hero-copy h1{font-size:clamp(42px,4.4vw,66px);line-height:1.08}
.home-hero.team-photo-hero .hero-copy .eyebrow{margin-bottom:12px}
.home-hero.team-photo-hero .hero-copy>p{margin:18px 0 22px;max-width:540px}
.home-hero.team-photo-hero .hero-photo>img{object-position:50% 0%}
.home-hero.team-photo-hero .hero-photo::after{background:linear-gradient(0deg,rgba(6,17,37,.97),rgba(6,17,37,.82) 26%,rgba(6,17,37,.15) 62%,rgba(6,17,37,.03))}
.home-hero.team-photo-hero .hero-photo-note{display:none}
.page-hero-image.approved-photo{aspect-ratio:auto;max-height:none;overflow:hidden;border-radius:16px}
.page-hero-image.approved-photo img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
.approved-team-figure{margin:36px 0}.approved-team-figure img{width:100%;height:auto;border-radius:16px}.approved-team-figure figcaption{font-size:14px;color:var(--muted);margin-top:12px}
@media(max-width:900px){.home-hero.team-photo-hero{min-height:0}.home-hero.team-photo-hero .hero-grid{display:flex;flex-direction:column;min-height:0;width:100%;gap:0}.home-hero.team-photo-hero .hero-photo{position:relative;inset:auto;order:-1;width:100%;height:auto;min-height:0;aspect-ratio:2400/1601;z-index:0}.home-hero.team-photo-hero .hero-photo>img{position:static;width:100%;height:auto;object-fit:contain}.home-hero.team-photo-hero .hero-photo::after{display:none}.home-hero.team-photo-hero .hero-copy{width:100%;padding:36px 24px 44px}.home-hero.team-photo-hero .hero-copy h1{font-size:clamp(38px,6vw,56px)}.home-hero.team-photo-hero .hero-copy>p{max-width:100%}}
.story-image.approved-team-photo,.about-photo.approved-team-photo{display:block;width:100%;height:auto;max-height:none;object-fit:contain!important;border-radius:16px!important;transform:none}
.story-image.approved-team-photo{aspect-ratio:2400/1601}
.about-photo.approved-team-photo{aspect-ratio:683/1024}
.about-layout .about-photo.approved-team-photo{max-width:380px;justify-self:center;align-self:start}
@media(max-width:640px){.about-layout .about-photo.approved-team-photo{max-width:340px}}
.person-aside img.approved-portrait{width:100%;height:auto;max-height:none;aspect-ratio:3/4;object-fit:cover;object-position:50% 30%;border-radius:16px}
.people-card .portrait{position:relative;aspect-ratio:3/4;border-radius:16px;overflow:hidden}
.people-card .portrait img.approved-portrait{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;margin:0;object-fit:cover;object-position:50% 30%;border-radius:0}
.page-hero-about .page-hero-image.approved-photo{transform:none;border-radius:16px}
@media(max-width:900px){.home-hero.team-photo-hero .hero-photo{aspect-ratio:auto}}
.content-people .people-grid.approved-portraits{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}
@media(max-width:640px){.content-people .people-grid.approved-portraits{grid-template-columns:1fr;max-width:360px}}
.content-people .people-grid.featured-team{grid-template-columns:repeat(2,minmax(0,1fr));max-width:850px}
.content-people .people-grid.supporting-team{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:56px;gap:28px}
.all-services-link{margin-top:32px;text-align:center}
@media(max-width:1100px){.content-people .people-grid.supporting-team{grid-template-columns:repeat(2,minmax(0,1fr));max-width:850px}}
@media(max-width:640px){.content-people .people-grid.featured-team,.content-people .people-grid.supporting-team{grid-template-columns:1fr;max-width:360px}.content-people .people-grid.supporting-team{margin-top:28px}}

/* Approved Notary Public seal, scoped to the Notary hero. */
.page-id-41 .notary-seal{display:flex;align-items:center;gap:22px;margin:28px 0 0;max-width:100%}
.page-id-41 .notary-seal img.notary-seal-image{display:block;width:220px;max-width:48%;height:auto;object-fit:contain;border-radius:0;box-shadow:none;mix-blend-mode:multiply}
.page-id-41 .notary-seal figcaption{color:var(--navy);font-size:17px;font-weight:700;line-height:1.5;letter-spacing:0}
.page-id-41 .notary-seal figcaption span{color:var(--muted);font-size:13px;font-weight:400}
@media(max-width:1100px){.page-id-41 .notary-seal{gap:16px}.page-id-41 .notary-seal figcaption{font-size:15px}}
@media(max-width:640px){.page-id-41 .notary-seal{margin-top:24px;gap:20px}.page-id-41 .notary-seal img.notary-seal-image{width:160px}.page-id-41 .notary-seal figcaption{font-size:15px}.page-id-41 .notary-seal figcaption span{font-size:12px}}

/* Final staging review: compact contact page and balanced enquiry layout. */
.page-hero-contact{padding:28px 0 36px}
.page-hero-contact .breadcrumbs{margin-bottom:24px;padding-bottom:18px}
.page-hero-contact .page-hero-inner{display:block}
.page-hero-contact .page-lead{margin-top:18px;max-width:760px}
.page-id-31 .page-body{padding-top:46px}
.content-contact .contact-enquiry-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:start;gap:48px}
.content-contact .contact-team-photo{margin:0;min-width:0}
.content-contact .contact-team-photo img{display:block;width:100%;height:auto;margin:0;border-radius:16px;clip-path:inset(2px round 16px)}
.content-contact .contact-team-photo figcaption{margin-top:14px;color:var(--muted);font-size:14px;line-height:1.6}
.content-contact .contact-form-section{margin-top:0;min-width:0;padding:32px}
.content-contact .contact-form-section h2{font-size:clamp(28px,3vw,36px);margin:0 0 16px}
.content-contact .contact-form-section>p{font-size:16px}
.content-contact .contact-details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:42px}
.content-contact .contact-details-grid .contact-card{margin:0;padding:26px}
.content-contact .contact-details-grid h2{font-size:clamp(21px,2vw,26px);line-height:1.3;margin:0 0 16px}
.content-contact .contact-details-grid p{font-size:15px;line-height:1.75}
.content-contact .contact-details-grid .eyebrow{margin-bottom:14px}
.content-contact .contact-details-grid .text-link{font-size:13px;gap:12px}
@media(max-width:1000px){
  .content-contact .contact-enquiry-grid{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:28px}
  .content-contact .contact-form-section{padding:26px}
  .content-contact .intake-form{grid-template-columns:1fr}
  .content-contact .contact-details-grid{gap:16px}
  .content-contact .contact-details-grid .contact-card{padding:22px}
}
@media(max-width:700px){
  .page-hero-contact{padding:22px 0 28px}
  .page-id-31 .page-body{padding-top:30px}
  .content-contact .contact-enquiry-grid{grid-template-columns:1fr;gap:30px}
  .content-contact .contact-form-section{order:-1;padding:24px 20px}
  .content-contact .contact-team-photo{max-width:380px;justify-self:center}
  .content-contact .contact-details-grid{grid-template-columns:1fr;margin-top:30px}
  .content-contact .contact-details-grid h2{font-size:24px}
}

/* Keep long headings and URLs within their column on narrow screens. */
.page-content{min-width:0}
.prose{overflow-wrap:break-word}
.prose h2,.prose h3,.prose h4{overflow-wrap:anywhere}
.person-caption p{font-size:13px;line-height:1.6}
.home .home-hero.team-photo-hero .hero-copy .button{color:#101a35}
.home .home-hero.team-photo-hero .hero-copy .button:hover{background:#f1764e;color:#101a35}
@media(max-width:640px){
  .prose{font-size:16px;line-height:1.8}
  .person-caption p{font-size:13px;line-height:1.6}
}
