/* EFG new homepage — scoped so parent header/footer styles stay intact */

.efg-home {
  --efg-navy: #0B1F3B;
  --efg-navy-deep: #0E2747;
  --efg-blue: #2E6B9E;
  --efg-blue-deep: #1F4E79;
  --efg-red: #E53935;
  --efg-red-func: #D32F2F;
  --efg-body: #475569;
  --efg-muted: #64748B;
  --efg-surface: #F4F6F9;
  --efg-pale: #EDF3F9;
  --efg-border: #E3E8EF;
  --efg-font: 'Poppins', system-ui, -apple-system, sans-serif;
  background: #fff;
  font-family: var(--efg-font) !important;
  color: var(--efg-navy);
  -webkit-font-smoothing: antialiased;
}

/* Override parent Segoe UI on all homepage middle content */
.efg-home,
.efg-home *,
.efg-home h1,
.efg-home h2,
.efg-home h3,
.efg-home h4,
.efg-home h5,
.efg-home h6,
.efg-home p,
.efg-home a,
.efg-home li,
.efg-home span,
.efg-home label,
.efg-home button,
.efg-home input,
.efg-home select,
.efg-home textarea,
.efg-home summary,
.efg-home .btn,
.efg-home .form-control,
.efg-home .wpcf7,
.efg-home .wpcf7 * {
  font-family: var(--efg-font) !important;
}

.efg-home a {
  color: var(--efg-blue-deep);
  text-decoration: none !important;
}
.efg-home a:hover {
  color: var(--efg-red-func);
}

/* Process note + underlined roadmap link (design) */
.efg-home .efg-process-note {
  margin: clamp(28px, 3.2vw, 44px) 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: #64748B;
  max-width: 68ch;
  text-decoration: none !important;
  border-bottom: 0 !important;
}
.efg-home a.efg-inline-link {
  font-weight: 600;
  color: #1F4E79 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  border-bottom: 0 !important;
}
.efg-home a.efg-inline-link:hover {
  color: #D32F2F !important;
}

.efg-home :focus-visible {
  outline: 2px solid var(--efg-red);
  outline-offset: 2px;
}

.efg-home summary::-webkit-details-marker { display: none; }
.efg-home summary { list-style: none; }

.efg-home .efg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--efg-font) !important;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25 !important;
  border-radius: 6px !important;
  padding: 16px 28px !important;
  border: 0 !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s, border-color .15s, gap .15s, color .15s;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
.efg-home .efg-btn:focus,
.efg-home .efg-btn:focus-visible,
.efg-home .efg-btn:active {
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.efg-home .efg-btn-primary:focus,
.efg-home .efg-btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.28) !important;
}
.efg-home .efg-btn-secondary:focus,
.efg-home .efg-btn-secondary:focus-visible {
  border-color: #0B1F3B !important;
  box-shadow: 0 0 0 3px rgba(11, 31, 59, 0.12) !important;
}

/* Hero trust strip — no underline / focus ring */
.efg-home .efg-trust,
.efg-home .efg-trust li,
.efg-home .efg-trust a,
.efg-home .efg-trust span {
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.efg-home .efg-btn-primary {
  background: var(--efg-red-func) !important;
  color: #fff !important;
  border: 0 !important;
}
.efg-home .efg-btn-primary:hover {
  background: #B0201F !important;
  color: #fff !important;
}

.efg-home a.efg-btn-secondary,
.efg-home .efg-btn-secondary {
  background: #fff !important;
  color: var(--efg-navy) !important;
  border: 1px solid #CBD5E1 !important;
  border-top: 1px solid #CBD5E1 !important;
  border-right: 1px solid #CBD5E1 !important;
  border-bottom: 1px solid #CBD5E1 !important;
  border-left: 1px solid #CBD5E1 !important;
}
.efg-home a.efg-btn-secondary:hover,
.efg-home .efg-btn-secondary:hover {
  border-color: #0B1F3B !important;
  background: #F4F6F9 !important;
  color: var(--efg-navy) !important;
}

.efg-home .efg-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--efg-red-func) !important;
  text-decoration: none;
  transition: gap .15s;
}
.efg-home .efg-link-arrow:hover { gap: 14px; color: var(--efg-red-func) !important; }

.efg-home .efg-card-hover {
  transition: box-shadow .2s, border-color .2s;
}
.efg-home .efg-card-hover:hover {
  box-shadow: 0 14px 36px rgba(11,31,59,0.12);
  border-color: #CBD5E1;
}

.efg-home .efg-compare-wide { display: block; }
.efg-home .efg-compare-narrow { display: none; }
@media (max-width: 899px) {
  .efg-home .efg-compare-wide { display: none; }
  .efg-home .efg-compare-narrow { display: grid; }
}

