/* Close #wrapper in footer.php; trim phantom page height below footer */

#wrapper {
  width: 100%;
}

/* Hero — vertical clip fix; avoid overflow-x:hidden here (it cut full-width CTA row past col-lg-8) */
#section-hero {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Swiper defaults to overflow:hidden/clip — clips absolutely positioned caption below slide */
#section-hero .swiper,
#section-hero .swiper-wrapper {
  overflow: visible !important;
}

#section-hero .mh-800 {
  min-height: min(96vh, 980px);
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
}

#section-hero .swiper-slide {
  isolation: isolate;
  overflow: visible;
}

#section-hero .swiper-slide .swiper-inner {
  z-index: 0;
}

#section-hero .section-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0 !important;
  padding-top: clamp(3.25rem, 11vh, 6.75rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  z-index: 25 !important;
  transform: none !important;
}

/* Hero CTAs — full container width; safe center avoids side-clipping when row overflows */
#section-hero .section-hero-cta-row {
  position: relative;
  z-index: 2;
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding-bottom: clamp(1.25rem, 3vh, 2rem);
  padding-top: 2px;
  padding-left: max(0.35rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.35rem, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  flex-wrap: nowrap !important;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  box-sizing: border-box;
}

/* Shared sizing — keeps markup minimal; flex-shrink avoids squashed labels */
#section-hero .section-hero-cta-row > a {
  flex-shrink: 0;
  font-size: 16px;
  padding: 0.65rem clamp(0.4rem, 1.2vw, 0.75rem);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  #section-hero .section-hero-cta-row > a {
    font-size: 18px !important;
    padding: 0.8rem clamp(0.55rem, 1.5vw, 1rem);
  }
}

@media (min-width: 992px) {
  #section-hero .section-hero-cta-row > a {
    padding: 0.875rem clamp(0.75rem, 2vw, 1.5rem);
  }
}

#section-hero .section-hero-cta-row .btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.25rem;
  border-radius: 6px;
  line-height: 1.35;
  transition: opacity 0.2s ease, transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#section-hero .section-hero-cta-row a.btn-main span {
  line-height: 1.35;
  vertical-align: middle;
}

#section-hero .section-hero-cta-row a.btn-curated-exhibitor,
#section-hero .section-hero-cta-row a.btn-curated-exhibitor:visited,
#section-hero .section-hero-cta-row a.btn-curated-exhibitor:active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 2px solid transparent !important;
}

#section-hero .section-hero-cta-row a.btn-curated-exhibitor span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#section-hero .section-hero-cta-row a.btn-main.btn-line {
  border: 2px solid #ffffff !important;
  background: rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#section-hero .section-hero-cta-row a.btn-main.btn-line span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#section-hero .section-hero-cta-row a.btn-main.btn-line:hover,
#section-hero .section-hero-cta-row a.btn-main.btn-line:focus {
  border-color: #ffffff !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Plain link (no .btn-main) so theme button/visited rules can’t hide it */
#section-hero .section-hero-cta-row a.section-hero-expand-link,
#section-hero .section-hero-cta-row a.section-hero-expand-link:visited,
#section-hero .section-hero-cta-row a.section-hero-expand-link:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.25rem;
  border-radius: 6px;
  line-height: 1.35;
  font-family: var(--body-font, "Manrope", system-ui, sans-serif);
  text-decoration: none !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 2;
}

#section-hero .section-hero-cta-row a.section-hero-expand-link:hover,
#section-hero .section-hero-cta-row a.section-hero-expand-link:focus {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  background: #f0f0f0 !important;
  background-color: #f0f0f0 !important;
  border-color: #ffffff !important;
}

#section-hero .section-hero-date-img {
  margin-bottom: 0.65rem;
}

#section-hero .section-hero-subtitle-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.25rem;
}

/* Footer — match design reference (gradient, glow line, typography) */
.site-footer.site-footer--design {
  padding-top: 56px !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  background: linear-gradient(180deg, #2d2658 0%, #1a1f38 42%, #0e111d 100%) !important;
  border-top: 1px solid rgba(118, 77, 240, 0.45);
  box-shadow: 0 -1px 0 rgba(168, 130, 255, 0.35), 0 -12px 40px rgba(88, 60, 180, 0.22);
  position: relative;
}

.site-footer.site-footer--design::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 130, 255, 0.9) 20%,
    rgba(118, 77, 240, 1) 50%,
    rgba(168, 130, 255, 0.9) 80%,
    transparent
  );
  pointer-events: none;
}

