/* =========================================================
   FOOTER — FULL RESPONSIVE CSS (Desktop → Tablet → Mobile)
   Keeps original visual design and button styling
========================================================= */

/* ============ Base ============ */
.footer {
  color: #F5F5F5;
  padding: 40px 0;
  font-family: "IBM Plex Mono", monospace;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;              /* desktop safe gutter */
}

/* ============ Hero big logo ============ */
.footer-hero {
  text-align: center;
  margin-bottom: 40px;
}
.footer-hero-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============ Top navigation ============ */
.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}
.footer-nav-left {
  display: flex;
  gap: 100px;                   /* desktop column gap */
}
.footer-nav-left ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav-left li { margin-bottom: 20px; }
.footer-nav-left a {
  font-size: 18px;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #F5F5F5;
  transition: color 0.3s ease;
}
.footer-nav-left a:hover { color: #4361EE; }

/* brand on the right */
.footer-logo { justify-self: end; align-self: start; }
.footer-logo img { max-width: 180px; margin-top: 60px; }

/* ============ Divider ============ */
.footer-divider {
  border: none;
  border-top: 0.5px solid #F5F5F5;
  margin: 22px 0 26px;
}

/* =========================================================
   Bottom area uses grid
   Row 1: legal links across full width
   Row 2: CTA on the left, socials on the right
========================================================= */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "links links"
    "cta   socials";
  align-items: center;
  row-gap: 18px;
  column-gap: 20px;
}

/* passthrough wrapper (lets children sit in grid cells) */
.footer-left { display: contents; }

/* ============ Legal links (row 1) ============ */
.footer-links {
  grid-area: links;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #CFCFCF;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: #FFFFFF; }

/* ============ CTA (row 2, left) — original big button kept ============ */
.cta-footer {
  grid-area: cta;
  position: relative;
  display: inline-block;
  justify-self: start;
  margin-top: 8px; /* small breathing space from links */
}

/* button body */
.btn-footer {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  padding: 0 52px 0 46px;
  border-radius: 20px;
  background: #F5F5F5;
  color: #000000;
  font-family: "Fibel Nord", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: visible;
}
.btn-text-footer { position: relative; z-index: 2; }

/* square with arrow */
.btn-circle-footer {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 81px;
  height: 81px;
  border-radius: 20px;
  border: 3px solid #0F0F0F;
  background: #F5F5F5 url("img/Arrow_45.svg") center / 50px no-repeat;
  transition: all 0.3s ease;
  z-index: 2;
}
.btn-footer:hover { background: #121212; color: #FFFFFF; }
.btn-footer:hover .btn-circle-footer {
  background: #121212 url("img/Arrow_up_white.svg") center / 50px no-repeat;
  border: 1px solid #F5F5F5;
}

/* ============ Social icons (row 2, right) ============ */
.footer-socials {
  grid-area: socials;
  display: flex;
  gap: 25px;
  justify-self: end;
  align-items: center;
  transform: translateY(-60px); 
}
.footer-socials a { text-decoration: none; }
.footer-socials a img {
  width: 26px;
  height: 26px;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.footer-socials a:hover img { opacity: 1; transform: translateY(-2px); }

/* ===============================================
   Responsive Footer — Final Version
   Circle +3px bigger than button height
================================================= */

:root { --cta-circle: 84px; } /* base (81px +3px) */

/* ===== ≤ 1100px ===== */
@media (max-width: 1100px) {
  .footer-container { padding: 0 56px; }
  .footer-nav-left  { gap: 72px; }
  .footer-socials   { transform: translateY(-48px); }

  .cta-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px auto 0;
  }
  .cta-footer .btn-footer { margin-left: calc(var(--cta-circle) / -2); }
  .btn-circle-footer {
    width: var(--cta-circle);
    height: var(--cta-circle);
    right: calc(var(--cta-circle) * -0.74);
  }
}

/* ===== ≤ 900px (tablet portrait) ===== */
@media (max-width: 900px) {
  :root { --cta-circle: 77px; } /* 74px +3 */

  .footer-container { padding: 0 40px; }
  .footer-nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
  }
  .footer-nav-left {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    justify-items: center;
    gap: 18px 56px;
  }
  .footer-logo { text-align: center; }
  .footer-logo img { max-width: 160px; margin-top: 40px; }

  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "links" "cta" "socials";
    row-gap: 16px;
    justify-items: center;
    text-align: center;
  }

  .footer-links  { justify-content: center; gap: 12px; }
  .footer-socials{ justify-self: center; transform: none; }

  .cta-footer { display: flex; justify-content: center; align-items: center; margin: 10px auto 0; }
  .cta-footer .btn-footer { margin-left: calc(var(--cta-circle) / -2); }

  .btn-footer { height: 70px; padding: 0 48px 0 42px; }
  .btn-circle-footer {
    width: var(--cta-circle);
    height: var(--cta-circle);
    right: calc(var(--cta-circle) * -0.74);
  }

  .footer-nav-left a { font-size: 16px; }
}

