/* aprimesolution.com — Avenue Link */

:root {
    --site-primary:   var(--color-primary);
    --site-secondary: var(--color-secondary);
    --site-accent:    var(--color-accent);
    --site-ink:       #221a35;
    --site-slate:     #4a4160;
    --site-muted:     #7c7391;
    --site-border:    #e2dcee;

    --site-radius-lg: 18px;
    --site-radius-md: 14px;
    --site-shadow-soft: 0 14px 46px rgba(34, 26, 53, 0.14);
    --site-shadow-lift: 0 12px 28px rgba(34, 26, 53, 0.18);
    --site-focus: 0 0 0 4px rgba(var(--color-primary-rgb), 0.22), 0 0 0 7px rgba(var(--color-primary-rgb), 0.10);
}

/* ===========================
   Header
   =========================== */
.site-title::before {
    content: none;
    display: none;
}

.site-header {
    box-shadow: 0 2px 12px rgba(34, 26, 53, 0.10);
    background: linear-gradient(180deg, #fbf9ff 0%, #f8f6f2 100%);
    border-bottom: 1px solid var(--site-border);
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing, 1rem);
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--site-ink);
    letter-spacing: -0.01em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.site-title-mark {
    flex-shrink: 0;
    filter: drop-shadow(0 6px 12px rgba(var(--color-primary-rgb), 0.34));
}

/* ===========================
   Form hero
   =========================== */
.form-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-split {
    position: relative;
    z-index: 2;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0.75rem 1rem 2.75rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

/* Faceted-gem hero background — pure CSS, no image file */
.form-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    min-height: 420px;
    background-color: var(--color-surface);
    background-image:
        radial-gradient(620px 460px at 8% 15%, rgba(var(--color-primary-rgb), 0.16), rgba(var(--color-primary-rgb), 0) 70%),
        radial-gradient(560px 420px at 94% 88%, rgba(var(--color-secondary-rgb), 0.20), rgba(var(--color-secondary-rgb), 0) 70%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    overflow: hidden;
}

/* Angled facet panel, evoking a cut gem/prism */
.form-background::before {
    content: "";
    position: absolute;
    top: -12%;
    right: -18%;
    width: 68%;
    height: 145%;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12) 0%, rgba(var(--color-primary-rgb), 0) 60%);
    clip-path: polygon(28% 0%, 100% 0%, 100% 100%, 0% 100%);
    transform: skewX(-9deg);
    pointer-events: none;
}

/* Fine facet lines — kept out from behind the form. Mobile: drawn behind
   the copy block only (.hero-spacer::before). Desktop: layered on the hero
   but masked off the form column (see min-width: 768px block below). */
.form-background::after,
.hero-spacer::before {
    content: "";
    position: absolute;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0px,
        rgba(255, 255, 255, 0) 46px,
        rgba(var(--color-secondary-rgb), 0.09) 47px,
        rgba(var(--color-secondary-rgb), 0) 94px
    );
    opacity: 0.65;
    pointer-events: none;
}

.form-background::after {
    display: none;
    inset: 0;
}

.hero-spacer::before {
    top: -1rem;              /* half the stacked grid gap */
    bottom: -2.75rem;        /* hero-split bottom padding */
    left: -1rem;
    right: -1rem;            /* full-bleed past hero-split side padding */
    z-index: -1;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3rem);
            mask-image: linear-gradient(to bottom, transparent 0, #000 3rem);
}

.form-container {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 0 0 1rem;
    min-height: 0;
    width: 100%;          /* grid item + auto margins would otherwise shrink to the iframe's 300px default */
    max-width: none;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
}

/* ─── Hero copy column (fills the template's empty hero-spacer) ─────── */
.hero-spacer {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero-kicker {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-secondary);
    margin: 0 0 0.75rem;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--site-ink);
    margin: 0 0 1rem;
}

.hero-headline span {
    color: var(--site-primary);
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--site-slate);
    line-height: 1.65;
    margin: 0 0 1.5rem;
    max-width: 46ch;
}

.hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--site-ink);
}

.hero-points i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.12);
    color: var(--site-primary);
    font-size: 0.8125rem;
}

