/* =============================================================
   KAIETUR KITCHEN — Footer Styles
   Depends on: tokens.css
   ============================================================= */

/* ---- Screen-reader only utility (if not already in base.css) ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================
   NEWSLETTER BAND
   ============================================================= */
.kk-newsletter-band {
  background: linear-gradient(135deg, var(--kk-charcoal) 0%, #1f1f1f 100%);
  border-top: 1px solid var(--kk-border);
  border-bottom: 1px solid var(--kk-border);
  padding: var(--space-12) var(--space-4);
}

.kk-newsletter-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.kk-newsletter-band__text {
  flex: 1 1 280px;
}

.kk-newsletter-band__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--kk-gold);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.kk-newsletter-band__sub {
  color: var(--kk-text-dim);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.kk-newsletter-band__form {
  flex: 1 1 380px;
  max-width: 480px;
}

.kk-newsletter-band__field-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.kk-newsletter-band__input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--kk-border);
  border-radius: var(--radius-sm);
  color: var(--kk-text-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.kk-newsletter-band__input::placeholder {
  color: var(--kk-text-dim);
}

.kk-newsletter-band__input:focus {
  outline: none;
  border-color: var(--kk-gold);
  box-shadow: 0 0 0 3px rgba(201, 150, 42, 0.18);
}

.kk-newsletter-band__btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* =============================================================
   MAIN FOOTER
   ============================================================= */
.kk-footer {
  background: var(--kk-dark);
  color: var(--kk-text-dim);
  font-family: var(--font-body);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1.5px solid var(--kk-green);
}

.kk-footer .kk-container {
  max-width: 1440px;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

/* ---- Footer: Brand+map left | Info columns right ---- */
.kk-footer__columns {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--space-12);
  align-items: center;
}

.kk-footer__col--brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-5);
}

.kk-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}

/* Right info block: 3 even sub-columns */
.kk-footer__col--info {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4) var(--space-10);
  align-items: start;
  padding-right: 0;
}

.kk-footer__info-group {}

/* Tablet: stack brand above 3-col info row */
@media (max-width: 900px) {
  .kk-footer__columns {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .kk-footer__col--brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .kk-footer__map-wrap {
    margin-left: 0;
    width: 100%;
  }

  .kk-footer__map {
    width: 100%;
    height: 240px;
  }

  .kk-footer__col--info {
    grid-template-columns: 1.4fr 1fr 1fr;
    padding-right: 0;
  }
}

/* Mobile: center-align, bigger map, Hours full-width + Visit Us/Services side-by-side */
@media (max-width: 600px) {
  /* Brand column: stretch children to fill full width */
  .kk-footer__col--brand {
    align-items: stretch;
  }

  /* Center all text content inside brand block */
  .kk-footer__brand-text {
    align-items: center;
    text-align: center;
  }

  .kk-footer__brand-desc {
    max-width: 100%;
  }

  /* Map: full-width, centered under brand name */
  .kk-footer__map-wrap {
    margin-left: 0;
    width: 100%;
    align-items: center;
    margin-bottom: var(--space-8);
  }

  .kk-footer__map {
    width: 100%;
    height: 340px;
  }

  .kk-footer__map-link {
    text-align: center;
  }

  /*
   * Info layout on mobile:
   *  Row 1 — Hours & Location (full width, centered)
   *  Row 2 — Visit Us | Services (centered as a pair, top-aligned)
   */
  .kk-footer__col--info {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: var(--space-8);
    row-gap: 0;
    justify-content: center;
    align-items: start;
    padding-bottom: var(--space-8);
  }

  /* Hours: spans both columns, content centered to match title */
  .kk-footer__col--info .kk-footer__info-group:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .kk-footer__col--info .kk-footer__info-group:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    margin-left: 0;
    align-self: start;
    text-align: left;
  }

  .kk-footer__col--info .kk-footer__info-group:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    margin-left: 0;
    align-self: start;
    text-align: left;
  }

  .kk-footer__col--info .kk-footer__info-group:nth-child(2) .kk-footer__link-list,
  .kk-footer__col--info .kk-footer__info-group:nth-child(3) .kk-footer__link-list {
    align-items: flex-start;
  }

  .kk-newsletter-band__field-row {
    flex-direction: column;
  }

  .kk-newsletter-band__btn {
    width: 100%;
  }
}

/* ---- Brand column ---- */
.kk-footer__brand-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.kk-footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--kk-gold);
  display: block;
  transition: color var(--transition);
  position: relative;
}

.kk-footer__brand-link:hover .kk-footer__brand-name,
.kk-footer__brand-link:focus .kk-footer__brand-name {
  color: var(--kk-gold-light);
}

.kk-footer__tagline {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kk-text-dim);
  margin: 0 0 0.4rem;
}

.kk-footer__brand-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--kk-text-dim);
  margin: 0 0 var(--space-3);
  max-width: 280px;
}

/* ---- Social icons ---- */
.kk-footer__social {
  display: flex;
  gap: 0.6rem;
}

