/* Shared geometry: keep content in flow and collapse navigation before it crowds. */
:root{--site-header-height:88px;--viewport-height:100vh;--viewport-top:0px;--small-viewport-height:100vh}
@supports(height:100dvh){:root{--viewport-height:100dvh}}
@supports(height:100svh){:root{--small-viewport-height:100svh}}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--site-header-height) + 20px)}
.site-header{height:auto;min-height:88px;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:18px;padding:12px clamp(18px,3vw,48px);isolation:isolate;z-index:100}
.site-header>.brand,.site-header>.menu,.site-header>.theme-toggle,.site-header>.header-cta{grid-row:1;order:0}
.site-header .brand{grid-column:1;min-width:0;max-width:100%;margin:0}
.site-header .brand img{flex:none}
.site-header .brand span{display:flex}
.site-header nav{grid-column:2;grid-row:1;display:flex;position:static;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:20px;min-width:0;width:auto;margin:0;order:initial}
.site-header nav>a,.site-header .nav-dropdown-trigger{white-space:nowrap}
.site-header .theme-toggle{grid-column:3;margin:0;min-width:44px;min-height:44px;height:44px}
.site-header .header-cta{grid-column:4;display:flex;min-width:0;white-space:nowrap;padding:14px 20px}
.site-header .menu{grid-column:4;display:none;margin:0;width:44px;height:44px}
.service-page-header{grid-template-columns:auto minmax(0,1fr) auto}
.service-page-header .header-cta{grid-column:3}
.site-header .nav-dropdown{position:static;min-width:0}
.site-header .service-menu{position:absolute;top:100%;left:24px;right:24px;translate:none;width:auto;min-width:0;max-width:1100px;margin:0 auto;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:16px;max-height:calc(var(--viewport-height) - var(--site-header-height) - 24px);overflow-y:auto;overscroll-behavior:contain}
.service-menu-group,.service-menu a{min-width:0;overflow-wrap:anywhere}
.site-header .service-menu a{white-space:normal;line-height:1.5}
@media(min-width:1441px){
  .site-header nav{align-self:stretch}
  .site-header .nav-dropdown{align-self:stretch;padding-bottom:12px;margin-bottom:-12px}
}

.hero{display:grid;grid-template-columns:minmax(0,1fr);align-content:center;align-items:initial;gap:32px;height:auto;min-height:clamp(640px,calc(var(--small-viewport-height) - var(--site-header-height)),960px);padding:64px clamp(24px,7vw,110px)}
.hero-content{min-width:0;max-width:900px}
.hero h1{font-size:clamp(38px,4.8vw,72px);line-height:1.1;overflow-wrap:break-word}
.hero .journey-card{position:relative;inset:auto;justify-self:end;width:min(100%,360px);min-width:0;max-width:100%;padding:20px 24px}
.journey-card>div{min-width:0}
.journey-card>a{flex:none}
.hero-actions,.trust-row,.consult-actions,.provider-switch{flex-wrap:wrap}
.section-heading{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr);gap:32px;align-items:end}
.section-heading>*,.reviews-head>*,.team-card>*,.process>*,.faq>*,.callout>*,.footer-top>*{min-width:0}
.section-heading>p{margin:0}
.service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.service-card{min-width:0;min-height:0;padding:clamp(24px,3vw,38px)}
.service-card h3{overflow-wrap:break-word}
.service-card a,.official-source,.btn{max-width:100%;overflow-wrap:break-word}
.process,.faq{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
.team-card{grid-template-columns:repeat(2,minmax(0,1fr))}
.team-copy{min-width:0;padding:clamp(24px,4vw,56px)}
.portrait{position:relative;min-width:0;min-height:420px}
.portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.reviews-head{flex-wrap:wrap;align-items:flex-start;gap:24px}
.reviews-head>div:first-child{flex:1 1 400px}
.review-actions{flex-wrap:wrap;max-width:100%}
.fee-panel div>span{min-width:0}
.fee-panel b{max-width:100%;white-space:normal;text-align:right}
.notice{flex-wrap:wrap}
.credential-card{height:auto;min-height:310px;gap:20px}
.credential-art{flex:none}
.credential-label{min-width:0}
.callout{grid-template-columns:70px minmax(0,1fr) minmax(0,1fr) 70px}
.footer-top{grid-template-columns:1.1fr minmax(0,1fr) minmax(0,1fr);gap:32px}
.footer-bottom{flex-wrap:wrap;gap:12px}
body:not([data-service-page])>footer{padding-bottom:110px}
p,h1,h2,h3{overflow-wrap:break-word}

.service-section,.service-section.reverse{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);content-visibility:visible;contain-intrinsic-size:none}
.service-section.reverse{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)}
.service-section>*{min-width:0}
.service-section-image{position:relative;min-height:320px;aspect-ratio:auto}
.service-section-image img{position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:cover}
.service-section-copy{min-width:0;padding:clamp(24px,4vw,48px)}
.service-page-cta{flex-wrap:wrap}
.service-page-cta p{flex:1 1 340px;min-width:0}
.service-page-cta .btn{flex:none}

