/*
Theme Name: EaseMyRisk Corporate
Author: EaseMyRisk
Description: Responsive corporate-services WordPress theme converted from the approved EaseMyRisk static website. Includes editable navigation, services by country, blog/resource layouts, FAQs, amendments, contact settings, and plugin-friendly WordPress templates.
Version: 1.3.3
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: nexabridge-corporate
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* WordPress integration and accessibility additions. The source visual system lives in assets/css/site.css. */
:root { --wp-admin-bar-offset: 0px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.screen-reader-text:focus { clip:auto!important; width:auto; height:auto; margin:0; padding:12px 16px; top:8px; left:8px; z-index:100000; background:#fff; color:#0c2438; box-shadow:0 1px 4px rgba(0,0,0,.2); }
.site-header .custom-logo { width:auto; max-height:48px; }
.site-header .brand-text { font-weight:800; color:#0c2438; text-decoration:none; }
.main-nav ul, .mobile-nav ul, .footer-links ul { list-style:none; padding:0; margin:0; }
.main-nav > ul { display:flex; align-items:center; gap:28px; }
.main-nav > ul > li { position:relative; }
.main-nav a { text-decoration:none; }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color:#1d9d7d; }
.main-nav .menu-item-has-children > a::after { content:""; font-family:"Font Awesome 6 Free"; font-weight:900; font-size:.72em; margin-left:.45rem; }
.main-nav > ul > li > .sub-menu { display:none; position:absolute; top:calc(100% + 18px); right:-140px; min-width:760px; padding:22px; background:#fff; border:1px solid rgba(12,36,56,.09); border-radius:18px; box-shadow:0 24px 60px rgba(12,36,56,.16); grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; z-index:110; }
.main-nav > ul > li:hover > .sub-menu, .main-nav > ul > li:focus-within > .sub-menu, .main-nav > ul > li.submenu-open > .sub-menu { display:grid; }
.main-nav > ul > li > .sub-menu > li { padding:4px 10px; }
.main-nav > ul > li > .sub-menu > li > a { display:block; font-weight:800; color:#0c2438; margin-bottom:10px; }
.main-nav > ul > li > .sub-menu > li > a::after { display:none; }
.main-nav .sub-menu .sub-menu { display:grid; gap:8px; position:static; box-shadow:none; border:0; padding:0; min-width:0; }
.main-nav .sub-menu .sub-menu a { display:block; padding:10px 12px; border-radius:10px; color:#334a5c; }
.main-nav .sub-menu .sub-menu a:hover, .main-nav .sub-menu .sub-menu a:focus { background:#eef8f5; color:#137a63; }
.mobile-nav { overflow-y:auto; }
.mobile-nav .menu { padding:0; margin:0; list-style:none; }
.mobile-nav .menu > li > a { display:block; padding:14px 0; }
.mobile-nav .menu-item-has-children { position:relative; }
.mobile-nav .submenu-toggle { position:absolute; right:0; top:7px; width:42px; height:42px; border:0; background:transparent; font-size:1rem; }
.mobile-nav .sub-menu { display:none; padding-left:16px; }
.mobile-nav .submenu-open > .sub-menu { display:block; }
.mobile-nav .sub-menu a { display:block; padding:10px 0; }
.footer-links .menu { display:grid; gap:10px; }
.footer-links a { color:inherit; text-decoration:none; }
.footer-social-link i { font-size:1rem; }
.nexa-service-panels > [data-country-panel] { display:none; }
.nexa-service-panels > [data-country-panel].active { display:grid; }
.nexa-contact-status { margin:0 0 18px; padding:12px 14px; border-radius:10px; background:#e7f7f1; color:#0c624f; }
.nexa-contact-status.error { background:#fff0f0; color:#9c2727; }
.nexa-hp { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.page-content > :first-child { margin-top:0; }
.wp-block-image img { max-width:100%; height:auto; }
.pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:42px; padding:0 12px; border:1px solid rgba(12,36,56,.14); border-radius:10px; text-decoration:none; color:#0c2438; background:#fff; }
.pagination .page-numbers.current { background:#1d9d7d; color:#fff; border-color:#1d9d7d; }
.pagination { gap:8px; flex-wrap:wrap; }
.archive-filter select, .archive-filter input { min-height:48px; }
.post-edit-link { display:inline-flex; margin:18px 0; }
.comment-list { list-style:none; padding:0; }
@media (max-width:920px) {
  .main-nav { display:none; }
  .main-nav > ul { display:none; }
}

/* v1.0.1 client-review fixes */
.footer-brand .footer-brand-link {
  display: inline-flex;
  max-width: 100%;
}
.footer-brand img.footer-logo {
  width: 205px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
}
.whatsapp-mark i {
  font-size: 1rem;
  line-height: 1;
}
.country-mega-link .mini-icon i {
  font-size: 18px;
  line-height: 1;
}
.nav-item > .nav-link > i:last-child {
  font-size: .72em;
  transition: transform .2s ease;
}
.nav-item:hover > .nav-link > i:last-child,
.nav-item.open > .nav-link > i:last-child {
  transform: rotate(180deg);
}

/* The amendment archive has one extra category filter compared with the static
   four-control listing, so give all five controls a deliberate desktop column. */
.archive-filter {
  grid-template-columns: minmax(260px, 1.45fr) minmax(150px, .72fr) minmax(150px, .72fr) minmax(140px, .62fr) auto;
}

@media (max-width: 1120px) {
  .archive-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .archive-filter .filter-search-btn {
    grid-column: 1 / -1;
  }
  .process-grid:not(.reference-process) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .archive-filter,
  .process-grid:not(.reference-process) {
    grid-template-columns: 1fr;
  }
  .archive-filter .filter-search-btn {
    grid-column: auto;
  }
}


/* Client-approved service visual spacing. */
.service-hero-visual{
    display: flex;
    margin: 20px 10px;
    gap: 10px;
}

/* v1.2.0: compact layout, aligned content, country sliders and responsive polish. */
:root { --container: 1420px; }
.container { width: min(calc(100% - 64px), var(--container)); }
.section { padding-block: 60px; }
.section-sm { padding-block: 42px; }
.section-title { margin-bottom: 25px; }
.section-title p { margin-top: 9px; }
.section-heading-row { gap: 22px; margin-bottom: 16px; }
.section-heading-row .section-title { margin-bottom: 0; }
.content-carousel-controls { margin-top: 16px; }
.carousel-controls { gap: 13px; }

/* Hero: three well-spaced lines at standard desktop widths; stats align with About. */
body[data-page="home"] .hero-text-layout { min-height: 0; }
body[data-page="home"] .hero-copy-wide {
  width: min(100%, 1340px);
  padding: 46px 0 35px;
}
body[data-page="home"] .hero-copy-wide h1 {
  max-width: 1290px;
  font-size: clamp(2.55rem, 4vw, 4.3rem);
  line-height: 1.075;
  letter-spacing: -0.052em;
  text-wrap: balance;
}
body[data-page="home"] .hero-copy-wide > p {
  max-width: 865px;
  margin: 19px auto 19px;
  font-size: 1.05rem;
}
body[data-page="home"] .hero-whatsapp-cta { min-height: 54px; padding: 12px 24px; }
body[data-page="home"] .hero-copy-wide .hero-proof {
  margin: 16px auto 0;
  padding: 8px 14px;
}
body[data-page="home"] .stats-container {
  width: min(calc(100% - 64px), var(--container));
}
body[data-page="home"] .hero-stats .stat { min-height: 100px; padding: 18px 28px; }
body[data-page="home"] .hero-stats .stat strong,
body[data-page="home"] .hero-stats .stat .nexa-stat-number { font-size: 2rem; }
body[data-page="home"] .hero-stats .stat .nexa-stat-label { margin-top: 7px; }
body[data-page="home"] .intro-section { padding-top: 54px; }
body[data-page="home"] .intro-grid { gap: clamp(22px, 4vw, 60px); }
body[data-page="home"] .intro-copy p { margin-block: 12px; }
body[data-page="home"] .intro-points { margin-top: 14px; }

/* Tabs sit across from the service heading; 'View all' is below the cards. */
body[data-page="home"] #services > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 22px;
  align-items: start;
}
body[data-page="home"] #services .section-heading-row {
  display: block;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  min-width: 0;
}
body[data-page="home"] #services .section-heading-row > .text-arrow { display: none; }
body[data-page="home"] #services .section-title { margin: 0; }
body[data-page="home"] #services .country-service-tabs {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}
body[data-page="home"] #services .nexa-service-panels {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  margin-top: 18px;
}
body[data-page="home"] #services .nexa-services-view-all {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: end;
  margin-top: 8px;
}
/* Override legacy .active{display:grid} now that a country contains a carousel. */
body[data-page="home"] #services .nexa-service-panels > .nexa-country-panel.active { display: block; }
body[data-page="home"] [data-country-panel][hidden] { display: none !important; }
body[data-page="home"] .country-service-tab { min-width: 142px; }
body[data-page="home"] .country-service-tabs { scrollbar-width: thin; }
body[data-page="home"] .country-service-tab:focus-visible,
body[data-page="home"] .carousel-btn:focus-visible,
body[data-page="home"] .text-arrow:focus-visible,
body[data-page="home"] .faq-question:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; }
body[data-page="home"] .nexa-services-carousel .content-carousel-viewport { margin: 0 -8px; }
body[data-page="home"] .nexa-services-carousel .content-carousel-slide { padding: 0 8px; }
body[data-page="home"] .nexa-services-carousel .service-card {
  height: 100%;
  min-height: 310px;
  padding: 22px;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
body[data-page="home"] .nexa-services-carousel .service-card h3 { margin: 12px 0 9px; font-size: 1.05rem; }
body[data-page="home"] .nexa-services-carousel .service-country-label { margin: 11px 0 -2px; }
body[data-page="home"] .service-description { font-size: 0.86rem; line-height: 1.58; color: var(--muted); }
body[data-page="home"] .service-description p { margin: 0 0 8px; font-size: inherit; line-height: inherit; }
body[data-page="home"] .service-description ul,
body[data-page="home"] .service-description ol { margin: 5px 0 10px; padding-left: 19px; }
body[data-page="home"] .nexa-services-carousel .service-actions { margin-top: auto; padding-top: 14px; }
body[data-page="home"] .nexa-country-empty { margin: 10px 0 18px; padding: 24px; border: 1px solid var(--line); border-radius: 9px; text-align: center; }

/* Three testimonial cards at a time, with readable text and consistent heights. */
body[data-page="home"] .testimonial-section .section-title { margin-bottom: 18px; }
body[data-page="home"] .nexa-testimonials-carousel .testimonial-card {
  width: 100%; max-width: none; height: 100%; min-height: 255px;
  padding: 27px 23px;
  text-align: left;
  border-radius: 10px;
  justify-content: flex-start;
  box-shadow: 0 7px 22px rgba(18,53,91,.05);
}
body[data-page="home"] .nexa-testimonials-carousel .quote-mark { font-size: 3.5rem; }
body[data-page="home"] .nexa-testimonials-carousel .testimonial-card blockquote {
  width: 100%; margin: 14px 0 19px; flex: 1;
  color: #38586d; font-size: .92rem; line-height: 1.62;
}
body[data-page="home"] .nexa-testimonials-carousel .testimonial-card blockquote p { margin: 0 0 8px; }
body[data-page="home"] .nexa-testimonials-carousel .testimonial-person { justify-content: flex-start; }
body[data-page="home"] .nexa-testimonials-carousel .avatar { width: 43px; height: 43px; flex: 0 0 43px; }
body[data-page="home"] .nexa-testimonials-carousel .content-carousel-viewport { margin: 0 -8px; }
body[data-page="home"] .nexa-testimonials-carousel .content-carousel-slide { padding-inline: 8px; }

/* Country tabs/FAQs share the full section width used by amendment cards. */
body[data-page="home"] .faq-home .section-title.center { max-width: 980px; margin-bottom: 17px; }
body[data-page="home"] .faq-home .country-service-tabs {
  justify-content: center; width: 100%; margin: 0 0 20px;
  padding: 0 0 3px;
}
body[data-page="home"] .faq-list-wide { max-width: none; margin-inline: 0; gap: 8px; }
body[data-page="home"] .faq-item { border-radius: 8px; overflow: hidden; }
body[data-page="home"] .faq-question { min-height: 58px; padding: 14px 20px; }
body[data-page="home"] .faq-answer p { padding-inline: 20px; }
body[data-page="home"] .faq-home .nexa-country-empty { max-width: 920px; margin: auto; }
body.nexa-hide-home-resources .resources-home,
body.nexa-hide-home-amendments .amendments-home { display: none !important; }

/* Tighten About-page blocks without modifying their editable WordPress content. */
body[data-page="about"] main > section:not(.page-hero),
body[data-page="about-us"] main > section:not(.page-hero) { padding-block: 44px; }
body[data-page="about"] .page-hero,
body[data-page="about-us"] .page-hero { padding-block: 48px; }
body[data-page="about"] .container.split:not(.nexa-about-row),
body[data-page="about-us"] .container.split:not(.nexa-about-row) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.3vw, 55px);
}
body[data-page="about"] .container.split:not(.nexa-about-row) > *,
body[data-page="about-us"] .container.split:not(.nexa-about-row) > * { min-width: 0; }


body[data-page="about"] .container.split:not(.nexa-about-row) .wp-block-image,
body[data-page="about-us"] .container.split:not(.nexa-about-row) .wp-block-image { margin: 0; }
body[data-page="about"] .container.split:not(.nexa-about-row) img,
body[data-page="about-us"] .container.split:not(.nexa-about-row) img { width: 100%; max-height: 370px; object-fit: contain; }
body[data-page="about"] .container.split:not(.nexa-about-row) .split-image,
body[data-page="about-us"] .container.split:not(.nexa-about-row) .split-image { min-height: 0; }
body[data-page="about"] .container.split:not(.nexa-about-row) .split-image img,
body[data-page="about-us"] .container.split:not(.nexa-about-row) .split-image img { min-height: 0; }
body[data-page="about"] .container.split:not(.nexa-about-row) .split-image .wp-block-image,
body[data-page="about-us"] .container.split:not(.nexa-about-row) .split-image .wp-block-image { min-height: 0; height: auto; }
body[data-page="about"] .container.split:not(.nexa-about-row) .split-image .wp-block-image img,
body[data-page="about-us"] .container.split:not(.nexa-about-row) .split-image .wp-block-image img { height: auto; min-height: 0; max-height: 340px; object-position: center; }
body[data-page="about"] main > section + section,
body[data-page="about-us"] main > section + section { margin-block-start: 0; }
body[data-page="about"] .container.split:not(.nexa-about-row) > .wp-block-group,
body[data-page="about-us"] .container.split:not(.nexa-about-row) > .wp-block-group { margin-block-start: 0; margin-block-end: 0; }
body[data-page="about"] main > section .wp-block-columns:not(.nexa-about-row),
body[data-page="about-us"] main > section .wp-block-columns:not(.nexa-about-row) { gap: clamp(22px, 3.3vw, 50px); margin-block: 0; align-items: center; }
body[data-page="about"] main > section .wp-block-columns:not(.nexa-about-row) img,
body[data-page="about-us"] main > section .wp-block-columns:not(.nexa-about-row) img { width: 100%; max-height: 350px; object-fit: contain; }

body[data-page="about"] .container.split:not(.nexa-about-row) h2,
body[data-page="about-us"] .container.split:not(.nexa-about-row) h2 { margin-bottom: 12px; }
body[data-page="about"] .container.split:not(.nexa-about-row) p,
body[data-page="about-us"] .container.split:not(.nexa-about-row) p { margin-block: 10px; }
body[data-page="about"] .value-grid,
body[data-page="about-us"] .value-grid { gap: 14px; }
body[data-page="about"] .section-title,
body[data-page="about-us"] .section-title { margin-bottom: 22px; }

/* Full archive hero retained, content replaces filters/cards when enabled. */
.nexa-coming-soon { min-height: 260px; display: grid; place-items: center; }
.nexa-coming-soon-content { max-width: 800px; margin-inline: auto; text-align: center; }
.nexa-coming-soon-content .eyebrow { justify-content: center; }
.nexa-coming-soon-content h2 { margin: 0 0 12px; color: var(--navy); font-size: clamp(2rem, 3.5vw, 3rem); }
.nexa-coming-soon-content p { margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }
.country-service-description { color: var(--muted); line-height: 1.62; }
.country-service-description > :first-child { margin-top: 0; }
.country-service-description > :last-child { margin-bottom: 0; }
.country-service-description ul,
.country-service-description ol { padding-left: 22px; }

@media (max-width: 1120px) {
  .container { width: calc(100% - 48px); }
  body[data-page="home"] .stats-container { width: calc(100% - 48px); }
  body[data-page="home"] .hero-copy-wide h1 { font-size: clamp(2.5rem, 4.8vw, 3.65rem); }
  body[data-page="home"] #services .country-service-tabs { max-width: 340px; }
  body[data-page="home"] #services .country-service-tab { min-width: 135px; }
}
@media (max-width: 920px) {
  .section { padding-block: 48px; }
  .section-sm { padding-block: 36px; }
  body[data-page="home"] .hero-copy-wide { padding: 36px 0 28px; }
  body[data-page="home"] .hero-copy-wide h1 { font-size: clamp(2.2rem, 5vw, 3.1rem); }
  body[data-page="home"] .hero-copy-wide > p { font-size: .98rem; }
  body[data-page="home"] .intro-grid { gap: 25px; }
  body[data-page="home"] .nexa-testimonials-carousel .testimonial-card { padding: 23px; }
  body[data-page="about"] .container.split:not(.nexa-about-row),
  body[data-page="about-us"] .container.split:not(.nexa-about-row) { grid-template-columns: 1fr; gap: 22px; }
  
  body[data-page="about"] main > section:not(.page-hero),
  body[data-page="about-us"] main > section:not(.page-hero) { padding-block: 34px; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .section { padding-block: 39px; }
  .section-sm { padding-block: 32px; }
  .section-title { margin-bottom: 20px; }
  body[data-page="home"] .hero-copy-wide { padding: 30px 0 22px; }
  body[data-page="home"] .hero-copy-wide h1 { font-size: clamp(2rem, 8.2vw, 2.65rem); letter-spacing: -0.04em; }
  body[data-page="home"] .hero-copy-wide > p { margin: 17px auto 19px; }
  body[data-page="home"] .hero-copy-wide .hero-proof { width: 100%; margin-top: 13px; font-size: .74rem; flex-wrap: wrap; }
  body[data-page="home"] .stats-container { width: calc(100% - 32px); }
  body[data-page="home"] .hero-stats .stat { min-height: 90px; padding: 14px 12px; }
  body[data-page="home"] .hero-stats .stat strong,
  body[data-page="home"] .hero-stats .stat .nexa-stat-number { font-size: 1.6rem; }
  body[data-page="home"] .hero-stats .stat .nexa-stat-label { font-size: .7rem; }
  body[data-page="home"] .intro-section { padding-top: 36px; }
  body[data-page="home"] #services > .container { grid-template-columns: minmax(0,1fr); }
  body[data-page="home"] #services .section-heading-row { grid-row: 1; grid-column: 1; }
  body[data-page="home"] #services .country-service-tabs {
    grid-column: 1; grid-row: 2; max-width: 100%; margin: 15px 0 0;
    align-self: start; justify-content: flex-start; gap: 8px;
  }
  body[data-page="home"] #services .country-service-tab { min-width: 0; flex: 0 0 auto; padding-inline: 15px; }
  body[data-page="home"] #services .nexa-service-panels { grid-column: 1; grid-row: 3; margin-top: 12px; }
  body[data-page="home"] #services .nexa-services-view-all { grid-column: 1; grid-row: 4; }
  body[data-page="home"] .faq-home .country-service-tabs { margin: 0 auto 16px; }
  body[data-page="home"] .faq-home .country-service-tab { min-width: 0; flex: 0 0 auto; }
  body[data-page="home"] .nexa-services-carousel .service-card { min-height: 285px; padding: 19px; }
  body[data-page="home"] .testimonial-section .section-title { margin-bottom: 12px; }
  body[data-page="home"] .nexa-testimonials-carousel .testimonial-card { min-height: 210px; padding: 20px; }
  body[data-page="home"] .nexa-testimonials-carousel .testimonial-card blockquote { margin-block: 12px; }
  body[data-page="home"] .faq-question { min-height: 54px; padding: 13px 16px; }
  body[data-page="home"] .faq-answer p { padding-inline: 16px; }
  body[data-page="about"] .page-hero,
  body[data-page="about-us"] .page-hero { padding-block: 36px; }
  body[data-page="about"] main > section:not(.page-hero),
  body[data-page="about-us"] main > section:not(.page-hero) { padding-block: 28px; }
  .nexa-coming-soon { min-height: 190px; }
}

/* Layout order targets the image column, even when editor blocks put it first. */




@media (max-width: 920px) {
  
}

/* v1.2.1 client refinements: align the service CTA with its eyebrow, tighten
   the carousel sections, and give edited About rows one consistent rhythm. */

/* Front-end fallback when JavaScript is not yet ready: keep the link visible
   near the heading rather than below the slider. */
body[data-page="home"] #services > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 22px;
}
body[data-page="home"] #services > .container > .section-heading-row {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-width: 0;
}
body[data-page="home"] #services > .container > .nexa-services-view-all {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin-top: 0;
}
body[data-page="home"] #services > .container > .country-service-tabs {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: center;
}
body[data-page="home"] #services .nexa-service-panels {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 12px;
}

