/* Service design and the explicitly scoped mobile homepage preview. */
#services.yfg-local-services{display:block!important;background:#fff!important;padding:90px 4% 175px!important;margin:0!important;width:100%!important;max-width:none!important;scroll-margin-top:100px;color:#172436}
#services .yfg-six{max-width:1660px;margin:auto;font-family:"Source Han Sans SC","PingFang SC",sans-serif}
#services .yfg-six *{box-sizing:border-box}
#services .section-heading{text-align:center;margin:0 0 88px}
#services .section-heading h2{font-family:"Source Han Serif SC","Songti SC",serif;font-size:clamp(32px,2.9vw,48px);font-weight:400;line-height:1.5;letter-spacing:.04em;margin:0;color:#172436}
#services .service-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));isolation:isolate}
#services .service{position:relative;min-width:0;min-height:510px;padding:44px 26px 38px;border-left:1px solid #e4e7e9;display:flex;flex-direction:column;cursor:pointer;color:#172436;transition:color .3s}
#services .service:last-child{border-right:1px solid #e4e7e9}
#services .backdrop{position:absolute;inset:-28px -1px;z-index:-1;opacity:0;overflow:hidden;background:#172436;transform:scaleY(.91);transition:opacity .35s,transform .4s;pointer-events:none}
#services .backdrop img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--position,center);filter:saturate(.75)}
#services .backdrop:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(23,36,54,.45),rgba(23,36,54,.68) 45%,rgba(23,36,54,.8))}
#services .service.active{color:white;border-color:transparent;z-index:2}
#services .service.active .backdrop{opacity:1;transform:scaleY(1);box-shadow:12px 16px 32px rgba(23,36,54,.12)}
#services .service.active+.service{border-left-color:transparent}
#services .select-service{appearance:none;border:0;border-radius:0;padding:0;background:none;box-shadow:none;text-align:left;display:block;width:100%;color:inherit;cursor:pointer;font:inherit}
#services .number{display:block;font-family:Optima,"Helvetica Neue",Arial,sans-serif;font-size:clamp(66px,5.8vw,94px);font-weight:300;line-height:1;letter-spacing:-.05em;margin-left:-3px}
#services .stem{display:block;height:36px;width:1px;margin:23px 0;background:linear-gradient(#8f5a39 45%,transparent 0) 0 0/1px 5px}
#services .active .stem{background:linear-gradient(rgba(255,255,255,.7) 45%,transparent 0) 0 0/1px 5px}
#services .service-title{display:block;font-family:"Source Han Serif SC","Songti SC",serif;font-size:clamp(21px,1.6vw,28px);font-weight:400;line-height:1.5;letter-spacing:.01em;margin:0;min-height:3em;color:inherit}
#services .service-title span{display:block}
#services .description{font-size:14px;line-height:1.9;color:#65707b;margin:22px 0 30px;transition:color .3s}
/* Override the original site's !important paragraph color inside selected cards. */
#services.yfg-local-services .service.active .description{color:#fff!important}
#services .learn-more{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;margin-top:auto;padding:10px 20px!important;min-height:42px;min-width:106px;border:1px solid #aa8063!important;border-radius:0;background:transparent;box-shadow:none;color:#8f5a39;text-decoration:none!important;font-size:13px;line-height:1.5;letter-spacing:.02em;transition:background .2s,color .2s}
#services .learn-more:before,#services .learn-more:after{display:none!important}
#services .learn-more:hover{background:#8f5a39;color:white}
#services .active .learn-more{border-color:rgba(255,255,255,.75)!important;color:white}
#services .active .learn-more:hover{background:white;color:#172436}
#services .select-service:focus-visible,#services .learn-more:focus-visible{outline:2px solid #8f5a39;outline-offset:5px}
#services .active .select-service:focus-visible,#services .active .learn-more:focus-visible{outline-color:white}





