/* =========================================================================
   <Footer /> — Master Blueprint Phase 2 / Build Packet 14
   Global Footer. Renders on every page, mounted below {children}.

   This is a SECOND conversion surface, not a graveyard. The CTA in Block 1
   is the final paid-diagnostic gate before bounce.

   ALL colour values are pulled from the Midnight Operator palette only.
   No new tokens introduced (tokens.css remains untouched). Component-
   local mutes (#94A3B8, #CBD5E1, #64748B) and the lighter-navy hairline
   (#1A2A4F) are scoped here per packet §2.3 + §3.2 + §5.2 + §6.3.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Root surface tokens — local to the footer module.
   ------------------------------------------------------------------------- */
.gfoot {
  --gf-bg:            #0A1A3F;                /* Deep Navy — primary surface */
  --gf-text:          #F8F9FB;                /* Off-White on navy */
  --gf-text-muted:    #94A3B8;                /* tagline / sub-label */
  --gf-text-link:     #CBD5E1;                /* sitemap link rest state */
  --gf-text-meta:     #64748B;                /* bottom-strip copyright/meta */
  --gf-accent:        #E8B400;                /* Electric Lime */
  --gf-accent-hover:  #FFE246;
  --gf-hairline:      #1A2A4F;                /* lighter navy, packet §2.3 */
  --gf-social-glow:   rgba(232, 180, 0, 0.35);

  --gf-max:           1280px;
  --gf-pad-x:         24px;
  --gf-pad-top:       80px;
  --gf-pad-bottom:    40px;
  --gf-block-pad:     64px;
  --gf-bottom-pad:    40px;
  --gf-col-gap:       32px;

  background: var(--gf-bg);
  color: var(--gf-text);
  font-family: var(--font-body);

  /* Sit cleanly under the last section regardless of its surface. */
  width: 100%;
  position: relative;
  isolation: isolate;
}

.gfoot * { box-sizing: border-box; }
.gfoot a { text-decoration: none; color: inherit; }

/* Inner container — every block lives inside one of these. */
.gfoot__inner {
  max-width: var(--gf-max);
  margin: 0 auto;
  padding: 0 var(--gf-pad-x);
}

/* Outer wrapper handles vertical edge padding (80 top / 40 bottom per spec).
   Block separators are hairlines drawn on the wrappers themselves. */
.gfoot__top    { padding-top: var(--gf-pad-top); }
.gfoot__bottom { padding-bottom: var(--gf-pad-bottom); }

.gfoot__divider {
  height: 1px;
  width: 100%;
  background: var(--gf-hairline);
  border: 0;
  margin: 0;
}

/* -------------------------------------------------------------------------
   Focus ring — 2px lime via :focus-visible on every interactive element.
   ------------------------------------------------------------------------- */
.gfoot a:focus-visible,
.gfoot button:focus-visible {
  outline: 2px solid var(--gf-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================================
   BLOCK 1 — Brand + final CTA
   ========================================================================= */
.gfoot__brand {
  padding-top: var(--gf-block-pad);
  padding-bottom: var(--gf-block-pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}

.gfoot__brand-copy {
  max-width: 640px;
}

.gfoot__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gf-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}


.gfoot__tagline {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--gf-text-muted);
}

/* ----- Booking status row (PixelForce W2) ------------------------------ */
.gfoot__status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 8px 14px 8px 12px;
  background: rgba(232, 180, 0, 0.06);
  border: 1px solid rgba(232, 180, 0, 0.18);
  border-radius: 999px;
}

.gfoot__status-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
}

.gfoot__status-dot::before,
.gfoot__status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gf-accent);
}

