/* To restore the video, remove fc-home-reception and uncomment the video
   in @Views/HomeServices.php. The supplied reception image stays untouched. */
.fc-home-reception {
    background-color: #16332e;
    background-image: linear-gradient(180deg, rgba(0, 32, 48, .26), rgba(0, 47, 44, .58)), url('/assets/offices/Fider_RM_reception.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.fc-home-services { --fc-service-green: 0, 112, 65; position: relative; isolation: isolate; padding: 0; }
.fc-home-highlights.container, .fc-home-introduction.container { width: calc(100% - 64px); max-width: 1280px; padding: 0; }
.fc-home-service-grid { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .65); border-left: 1px solid rgba(255, 255, 255, .65); }
.fc-home-service { display: flex; align-items: flex-end; justify-content: flex-start; min-width: 0; min-height: clamp(360px, 25vw, 400px); padding: 32px 24px; border-right: 1px solid rgba(255, 255, 255, .65); border-bottom: 1px solid rgba(255, 255, 255, .65); background: rgba(0, 35, 60, .15); text-align: left; text-decoration: none; transition: background-color .3s ease; }
.fc-home-service-content { width: 100%; max-width: 440px; }
.fc-home-service h2 { margin: 0; color: #fff; font-size: clamp(22px, 1.7vw, 28px); font-weight: 500; line-height: 1.25; text-shadow: 0 2px 12px rgba(0, 20, 30, .5); }
.fc-home-service h2::before { content: ''; display: block; width: 42px; height: 4px; margin-bottom: 14px; background-color: rgb(var(--fc-service-green)); transition: background-color .3s ease; }
.fc-home-service-description { display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0; transform: translateY(12px); transition: grid-template-rows .3s ease, margin-top .3s ease, opacity .3s ease, transform .3s ease; }
/* UHY Fay's revealed descriptions use #ededed at 75% opacity. */
.fc-home-service-description p { min-height: 0; overflow: hidden; margin: 0; color: rgba(237, 237, 237, .75); font-size: 16px; font-weight: 400; line-height: 1.45; }
.fc-home-service:is(:hover, :focus-within) { background-color: rgba(var(--fc-service-green), .88); }
.fc-home-service:is(:hover, :focus-within) h2::before { background-color: #fff; }
.fc-home-service:is(:hover, :focus-within) .fc-home-service-description { grid-template-rows: 1fr; margin-top: 18px; opacity: 1; transform: translateY(0); }
.fc-home-service:focus-visible { outline: 2px solid #fff; outline-offset: -8px; }
.fc-home-introduction.container { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); align-items: center; gap: 48px; margin-top: 40px; padding: 36px 44px; background: #002f6c; border: 1px solid #002f6c; box-shadow: 0 12px 28px rgba(0, 35, 60, .1); box-sizing: border-box; }
/* Cropped pathways echo the UHY banners without adding space to the panel. */
.fc-home-introduction::after { content: ''; position: absolute; z-index: 0; right: -42px; bottom: -45px; width: 360px; height: 197px; background: url('/assets/images/graphics/home-introduction-pathways.svg') center / contain no-repeat; opacity: .3; pointer-events: none; }
.fc-home-introduction-heading { position: relative; z-index: 1; min-width: 0; }
.fc-home-introduction-heading::after { content: ''; position: absolute; top: 0; bottom: 0; right: -24px; width: 1px; background: rgba(120, 214, 75, .4); }
.fc-home-introduction-eyebrow { margin: 0 0 12px; color: #78d64b; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.fc-home-introduction-eyebrow::before { content: ''; display: block; width: 40px; height: 3px; margin-bottom: 16px; background: #78d64b; }
.fc-home-introduction h2 { margin: 0; color: #fff; font-size: clamp(25px, 2.1vw, 30px); font-weight: 300; line-height: 1.25; }
.fc-home-introduction-text { position: relative; z-index: 1; min-width: 0; margin: 0; color: #eff4f5; font-size: 18px; font-weight: 300; line-height: 1.55; }
.fc-home-introduction-text strong { color: #78d64b; font-weight: 500; }
.fc-home-introduction + .fc-home-highlights { margin-top: 24px; }
.fc-home-highlights { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; margin-bottom: -64px; }
.fc-home-highlights > * { display: flex; flex-direction: column; min-width: 0; min-height: 380px; padding: clamp(28px, 3vw, 44px); box-shadow: 0 16px 32px rgba(0, 35, 45, .12); }
.fc-home-highlights h3 { margin-bottom: 26px; }
.fc-home-highlights > a > p { margin-top: auto; }
.fc-home-highlights a:focus-visible { outline: 3px solid #78d64b; outline-offset: 4px; }
.fc-home-highlights + .homepage-office-search { z-index: 0; padding-top: 64px; }
@media (max-width: 1023px) {
    .fc-home-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-home-service { align-items: flex-start; min-height: 260px; }
}
@media (max-width: 767px) {
    .fc-home-reception {
        background-position: 65% center;
    }
    .fc-home-highlights.container, .fc-home-introduction.container { width: calc(100% - 36px); }
    .fc-home-introduction.container { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; padding: 28px 26px; }
    .fc-home-introduction-heading::after { display: none; }
    .fc-home-introduction::after { right: -70px; opacity: .15; }
    .fc-home-introduction h2 { font-size: 25px; }
    .fc-home-introduction-text { font-size: 17px; line-height: 1.5; }
    .fc-home-service { min-height: 260px; padding: 26px 16px; }
    .fc-home-service h2 { font-size: 21px; }
    .fc-home-service-description p { font-size: 15px; line-height: 1.4; }
    .fc-home-highlights { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; margin-bottom: -28px; }
    .fc-home-highlights > * { min-height: 0; padding: 32px 26px; }
    .fc-home-highlights + .homepage-office-search { padding-top: 28px; }
}
/* Touch users see the same content without needing a hover gesture. */
@media (hover: none) {
    .fc-home-service { background-color: rgba(0, 35, 45, .42); }
    .fc-home-service-description { grid-template-rows: 1fr; margin-top: 18px; opacity: 1; transform: none; }
}
@media (max-width: 360px) {
    .fc-home-service-grid { grid-template-columns: 1fr; }
    .fc-home-service { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
    .fc-home-service, .fc-home-service-description, .fc-home-service h2::before { transition: none; }
}