@media (min-width: 768px) {
    .form-section {
        padding: 3rem 0 4rem;
    }

    .hero-split {
        grid-template-areas: "heroForm heroSpacer";
        grid-template-columns: 560px 1fr;
        gap: 3rem;
        max-width: 1200px;
        padding: 2.5rem 1.5rem 3.25rem;
        margin: 0 auto;
        justify-items: start;
    }

    .hero-split .form-container {
        grid-area: heroForm;
        width: 100%;
        padding: 0;
    }

    .hero-spacer {
        grid-area: heroSpacer;
        padding: 0;
    }

    .hero-spacer::before {
        display: none;
    }

    /* Stripes start just past the form column's right edge and fade in
       across the grid gap. Form edge = centered-grid offset + side padding + 560px. */
    .form-background::after {
        display: block;
        -webkit-mask-image: linear-gradient(to right,
            transparent 0,
            transparent calc(max(0px, (100% - 1200px) / 2) + 1.5rem + 560px),
            #000 calc(max(0px, (100% - 1200px) / 2) + 1.5rem + 560px + 6rem));
                mask-image: linear-gradient(to right,
            transparent 0,
            transparent calc(max(0px, (100% - 1200px) / 2) + 1.5rem + 560px),
            #000 calc(max(0px, (100% - 1200px) / 2) + 1.5rem + 560px + 6rem));
    }
}

/* ===========================
   Offer iframe container
   =========================== */
#form-frame {
    border-radius: var(--site-radius-lg);
    box-shadow: var(--site-shadow-soft);
    /* Breathing room below the form's inner card. content-box keeps
       iframeResizer's height for the content, with padding added on top. */
    box-sizing: content-box;
    padding-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .hero-spacer {
        padding: 0 0.25rem;
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-points {
        align-items: center;
    }
}

/* ===========================
   Steps section
   =========================== */
.steps-section {
    background: var(--color-surface, #f8f6f2);
    padding: 3rem 1rem;
}

.steps-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.steps-main-title {
    font-family: 'Playfair Display', serif;
    color: var(--site-ink);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.steps-subtitle {
    color: var(--site-muted);
    font-size: 1rem;
    margin: 0;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-icon {
    position: relative;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: #ffffff;
    color: var(--site-primary);
    font-size: 1.375rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    line-height: 1;
    border: 2px solid var(--site-primary);
    box-shadow: 0 0 0 5px rgba(var(--color-primary-rgb), 0.10), 0 14px 28px rgba(34, 26, 53, 0.10);
}

.step-icon i {
    color: var(--site-primary);
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--site-secondary);
}

.step-description {
    font-size: 0.9375rem;
    color: var(--site-slate);
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

#hero-steps {
    padding: 3rem 1rem;
}

#hero-steps > div:not(.loading-container) {
    display: grid;
    gap: 2rem;
    max-width: var(--max-width, 1200px);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 639.98px) {
    #hero-steps > div:not(.loading-container) {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    #hero-steps > div:not(.loading-container) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #hero-steps > div:not(.loading-container) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#hero-steps h1,
#hero-steps h2,
#hero-steps p {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0 auto;
    max-width: 72ch;
}

/* ===========================
   CTA band (dark, "why us" + scroll-to-form CTA)
   =========================== */
.cta-band {
    /* Shared _cloudinary/styles.css sets .additional-content { display: none }
       by default (most sites leave this placeholder empty) — override it since
       this site actually uses it. */
    display: block;
    background: #1B1330;
    color: #F0ECF7;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Faint facet callback, tying this band to the hero texture */
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--color-secondary-rgb), 0.12) 0%, rgba(var(--color-secondary-rgb), 0) 55%);
    pointer-events: none;
}

.cta-band-inner {
    position: relative;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.cta-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, #F0ECF7 50%, var(--site-secondary));
    margin: 0 0 0.75rem;
}

.cta-copy-cell {
    text-align: center;
}

.cta-band-copy {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 auto 1rem;
    max-width: 26ch;
}

.cta-band-copy em {
    font-style: normal;
    color: color-mix(in srgb, white 20%, var(--site-secondary));
}

.cta-band-sub {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(240, 236, 247, 0.72);
    margin: 0 auto;
    max-width: 46ch;
}

.cta-action-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    background: var(--site-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(var(--color-primary-rgb), 0.3);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.cta-button svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    transition: transform 160ms ease;
}

.cta-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(var(--color-primary-rgb), 0.36);
}

.cta-button:hover svg {
    transform: translateX(3px);
}

.cta-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.35), 0 16px 32px rgba(var(--color-primary-rgb), 0.3);
}

.cta-band-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
}

.cta-band-meta span {
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    color: rgba(240, 236, 247, 0.55);
}

.cta-band-meta span::before {
    content: "— ";
    color: var(--site-secondary);
}

@media (min-width: 768px) {
    .cta-band {
        padding: 4rem 2rem;
    }

    .cta-band-inner {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: center;
        gap: 3rem;
        padding: 0 1rem;
    }

    .cta-copy-cell {
        text-align: left;
    }

    .cta-band-copy,
    .cta-band-sub {
        margin-left: 0;
        margin-right: 0;
    }

    .cta-action-cell {
        align-items: flex-start;
        border-left: 1px solid rgba(240, 236, 247, 0.14);
        padding-left: 2.5rem;
    }

    .cta-band-meta {
        align-items: flex-start;
        text-align: left;
    }
}

/* ===========================
   Footer — footer-floating-card
   =========================== */
