:root{
  --xl-brand:#8B4A4A;         /* CTA maroon (from comp) */
  --xl-bg-warm-1:#F3E6DA;     /* hero top */
  --xl-bg-warm-2:#FAF7F2;     /* hero bottom */
  --xl-dark:#1C1C1C;
  --xl-text:#2A2A2A;
  --xl-muted:#6F6F6F;
  --xl-max:1400px;
  --xl-gap:clamp(20px, 4vw, 60px);
}

/* ------------------- Container width (scoped) ------------------- */
.xl-container .entry-content > *{
  max-width: var(--xl-max);
  margin-left:auto;
  margin-right:auto;
}

/* Ensure full‑width/alignfull blocks can escape the max-width rule above */
.xl-container .entry-content > .alignwide,
.xl-container .entry-content > .alignfull{
  max-width: none;
}

/* ------------------- Sections & titles ------------------- */
.xl-section{
  padding: clamp(50px, 7vw, 100px) clamp(20px, 5vw, 80px);
}
.xl-section-title{
  margin: 0 0 30px;
  font-size: clamp(32px, 5vw, 56px);
  line-height:1.2;
  font-weight:700;
  color: var(--xl-dark);
  text-align:center;
}

/* ------------------- HERO ------------------- */
.xl-hero{
  /* full‑bleed hero (match ref comp) */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background: linear-gradient(180deg, var(--xl-bg-warm-1) 0%, var(--xl-bg-warm-2) 100%);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
}
.xl-hero .wp-block-cover__inner-container{
  max-width: var(--xl-max);
  width: 100%;
  margin: 0 auto;
  display:block; /* normal flow; device is absolutely positioned */
}
.xl-hero-content-wrapper{
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin-inline: auto;
  text-align:center;
}
.xl-hero-title{
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--xl-dark);
  font-weight: 700;
}
.xl-hero-desc{
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--xl-text);
  margin: 0 0 18px;
  line-height: 1.6;
}
.xl-hero-features{
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--xl-muted);
  margin: 0 0 22px;
  line-height: 1.5;
}
.xl-hero .wp-block-buttons{
  margin-bottom: 0;
  justify-content: center;
}

/* Device image — fixed to right edge like the comp */
.xl-hero-device-absolute{
  position: absolute;
  right: clamp(-24px, 4vw, 40px);
  bottom: 0;
  width: clamp(240px, 26vw, 360px) !important;
  height: auto !important;
  margin: 0 !important;
  z-index: 1;
  pointer-events: none;
}
.xl-hero-device-absolute img{
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
}

/* Add more gap between hero text and the device on desktop */
@media (min-width: 1024px){
  .xl-hero .wp-block-cover__inner-container{
    /* Reserve room on the right roughly matching device width */
    padding-right: clamp(160px, 18vw, 320px);
  }
}

/* ------------------- Buttons ------------------- */
.wp-block-button.xl-cta .wp-block-button__link{
  background: var(--xl-brand);
  color: #fff;
  border-radius: 8px;
  padding: 14px 34px;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.wp-block-button.xl-cta .wp-block-button__link:hover{
  background: #6D3838;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(139,74,74,.28);
}
.wp-block-button.is-style-outline .wp-block-button__link{
  border-radius: 8px;
  padding: 14px 36px;
  border: 2px solid var(--xl-brand);
  color: var(--xl-brand);
}

/* ------------------- “What is XERF” section ------------------- */
.xl-what-is{
  background:#fff;
  max-width: var(--xl-max);
  margin:0 auto;
}
.xl-what-is .wp-block-columns{
  gap: var(--xl-gap);
  align-items:center;
}
.xl-device-left{ margin:0; }
.xl-device-left img{
  max-width: 380px;
  width: 100%;
  height: auto;
}
.xl-desc-text{
  text-align:left;
  max-width: 820px;
  margin-inline:auto;
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--xl-text);
  line-height: 1.8;
  margin-bottom:20px;
}
.xl-desc-text:last-child{ margin-bottom:0; }

/* ------------------- Responsive ------------------- */
@media (max-width: 1023px){
  /* Hide hero device image on mobile and tablet */
  .xl-hero-device-absolute{
    display: none !important;
  }
}

@media (max-width: 782px){
  .xl-hero{ min-height:auto; }
  .xl-what-is .wp-block-column{ flex-basis:100% !important; }
  .xl-device-left img{ max-width:300px; margin:0 auto; }
  .xl-section{ padding: clamp(30px, 5vw, 60px) 20px; }
}
