
/* ============================================================
   SECTION: APPLY NOW BUTTON — START
   The floating application CTA, ported from live-html-css-lvl29
   (a.apply-link, live style.css:1186-1245). v1 ships it on every page and so
   does this theme — all 12.

   Nothing in component-common.css touches .apply-link; the component system
   has no floating-CTA of its own, so this is the whole of its styling.

   Colour is NOT set here. The markup carries bg-secondary-transparent
   (rgba(185,102,45,.85), dynamic-styles.css:45) and text-color-light, so the
   backend can re-theme the button — v1 hardcodes the same look as
   rgba(159,102,45,.9). The only hardcoded colour below is the ring, because a
   ::after pseudo-element cannot take a dynamic class.

   Position note: `top: 105px` clears the fixed header, which is why the button
   is anchored to the viewport rather than to the page.
   ============================================================ */
a.apply-link {
  position: fixed;
  top: 105px;
  right: 35px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  font-size: 0.833rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* the thin ring sits 5px outside the disc */
a.apply-link::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  transform: translate(-50%, -50%);
  border: 1px solid #ffffff;
  border-radius: 50%;
}

a.apply-link:hover {
  transform: scale(1.04);
}

/* ----- homepage variant (live-html-css-lvl29 a.circle-cta, style.css:1205) -----
   index.html only. Same disc, moved to the top LEFT, and the ring becomes a
   single arc: ::after keeps only its left border and is rotated -45deg, so what
   shows is a quarter-circle sweeping the top-left of the button rather than a
   closed ring.

   Two classes plus the element (0,2,1) out-rank the base rule (0,1,1), so the
   left/right swap survives the responsive steps below without repeating. */
a.apply-link.circle-cta {
  top: 95px;
  right: auto;
  left: 20px;
}

a.apply-link.circle-cta::after {
  border: 0;
  border-left: 1px solid #ffffff;
  transform: translate(-50%, -50%) rotate(-45deg);
}
/* ============================================================
   SECTION: APPLY NOW BUTTON — END
   ============================================================ */

/* ============================================================
   SECTION: FOOTER CTA — START
   v1's design: the photo fills the whole section behind a dark gradient,
   with the copy centred over it. This markup has the photo in .right-col,
   so that column is lifted out of the flex flow and pinned across the
   section as the background, and .left-col spans the full width on top.
   The gradient is a ::after on .right-col because this markup has no
   overlay div — add one if the backend needs to colour it.
   ============================================================ */
/* clip-path is what makes the parallax work: it turns this section into the
   containing block for its position:fixed child AND clips it to the section
   bounds. v1 gets the same effect with background-attachment:fixed, but that
   only applies to CSS backgrounds and this photo is a real <img>. */
.footer-cta {
  position: relative;
  padding: 295px 0 125px !important;/* top room — the beige box hangs 130px into this section */
  overflow: hidden;
  clip-path: inset(0);
  background-color: #000000;
}

/* --- Right column becomes the full-bleed parallax background ---
   Fixed to the viewport, clipped to the section by the rule above, so the
   photo holds still while the section scrolls over it. */
.footer-cta .right-col {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

.footer-cta .footer-cta-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  line-height: 0;
}

/* max-height:none overrides component-common.css's `.footer-cta-image img
   { max-height: 650px }`, which capped the photo and left a strip of the
   section uncovered at wide viewports. */
.footer-cta .footer-cta-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

/* dark gradient over the photo, matching v1 */
.footer-cta .right-col::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(56, 47, 45, 0.5) 0, #000 80%);
}

/* --- Copy sits centred on top ---
   The wrapper must NOT be positioned: it carries .container, which
   component-main.css sets to position:relative, and that made it the offset
   parent for .right-col — pinning the photo to the 1140px container instead
   of to the section. Forced static here; the stacking context moves to
   .left-col instead. */
.footer-cta .footer-cta-wrapper {
  position: static;
  max-width: 1140px;
}

