/* Standalone shim - WordPress block library subset + fixes for DB-free preview */
.wp-block-columns{display:flex;flex-wrap:wrap;gap:2rem;box-sizing:border-box}
.wp-block-columns.are-vertically-aligned-center{align-items:center}
.wp-block-column{flex-grow:1;min-width:0;flex-basis:0;flex-shrink:1;box-sizing:border-box}
.wp-block-column[style*="flex-basis:58%"]{flex-basis:57% !important;max-width:57%}
.wp-block-column[style*="flex-basis:42%"]{flex-basis:41% !important;max-width:41%}
.wp-block-column[style*="flex-basis:38%"]{flex-basis:38% !important}
.fegn-hero-grid{flex-wrap:nowrap !important;align-items:center !important}
@media (max-width: 781px){.fegn-hero-grid{flex-wrap:wrap !important}}
.wp-block-group{box-sizing:border-box}
.alignwide{max-width:var(--wp--style--global--wide-size);margin-left:auto;margin-right:auto;width:100%;box-sizing:border-box;padding-left:1.5rem;padding-right:1.5rem}
html,body{max-width:100vw;overflow-x:hidden}
.fegn-section--wcu-2nd, .fegn-wcu-hero, .fegn-wcu-promise, .fegn-wcu-cta{max-width:100vw;overflow-x:hidden;box-sizing:border-box}

/* Button base from theme.json styles.elements.button */
.wp-block-button__link{color:#FFFFFF;background-color:var(--wp--preset--color--brand);border-radius:12px;padding:0.875rem 1.5rem;font-family:var(--wp--preset--font-family--body);font-size:1rem;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;line-height:1.2;border:0;cursor:pointer;transition:background-color 180ms ease,transform 180ms ease,box-shadow 180ms ease}
.wp-block-button__link:hover{background-color:var(--wp--preset--color--brand-dark);color:#FFFFFF}
.wp-block-button__link:focus-visible{outline:2px solid var(--wp--preset--color--ink);outline-offset:2px}
.wp-block-buttons{display:flex;gap:0.75rem;flex-wrap:wrap}
.wp-block-buttons.is-style-outline .wp-block-button__link{background:transparent;color:var(--wp--preset--color--brand);border:2px solid var(--wp--preset--color--brand)}
.wp-block-buttons.is-style-outline .wp-block-button__link:hover{background:var(--wp--preset--color--light-blue);color:var(--wp--preset--color--brand-dark);border-color:var(--wp--preset--color--brand-dark)}

/* Hero specific */
.fegn-hero{position:relative;overflow:hidden}
.fegn-hero-grid{align-items:center}
.fegn-hero__bg-slider{position:absolute;inset:0;z-index:0}
.fegn-hero__bg-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0}
.fegn-hero__bg-slide--1{background-image:url("/assets/images/hero-development.webp")}
.fegn-hero__bg-slide--2{background-image:url("/assets/images/hero-cloud.webp")}
.fegn-hero__bg-slide--3{background-image:url("/assets/images/hero-data.webp")}
.fegn-hero.is-ready .fegn-hero__bg-slide{animation:fegnHeroFade 18s infinite}
.fegn-hero__bg-slide--1{opacity:1}
@keyframes fegnHeroFade{0%,33%{opacity:1}36%,100%{opacity:0}}

/* Fix hero panel overlapping */
.fegn-hero-panel{position:relative;z-index:1}

/* Home overviews - ensure grid not broken */
.fegn-home-overviews{position:relative;z-index:1}

/* Logo bigger - override (uses cropped header logo 714x472) */
.fegn-brand .wp-block-site-logo img,
.fegn-brand img{height:92px !important;max-width:280px !important}
@media (max-width: 781px){
  .fegn-brand .wp-block-site-logo img,
  .fegn-brand img{height:68px !important;max-width:210px !important}
}
.fegn-header-inner{padding-block:0.45rem !important}

/* Hero heading contrast on dark overlay */
.fegn-hero--bg{color:var(--wp--preset--color--ink)}
/* If hero background is dark image overlay, ensure text readable - add subtle overlay for preview */
.fegn-hero--bg::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(246,248,251,0.92) 0%, rgba(246,248,251,0.75) 55%, rgba(246,248,251,0.3) 100%);z-index:0;pointer-events:none}
.fegn-hero--bg > *{position:relative;z-index:1}

/* Fix buttons appearing as plain links in screenshot */
.fegn-hero-actions .wp-block-button__link{box-shadow:0 4px 16px rgba(24,99,220,0.18)}

/* Ensure How we engage card not full-width at bottom */
@media (min-width: 782px){
  .fegn-hero-grid > .wp-block-column:first-child{padding-right:1rem}
}
@media (max-width: 781px){
  .wp-block-column[style*="flex-basis"]{flex-basis:100% !important;max-width:100% !important}
  .fegn-hero--bg::before{background:rgba(246,248,251,0.92)}
}