.footer-main-row {
  padding-bottom: 8px;
}

.footer-kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 0;
}

.footer-venue-line {
  font-weight: 700;
  color: #ffffff;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.45;
  margin-bottom: 0;
}

.footer-venue-line--event {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  margin-top: 0.35rem;
}

/* Cyan / teal contact accents (per design) */
.footer-contact-label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #5ce1e6;
  margin-bottom: 0;
}

.footer-contact-value,
.footer-contact-value a {
  font-weight: 400;
  font-size: 0.9375rem;
  color: #7ee8ec;
  text-decoration: none !important;
}

.footer-contact-value a:hover {
  color: #a8f4f7;
}

.footer-contact-sep {
  display: inline-block;
  margin: 0 0.35rem;
  color: rgba(124, 232, 236, 0.55);
  font-weight: 300;
}

/* Logo scales to fill its grid column (section fit) */
.footer-logo-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 992px) {
  .footer-logo-col {
    justify-content: flex-start;
  }
}

.footer-logo-link {
  display: block;
  width: 100%;
  max-width: 100%;
  line-height: 0;
}

.footer-brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 992px) {
  .footer-brand-logo {
    object-position: left center;
  }
}

.footer-logo-link:focus-visible {
  outline: 2px solid rgba(92, 225, 230, 0.6);
  outline-offset: 4px;
}

/* Copyright strip */
.site-footer.site-footer--design .site-footer__subfooter {
  margin-top: 48px !important;
  margin-bottom: 0 !important;
  padding-top: 28px !important;
  padding-bottom: 28px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

@media (max-width: 991.98px) {
  .site-footer.site-footer--design {
    padding-top: 40px !important;
  }

  .footer-brand-logo {
    max-height: min(180px, 28vh);
    object-position: center center;
  }

  .site-footer.site-footer--design .site-footer__subfooter {
    margin-top: 36px !important;
    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }
}

/* —— Media, Visibility & PR Reach (after Event Location) —— */
.section-media-block {
  --section-media-bg: #0a1224;
  background: var(--section-media-bg);
  padding-top: clamp(2.75rem, 5.5vw, 4.5rem);
  padding-bottom: 0;
}

.section-media-inner {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--bs-gutter-x, 0.75rem);
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* Split sections: same inner width/gutters as Media; no extra inner bottom pad (sections use py-80) */
#section-why-attend .section-media-inner,
#section-curated-buyer .section-media-inner,
#section-visitor-profile .section-media-inner,
#section-exhibitor-profile .section-media-inner {
  padding-bottom: 0;
}

/* Why attend — flush image to inner left on lg+; keep gutter on small screens */
#section-why-attend .section-media-inner {
  padding-left: 0;
}

@media (max-width: 991.98px) {
  #section-why-attend .section-media-inner {
    padding-left: var(--bs-gutter-x, 0.75rem);
  }
}

/* Visitor profile — flush image to inner right on lg+; gutter on small screens */
#section-visitor-profile .section-media-inner {
  padding-right: 0;
}

@media (max-width: 991.98px) {
  #section-visitor-profile .section-media-inner {
    padding-right: var(--bs-gutter-x, 0.75rem);
  }
}

/* Visitor — 2-2.png: 16:9 frame, cover (image column on the right) */
#section-visitor-profile .section-visitor-visual--16x9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px 0 0 6px;
}

#section-visitor-profile .section-visitor-visual--16x9 .section-visitor-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
}

.section-media-title {
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-media-lead {
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.65;
  max-width: 38rem;
}

.section-media-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.95rem;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

.section-media-bullets li:last-child {
  margin-bottom: 0;
}

.section-media-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.section-media-visual {
  position: relative;
  width: 100%;
  display: block;
  line-height: 0;
}

/* Left / right fade over full image (no crop — image keeps native aspect ratio) */
.section-media-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--section-media-bg) 0%,
    rgba(10, 18, 36, 0.85) 6%,
    rgba(10, 18, 36, 0.35) 14%,
    transparent 26%,
    transparent 74%,
    rgba(10, 18, 36, 0.35) 86%,
    rgba(10, 18, 36, 0.85) 94%,
    var(--section-media-bg) 100%
  );
  border-radius: 2px;
}

.section-media-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  position: relative;
  z-index: 0;
}

