/* ============================================================
   AJL PRE-FOOTER CTA — Custom CSS
   Enqueued site-wide by ajl-shared-styles.php since this widget
   lives in the sitewide Elementor footer template (ID 2073).
   Scoped under .ajl-prefooter so it cannot collide with other
   pages' styles that share this plugin's stylesheet loader.
   ============================================================ */

/* ── Token fallbacks (theme already defines these; here as safety) ── */
.ajl-prefooter {
  --pf-ink:        #1E1A16;
  --pf-ink-soft:   #3D352B;
  --pf-cream:      #FAF8F3;
  --pf-gold:       #A0621A;
  --pf-gold-warm:  #C17F2A;
  --pf-gold-pale:  #FBF3E3;
  --pf-sage:       #3A5944;
  --pf-border:     #DDD5C8;
  --pf-white:      #FFFFFF;
  --pf-font-serif: 'Playfair Display', Georgia, serif;
  --pf-font-sans:  'Lato', system-ui, sans-serif;
}

/* ── Section shell ──
   width:100% + display:block ensure the section fills the full
   Elementor column / viewport at every screen size incl. 4K.
   box-sizing prevents horizontal scrollbars. */
.ajl-prefooter {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--pf-ink);
  overflow: hidden;
  font-family: var(--pf-font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Decorative radial glow — top-right (scales on large screens) */
.ajl-prefooter::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: clamp(640px, 30vw, 1000px);
  height: clamp(640px, 30vw, 1000px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161,98,26,0.18) 0%, transparent 68%);
  pointer-events: none;
}

/* Decorative radial glow — bottom-left */
.ajl-prefooter::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -100px;
  width: clamp(480px, 24vw, 800px);
  height: clamp(480px, 24vw, 800px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,89,68,0.14) 0%, transparent 68%);
  pointer-events: none;
}

/* ── Inner wrapper ──
   max-width caps content at 1400px for readability on ultrawide;
   clamp() padding breathes at every size without overflow. */
.ajl-prefooter__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  box-sizing: border-box;
}

/* ── Left: copy ── */
.ajl-prefooter__label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pf-gold-warm);
  margin-bottom: 16px;
}

.ajl-prefooter__title {
  font-family: var(--pf-font-serif);
  /* clamp scales from 28px on mobile → 52px on 4K */
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--pf-cream);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.ajl-prefooter__title em {
  font-style: italic;
  color: var(--pf-gold-warm);
}

.ajl-prefooter__divider {
  width: 48px;
  height: 2px;
  background: var(--pf-gold-warm);
  margin: 22px 0 24px;
}

.ajl-prefooter__desc {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.8;
  color: rgba(250,248,243,0.65);
  max-width: 480px;
  margin-bottom: 36px;
}

/* Button row */
.ajl-prefooter__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Primary CTA — gold fill */
.ajl-pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pf-font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  line-height: 1;
}

.ajl-pf-btn--gold {
  background: var(--pf-gold);
  color: var(--pf-white);
}
.ajl-pf-btn--gold:hover {
  background: var(--pf-gold-warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(161,98,26,0.35);
  color: var(--pf-white);
}

/* Ghost CTA — outline cream */
.ajl-pf-btn--ghost {
  background: transparent;
  color: rgba(250,248,243,0.75);
  border: 1.5px solid rgba(250,248,243,0.22);
}
.ajl-pf-btn--ghost:hover {
  background: rgba(250,248,243,0.08);
  border-color: rgba(250,248,243,0.5);
  color: var(--pf-cream);
  transform: translateY(-2px);
}

.ajl-pf-btn .ajl-pf-arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.ajl-pf-btn:hover .ajl-pf-arrow {
  transform: translateX(4px);
}

/* ── Right: card grid (2 option cards) ── */
.ajl-prefooter__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ajl-pf-card {
  background: rgba(250,248,243,0.05);
  border: 1px solid rgba(250,248,243,0.1);
  border-radius: 16px;
  padding: 28px 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.ajl-pf-card:hover {
  background: rgba(250,248,243,0.09);
  border-color: rgba(161,98,26,0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.ajl-pf-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.ajl-pf-card__icon--gold { background: rgba(161,98,26,0.2); }
.ajl-pf-card__icon--sage { background: rgba(58,89,68,0.25); }

.ajl-pf-card__body { flex: 1; }

.ajl-pf-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-gold-warm);
  margin-bottom: 6px;
}

.ajl-pf-card__title {
  font-family: var(--pf-font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--pf-cream);
  line-height: 1.3;
  margin-bottom: 6px;
}

.ajl-pf-card__desc {
  font-size: 13px;
  color: rgba(250,248,243,0.5);
  line-height: 1.65;
  margin: 0;
}

.ajl-pf-card__arrow {
  font-size: 16px;
  color: rgba(250,248,243,0.3);
  align-self: center;
  transition: all 0.2s;
  margin-left: 8px;
  flex-shrink: 0;
}
.ajl-pf-card:hover .ajl-pf-card__arrow {
  color: var(--pf-gold-warm);
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   Breakpoints:
     ≤1024px  Tablet landscape — tighten grid gap
     ≤820px   Tablet portrait  — single column
     ≤600px   Large mobile     — reduce card padding
     ≤480px   Small mobile     — stack buttons full-width
   ═══════════════════════════════════════════════ */

/* Tablet landscape: keep 2-col but tighten */
@media (max-width: 1024px) {
  .ajl-prefooter__inner {
    gap: 40px;
    padding: 72px 32px;
  }
  .ajl-pf-card { padding: 22px 24px; }
}

/* Tablet portrait: collapse to single column */
@media (max-width: 820px) {
  .ajl-prefooter__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 64px 28px;
  }
  .ajl-prefooter__desc {
    max-width: 100%;
    font-size: 16px;
  }
  .ajl-prefooter__title {
    font-size: clamp(26px, 6vw, 40px);
  }
  /* On tablet the cards sit below copy — give them more breathing room */
  .ajl-prefooter__cards { gap: 14px; }
}

/* Large mobile */
@media (max-width: 600px) {
  .ajl-prefooter__inner { padding: 52px 20px; }
  .ajl-pf-card {
    padding: 20px 18px;
    gap: 14px;
  }
  .ajl-pf-card__icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .ajl-prefooter__inner { padding: 44px 16px; gap: 36px; }
  .ajl-prefooter__title { font-size: clamp(24px, 8vw, 34px); }
  .ajl-prefooter__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ajl-pf-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
  }
  .ajl-pf-card {
    flex-direction: row;   /* keep icon + text side-by-side */
    padding: 18px 16px;
    gap: 12px;
  }
  .ajl-pf-card__arrow { display: none; } /* too tight at 320px */
}