/* Footer logo - left side, under the text */
.fegn-footer-logo{margin:1.1rem 0 0}
.fegn-footer-logo a{display:inline-flex;line-height:0;border-radius:8px;overflow:hidden;background:#FFFFFF;padding:7px 12px}
.fegn-footer-logo img{display:block;height:56px !important;width:auto !important;max-width:240px !important;object-fit:contain;border-radius:0}
@media (max-width: 781px){
  .fegn-footer-logo img{height:48px !important;max-width:210px !important}
}

/* Why Choose Us - tighter gaps + headlines one line (desktop), wrap on mobile */
.fegn-wcu-hero{padding-top:1.4rem !important;padding-bottom:1.4rem !important}
.fegn-section--wcu-2nd,
.fegn-wcu-promise,
.fegn-wcu-cta{padding-top:1.4rem !important;padding-bottom:1.4rem !important}
.fegn-wcu-grid, .fegn-promise-grid{margin-top:1rem !important;gap:1.25rem !important}
.fegn-wcu-title,
.fegn-section--wcu-2nd .fegn-section-title,
.fegn-wcu-cta-title{white-space:nowrap;max-width:100% !important;width:100% !important;display:block !important}
.fegn-wcu-hero .fegn-lead{white-space:nowrap !important;font-size:clamp(0.95rem, 1.1vw, 1.05rem) !important;max-width:100% !important;overflow-wrap:normal !important;display:block !important;width:100% !important}
.fegn-wcu-bridge-grid{grid-template-columns:repeat(3,1fr)}
@media (max-width: 1100px){
  html body .fegn-wcu-title,
  html body .fegn-section--wcu-2nd .fegn-section-title,
  html body .fegn-wcu-cta-title,
  html body .fegn-section-title,
  html body .fegn-wcu-hero .fegn-lead{white-space:normal !important;overflow-wrap:break-word !important;word-break:break-word !important;max-width:100% !important;display:block !important;width:100% !important;font-size:1rem !important}
  .fegn-wcu-bridge-grid{grid-template-columns:repeat(2,1fr) !important}
  .fegn-section-head,
  .fegn-section-head.alignwide{flex-wrap:wrap !important;flex-direction:column !important;align-items:flex-start !important;gap:0.5rem !important}
  .fegn-section-head > *,
  .fegn-section-head .wp-block-group{min-width:0 !important;max-width:100% !important;width:100% !important;flex:1 1 100% !important}
}
@media (max-width: 781px){
  .fegn-wcu-hero{padding-top:1.1rem !important;padding-bottom:1.1rem !important}
  .fegn-section--wcu-2nd,
  .fegn-wcu-promise,
  .fegn-wcu-cta{padding-top:1.2rem !important;padding-bottom:1.2rem !important}
  .fegn-wcu-bridge-grid{grid-template-columns:1fr !important}
}

/* Desktop: make AI workflow headline + subline one line */
@media (min-width: 1101px){
  .svc-workflow-section h2, .svc-workflow-section p{display:inline !important;white-space:nowrap !important;vertical-align:baseline}
  .svc-workflow-section h2{margin-right:0.6rem !important}
}
/* Desktop: AI workflow one line combined */
@media (min-width: 1101px){
  .svc-workflow-headline{flex-wrap:nowrap !important;gap:0.8rem !important}
  .svc-workflow-headline h2{font-size:1.65rem !important}
  .svc-workflow-headline p{font-size:0.88rem !important}
}
/* Mobile: force all headlines to wrap */
@media (max-width: 1100px){
  html body h1.fegn-wcu-title,
  html body h2.fegn-section-title,
  html body h2.fegn-wcu-cta-title,
  html body .svc-roadmap-section h2,
  html body .svc-section h2,
  html body .svc-workflow-section h2,
  html body .svc-workflow-section p,
  .svc-workflow-headline,
  .svc-workflow-headline h2,
  .svc-workflow-headline p{white-space:normal !important;overflow-wrap:anywhere !important;word-break:break-word !important;max-width:100% !important;width:100% !important;display:block !important;flex-wrap:wrap !important}
}
/* Mobile-app: align left text vertically middle */
/* Mobile-app: align left text vertically middle */
.svc-page .svc-release-panel{align-items:center !important;align-content:center !important}
.svc-page .svc-release-panel > div:first-child{padding:85px 0 65px !important;box-sizing:border-box !important}
@media (max-width: 781px){
  .fegn-wcu-grid{grid-template-columns:1fr !important}
  .fegn-promise-grid{grid-template-columns:1fr !important}
  .svc-page .svc-release-panel > div:first-child{padding:85px 0 65px !important;box-sizing:border-box !important}
}