/* Slanted purple → blue bar (transition toward footer) */
.section-media-angled-bar {
  display: block;
  width: 100%;
  height: clamp(44px, 6vw, 64px);
  margin: 0;
  background: linear-gradient(
    100deg,
    #4f29b8 0%,
    #764df0 28%,
    #4a5fc9 58%,
    #2d6aa8 88%,
    #1e5a96 100%
  );
  clip-path: polygon(0 0, 100% 48%, 100% 100%, 0 100%);
  box-shadow: 0 -6px 24px rgba(88, 60, 200, 0.2);
}

/* Curated Buyer + Visitor + Why Exists — image column (full image, native aspect ratio) */
.section-curated-visual,
.section-visitor-visual,
.section-why-exists-visual {
  position: relative;
  width: 100%;
  border-radius: 2px;
  line-height: 0;
}

.section-curated-img,
.section-visitor-img,
.section-why-exists-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* Why attend — 1.png fills left column, anchored left (cover) */
#section-why-attend .section-why-exists-visual--fill-left {
  position: relative;
  min-height: clamp(240px, 46vh, 560px);
  overflow: hidden;
  border-radius: 0 6px 6px 0;
}

#section-why-attend .section-why-exists-visual--fill-left .section-why-exists-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  border-radius: inherit;
}

@media (min-width: 992px) {
  #section-why-attend .section-why-exists-visual--fill-left {
    min-height: clamp(320px, 52vh, 720px);
  }
}

/* Why AI TECH 2026 Exists — wide visual + navy text panel (mockup) */
section.section-why-exists {
  background: #0a1224;
}

/* Override theme .text-light h2 gradient (transparent text-fill) so copy stays visible */
#section-why-attend .section-why-exists-title {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

#section-why-attend .section-why-exists-lead {
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 600;
  line-height: 1.55;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.section-visitor-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
}

.section-visitor-subtitle {
  font-size: clamp(1.35rem, 2.5vw, 2.375rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
}

.section-curated-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.btn-curated-exhibitor {
  background: linear-gradient(90deg, #ff0055, #cc0044);
}

/* Exhibitor Profile — navy block, three columns, bottom strip image (native aspect, no crop) */
section.section-exhibitor-profile {
  background: #0a1224;
}

.section-exhibitor-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
}

.section-exhibitor-subtitle {
  font-size: clamp(1.35rem, 2.5vw, 2.375rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
}

.section-exhibitor-bullets li,
.section-why-exists-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: rgba(255, 255, 255, 0.98);
  line-height: 1.5;
}

.section-exhibitor-bullets li:last-child,
.section-why-exists-bullets li:last-child {
  margin-bottom: 0;
}

.section-exhibitor-bullets li::before,
.section-why-exists-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.section-exhibitor-columns {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Bottom strip: full width of inner column; image keeps native aspect ratio (no crop) */
.section-exhibitor-strip {
  margin-top: 0;
  line-height: 0;
  margin-left: calc(-1 * var(--bs-gutter-x, 0.75rem));
  margin-right: calc(-1 * var(--bs-gutter-x, 0.75rem));
  width: calc(100% + 2 * var(--bs-gutter-x, 0.75rem));
  max-width: none;
}

.section-exhibitor-strip-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Commercial Opportunity Snapshot — solid navy top, stats + CTAs, 4.png bottom with fade */
#section-commercial-snapshot.section-commercial-snapshot {
  --snapshot-navy: #0a1224;
  display: flex;
  flex-direction: column;
  background: var(--snapshot-navy);
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: 0;
}

#section-commercial-snapshot .section-media-inner.section-commercial-snapshot-content {
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.section-commercial-snapshot-title {
  font-size: clamp(1.85rem, 4.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
}

#section-commercial-snapshot .section-commercial-snapshot-value {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0;
}

.section-commercial-snapshot-label {
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
}

/* Purple CTA (theme primary) — left button in mockup */
.btn-snapshot-visitor {
  background: var(--primary-color) !important;
  border-color: transparent !important;
}

.btn-snapshot-visitor:hover,
.btn-snapshot-visitor:focus {
  filter: brightness(1.08);
  color: #fff !important;
}

.section-commercial-snapshot-strip {
  position: relative;
  width: 100%;
  margin-top: 0;
  line-height: 0;
}

/* Fade image top into section navy */
.section-commercial-snapshot-strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(72px, 18vw, 200px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--snapshot-navy, #0a1224) 0%,
    rgba(10, 18, 36, 0.55) 55%,
    transparent 100%
  );
}

.section-commercial-snapshot-strip-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 0;
}

/* Skrollr/Lenis: document root should not stay taller than real content */
html {
  height: auto !important;
}

body.dark-scheme {
  height: auto !important;
  min-height: 0 !important;
}
