/* Wi-Fly Connexion — landing page styles
*/

:root {
  --deep-petrol: #063F46;
  --petrol-blue: #085960;
  --champagne-gold: #C89A3C;
  --warm-white: #F4F4F1;
  --charcoal: #111315;
  --footer: #111315;
  --footer-input: #0b0f10;
  --gold-soft: #C89A3C;
  --footer-height: 80px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-width: 280px;
  min-height: 100%;
  background: var(--charcoal);
}

body {
  background: var(--charcoal);
  color: var(--warm-white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--deep-petrol);
}

.hero {
  width: 100%;
  flex: 0 1 auto;
  overflow: hidden;
  background: var(--deep-petrol);
  line-height: 0;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.footer {
  min-height: var(--footer-height);
  flex-shrink: 0;
  flex: 0 0 var(--footer-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 0 4.15%;
  background: var(--charcoal);
}

.social,
.signup {
  display: flex;
  align-items: center;
}

.social { justify-content: flex-start; gap: 14px; }

.label {
  color: var(--champagne-gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .13em;
  white-space: nowrap;
}

.social .label { margin-right: 7px; }

.social-link {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne-gold);
  text-decoration: none;
  border-radius: 4px;
  transition: opacity .2s ease, transform .2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: .82;
  transform: translateY(-1px);
  outline: 1px solid rgba(200,154,60,.45);
}

.social-link svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link.linkedin svg,
.social-link.facebook svg,
.social-link.twitter svg { fill: currentColor; stroke: none; }

.signup {
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}

.signup .label {
  padding-right: 14px;
  border-right: 1px solid rgba(244,244,241,.35);
}

.signup-form {
  width: min(318px, 31vw);
  height: 40px;
  display: flex;
  align-items: stretch;
  background: var(--footer-input);
  border: 1px solid rgba(244,244,241,.04);
}

.signup-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--warm-white);
  font: 400 14px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.signup-form input::placeholder {
  color: #c4c7c7;
  opacity: 1;
}

.signup-form input:focus {
  box-shadow: inset 0 0 0 1px rgba(200,154,60,.65);
}

.signup-form button {
  width: 45px;
  flex: 0 0 45px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--champagne-gold);
  cursor: pointer;
}

.signup-form button:hover,
.signup-form button:focus-visible {
  background: rgba(200,154,60,.07);
  outline: none;
}

.signup-form button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signup-form[aria-busy="true"] button { opacity: .55; cursor: wait; }

.consent-wrap,
.status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  :root { --footer-height: auto; }

  .footer {
    min-height: 92px;
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 5%;
  }

  .social,
  .signup { justify-content: center; }

  .signup-form { width: min(360px, 55vw); }
}

@media (max-width: 560px) {
  .footer {
    min-height: 150px;
    padding: 20px 18px 22px;
    gap: 18px;
  }

  .social {
    flex-wrap: wrap;
    gap: 9px;
  }

  .social .label {
    width: 100%;
    margin: 0 0 2px;
    text-align: center;
  }

  .signup {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .signup .label {
    padding: 0;
    border-right: 0;
  }

  .signup-form { width: min(100%, 360px); }
}

@media (prefers-reduced-motion: reduce) {
  .social-link { transition: none; }
}


/* Mobile viewport correction: the document ends exactly at the footer. */
@media (max-width: 900px) {
  .page {
    min-height: 0;
  }

  .footer {
    margin-top: 0;
  }
}
