/* Celebrating 15 Years - enqueued by functions.php (av15_enqueue_assets) with a file-time version so CDN/browser caches never serve a stale copy. */
/* =========================================================================
 * Celebrating 15 Years (added 2026-09-20)
 * - header badge (15-year logo next to LP Log In)
 * - /celebrating-15-years/ page (Elementor containers use the CSS classes below)
 * - [augment_15year_form] form + confirmation modal
 * ========================================================================= */

/* ---------- Header badge ---------- */
.ct-header-text .entry-content:has(.av15-badge) {
  display: flex;
  align-items: center;
}
.ct-header-text .entry-content:has(.av15-badge) > p {
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.av15-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  height: 84px;
  padding-right: 20px;
  margin-right: 22px;
  border-right: 1px solid #ddd;
  line-height: 0;
}
.av15-badge img {
  width: 105px;
  height: auto;
  display: block;
}
@media (max-width: 999px) {
  .av15-badge {
    width: 90px;
    height: 60px;
    padding-right: 12px;
    margin-right: 10px;
  }
  .av15-badge img {
    width: 74px;
  }
}
@media (max-width: 760px) {
  .av15-badge {
    display: none;
  }
}

/* ---------- Page: hero ---------- */
.av15-hero {
  --av15-navy: #082a3c;
  --av15-text: #f8f8f7;
  --av15-field: #f8f7f5;
  --av15-field-text: #a89e92;
  --av15-button: #24211e;
  --av15-border: rgba(255, 255, 255, 0.3);
  min-height: calc(100vh - 112px);
  color: var(--av15-text);
  background:
    radial-gradient(circle at 92% 48%, rgba(27, 62, 80, 0.34), transparent 28%),
    linear-gradient(115deg, #082a3c 0%, #082b3d 54%, #092d40 100%);
}
.av15-hero .av15-title,
.av15-hero .av15-title .elementor-heading-title {
  margin: 0 0 46px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 4.25vw, 82px);
  line-height: 0.98;
  letter-spacing: -2px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- Page: two columns ---------- */
.av15-content {
  max-width: 1830px;
  margin: 0 auto;
}
.av15-magazine {
  display: flex;
  justify-content: center;
}
.av15-magazine img {
  width: min(100%, 900px);
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* ---------- Page: form card ---------- */
.av15-form-card {
  border: 1px solid var(--av15-border, rgba(255, 255, 255, 0.3));
  border-radius: 24px;
  padding: 47px 48px 30px;
  background: rgba(14, 42, 57, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.av15-form-card .av15-card-title,
.av15-form-card .av15-card-title .elementor-heading-title {
  margin: 0 0 15px;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -1.2px;
  font-weight: 700;
  color: #f8f8f7;
}
.av15-form-card .av15-intro,
.av15-form-card .av15-intro p {
  margin: 0 0 25px;
  color: #e1ded8;
  font-size: 19px;
  line-height: 1.25;
}

/* ---------- Form ---------- */
/* !important is needed: Blocksy's global form-field styles use higher specificity */
.av15-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}
.av15-form input[type="text"],
.av15-form input[type="email"],
.av15-form textarea {
  width: 100% !important;
  border: 0 !important;
  outline: none;
  background: var(--av15-field, #f8f7f5) !important;
  color: #333 !important;
  border-radius: 12px !important;
  font-family: inherit !important;
  font-size: 19px !important;
  line-height: 1.3 !important;
  padding: 18px 22px !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.av15-form input[type="text"]:focus,
.av15-form input[type="email"]:focus,
.av15-form textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35) !important;
  outline-offset: 1px;
  border: 0 !important;
  box-shadow: none !important;
}
.av15-form input[type="text"],
.av15-form input[type="email"] {
  height: 74px !important;
  min-height: 74px !important;
}
.av15-form textarea {
  min-height: 155px !important;
  resize: vertical;
}
.av15-form input::placeholder,
.av15-form textarea::placeholder {
  color: var(--av15-field-text, #a89e92) !important;
  opacity: 1 !important;
}
.av15-form .av15-submit,
.av15-form button.av15-submit[type="submit"] {
  width: 100%;
  height: 72px;
  margin: 2px 0 0;
  border: 1px solid #514a43 !important;
  border-radius: 38px !important;
  background: var(--av15-button, #24211e) !important;
  color: #fff !important;
  font-size: 21px !important;
  font-weight: 400;
  line-height: 1;
  padding: 0 20px;
  cursor: pointer;
  transition: 0.2s ease;
}
.av15-form .av15-submit:hover {
  background: #302c28 !important;
  transform: translateY(-1px);
}
.av15-form .av15-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.av15-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.av15-error {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffd7d0;
  font-size: 15px;
}
.av15-error.is-visible {
  display: block;
}

/* ---------- Confirmation modal ---------- */
.av15-modal {
  position: fixed;
  inset: 0;
  z-index: 2000000; /* above #header (z-index 999999 in Customizer > Additional CSS) */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 42, 60, 0.82);
}
.av15-modal.is-open {
  display: flex;
}
body.av15-modal-open {
  overflow: hidden;
}
.av15-modal__box {
  max-width: 560px;
  width: 100%;
  background: #fff;
  color: #242424;
  border-radius: 20px;
  padding: 40px 36px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.av15-modal__box p {
  margin: 0 0 26px;
  font-size: 20px;
  line-height: 1.4;
}
.av15-modal__ok {
  min-width: 160px;
  height: 56px;
  padding: 0 34px;
  border: 0;
  border-radius: 38px;
  background: #24211e;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}
.av15-modal__ok:hover {
  background: #302c28;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .av15-magazine img {
    max-width: 850px;
  }
  .av15-form-card {
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .av15-hero {
    min-height: calc(100vh - 82px);
  }
  .av15-hero .av15-title,
  .av15-hero .av15-title .elementor-heading-title {
    font-size: 43px;
    letter-spacing: -1px;
    margin-bottom: 34px;
  }
  .av15-form-card {
    padding: 30px 22px 24px;
    border-radius: 18px;
  }
  .av15-form-card .av15-card-title,
  .av15-form-card .av15-card-title .elementor-heading-title {
    font-size: 30px;
  }
  .av15-form-card .av15-intro,
  .av15-form-card .av15-intro p {
    font-size: 17px;
  }
  .av15-form input[type="text"],
  .av15-form input[type="email"] {
    height: 62px !important;
    min-height: 62px !important;
    font-size: 16px !important;
  }
  .av15-form textarea {
    min-height: 125px !important;
    font-size: 16px !important;
  }
  .av15-form .av15-submit {
    height: 62px;
    font-size: 18px !important;
  }
  .av15-modal__box {
    padding: 30px 22px 24px;
  }
  .av15-modal__box p {
    font-size: 17px;
  }
}


/* ---------- Homepage popup ---------- */
.av15-popup {
  position: fixed;
  inset: 0;
  z-index: 2000001; /* above #header (z-index 999999 in Customizer > Additional CSS) */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(8, 42, 60, 0.38);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.av15-popup[hidden] {
  display: none;
}
.av15-popup.is-open {
  opacity: 1;
}
body.av15-popup-open {
  overflow: hidden;
}
.av15-popup__card {
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
  width: 100%;
  max-width: 940px;
  margin: auto;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(8, 42, 60, 0.12);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.av15-popup.is-open .av15-popup__card {
  transform: none;
}
.av15-popup__card:focus {
  outline: none;
}

/* left: cover on navy */
.av15-popup__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(160deg, #0d3449 0%, #082a3c 60%, #061f2d 100%);
}
.av15-popup__year {
  position: absolute;
  right: -18px;
  bottom: -46px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: 260px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -12px;
  pointer-events: none;
  user-select: none;
}
.av15-popup__cover {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  transform: rotate(-4deg);
}

/* right: content */
.av15-popup__body {
  padding: 44px 48px 40px;
  color: #082a3c;
}
.av15-popup__badge {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 0 18px -8px;
}
.av15-popup__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a8895a;
}
.av15-popup__title {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: #082a3c;
}
.av15-popup__text {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.55;
  color: #3f4a52;
}
.av15-popup__text--short {
  display: none;
}
.av15-popup__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.av15-popup__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 38px;
  background: #24211e;
  color: #fff !important;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none !important;
  transition: 0.2s ease;
}
.av15-popup__cta:hover,
.av15-popup__cta:focus-visible {
  background: #082a3c;
  transform: translateY(-1px);
}
.av15-popup__cta svg {
  transition: transform 0.2s ease;
}
.av15-popup__cta:hover svg {
  transform: translateX(3px);
}
.av15-popup__later {
  border: 0;
  padding: 0;
  background: none;
  color: #6b7378;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.av15-popup__later:hover {
  color: #082a3c;
}
.av15-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 42, 60, 0.08);
  color: #082a3c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}
.av15-popup__close:hover {
  background: #082a3c;
  color: #fff;
}

@media (max-width: 860px) {
  .av15-popup {
    padding: 16px;
  }
  .av15-popup__card {
    grid-template-columns: 1fr;
    max-width: 440px;
    border-radius: 18px;
  }
  .av15-popup__media {
    padding: 18px 20px 0;
    height: 132px;
    align-items: flex-start;
  }
  .av15-popup__cover {
    max-width: 140px;
    transform: rotate(-3deg) translateY(4px);
    border-radius: 6px;
  }
  .av15-popup__year {
    font-size: 150px;
    bottom: -50px;
    right: -10px;
  }
  .av15-popup__body {
    padding: 18px 22px 20px;
  }
  .av15-popup__badge {
    width: 96px;
    margin: 0 0 8px -5px;
  }
  .av15-popup__eyebrow {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .av15-popup__title {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .av15-popup__text {
    display: none;
  }
  .av15-popup__text--short {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .av15-popup__actions {
    gap: 14px;
  }
  .av15-popup__cta {
    height: 48px;
    padding: 0 22px;
    font-size: 15px;
  }
  .av15-popup__later {
    font-size: 14px;
  }
  .av15-popup__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.92);
  }
}
}

/* ---------- Mobile menu item (offcanvas) ---------- */
#offcanvas .av15-mobile-item {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
#offcanvas .av15-mobile-item .ct-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
#offcanvas .av15-mobile-item img {
  width: 72px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 6px;
  background: #fff;
}
#offcanvas .av15-mobile-item span {
  font-weight: 600;
}

/* ---------- Form: per-field validation ---------- */
.av15-form .av15-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.av15-form .av15-field-error {
  display: none;
  padding-left: 8px;
  color: #ffb3a7;
  font-size: 14px;
  line-height: 1.3;
}
.av15-form .av15-field.is-invalid .av15-field-error {
  display: block;
}
.av15-form .av15-field.is-invalid input[type="text"],
.av15-form .av15-field.is-invalid input[type="email"],
.av15-form .av15-field.is-invalid textarea {
  box-shadow: 0 0 0 2px #e4695a !important;
}

/* ---------- Page: align hero content with the header container ---------- */
/* Blocksy's header row is a .ct-container: width var(--theme-container-width) capped at
   var(--theme-normal-container-max-width). Give the hero the same gutters and cap. */
@media (min-width: 1000px) {
  .av15-hero.e-con {
    --padding-left: calc((100% - var(--theme-container-width, 88vw)) / 2);
    --padding-right: calc((100% - var(--theme-container-width, 88vw)) / 2);
  }
  .av15-hero .elementor-widget.av15-title,
  .av15-hero .e-con.av15-content {
    width: 100% !important;
    max-width: var(--theme-normal-container-max-width, 1290px) !important; /* Elementor sets max-width:100% on widgets */
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
  }
}