.footer-cta .left-col {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.footer-cta .footer-cta-content .section-title {
  margin-left: auto;
  margin-right: auto;
}
.footer-cta .footer-cta-content h3{
  margin-left: auto;
  margin-right: auto;
}
.footer-cta .footer-cta-content .section-content {
  margin: 0 auto 30px;
  padding: 25px 0;
  border-top: 1px solid #9f662d;
  border-bottom: 1px solid #9f662d;
}

.footer-cta .footer-cta-content .cta-text {
  font-weight: 300;
}

.footer-cta .footer-cta-content a:not(.btn) {
  color: #b98a52;
  text-decoration: underline;
}

/* --- Button: uppercase, letterspaced, with v1's ring --- */
.footer-cta .cta-buttons {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  padding-top: 25px;
  gap: 10px;
}

.footer-cta .cta-buttons > a {
  position: relative;
  margin: 50px 0 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* circle ring decoration around the button, like live site */
.footer-cta .cta-buttons > a::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  background: url("../../../../../../themes/lvl29-v2/assets/images/icons/half-circle.svg") no-repeat 50%;
  opacity: 0.9;
  pointer-events: none;
}
/* ============================================================
   SECTION: FOOTER CTA — END
   ============================================================ */

@media (max-width: 767px) {
  #footer-cta.footer-cta { min-height: 0; padding: 72px 0; }
  #footer-cta .footer-cta-wrapper { padding-right: 24px; padding-left: 24px; }
}

/* ===== LVL29 ADDITIONAL CONTENT 3 ===== */
.additional-content-3 {
  position: relative;
  background-color: #000000;
}

.additional-content-3 .section-bg-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.additional-content-3 .section-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.additional-content-3 .section-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.additional-content-3 .container.container-medium {
  max-width: 1140px;
  display: flex;
}

.additional-content-3 .container {
  position: relative;
  z-index: 5;
  margin-bottom: -130px;
  background: rgba(163, 147, 131, 0.7);
  padding: 50px 100px 85px;
  text-align: right;
  border-bottom-left-radius: 300px;
}

.additional-content-3 .section-details,
.additional-content-3 .section-counters {
  position: relative;
  width: 50%;
}

.additional-content-3 .section-details .section-content p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
}

.additional-content-3 .single-counter-item {
  display: block;
  max-width: 320px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #9f662d;
  transition: all 0.8s ease;
}

.additional-content-3 .single-counter-item span.counter-detail {
  display: block;
  margin: 0;
  font-size: 1.071rem;
  font-weight: 700;
  line-height: 1.5;
  color: #382f2d;
}

.additional-content-3 .single-counter-item span.counter-number {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.429rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .additional-content-3 .container {
    display: block;
    padding: 75px 20px 30px;
    border-bottom-left-radius: 100px;
    text-align: center;
  }

  .additional-content-3 .section-details,
  .additional-content-3 .section-counters { width: 100%; }
  .additional-content-3 .container h2 { font-size: 1.714rem; }
  .additional-content-3 .section-details .section-content p { font-size: 1.143rem; }
  .additional-content-3 .single-counter-item { padding: 10px; }
  .additional-content-3 .single-counter-item span.counter-number { font-size: 1.571rem; }
  .additional-content-3 .single-counter-item span.counter-detail { font-size: 1rem; }
  /* --- Footer CTA: tighter padding, like v1. Parallax is dropped here —
     a fixed background is janky on touch devices, which is why v1 also
     switches to background-attachment:scroll at this breakpoint. --- */
  .footer-cta {
    padding: 165px 0 75px;
    clip-path: none;
  }

  .footer-cta .right-col {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
  }

  .footer-cta .footer-cta-wrapper {
    padding-left: 40px;
    padding-right: 40px;
  }

  .footer-cta .cta-buttons {
    margin-top: 25px;
  }

  .footer-cta .cta-buttons > a {
    margin: 40px 0 !important;
  }

  .footer-cta .footer-cta-content .cta-text {
    font-size: 1.143rem;
    line-height: 1.5;
  }
  .additional-content-3 .container.container-medium{
    flex-flow: wrap;
  }
  .footer .attribution {
    margin-left: inherit;
  }
}
