/* ==========================================================================
   Pathway IT — footer.css
   Dark footer with newsletter, brand blurb, link columns, contact, socials,
   status pill. Rendered by js/render.js into #site-footer.
   ========================================================================== */

.site-footer { background: var(--grad-dark); color: #c7d0ee; padding-top: clamp(3.5rem, 7vw, 6rem); position: relative; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(124, 126, 245, .4), transparent); }

/* newsletter */
.footer-news { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-news h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; }
.footer-news p { color: #9aa6cf; margin-top: .5rem; max-width: 46ch; }
.news-form { display: flex; gap: .6rem; }
.news-form input { width: min(320px, 60vw); padding: .95rem 1.2rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.news-form input::placeholder { color: #8b96c2; }
.news-form input:focus-visible { outline-color: var(--indigo-400); border-color: var(--indigo-400); }
.news-note { font-size: .78rem; color: #7f8ab7; margin-top: .7rem; }
@media (max-width: 760px) { .footer-news { grid-template-columns: 1fr; } .news-form input { width: 100%; } }

/* columns */
.footer-main { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand .brand-logo { height: 52px; }
.footer-blurb { color: #9aa6cf; max-width: 34ch; font-size: .93rem; }
.footer-contact { display: grid; gap: .5rem; margin-top: 1.4rem; font-size: .9rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .5rem; color: #c7d0ee; }
.footer-contact a:hover { color: var(--sky); }
.footer-contact svg { width: 16px; height: 16px; color: var(--indigo-400); }

.footer-col h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8b96c2; margin-bottom: 1rem; font-family: var(--font-mono); font-weight: 600; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a,
.footer-col .footer-link { color: #b3bde0; font-size: .92rem; transition: color var(--t) var(--ease); }
.footer-col a:hover,
.footer-col .footer-link:hover { color: #fff; }
/* "Start a Project" opens the enquiry modal, so it is a button dressed as a link. */
.footer-col .footer-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }

@media (max-width: 960px) {
  .footer-main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Phones: keep the link columns two-up. Stacking all four into one column
   made the footer ~1700px tall, which is a lot of thumb work to get past. */
@media (max-width: 700px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 1.2rem; padding-block: clamp(2rem, 6vw, 2.8rem);
  }
  .footer-brand .brand { margin-bottom: .85rem; }
  .footer-brand .brand-logo { height: 44px; }
  .footer-blurb { max-width: none; font-size: .88rem; }
  .footer-contact { margin-top: 1.1rem; font-size: .86rem; }
  .footer-col h4 { margin-bottom: .7rem; }
  .footer-col ul { gap: .55rem; }
  .footer-col a, .footer-col .footer-link { font-size: .88rem; }
}

/* WhatsApp is the primary way in, so it is tinted green rather than muted.
   Needs to outrank `.footer-contact a`, hence the two-class selectors. */
.footer-contact .footer-wa { color: #34D399; }
.footer-contact .footer-wa:hover { color: #6EE7B7; }
.footer-contact .footer-wa svg { color: currentColor; }

/* bottom bar */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .85rem; }
.footer-bottom .legal a:hover { color: #fff; }
.footer-copy { font-size: .85rem; color: #8b96c2; }

/* `space-between` on three items wraps into ragged rows once it runs out of
   room, so below this it becomes a deliberate centred stack instead. */
@media (max-width: 700px) {
  .footer-bottom {
    flex-direction: column; justify-content: center; text-align: center;
    gap: .8rem; padding-block: 1.3rem;
  }
  .footer-bottom .legal { justify-content: center; gap: 1.1rem; }
  .footer-copy { order: 1; font-size: .8rem; }
}

/* Side-by-side input and button get too cramped to tap comfortably here. */
@media (max-width: 430px) {
  .news-form { flex-direction: column; }
  .news-form input { width: 100%; }
  .news-form .btn { width: 100%; justify-content: center; }
}