/* After progressive enhancement the real, country-aware link is on exactly
   the same line as WHAT WE DO. Tabs remain across from the heading/intro. */
body[data-page="home"] #services .section-heading-row.nexa-services-heading-ready {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 18px;
  align-items: center;
  width: 100%;
  margin: 0;
}
body[data-page="home"] #services .nexa-services-topline {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 8px;
}
body[data-page="home"] #services .nexa-services-topline .section-label,
body[data-page="home"] #services .nexa-services-topline .eyebrow {
  margin: 0;
}
body[data-page="home"] #services .nexa-services-topline .nexa-services-view-all {
  display: inline-flex;
  position: static;
  width: auto;
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.9rem;
}
body[data-page="home"] #services .nexa-services-heading-ready .section-title {
  grid-column: 1;
  grid-row: 2;
  max-width: none;
  width: 100%;
  margin: 0;
}
body[data-page="home"] #services .nexa-services-heading-ready .section-title h2 {
  margin: 0;
}
body[data-page="home"] #services .nexa-services-heading-ready .section-title p {
  margin: 5px 0 0;
  line-height: 1.5;
}
body[data-page="home"] #services .nexa-services-heading-ready .country-service-tabs {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: center;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
body[data-page="home"] #services .nexa-services-heading-ready + .nexa-service-panels {
  grid-row: 2;
  margin-top: 12px;
}
body[data-page="home"] #services .nexa-services-carousel .content-carousel-controls {
  margin-top: 12px;
}