.footer-floating-card {
  background: var(--color-footer-bg);
  color: #E9E6F2;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 24px;
  box-sizing: border-box;
}
.footer-floating-card *, .footer-floating-card *::before, .footer-floating-card *::after { box-sizing: border-box; }

.footer-floating-card .accent-card {
  margin: 0 16px;
  border-radius: 16px;
  padding: 22px 18px 20px;
  transform: translateY(-22px);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.footer-floating-card .accent-kicker {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.7;
}
.footer-floating-card .accent-headline {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.15;
}
.footer-floating-card .accent-sub {
  font-size: 13px;
  margin: 0 0 16px;
  opacity: 0.82;
  line-height: 1.5;
}

.footer-floating-card .ca-row { display: grid; gap: 10px; }
.footer-floating-card .ca {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px 38px 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.footer-floating-card .ca::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right .15s ease;
}
.footer-floating-card .ca:hover, .footer-floating-card .ca:focus-visible { transform: translateY(-1px); outline: none; }
.footer-floating-card .ca:hover::after, .footer-floating-card .ca:focus-visible::after { right: 12px; }
.footer-floating-card .ca:active { transform: translateY(0); }
.footer-floating-card .ca .ca-sub { font-size: 12px; font-weight: 500; opacity: 0.9; letter-spacing: 0; }

.footer-floating-card .ca.primary {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.footer-floating-card .ca.primary:hover, .footer-floating-card .ca.primary:focus-visible { background: #fdf8f3; }

.footer-floating-card .ca.secondary {
  background: rgba(255,255,255,.08);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,.85);
}
.footer-floating-card .ca.secondary:hover, .footer-floating-card .ca.secondary:focus-visible { background: rgba(255,255,255,.18); }

.footer-floating-card .links {
  padding: 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
}
.footer-floating-card .links .col-full { grid-column: 1 / -1; margin-top: 28px; }

@media (min-width: 600px) {
  .footer-floating-card .links { grid-template-columns: 1fr 1fr 1fr; }
  .footer-floating-card .links .col-full { grid-column: auto; margin-top: 0; }
}

.footer-floating-card .col-title {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  color: #9C8FC0;
}
.footer-floating-card .col-link {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  text-decoration: none;
  color: #C9BEDD;
  transition: color .15s ease;
  cursor: pointer;
}
.footer-floating-card .col-link:hover, .footer-floating-card .col-link:focus-visible { color: #ffffff; outline: none; }

.footer-floating-card .meta {
  padding: 0 22px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.6;
  color: #7A6F94;
  text-align: center;
}
.footer-floating-card .meta-divider { height: 1px; margin: 0 0 16px; background: #241A3D; }
.footer-floating-card .meta-name { display: block; font-size: 13px; font-weight: 500; color: #D9D0E8; margin-bottom: 2px; }
.footer-floating-card .meta-copy { margin-top: 8px; display: block; }

@media (min-width: 768px) {
  .footer-floating-card { padding: 56px 0 28px; }
  .footer-floating-card .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: minmax(320px, 380px) 1fr;
    gap: 56px;
    align-items: start;
  }
  .footer-floating-card .accent-card {
    margin: 0;
    transform: none;
    border-radius: 18px;
    padding: 28px 28px 26px;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
  }
  .footer-floating-card .accent-kicker { font-size: 11px; margin-bottom: 12px; }
  .footer-floating-card .accent-headline { font-size: 28px; margin-bottom: 8px; }
  .footer-floating-card .accent-sub { font-size: 14px; margin-bottom: 20px; }
  .footer-floating-card .ca { padding: 16px 42px 16px 18px; }
  .footer-floating-card .ca::after { right: 18px; width: 8px; height: 8px; }
  .footer-floating-card .ca:hover::after, .footer-floating-card .ca:focus-visible::after { right: 14px; }

  .footer-floating-card .links {
    padding: 0;
    gap: 0 40px;
    grid-template-columns: 1fr 1fr;
  }
  .footer-floating-card .links .col-full { grid-column: 1 / -1; margin-top: 28px; }
  .footer-floating-card .col-title { font-size: 11px; margin-bottom: 14px; }
  .footer-floating-card .col-link { font-size: 14px; padding: 6px 0; }

  .footer-floating-card .meta {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 22px 40px 0;
    font-size: 13px;
    border-top: 1px solid #241A3D;
  }
  .footer-floating-card .meta-divider { display: none; }
  .footer-floating-card .meta-name { font-size: 14px; font-weight: 600; color: #E9E6F2; margin: 0; }
  .footer-floating-card .meta-address { font-size: 12px; opacity: 0.85; }
  .footer-floating-card .meta-copy { margin: 8px 0 0; font-size: 12px; display: block; }
}

@media (min-width: 1100px) {
  .footer-floating-card .links { grid-template-columns: 1fr 1fr 1fr; }
  .footer-floating-card .links .col-full { grid-column: auto; margin-top: 0; }
}

#footer-company,
#footer-site-name {
    font-style: normal;
}