.kk-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--kk-border);
  color: var(--kk-text-dim);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.kk-footer__social-link:hover,
.kk-footer__social-link:focus {
  background: rgba(201, 150, 42, 0.15);
  color: var(--kk-gold);
  border-color: var(--kk-gold);
  box-shadow: 0 0 12px rgba(201, 150, 42, 0.25);
  outline: none;
}

.kk-footer__social-icon {
  display: block;
  flex-shrink: 0;
}

/* ---- Links column ---- */
.kk-footer__nav {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.kk-footer__link-group {
  flex: 1 1 100px;
}

.kk-footer__link-heading {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kk-text-light);
  margin: 0 0 var(--space-2);
}

.kk-footer__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kk-footer__link {
  font-size: 0.875rem;
  color: var(--kk-text-dim);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.4;
}

.kk-footer__link:hover,
.kk-footer__link:focus {
  color: var(--kk-gold);
  outline: none;
}

/* ---- Contact & Hours column ---- */
.kk-footer__hours-table {
  border-collapse: collapse;
  border: none;
  width: 100%;
  margin-bottom: var(--space-3);
  font-size: 0.78rem;
}

.kk-footer__hours-table th,
.kk-footer__hours-table td {
  padding: 0.1rem 0;
  text-align: left;
  vertical-align: top;
  border: none !important;
  background: transparent !important;
}

.kk-footer__day {
  font-weight: 600;
  color: var(--kk-text-light);
  padding-right: 1.2rem;
  white-space: nowrap;
}

.kk-footer__hours {
  color: var(--kk-text-dim);
}

.kk-footer__hours--open {
  color: var(--kk-gold-light);
}

.kk-footer__hours--closed {
  color: var(--kk-text-dim);
  opacity: 0.6;
}

.kk-footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.kk-footer__address-line {
  font-size: 0.78rem;
  color: var(--kk-text-dim);
  line-height: 1.4;
  margin: 0;
}

.kk-footer__contact-link {
  color: var(--kk-text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.kk-footer__contact-link:hover,
.kk-footer__contact-link:focus {
  color: var(--kk-gold);
  outline: none;
}

/* ---- Map pin label ---- */
.kk-map-label {
  background: rgba(17, 17, 17, 0.88);
  color: #fff;
  border: 1px solid rgba(201, 150, 42, 0.6);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.kk-map-label::before {
  display: none;
}

/* Hide footer map on contact page — it has a better map already */
body.kk-contact-page .kk-footer__map {
  display: none;
}

/* ---- Footer map wrap + "View on Google Maps" link ---- */
.kk-footer__map-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

@media (min-width: 601px) {
  .kk-footer__map-wrap {
    margin-left: calc(16px + 1cm);
  }
}

.kk-footer__map {
  display: block;
  width: 190px;
  height: 190px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--kk-border);
  overflow: hidden;
}

.kk-footer__map-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--kk-gold);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-align: center;
  transition: color var(--transition);
}

.kk-footer__map-link:hover {
  color: var(--kk-gold-dark);
}

/* Desktop only — shift info groups for balanced layout */
@media (min-width: 601px) {
  .kk-footer__col--info .kk-footer__info-group:first-child {
    padding-right: var(--space-4);
    margin-left: 1.4cm;
  }

  .kk-footer__col--info .kk-footer__info-group:nth-child(2) {
    margin-left: 1cm;
  }

  .kk-footer__col--info .kk-footer__info-group:nth-child(3) {
    margin-left: -1cm;
  }
}


/* =============================================================
   BOTTOM BAR
   ============================================================= */
.kk-footer__bottom {
  border-top: 1px solid var(--kk-border);
  padding: var(--space-6) 0;
  padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
}

.kk-footer__bottom .kk-container {
  max-width: 1440px;
  padding-top: 0;
  padding-bottom: 0;
}

.kk-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.kk-footer__bottom-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Smaller icons in the bottom bar */
.kk-footer__bottom-left .kk-footer__social {
  gap: 0.35rem;
}

.kk-footer__bottom-left .kk-footer__social-link {
  width: 26px;
  height: 26px;
}

.kk-footer__copyright {
  font-size: 0.78rem;
  color: var(--kk-text-dim);
  opacity: 0.7;
  margin: 0;
}

.kk-footer__legal-nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.kk-footer__legal-link {
  font-size: 0.78rem;
  color: var(--kk-text-dim);
  opacity: 0.7;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

.kk-footer__legal-link:hover,
.kk-footer__legal-link:focus {
  color: var(--kk-gold);
  opacity: 1;
  outline: none;
}

@media (max-width: 600px) {
  .kk-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .kk-footer__bottom-left {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }

  .kk-footer__legal-nav {
    justify-content: center;
  }

  .kk-newsletter-band__inner {
    flex-direction: column;
  }

  .kk-newsletter-band__form {
    width: 100%;
    max-width: 100%;
  }
}