/* Testimonials: shorten the space after the quotation mark, use compact
   cards, and reduce the white band before the country-specific FAQs. */
body[data-page="home"] .testimonial-section {
  padding-block: 40px 28px;
}
body[data-page="home"] .testimonial-section .section-title {
  margin-bottom: 14px;
}
body[data-page="home"] .nexa-testimonials-carousel .testimonial-card {
  min-height: 210px;
  padding: 19px 21px 18px;
}
body[data-page="home"] .nexa-testimonials-carousel .quote-mark {
  font-size: 2.9rem;
  line-height: 0.75;
}
body[data-page="home"] .nexa-testimonials-carousel .testimonial-card blockquote {
  margin: 5px 0 14px;
  font-size: 0.9rem;
  line-height: 1.55;
}
body[data-page="home"] .nexa-testimonials-carousel .testimonial-card blockquote p {
  margin-block: 0 5px;
}
body[data-page="home"] .nexa-testimonials-carousel .testimonial-person {
  margin-top: auto;
}
body[data-page="home"] .nexa-testimonials-carousel .content-carousel-controls {
  margin-top: 12px;
}
body[data-page="home"] .faq-home {
  padding-top: 39px;
  padding-bottom: 46px;
}

/* About: all alternating text/image rows share the same gap, paragraph rhythm,
   vertical alignment and maximum visual size. Non-alternating sections are
   unaffected; the editor may explicitly choose image left or right per row. */