@media(max-width:1199px) and (min-width:901px){#services .service{padding:34px 16px;min-height:500px}#services .service-title{font-size:20px}#services .description{font-size:12px}}
@media(max-width:900px){#services.yfg-local-services{padding:60px 5% 104px!important}#services .section-heading{margin-bottom:55px}#services .service-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:40px}#services .service{padding:28px 24px;min-height:430px}#services .service:nth-child(3){border-right:1px solid #e4e7e9}#services .backdrop{inset:-12px -1px}#services .number{font-size:66px}#services .stem{height:24px;margin:15px 0}#services .service-title{font-size:22px}#services .description{font-size:13px;margin-top:17px}}
@media(max-width:540px){#services.yfg-local-services{padding:48px 20px 92px!important;scroll-margin-top:68px}#services .section-heading{margin-bottom:36px}#services .section-heading h2{font-size:28px;max-width:310px;margin:auto;line-height:1.6}#services .service-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:28px}#services .service{padding:24px 16px;min-height:420px}#services .service:nth-child(3){border-right:0}#services .service:nth-child(even){border-right:1px solid #e4e7e9}#services .number{font-size:57px}#services .service-title{font-size:20px}#services .description{font-size:12px;line-height:1.9;margin-bottom:22px}#services .learn-more{font-size:12px;min-width:98px;padding:8px 16px}}
@media(prefers-reduced-motion:reduce){#services *,#services *:before,#services *:after{transition:none!important}}

#services .section-heading h2>span{display:inline-block}

@font-face{font-family:"Libertinus Sans";src:url("assets/fonts/LibertinusSans-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0030-0039}

/* Mobile editorial services: gold numbers alternate with complete copy. */
#services .mobile-service-number{display:none}
@media(max-width:767px){
  #services.yfg-local-services{padding:48px 24px 88px!important;scroll-margin-top:68px}
  #services .section-heading{margin-bottom:24px}
  #services .section-heading h2{font-size:27px;line-height:1.6}
  #services .service-grid{display:block!important}
  #services .service,
  #services .service:nth-child(3),
  #services .service:nth-child(even),
  #services .service:last-child{
    display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
    grid-template-rows:auto auto auto;column-gap:16px;row-gap:0;
    min-height:0;padding:22px 0;border:0!important;border-bottom:1px solid #17243618!important;
  }
  #services .service:last-child{border-bottom:0!important}
  #services .service:nth-child(even){grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}
  #services .select-service{grid-column:1;grid-row:1;width:100%;align-self:end}
  #services .description{grid-column:1;grid-row:2;font-size:11px;line-height:1.65;margin:8px 0 12px!important;word-break:normal;overflow-wrap:normal;line-break:strict}
  #services .learn-more{grid-column:1;grid-row:3;justify-self:start;min-width:86px;min-height:36px;padding:7px 14px!important;font-size:12px;margin:0}
  #services .service:nth-child(even) .select-service,
  #services .service:nth-child(even) .description,
  #services .service:nth-child(even) .learn-more{grid-column:2}
  #services .select-service .number,#services .stem{display:none}
  #services .service-title{font-size:20px;line-height:1.35;min-height:0;letter-spacing:0}
  #services .service-title::after{content:'';display:block;width:26px;height:1px;background:#aa8063;margin-top:7px}
  #services .mobile-service-number{
    display:block;grid-column:2;grid-row:1 / 4;align-self:center;justify-self:center;
    width:max-content;max-width:none;font:700 clamp(120px,40vw,230px)/.95 "Libertinus Sans","Arial Narrow",sans-serif;
    letter-spacing:-.045em;text-align:center;padding-right:.04em;
    color:#9a6848;background:none;-webkit-text-fill-color:currentColor;
    pointer-events:none;
  }
  #services .service:nth-child(even) .mobile-service-number{grid-column:1}
  #services .backdrop{inset:0 -16px;transform:none}
  #services .service.active .backdrop{box-shadow:none}
  #services .service.active .mobile-service-number{color:rgba(255,255,255,.92)}
  #services .service.active .service-title::after{background:#ffffff99}
}
@media(min-width:541px) and (max-width:767px){
  #services.yfg-local-services{padding-inline:40px!important}
  #services .service{padding-block:26px;column-gap:32px}
  #services .service-title{font-size:24px}
  #services .description{font-size:13px}
}
@media(max-width:359px){
  #services.yfg-local-services{padding-inline:20px!important}
  #services .service{column-gap:12px}
  #services .service-title{font-size:19px}
  #services .description{font-size:10.5px}
}

@media(max-width:767px){#services .service-phrase{white-space:nowrap}}

/* Give mobile copy breathing room next to the large gold numerals. */
@media(max-width:767px){
  #services .service{--copy-inset:clamp(18px,6vw,30px)}
  #services .select-service,#services .description{width:calc(100% - var(--copy-inset));justify-self:start}
  #services .service:nth-child(even) .select-service,
  #services .service:nth-child(even) .description{justify-self:end}
  #services .service:nth-child(even) .learn-more{margin-left:var(--copy-inset)}
}

/* Approved fixed alternation: photographs on 2/4/6, fine borders on 1/3/5. */
#services .service-grid{gap:14px}
#services .service{cursor:default;border:1px solid #dce0e4!important;isolation:isolate;padding-inline:20px}
#services .service:nth-child(even){border-color:transparent!important;color:#fff}
#services .service .backdrop{inset:0;transform:none;box-shadow:none}
#services .service:nth-child(even) .backdrop{opacity:1}
#services .service .backdrop picture{display:block;width:100%;height:100%}
#services .service .backdrop picture img{position:static!important;width:100%!important;height:100%!important;opacity:1!important}
#services .service:nth-child(even) .description{color:#fff!important}
#services .service:nth-child(even) .stem{background:linear-gradient(#ffffffb3 45%,transparent 0) 0 0/1px 5px}
#services .service:nth-child(even) .learn-more{border-color:#ffffffbf!important;color:#fff}
#services .service:nth-child(even) .learn-more:hover{background:#fff;color:#172436}
#services .service:nth-child(even) .learn-more:focus-visible{outline-color:#fff}
#services .select-service{cursor:default}
#services .service:nth-child(even) .service-title::after{background:#ffffff99}
@media(min-width:901px) and (max-width:1199px){#services .service{padding-inline:13px}#services .service-grid{gap:10px}}
@media(max-width:767px){
 #services .service-grid{display:grid!important;grid-template-columns:1fr!important;gap:18px}
 #services .service,#services .service:nth-child(3),#services .service:nth-child(even),#services .service:last-child{border:1px solid #dce0e4!important;padding:22px 12px}
 #services .service:nth-child(even){border-color:transparent!important}
 #services .mobile-service-number{font-size:clamp(108px,36vw,210px)}
 #services .service:nth-child(even) .mobile-service-number{color:#fff}
 #services .service{--copy-inset:clamp(10px,3vw,18px)}
 #services .service-phrase{white-space:normal}
}
html[lang^="en"] #services .service-title{font-family:Optima,"Helvetica Neue",sans-serif;font-size:clamp(19px,1.5vw,25px)}
@media(max-width:767px){html[lang^="en"] #services .service-title{font-size:18px}html[lang^="en"] #services .description{font-size:11px;overflow-wrap:break-word}}

#services .service:nth-child(odd) .number{color:#9a6848}

/* Continuous service strip, with no gutters on desktop or mobile. */
#services .service-grid{gap:0!important}

/* Draw white-card rules inside the shared card bounds; photos reach those same bounds. */
#services.yfg-local-services .service{border:0!important;box-shadow:none}
@media(min-width:768px){#services.yfg-local-services .service:nth-child(odd){box-shadow:inset 0 0 0 1px #dce0e4}}
