/* AEVO Capital v5 - semantic responsive columns in Bootstrap 5 breakpoints.
   Standalone scoped grid so the existing AEVO visual design is not reset by Bootstrap's reboot.
   sm: >=576px | md: >=768px | lg: >=992px | xl: >=1200px.
   Original colors/gradient/type are intentionally unchanged. */
:root { --aevo-mobile-space:clamp(16px,4.5vw,26px) }
html{overflow-x:clip; -webkit-text-size-adjust:100%}
body{overflow-x:clip}
#dc-root, #dc-root > *,main,section,footer{min-width:0;max-width:100%}
/* Explicit row classes are stable even when React normalizes inline styles. */
.aevo-grid-row.row {display:grid!important;min-width:0;align-items:stretch;}
.aevo-grid-row.row > * {min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:break-word}
.aevo-grid-row.aevo-cols-2 {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.aevo-grid-row.aevo-cols-3 {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
.aevo-grid-row.aevo-cols-4 {grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr))!important;}
/* Cards and data controls cannot impose their intrinsic text width on the grid. */
.aevo-grid-row p,.aevo-grid-row h1,.aevo-grid-row h2,.aevo-grid-row h3,.aevo-grid-row h4,
.aevo-grid-row li,.aevo-grid-row a {overflow-wrap:break-word}
.aevo-grid-row input:not([type=checkbox]):not([type=radio]),
.aevo-grid-row textarea,.aevo-grid-row select{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.aevo-grid-row form,.aevo-grid-row .php-email-form{min-width:0;max-width:100%}
/* XL/Desktop: retain the original four-column footer and other layouts. */
@media (max-width:1199.98px){
  footer .aevo-grid-row.aevo-cols-4 {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:36px!important;}
}
/* MD tablets: content two-column sections now stack so text never becomes a sliver. */
@media (max-width:991.98px){
  main .aevo-grid-row.aevo-cols-2,
  section.aevo-grid-row.aevo-cols-2,
  section .aevo-grid-row.aevo-cols-2 {grid-template-columns:minmax(0,1fr)!important;gap:32px!important;}
  .aevo-grid-row.aevo-cols-3 {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important;}
  .aevo-grid-row.aevo-cols-4 {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px!important;}
  .aevo-grid-row > * {min-width:0!important;}
  section[style*="max-width:1280px"],section[style*="max-width: 1280px"] {padding-left:var(--aevo-mobile-space)!important;padding-right:var(--aevo-mobile-space)!important;}
}
/* Small tablets and phones: exactly one card/column per row, including footer. */
@media (max-width:767.98px){
  .aevo-grid-row.aevo-cols-2,
  .aevo-grid-row.aevo-cols-3,
  .aevo-grid-row.aevo-cols-4,
  footer .aevo-grid-row.aevo-cols-4 {grid-template-columns:minmax(0,1fr)!important;gap:22px!important;}
  .aevo-grid-row.aevo-cols-3 {gap:16px!important;}
  .aevo-grid-row.aevo-cols-3 > * {width:100%!important;}
  .aevo-grid-row.row:not(footer .aevo-grid-row) {align-items:stretch}
  .aevo-grid-row.aevo-cols-4 {gap:34px!important;}
  footer .aevo-grid-row.aevo-cols-4 {gap:34px!important;padding-bottom:36px!important;}
  footer .aevo-grid-row.aevo-cols-4 > div {width:100%!important;}
  footer .aevo-grid-row a,footer .aevo-grid-row p{max-width:100%;overflow-wrap:anywhere;word-break:normal;}
  footer .aevo-grid-row h5{line-height:1.55!important;}
  .aevo-grid-row form {width:100%!important;}
  .aevo-grid-row input,.aevo-grid-row textarea,.aevo-grid-row select {width:100%;min-width:0;}
  .aevo-grid-row input[type=checkbox] {width:auto!important;flex:0 0 auto;}
  .aevo-grid-row label {min-width:0;overflow-wrap:break-word;}
  .aevo-grid-row > .aevo-benefit-card {padding:24px 22px!important;}
  section.aevo-grid-row {padding-top:38px!important;padding-bottom:60px!important;}
  section[style*="max-width:1280px"]{padding-left:18px!important;padding-right:18px!important;}
  main h1, main h2,section h1,section h2 {overflow-wrap:normal;hyphens:auto;}
  a[href^="mailto:"] {overflow-wrap:anywhere}
  .aevo-grid-row .aevo-benefit-card h4 {font-size:1.15rem!important;line-height:1.38!important;}
  .aevo-grid-row .aevo-benefit-card p {font-size:.95rem!important;line-height:1.65!important;}
}
@media (max-width:479.98px){
  footer{padding-top:52px!important}
  .aevo-grid-row > div[style*="border-radius:22px"] {padding:24px 18px!important;}
  section.aevo-grid-row {gap:22px!important;}
  .aevo-grid-row > div[style*="border-radius:30px"] {padding:24px 20px!important;}
  .aevo-grid-row form button[type=submit] {max-width:100%!important;white-space:normal!important;}
}