body[data-page="about"] main > section:not(.page-hero),
body[data-page="about-us"] main > section:not(.page-hero) {
  padding-block: 50px;
}









/* v1.3.0: the six About rows use their saved Group order and the shared
   about-split-rows.css layout in Gutenberg and on the public website. */





/* Keep the WhatsApp icon, text, and arrow in one flex row on mobile. The copy
   may use two lines on very narrow devices, but the arrow never sits alone. */
@media (max-width: 920px) {
  
  
  body[data-page="about"] main > section:not(.page-hero),
  body[data-page="about-us"] main > section:not(.page-hero) {
    padding-block: 36px;
  }
  
}
@media (max-width: 680px) {
  body[data-page="home"] #services .section-heading-row.nexa-services-heading-ready {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body[data-page="home"] #services .nexa-services-topline {
    margin-bottom: 9px;
  }
  body[data-page="home"] #services .nexa-services-topline .nexa-services-view-all {
    font-size: .8rem;
    padding-block: 4px;
  }
  body[data-page="home"] #services .nexa-services-heading-ready .section-title {
    width: 100%;
  }
  body[data-page="home"] #services .nexa-services-heading-ready .country-service-tabs {
    align-self: stretch;
    justify-content: flex-start;
    width: 100%;
    margin: 12px 0 0;
    padding: 0 0 2px;
    gap: 8px;
  }
  body[data-page="home"] #services .nexa-services-heading-ready + .nexa-service-panels {
    margin-top: 10px;
  }
  body[data-page="home"] .hero-whatsapp-cta {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 10px 10px;
    font-size: clamp(.72rem, 3.3vw, .88rem);
    line-height: 1.32;
    text-align: center;
    white-space: normal;
  }
  body[data-page="home"] .hero-whatsapp-cta .whatsapp-mark {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    font-size: .58rem;
  }
  body[data-page="home"] .hero-whatsapp-cta > span:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  body[data-page="home"] .testimonial-section { padding-block: 32px 24px; }
  body[data-page="home"] .nexa-testimonials-carousel .testimonial-card {
    min-height: 190px;
    padding: 18px;
  }
  body[data-page="home"] .faq-home { padding-top: 32px; }
  body[data-page="about"] main > section:not(.page-hero),
  body[data-page="about-us"] main > section:not(.page-hero) { padding-block: 28px; }
  
  
  
}
@media (max-width: 360px) {
  body[data-page="home"] .hero-whatsapp-cta {
    padding-inline: 7px;
    gap: 5px;
    font-size: .7rem;
  }
  body[data-page="home"] .hero-whatsapp-cta .whatsapp-mark {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}
/* A script-disabled phone still gets a single-column Services arrangement. */
@media (max-width: 680px) {
  body[data-page="home"] #services > .container > .section-heading-row {
    grid-column: 1;
    grid-row: 1;
  }
  body[data-page="home"] #services > .container > .country-service-tabs {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin: 12px 0 0;
  }
  body[data-page="home"] #services > .container > .nexa-service-panels {
    grid-column: 1;
    grid-row: 3;
  }
  body[data-page="home"] #services > .container > .nexa-services-view-all {
    grid-column: 1;
    grid-row: 4;
    justify-self: end;
  }
}


