/* =============================================================
   FOOTER.CSS — Dark espresso footer, 4-column grid
   ============================================================= */

/* Screen-reader only utility (for newsletter label) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =============================================
   FOOTER BASE
   ============================================= */

.footer {
  background: var(--c-text);   /* deep espresso #1C1410 */
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

/* Ghosted large letterform behind all content */
.footer__bg-name {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(16rem, 32vw, 42rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.022);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  white-space: nowrap;
  z-index: 0;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem 0;
  position: relative;
  z-index: 1;
}

/* =============================================
   MAIN GRID — 4 columns
   ============================================= */

.footer__grid {
  display: grid;
  grid-template-columns: 26fr 17fr 22fr 35fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

/* =============================================
   COL 1 — Brand
   ============================================= */

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-self: flex-start;
  transition: opacity 0.22s var(--ease-expo);
}

.footer__logo:hover { opacity: 0.75; }

.footer__logo-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: rgba(253, 250, 244, 0.92);
  line-height: 1;
  display: block;
}

.footer__logo-label {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(253, 250, 244, 0.3);
  display: block;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(253, 250, 244, 0.45);
  line-height: 1.7;
  max-width: 28ch;
}

/* Social icons */
.footer__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(253, 250, 244, 0.12);
  color: rgba(253, 250, 244, 0.45);
  transition:
    background    0.22s var(--ease-expo),
    color         0.22s var(--ease-expo),
    border-color  0.22s var(--ease-expo),
    transform     0.22s var(--ease-expo);
}

.footer__social-link:hover {
  background: rgba(196, 163, 90, 0.14);
  color: var(--c-accent-lt);
  border-color: rgba(196, 163, 90, 0.3);
  transform: translateY(-2px);
}

/* =============================================
   COLS 2–3 — Nav + Visit
   ============================================= */

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__col-heading {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent-lt);
  margin-bottom: 0.25rem;
}

/* Nav links */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  list-style: none;
}

.footer__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(253, 250, 244, 0.52);
  letter-spacing: 0.01em;
  padding: 0.25rem 0;
  transition:
    color       0.22s var(--ease-expo),
    padding-left 0.22s var(--ease-expo);
  display: block;
}

.footer__link:hover {
  color: rgba(253, 250, 244, 0.9);
  padding-left: 0.25rem;
}

/* Address */
.footer__address {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  font-style: normal;
  color: rgba(253, 250, 244, 0.55);
  line-height: 1.75;
}

/* Hours */
.footer__hours {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer__hours-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(253, 250, 244, 0.48);
  padding: 0.3125rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__hours-row:last-child { border-bottom: none; }

.footer__hours-row--closed {
  color: rgba(253, 250, 244, 0.22);
}

.footer__email {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--c-accent-lt);
  letter-spacing: 0.01em;
  transition: color 0.22s var(--ease-expo);
  word-break: break-all;
}

.footer__email:hover { color: rgba(253, 250, 244, 0.9); }

/* =============================================
   COL 4 — Newsletter
   ============================================= */

.footer__col-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(253, 250, 244, 0.42);
  line-height: 1.7;
}

/* Subscribe form */
.footer__subscribe {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__subscribe-field {
  display: flex;
  gap: 0;
  border: 1px solid rgba(253, 250, 244, 0.14);
  border-radius: 0.625rem;
  overflow: hidden;
  transition: border-color 0.22s var(--ease-expo), box-shadow 0.22s var(--ease-expo);
}

.footer__subscribe-field:focus-within {
  border-color: rgba(196, 163, 90, 0.4);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.08);
}

.footer__subscribe-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(253, 250, 244, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 0.75rem 0.875rem;
  outline: none;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

.footer__subscribe-input::placeholder {
  color: rgba(253, 250, 244, 0.22);
}

.footer__subscribe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex-shrink: 0;
  background: rgba(196, 163, 90, 0.15);
  border: none;
  border-left: 1px solid rgba(253, 250, 244, 0.08);
  color: var(--c-accent-lt);
  cursor: pointer;
  transition:
    background 0.22s var(--ease-expo),
    color      0.22s var(--ease-expo);
}

.footer__subscribe-btn:hover {
  background: var(--c-accent-lt);
  color: var(--c-text);
}

.footer__subscribe-btn:active { transform: scale(0.95); }

.footer__subscribe-note {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 300;
  color: rgba(253, 250, 244, 0.22);
  letter-spacing: 0.04em;
}

/* =============================================
   DIVIDER + BOTTOM BAR
   ============================================= */

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 2.5rem;
  flex-wrap: wrap;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(253, 250, 244, 0.3);
  letter-spacing: 0.03em;
}

.footer__credits {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(253, 250, 244, 0.18);
  letter-spacing: 0.02em;
  /* Push to center */
  flex: 1;
  text-align: center;
}

/* Back to top */
.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(253, 250, 244, 0.3);
  flex-shrink: 0;
  transition:
    color     0.22s var(--ease-expo),
    gap       0.22s var(--ease-expo);
}

.footer__top-link:hover {
  color: var(--c-accent-lt);
  gap: 0.5rem;
}

/* Arrow nudges up on hover */
.footer__top-link svg {
  transition: transform 0.22s var(--ease-expo);
}

.footer__top-link:hover svg { transform: translateY(-2px); }

.footer__bottom-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

/* Admin link */
.footer__admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(253, 250, 244, 0.3);
  flex-shrink: 0;
  transition: color 0.22s var(--ease-expo);
}

.footer__admin-link:hover {
  color: var(--c-accent-lt);
}


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding-top: 4rem;
  }

  .footer__inner {
    padding: 0 1.25rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .footer__credits {
    display: none;
  }

  .footer__bottom {
    padding-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }
}