.booking-modal{inset:auto 0 auto 0;top:var(--viewport-top);height:var(--viewport-height);padding:16px;grid-template-rows:minmax(0,1fr);z-index:1200}
.brevo-booking-dialog{position:relative;grid-template-columns:minmax(240px,320px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);width:min(1100px,100%);height:min(820px,100%);max-height:100%;min-width:0;overflow:hidden}
.brevo-booking-head{min-width:0;min-height:0;padding:64px 28px 28px;justify-content:flex-start;overflow-y:auto}
.brevo-booking-head .provider-switch{margin:20px 0 0}
.brevo-frame-shell{display:grid;grid-template-rows:minmax(0,1fr) auto;min-width:0;min-height:0;height:auto}
.brevo-frame-shell iframe{height:100%;min-height:0;min-width:0}
.brevo-frame-shell>p{min-width:0;overflow-wrap:anywhere}
.brevo-booking-dialog .booking-close{position:absolute;grid-column:1 / 2;grid-row:1 / 2;right:12px;top:12px;z-index:3}
.sunny-panel{right:20px;bottom:88px;width:min(410px,calc(100vw - 32px));height:min(680px,calc(var(--viewport-height) - 108px));max-height:calc(var(--viewport-height) - 32px)}
.sunny-header>div{min-width:0}
.sunny-header-logo,.sunny-close{flex:none}
.sunny-messages{flex:1 1 auto;min-height:0;overflow-y:auto}
.sunny-form input{min-width:0}
body.chat-open .sunny-launch{visibility:hidden;pointer-events:none}