/* v1.2.2: remove the empty grid track above Core Services cards.
   Heading and shortcode content share normal document flow; only the heading
   itself uses the two-column desktop grid. This also tolerates WP auto-paragraphs. */
body[data-page="home"] #services > .container {
  display: block !important;
}
body[data-page="home"] #services > .container > .section-heading-row.nexa-services-heading-ready {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 18px;
  margin: 0 !important;
  padding: 0;
}
body[data-page="home"] #services .section-heading-row.nexa-services-heading-ready .section-title {
  margin: 0 !important;
}
body[data-page="home"] #services .nexa-service-panels,
body[data-page="home"] #services .nexa-services-heading-ready + .nexa-service-panels {
  display: block;
  clear: both;
  margin: 8px 0 0 !important;
  padding: 0;
}
body[data-page="home"] #services > .container > p:empty,
body[data-page="home"] #services > .container > p:has(> br:only-child) {
  display: none;
}
body[data-page="home"] #services .nexa-service-panels > .nexa-country-panel {
  margin: 0;
  padding: 0;
}
body[data-page="home"] #services .nexa-services-topline { margin-bottom: 7px; }
@media (max-width: 680px) {
  body[data-page="home"] #services > .container > .section-heading-row.nexa-services-heading-ready {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body[data-page="home"] #services .nexa-service-panels,
  body[data-page="home"] #services .nexa-services-heading-ready + .nexa-service-panels {
    margin-top: 9px !important;
  }
}