/* Capacity equation band */
.efg-home .efg-capacity-eq {
  margin: clamp(32px, 4vw, 52px) 0 0;
  background: #0B1F3B;
  border-radius: 12px;
  padding: clamp(26px, 3.2vw, 44px);
  position: relative;
  overflow: hidden;
  border: 0;
}
.efg-home .efg-capacity-eq__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.efg-home .efg-capacity-eq__shape--panel {
  position: absolute;
  right: 0;
  top: 0;
  width: 28%;
  height: 100%;
  background: #0E2747;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
.efg-home .efg-capacity-eq__shape--accent {
  position: absolute;
  right: 4%;
  bottom: -10%;
  width: 10%;
  height: 50%;
  background: #E53935;
  clip-path: polygon(0 100%, 100% 30%, 100% 100%);
  opacity: 0.85;
}
.efg-home .efg-capacity-eq__label {
  position: relative;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8FA6C0;
  text-decoration: none !important;
  border: 0 !important;
}
.efg-home .efg-capacity-eq__formula {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  font-weight: 700;
  font-size: clamp(19px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none !important;
}
.efg-home .efg-capacity-eq__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  color: #fff !important;
  background: transparent;
  text-decoration: none !important;
  box-shadow: none;
  line-height: 1.2;
}
.efg-home .efg-capacity-eq__pill--result {
  border: 0;
  background: #E53935;
  color: #fff !important;
}
.efg-home .efg-capacity-eq__op {
  color: #E53935 !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent;
  padding: 0;
  font-weight: 700;
}
.efg-home .efg-capacity-eq__copy {
  position: relative;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: #C7D4E4;
  max-width: 58ch;
  text-decoration: none !important;
  border: 0 !important;
}

/* Shared accordion (Illustrative examples + FAQ) — kill blue focus / underline */
.efg-home details,
.efg-home details summary,
.efg-home .efg-accordion,
.efg-home .efg-accordion__summary,
.efg-home .efg-faq__item,
.efg-home .efg-faq__summary {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.efg-home details summary::-webkit-details-marker,
.efg-home .efg-accordion__summary::-webkit-details-marker {
  display: none;
}
.efg-home details summary,
.efg-home .efg-accordion__summary {
  list-style: none;
  text-decoration: none !important;
  border: 0 !important;
}
.efg-home details summary:focus,
.efg-home details summary:focus-visible,
.efg-home details summary:active,
.efg-home .efg-accordion__summary:focus,
.efg-home .efg-accordion__summary:focus-visible,
.efg-home .efg-accordion__summary:active {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  text-decoration: none !important;
}

.efg-home .efg-examples__label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8FA6C0;
  font-family: var(--efg-font) !important;
}
.efg-home .efg-accordion {
  background: #F8FAFC;
  border: 1px solid #E3E8EF !important;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.efg-home .efg-accordion:last-child {
  margin-bottom: 0;
}
.efg-home .efg-accordion__summary {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px clamp(16px, 2vw, 24px);
  cursor: pointer;
  font-family: var(--efg-font) !important;
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 19px);
  color: #0B1F3B !important;
  background: transparent;
}
.efg-home .efg-accordion__dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.efg-home .efg-accordion__dot--blue { background: #2E6B9E; }
.efg-home .efg-accordion__dot--red { background: #E53935; }
.efg-home .efg-accordion__q {
  flex: 1;
  text-decoration: none !important;
  border: 0 !important;
  outline: none !important;
  font-family: var(--efg-font) !important;
}
.efg-home .efg-accordion__icon {
  color: #D32F2F;
  font-size: 20px;
  line-height: 1;
  flex: none;
  text-decoration: none !important;
}
.efg-home .efg-accordion[open] > .efg-accordion__summary .efg-accordion__icon {
  transform: rotate(45deg);
  display: inline-block;
}
.efg-home .efg-accordion__a {
  margin: 0;
  padding: 0 clamp(16px, 2vw, 24px) 22px 42px;
  font-size: 15px;
  line-height: 1.75;
  max-width: 74ch;
  color: #475569;
  font-family: var(--efg-font) !important;
  text-decoration: none !important;
}

/* FAQ accordion — no blue focus box / underline on summary */
.efg-home .efg-faq__item {
  background: #fff;
  border: 1px solid #E3E8EF !important;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  outline: none !important;
  box-shadow: none !important;
}
.efg-home .efg-faq__summary {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px clamp(16px, 2vw, 24px);
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 19px);
  color: #0B1F3B !important;
  list-style: none;
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  text-decoration: none !important;
  background: transparent;
}
.efg-home .efg-faq__summary::-webkit-details-marker { display: none; }
.efg-home .efg-faq__summary:focus,
.efg-home .efg-faq__summary:focus-visible,
.efg-home .efg-faq__summary:active,
.efg-home .efg-faq__item[open] > .efg-faq__summary {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  text-decoration: none !important;
}
.efg-home .efg-faq__q {
  flex: 1;
  text-decoration: none !important;
  border: 0 !important;
  outline: none !important;
}
.efg-home .efg-faq__icon {
  color: #D32F2F;
  font-size: 22px;
  line-height: 1;
  flex: none;
  text-decoration: none !important;
}
.efg-home .efg-faq__item[open] > .efg-faq__summary .efg-faq__icon {
  transform: rotate(45deg);
  display: inline-block;
}
.efg-home .efg-faq__a {
  margin: 0;
  padding: 0 clamp(16px, 2vw, 24px) 22px;
  font-size: 16px;
  line-height: 1.75;
  max-width: 74ch;
  color: #475569;
  text-decoration: none !important;
}

/* Contact Form 7 — same form as /contact-us/, new design skin */
.efg-cf7,
.contact-form .form-bg {
  background: #fff !important;
  border: 1px solid #E3E8EF !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 48px rgba(11, 31, 59, 0.12) !important;
  padding: clamp(22px, 2.6vw, 32px) !important;
}
.efg-cf7__intro h3 {
  margin: 0 0 6px;
  font-family: 'Poppins', system-ui, sans-serif !important;
  font-weight: 700;
  font-size: clamp(19px, 1.9vw, 23px);
  color: #0B1F3B;
  letter-spacing: -0.01em;
}
.efg-cf7__intro p {
  margin: 0 0 18px;
  font-family: 'Poppins', system-ui, sans-serif !important;
  font-size: 14px;
  line-height: 1.6;
  color: #64748B;
}
.efg-cf7 .service-enquiry,
.contact-form .service-enquiry {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.efg-cf7 .wpcf7-form,
.contact-form .wpcf7-form {
  background: transparent !important;
}
.efg-cf7 .form,
.contact-form .form {
  margin-top: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}
.efg-cf7 .wpcf7,
.efg-cf7 .wpcf7-form,
.contact-form .wpcf7,
.contact-form .wpcf7-form,
.efg-cf7 .service-enquiry,
.contact-form .service-enquiry {
  font-family: 'Poppins', system-ui, sans-serif !important;
}
.efg-cf7 .form-group,
.contact-form .form-group {
  margin-bottom: 14px !important;
}
.efg-cf7 .row,
.contact-form .service-enquiry .row {
  margin-left: -7px;
  margin-right: -7px;
}
.efg-cf7 .row > [class*="col-"],
.contact-form .service-enquiry .row > [class*="col-"] {
  padding-left: 7px;
  padding-right: 7px;
}
.efg-cf7 .form-control,
.efg-cf7 input[type="text"],
.efg-cf7 input[type="email"],
.efg-cf7 input[type="tel"],
.efg-cf7 select,
.efg-cf7 textarea,
.contact-form .form-control,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  min-height: 46px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: 'Poppins', system-ui, sans-serif !important;
  font-size: 15px !important;
  border-radius: 6px !important;
  background: #fff !important;
  border: 1px solid #CBD5E1 !important;
  padding: 10px 12px !important;
  color: #0B1F3B !important;
  box-shadow: none !important;
  outline: none !important;
}
.efg-cf7 .form-control:focus,
.contact-form .form-control:focus {
  border-color: #2E6B9E !important;
  box-shadow: 0 0 0 3px rgba(46, 107, 158, 0.15) !important;
  outline: none !important;
}
.efg-cf7 textarea,
.contact-form textarea {
  min-height: 120px !important;
  resize: vertical;
}
.efg-cf7 .wpcf7-submit,
.efg-cf7 input.wpcf7-submit,
.efg-cf7 .btn.product-button,
.contact-form .wpcf7-submit,
.contact-form input.wpcf7-submit,
.contact-form .btn.product-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 50px !important;
  background: #D32F2F !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-family: 'Poppins', system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  padding: 15px 26px !important;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
.efg-cf7 .wpcf7-submit:hover,
.efg-cf7 input.wpcf7-submit:hover,
.efg-cf7 .btn.product-button:hover,
.contact-form .wpcf7-submit:hover,
.contact-form input.wpcf7-submit:hover,
.contact-form .btn.product-button:hover {
  background: #B0201F !important;
  color: #fff !important;
}
.efg-cf7 .text-center,
.contact-form .text-center {
  text-align: left !important;
}
.efg-cf7 .cf7sr-g-recaptcha,
.contact-form .cf7sr-g-recaptcha {
  margin: 4px 0 12px;
}
.efg-cf7 .wpcf7-response-output,
.contact-form .wpcf7-response-output {
  margin: 12px 0 0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-family: 'Poppins', system-ui, sans-serif !important;
}
.efg-cf7 .wpcf7-not-valid-tip,
.contact-form .wpcf7-not-valid-tip {
  font-family: 'Poppins', system-ui, sans-serif !important;
  font-size: 13px !important;
  color: #D32F2F !important;
}

@media (prefers-reduced-motion: reduce) {
  .efg-home *,
  .efg-home *::before,
  .efg-home *::after {
    transition: none !important;
    animation: none !important;
  }
}