@media(max-width:1440px){
  .site-header,.service-page-header{grid-template-columns:minmax(0,1fr) auto auto;min-height:80px;gap:12px}
  .site-header .theme-toggle{grid-column:2}
  .site-header .menu{display:block;grid-column:3;order:initial}
  .site-header .header-cta{display:none}
  .site-header nav{display:none}
  .site-header.open nav{display:flex;position:absolute;grid-column:auto;grid-row:auto;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;width:auto;max-height:calc(var(--viewport-height) - var(--site-header-height) - 12px);margin:0;padding:16px 20px 24px;overflow-y:auto;overscroll-behavior:contain}
  .site-header.open nav>a{padding:12px;font-size:15px}
  .site-header.open .nav-dropdown{display:block;width:100%}
  .site-header.open .nav-dropdown-trigger{width:100%;padding:12px;font-size:15px}
  .site-header.open .service-menu{position:static;inset:auto;translate:none;transform:none;width:100%;max-width:none;min-width:0;max-height:none;margin:0;padding:12px 0;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
  .site-header.open .service-menu a{padding:10px 12px;font-size:13px;white-space:normal}
  .site-header.open .service-home-link{display:block}
  html:not(.has-navigation) .site-header{position:relative}
  html:not(.has-navigation) .site-header nav{display:flex;grid-row:auto;position:static;grid-column:1/-1;flex-direction:column;align-items:stretch;width:100%;max-height:none}
  html:not(.has-navigation) .site-header .menu{display:none}
}
@media(max-width:1100px){.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){
  .section-heading,.process,.faq,.callout{grid-template-columns:minmax(0,1fr);gap:28px}
  .callout-mark{display:none}
  .section-heading>p{max-width:65ch}
  .service-section,.service-section.reverse{grid-template-columns:minmax(0,1fr)}
  .service-section.reverse .service-section-image{order:0}
  .service-section-image{min-height:0;aspect-ratio:16/9}
  .service-section-copy{max-width:none}
  .service-page-cta p{flex-basis:100%}
}
@media(max-width:900px){
  .team-card{grid-template-columns:minmax(0,1fr)}
  .team-card .portrait{order:0;min-height:0;height:auto;aspect-ratio:4/3}
  .footer-top{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:800px){
  .service-grid{grid-template-columns:minmax(0,1fr)}
  .brevo-booking-dialog{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .brevo-booking-head{max-height:calc(var(--viewport-height) * .42);padding:22px 64px 18px 22px;overflow-y:auto}
  .brevo-booking-head h2{font-size:28px}
  .brevo-booking-head .provider-switch{flex-direction:row;margin:12px 0 0}
  .brevo-booking-head .provider-switch button{padding:10px 12px}
}
@media(max-width:700px){
  .site-header,.service-page-header{min-height:72px;gap:10px;padding:10px 18px}
  .site-header .brand img{width:46px;height:46px}
  .hero{gap:28px;min-height:0;padding:52px 24px 28px}
  .hero .journey-card{justify-self:stretch;width:100%;padding:18px}
  .hero h1{font-size:clamp(36px,8.8vw,48px)}
  .fee-panel b{text-align:left}
  .sunny-launch{width:auto;min-width:0;max-width:calc(100vw - 24px);padding:8px;right:12px;bottom:max(12px,env(safe-area-inset-bottom))}
  .sunny-launch-logo{width:64px;height:36px}
  .sunny-launch>span:nth-child(2){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .sunny-panel{inset:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));width:auto;height:auto;max-height:none}
  .sunny-header{padding:12px;gap:8px}
  .sunny-header-logo{width:60px}
  .sunny-header strong{font-size:16px}
}
@media(max-width:520px){.site-header .brand span{display:none}}
@media(max-height:520px){.brevo-booking-head{padding:20px}.brevo-booking-head h2{font-size:26px}.sunny-panel{top:10px;bottom:10px;height:auto;max-height:none}}

/* Touch targets, safe areas, and mobile keyboard space. */
.nav-dropdown-trigger,.sunny-close,.sunny-form button,.provider-switch button{min-width:44px;min-height:44px}
.site-header{padding-left:max(clamp(18px,3vw,48px),env(safe-area-inset-left));padding-right:max(clamp(18px,3vw,48px),env(safe-area-inset-right))}
.booking-modal{padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
html:not(.js) .theme-toggle,html:not(.js) .sunny-launch{display:none}
@media(any-pointer:coarse),(max-width:900px){.btn,.official-source,.footer-links a,.service-menu a{min-height:44px;display:inline-flex;align-items:center}.hero-actions,.consult-actions{gap:12px}.btn{white-space:normal;text-align:center}}
@media(max-width:700px){.hero,.section,.section-dark,.section-soft{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}.service-page-main{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}}
.keyboard-open .sunny-panel{inset:auto 10px auto 10px;top:calc(var(--viewport-top) + 10px);width:min(410px,calc(100vw - 20px));height:calc(var(--viewport-height) - 20px);max-height:calc(var(--viewport-height) - 20px);margin-left:auto}
.keyboard-open .sunny-trust,.keyboard-open .sunny-suggestions,.keyboard-open .sunny-swipe-hint{display:none}
.keyboard-open .sunny-disclaimer{font-size:9px;line-height:1.3}
.keyboard-open .sunny-header{padding:4px 10px;gap:8px}
.keyboard-open .sunny-header div span{display:none}
.keyboard-open .sunny-form{padding:8px 10px}
.keyboard-open .sunny-messages{padding:8px 10px}
.keyboard-open .sunny-disclaimer{padding:0 10px 6px;line-height:1.2}
.keyboard-short .sunny-disclaimer{display:none}
.keyboard-short .sunny-header{padding:2px 10px}
.keyboard-short .sunny-header-logo{display:none}
.keyboard-short .sunny-form{padding:4px 8px}
.keyboard-short .sunny-messages{padding:4px 10px}
html:not(.js) .booking-trigger{display:none}
.booking-fallback{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
@media(max-width:480px){.brevo-booking-head{padding:18px 64px 16px 18px}.brevo-booking-head>p:not(.eyebrow){display:none}.brevo-booking-head .eyebrow{font-size:9px;margin-bottom:10px}.brevo-booking-head h2{font-size:26px}}
@media(max-height:520px){.brevo-booking-head>.eyebrow,.brevo-booking-head>p:not(.eyebrow){display:none}.brevo-booking-head{padding:16px 64px 16px 18px}}
@supports not (aspect-ratio:16/9){@media(max-width:900px){.team-card .portrait{height:0;padding-top:75%}}}

/* Service photos use their own proportions on phones and tablets. */
@media(max-width:1100px){
  .service-section,.service-section.reverse{grid-template-columns:minmax(0,1fr)}
  .service-section.reverse .service-section-image{order:0}
  .service-section-image{height:auto;min-height:0;aspect-ratio:auto;padding:0}
  .service-section-image img{position:static;display:block;width:100%;height:auto;min-height:0;aspect-ratio:auto;object-fit:contain}
  .service-section:hover .service-section-image img{transform:none}
  .service-section-copy{max-width:none}
}