/* v1.2.3: Mobile Core Services — remove the old empty strip between the
   summary and country tabs. Gutenberg's generic flow spacing must not make
   the compact heading row tall, whether or not the JS enhancement has run. */
@media (max-width: 680px) {
  body[data-page="home"] #services .section-heading-row,
  body[data-page="home"] #services .section-heading-row.nexa-services-heading-ready {
    margin-block-end: 0 !important;
    padding-block-end: 0 !important;
    row-gap: 0 !important;
  }
  body[data-page="home"] #services .section-heading-row .section-title,
  body[data-page="home"] #services .section-heading-row .section-title > :last-child {
    margin-block-end: 0 !important;
    padding-block-end: 0 !important;
  }
  body[data-page="home"] #services .section-heading-row .section-title p {
    margin: 5px 0 0 !important;
    line-height: 1.48;
  }
  body[data-page="home"] #services .section-heading-row.nexa-services-heading-ready .country-service-tabs,
  body[data-page="home"] #services > .container > .country-service-tabs {
    margin: 9px 0 0 !important;
    padding: 0 !important;
    gap: 8px;
  }
  body[data-page="home"] #services .nexa-service-panels,
  body[data-page="home"] #services .nexa-services-heading-ready + .nexa-service-panels {
    margin-top: 12px !important;
  }
}

