/* =============================================================
   SITE FOOTER
   All rules nested under .site-footer.site-footer (0,2,0)
   to outrank .elementor-kit-5 * (0,1,1) without !important.
   ============================================================= */

.site-footer.site-footer {
  background: rgba(57, 50, 69);
  position: relative;
  overflow: hidden;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  color: #fff;
  z-index: 1;

  /* Decorative watermark */
  &::before {
    content: '';
    position: absolute;
    width: 624px;
    height: 931px;
    left: 55%;
    top: 50%;
    background: url('../images/s-logo.svg') center / contain no-repeat;
    opacity: 0.15;
    mix-blend-mode: overlay;
    transform: translate(-50%, -50%) rotate(25.48deg);
    pointer-events: none;
    z-index: 0;
  }

  .site-footer__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 91px;
    position: relative;
    z-index: 1;
  }

  /* ── Newsletter strip ──────────────────────────────────────── */

  .site-footer__newsletter {
    padding: 28px 0;
  }

  .site-footer__newsletter .site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .site-footer__newsletter-heading {
    font-family: "new-spirit", serif;
    font-size: 24px;
    font-weight: 500;
    color: #fbf8f4;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
  }

  .site-footer__newsletter-form {
    display: flex;
    align-items: stretch;
    gap: 19px;
    flex-shrink: 0;
  }

  .site-footer__newsletter-input {
    width: 276px;
    height: 46px;
    background: #fff;
    border: 1px solid #f5ede3;
    border-radius: 0;
    padding: 0 16px;
    font-family: "itc-avant-garde-gothic-pro", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #c4c4c4;
    outline: none;

    &::placeholder { color: #c4c4c4; }
    &:focus { border-color: #39323b; color: #39323b; }
  }

  .site-footer__newsletter-btn {
    width: 200px;
    height: 46px;
    background: #f5ede3;
    border: none;
    cursor: pointer;
    font-family: "itc-avant-garde-gothic-pro", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #393245;
    letter-spacing: 0;
    white-space: nowrap;
    text-transform: uppercase;
    transition: .3s ease-in-out;
    &:hover {
     text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.45);
    }
  }

  /* ── Horizontal rule ───────────────────────────────────────── */

  .site-footer__rule {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 0;
  }

  /* ── Main grid ─────────────────────────────────────────────── */

  .site-footer__main {
    padding: 10px 0 12px;
  }

  .site-footer__main .site-footer__inner {
    display: grid;
    grid-template-columns: 393px 220px 275px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 40px;
    align-items: start;
  }

  /* Row 1: logo spanning full width */
  /* Row 2: columns side by side      */
  /* Row 3: pay + findus              */
  .site-footer__logo         { grid-column: 1 / -1; grid-row: 1; }
  .site-footer__brand        { grid-column: 1; grid-row: 2; padding-right: 40px; }
  .site-footer__col-services { grid-column: 2; grid-row: 2; }
  .site-footer__col-website  { grid-column: 3; grid-row: 2; }
  .site-footer__col-about    { grid-column: 4; grid-row: 2; }
  .site-footer__pay          { grid-column: 1; grid-row: 3; }
  .site-footer__findus       { grid-column: 3; grid-row: 3; }

  /* ── Column shared styles ──────────────────────────────────── */

  .site-footer__col-heading {
    font-family: "new-spirit", serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.4px;
    line-height: 1.2;
    margin: 0 0 16px;
  }

  .site-footer__col-links {
    list-style: none;
    margin: 0;
    padding: 0;

    li { margin: 0; }

    a {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: #fff;
      text-decoration: none;
      line-height: 2;
      letter-spacing: 0.25px;

      &:hover { text-decoration: underline; }
    }
  }

  /* ── Col 1: Brand ──────────────────────────────────────────── */

  .site-footer__logo {
    display: block;
    line-height: 0;
    margin-bottom: -30px;
    @media only screen and (max-width: 600px) {
      margin-left: auto;
      margin-right: auto;
    }
    img {
      width: 260px;
      height: auto;
      display: block;
    }
  }

  .site-footer__brand-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.25px;
    color: #fff;
    margin: 0;
    max-width: 326px;

    a {
      color: #fff;
      text-decoration: underline;
      &:hover { opacity: 0.75; }
    }
  }

  /* ── Ways to pay ───────────────────────────────────────────── */

  .site-footer__pay-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .site-footer__pay-icon {
    width: 55px;
    height: 37px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    svg {
      width: 80%;
      height: 80%;
      display: block;
    }

    &.pay-visa       { background: #fff; }
    &.pay-mastercard { background: #fff; }
    &.pay-amex       { background: #1f72cd; }
    &.pay-paypal     { background: #fff; }
    &.pay-klarna     { background: #feb4c7; }
  }

  /* ── Find Us / Socials ─────────────────────────────────────── */

  .site-footer__socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;

    a {
      color: #fff;
      font-size: 22px;
      line-height: 1;
      text-decoration: none;
      opacity: 0.9;

      &:hover { opacity: 1; }
    }
  }

  /* ── Bottom bar ────────────────────────────────────────────── */

  .site-footer__bottom {
    padding: 12px 0 20px;
  }

  .site-footer__bottom .site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer__copyright,
  .site-footer__credit {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.25px;
    color: #fff;
    margin: 0;
  }

  .site-footer__credit {
    font-size: 10px;
    text-align: right;

    a {
      color: #fff;
      text-decoration: underline;
      &:hover { opacity: 0.75; }
    }
  }

  /* ── 700–900px — newsletter narrowing (iPad mini / Air portrait) */

  @media (min-width: 701px) and (max-width: 900px) {
    .site-footer__newsletter-heading { white-space: normal; }
    .site-footer__newsletter-input   { width: 200px; }
    .site-footer__newsletter-btn     { width: 150px; }
  }

  /* ── 1100px — two-column tablet ────────────────────────────── */

  @media (max-width: 1100px) {
    .site-footer__inner { padding: 0 40px; }

    .site-footer__main .site-footer__inner {
      grid-template-columns: 1fr 1fr;
      column-gap: 32px;
      row-gap: 40px;
    }

    .site-footer__logo         { grid-column: 1 / -1; grid-row: 1; }
    .site-footer__brand        { grid-column: 1 / -1; grid-row: 2; padding-right: 0; }
    .site-footer__col-services { grid-column: 1;      grid-row: 3; }
    .site-footer__col-website  { grid-column: 2;      grid-row: 3; }
    .site-footer__col-about    { grid-column: 1;      grid-row: 4; }
    .site-footer__pay          { grid-column: 2;      grid-row: 4; }
    .site-footer__findus       { grid-column: 1;      grid-row: 5; }
  }

  /* ── 700px — single-column mobile ──────────────────────────── */

  @media (max-width: 700px) {
    overflow: visible; /* allow sticky header to sit above */

    /* Newsletter: stack heading above form, center heading */
    .site-footer__newsletter { padding: 23px 0 28px; }

    .site-footer__newsletter .site-footer__inner {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 0 16px;
    }

    .site-footer__newsletter-heading {
      font-size: 18px;
      text-align: center;
      padding-bottom: 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.25);
      margin-bottom: 24px;
      white-space: normal;
    }

    .site-footer__newsletter-form {
      flex-direction: column;
      gap: 0;
      width: 100%;
    }

    .site-footer__newsletter-input {
      width: 100%;
      text-align: center;
    }

    .site-footer__newsletter-btn {
      width: 100%;
      max-width: 200px;
      margin-left: auto;
      margin-right: auto;
      margin-top: 12px;
    }

    /* Hide the full-width rule between newsletter and main on mobile
       (replaced by the border-bottom on the heading above) */
    .site-footer__rule { display: none; }

    /* Main: flex column with explicit ordering to match Figma */
    .site-footer__main { padding: 32px 0 28px; padding-top: 0px;}

    .site-footer__main .site-footer__inner {
      display: flex;
      flex-direction: column;
      gap: 24px;
      padding: 0 16px;
    }

    .site-footer__logo         { order: 1; display: flex; justify-content: center; align-items: center; margin-bottom: 0; text-align: center; }
    .site-footer__brand        { order: 2; }
    .site-footer__col-services { order: 3; }
    .site-footer__col-website  { order: 4; }
    .site-footer__col-about    { order: 5; }
    .site-footer__pay          { order: 6; }
    .site-footer__findus       { order: 7; }

    .site-footer__logo img { width: 125px; }

    /* Hide the "Organisations & Awards" heading — not in Figma mobile */
    .site-footer__orgs-heading { display: none; }

    .site-footer__brand-desc { max-width: 100%; }

    /* Section headings: 18px on mobile (Figma spec) */
    .site-footer__col-heading {
      font-size: 18px;
      margin-bottom: 12px;
    }

    /* Links: 14px, 0.5px tracking, ~27px line height (Figma spec) */
    .site-footer__col-links a {
      font-size: 14px;
      letter-spacing: 0.5px;
      line-height: 1.93;
      font-weight: 300;
    }

    /* Payment icons: 43×29px (Figma spec) */
    .site-footer__pay-icons { gap: 6px; }

    .site-footer__pay-icon {
      width: 43px;
      height: 29px;
      border-radius: 4px;
    }

    /* Socials: slightly larger tap targets */
    .site-footer__socials {
      gap: 20px;

      a { font-size: 26px; }
    }

    /* Bottom bar: centered, stacked */
    .site-footer__bottom { padding: 16px 0 24px; }

    .site-footer__bottom .site-footer__inner {
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 0 16px;
      text-align: center;
    }

    .site-footer__copyright,
    .site-footer__credit {
      font-size: 10px;
      text-align: center;
      letter-spacing: 0.5px;
    }
  }
}