/* ===== ≤ 640px (phones) ===== */
@media (max-width: 640px) {
  :root { --cta-circle: 63px; } /* 60px +3 */

  .footer-container { padding: 0 24px; }
  .footer-nav { gap: 28px; margin-bottom: 24px; }

  .footer-nav-left {
    grid-template-columns: repeat(3, auto);
    gap: 14px 36px;
    justify-content: center;
    justify-items: center;
    text-align: center;
  }

  .footer-logo img { max-width: 140px; margin-top: 24px; }

  .cta-footer {
    margin: 24px auto 22px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .cta-footer .btn-footer { margin-left: calc(var(--cta-circle) / -2); }

  .btn-footer        { height: 60px; padding: 0 36px 0 32px; }
  .btn-circle-footer {
    width: var(--cta-circle);
    height: var(--cta-circle);
    right: calc(var(--cta-circle) * -0.75);
  }

  .footer-links   { justify-content: center; gap: 12px; }
  .footer-socials { justify-content: center; gap: 20px; transform: none; }

  .footer-nav-left a {
    font-size: 15px;
    letter-spacing: 0.04em;
  }
  .footer-links a {
    font-size: 13px;
  }
}

/* ===== ≤ 480px (small phones) ===== */
@media (max-width: 480px) {
  :root { --cta-circle: 62px; } /* 59px +3 */

  .footer-container { padding: 0 20px; }

  .footer-nav-left {
    grid-template-columns: repeat(3, auto);
    gap: 10px 28px;
  }
  .footer-logo img { max-width: 120px; }

  .cta-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 22px auto;
  }
  .cta-footer .btn-footer { margin-left: calc(var(--cta-circle) / -2); }

  .btn-footer        { height: 56px; padding: 0 32px 0 28px; }
  .btn-circle-footer {
    width: var(--cta-circle);
    height: var(--cta-circle);
    right: calc(var(--cta-circle) * -0.71);
  }

  .footer-nav-left a { font-size: 14px; }
  .footer-links a { font-size: 12px; }

  .footer-socials a img {
    width: 22px;
    height: 22px;
  }
}

/* ===== ≤ 360px (very small phones) ===== */
@media (max-width: 360px) {
  :root { --cta-circle: 55px; } /* 52px +3 */

  .footer-container { padding: 0 16px; }
  .footer-nav-left {
    grid-template-columns: repeat(3, auto);
    gap: 8px 20px;
  }

  .footer-logo img { max-width: 110px; }

  .cta-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
  }
  .cta-footer .btn-footer { margin-left: calc(var(--cta-circle) / -2); }

  .btn-footer        { height: 52px; padding: 0 28px 0 24px; }
  .btn-circle-footer {
    width: var(--cta-circle);
    height: var(--cta-circle);
    right: calc(var(--cta-circle) * -0.73);
  }

  .footer-nav-left a { font-size: 13px; }
  .footer-links a { font-size: 12px; }
}
/* === Center logo and NEXTSTUDIO text on all mobile sizes === */
@media (max-width: 900px) {
  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;   /* ✅ centers horizontally */
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .footer-logo img {
    display: block;
    margin: 0 auto 8px auto;  /* center logo and add small gap below */
  }

  .footer-logo span,
  .footer-logo p,
  .footer-logo h4 {
    display: block;
    text-align: center;
    margin: 0 auto;
  }
}