/* v1.3.2: On phones, show the complete About/Contact hero artwork.
   Their Image blocks are landscape 1200x720 graphics; the generic 280px
   fixed-height cover rule crops both sides, cutting cards and text.  The
   archive's separately rendered Amendments artwork is intentionally untouched. */
@media (max-width: 680px) {
  body[data-page="about"] .page-hero-art,
  body[data-page="about-us"] .page-hero-art,
  body[data-page="contact"] .page-hero-art,
  body[data-page="contact-us"] .page-hero-art {
    min-height: 0;
    height: auto;
  }
  body[data-page="about"] .page-hero-art .wp-block-image,
  body[data-page="about-us"] .page-hero-art .wp-block-image,
  body[data-page="contact"] .page-hero-art .wp-block-image,
  body[data-page="contact-us"] .page-hero-art .wp-block-image,
  body[data-page="contact"] .page-hero-art > .nexa-contact-hero-image,
  body[data-page="contact-us"] .page-hero-art > .nexa-contact-hero-image {
    height: auto !important;
    min-height: 0;
  }
  body[data-page="about"] .page-hero-art .wp-block-image img,
  body[data-page="about-us"] .page-hero-art .wp-block-image img,
  body[data-page="contact"] .page-hero-art .wp-block-image img,
  body[data-page="contact-us"] .page-hero-art .wp-block-image img,
  body[data-page="contact"] .page-hero-art > .nexa-contact-hero-image,
  body[data-page="contact-us"] .page-hero-art > .nexa-contact-hero-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto !important;
    object-fit: contain !important;
    object-position: center;
  }
}