/* The ping — sits behind the solid core, scales out and fades. */
.gfoot__status-dot::before {
  animation: gfoot-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes gfoot-ping {
  0%   { transform: scale(1);    opacity: 0.75; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.gfoot__status-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--gf-text);
  letter-spacing: -0.005em;
}

/* ----- CTA column (right-aligned on desktop) --------------------------- */
.gfoot__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* `.gfoot a { color: inherit }` above out-specifies a bare `.gfoot__cta`,
   so this selector is scoped with `.gfoot` to keep the navy text on the
   yellow button across every page. */
.gfoot .gfoot__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 32px;
  border-radius: 8px;
  background: var(--gf-accent);
  color: #0A1A3F;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 0;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.gfoot__cta:hover { background: var(--gf-accent-hover); }
.gfoot__cta:active { transform: translateY(1px); }

.gfoot__cta-arrow {
  width: 14px;
  height: 14px;
  transition: transform 220ms var(--ease-out-soft);
}

.gfoot__cta:hover .gfoot__cta-arrow { transform: translateX(3px); }

.gfoot__cta-sub {
  font-size: 13px;
  color: var(--gf-text-muted);
  margin: 0;
}

/* =========================================================================
   BLOCK 2 — Sitemap (4 columns — only real, in-site routes)
   ========================================================================= */
.gfoot__sitemap {
  padding-top: var(--gf-block-pad);
  padding-bottom: var(--gf-block-pad);

  display: grid;
  /* Services is the tall column; give it a touch more room, keep the rest even. */
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px var(--gf-col-gap);
}

.gfoot__col {
  min-width: 0;
}

.gfoot__col-heading {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gf-accent);
}

.gfoot__col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gfoot__col-list a {
  display: inline-block;
  font-size: 15px;
  line-height: 1.4;
  color: var(--gf-text-link);
  transition: color 160ms ease;
}

.gfoot__col-list a:hover { color: var(--gf-text); }

/* =========================================================================
   BLOCK 3 — Bottom strip (copyright / longevity / city + social icons)
   ========================================================================= */
.gfoot__strip {
  padding-top: var(--gf-bottom-pad);
  padding-bottom: var(--gf-bottom-pad);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.gfoot__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gf-text-meta);
}

.gfoot__meta-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--gf-hairline);
}

.gfoot__social {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gfoot__social a {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: rgba(248, 249, 251, 0.8);
  transition: color 160ms ease, box-shadow 200ms ease, background-color 160ms ease;
}

.gfoot__social a:hover {
  color: var(--gf-text);
  background: rgba(232, 180, 0, 0.06);
  box-shadow: 0 0 0 1px rgba(232, 180, 0, 0.18),
              0 0 14px var(--gf-social-glow);
}

.gfoot__social svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* =========================================================================
   Responsive
   ========================================================================= */

/* Tablet — collapse brand row stack, sitemap from 5 → 2 cols at <768. */
@media (max-width: 1024px) {
  .gfoot__brand {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: flex-start;
  }
  .gfoot__cta-wrap { align-items: flex-start; }
}

@media (max-width: 768px) {
  .gfoot {
    --gf-pad-top: 56px;
    --gf-pad-bottom: 32px;
    --gf-block-pad: 48px;
    --gf-bottom-pad: 32px;
  }

  .gfoot__sitemap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .gfoot__logo { font-size: 28px; }
  .gfoot__tagline { font-size: 17px; }

  .gfoot__strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .gfoot__meta { justify-content: center; }
}

@media (max-width: 480px) {
  .gfoot__sitemap { grid-template-columns: 1fr; }

  .gfoot__cta {
    width: 100%;
    justify-content: center;
  }
  .gfoot__cta-wrap { width: 100%; }
}

/* =========================================================================
   prefers-reduced-motion — kill the booking dot ping animation.
   Packet §4.1: "Disabled if prefers-reduced-motion."
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .gfoot__status-dot::before {
    animation: none;
    opacity: 0;            /* hide the halo entirely; solid core remains */
  }
  .gfoot__cta-arrow { transition: none; }
  .gfoot__cta:hover .gfoot__cta-arrow { transform: none; }
  .gfoot__col-list a,
  .gfoot__social a,
  .gfoot__cta { transition: none; }
}


/* === BEGIN: Build Packet 33-V3 — Legal Trio === */
/* Footer legal links — Privacy / Terms / Cookies row.
   Sits in the gfoot__strip flex row alongside meta + social.
   13px muted grey, hover lime. Wraps on mobile. */
.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--gf-text-meta);
  line-height: 1.4;
}
.footer-legal-links a {
  color: var(--gf-text-meta);
  text-decoration: none;
  transition: color 160ms ease;
}
.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: #E8B400;
}
.footer-legal-links span[aria-hidden="true"] {
  color: var(--gf-hairline);
  user-select: none;
}
@media (max-width: 768px) {
  .footer-legal-links { justify-content: center; }
}
/* === END: Build Packet 33-V3 — Legal Trio === */
