/* Ohzehn shared site styles: footer, cookie banner, accessibility, common utilities. */

/* ============================================================
   ACCESSIBILITY (WCAG 2.1 AA)
   ============================================================ */

/* Skip-to-content link: visible on focus only, jumps past the topbar. */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--ink, #16181a);
  color: #f6f3ea;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  z-index: 10000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid #f6f3ea;
  outline-offset: 2px;
}

/* Visible keyboard focus on all interactive elements. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--forest, #2e3a2e);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced-motion users get instant transitions. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Screen-reader-only helper. */
.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;
}

/* ============================================================
   FOOTER + COOKIE BANNER
   ============================================================ */

/* "Also serving" cities grid on the /cities hub */
.also-serving {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line, #e7e3d6);
}
.also-serving h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 26px; letter-spacing: -0.02em;
  margin: 0; color: var(--ink, #16181a);
}
.serving-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--card, #ffffff);
  border: 1px solid var(--line, #e7e3d6);
  border-radius: 12px;
  overflow: hidden;
}
.serving-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft, #efece2);
  align-items: baseline;
}
.serving-row:last-child { border-bottom: none; }
.serving-country {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--forest, #2e3a2e);
}
.serving-cities {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px; line-height: 1.65;
  color: var(--ink-soft, #353a3f);
}
.serving-cities a.serving-launched {
  color: var(--ink, #16181a);
  text-decoration: underline;
  text-decoration-color: var(--forest-2, #4a5d4a);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.serving-cities a.serving-launched:hover {
  color: var(--forest, #2e3a2e);
}
@media (max-width: 720px) {
  .serving-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
}
.also-serving-footnote {
  margin-top: 18px;
  font-size: 14px; color: var(--ink-soft, #353a3f); line-height: 1.6;
  font-style: italic;
}
.also-serving-footnote a { color: var(--forest, #2e3a2e); }

/* Site footer */
.site-footer {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line, #e7e3d6);
  color: var(--ink-soft, #353a3f);
  font-size: 13.5px;
  line-height: 1.55;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand img { height: 18px; display: block; margin-bottom: 14px; opacity: 0.95; }
.footer-tag { max-width: 280px; margin: 0 0 10px 0; color: var(--ink-soft, #353a3f); font-size: 13px; }
.footer-meta { margin: 0; color: var(--ink-mute, #6b6f76); font-size: 12px; }
.footer-col h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-mute, #6b6f76);
  margin: 0 0 12px 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--ink, #16181a); text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: var(--forest, #2e3a2e); }

.footer-bottom {
  border-top: 1px solid var(--line, #e7e3d6);
  padding: 18px 0 8px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-mute, #6b6f76);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom-right { font-style: italic; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Cookie consent banner */
.ohzehn-consent {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 720px; margin: 0 auto;
  background: var(--ink, #16181a); color: #f6f3ea;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13.5px; line-height: 1.5;
  z-index: 9999;
  display: none;
}
.ohzehn-consent.is-open { display: block; }
.ohzehn-consent h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15.5px; font-weight: 600;
  margin: 0 0 8px 0; color: #fff;
  letter-spacing: -0.015em;
}
.ohzehn-consent p { margin: 0 0 14px 0; color: rgba(255,255,255,0.78); }
.ohzehn-consent a { color: #f6f3ea; text-decoration: underline; text-underline-offset: 2px; }
.ohzehn-consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ohzehn-consent-actions button {
  font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 8px; cursor: pointer; border: 0;
  transition: background 0.12s ease;
}
.ohzehn-consent-actions .accept-all { background: #f6f3ea; color: var(--ink, #16181a); }
.ohzehn-consent-actions .accept-all:hover { background: #fff; }
.ohzehn-consent-actions .accept-essential {
  background: transparent; color: #f6f3ea;
  border: 1px solid rgba(255,255,255,0.25);
}
.ohzehn-consent-actions .accept-essential:hover { background: rgba(255,255,255,0.06); }
.ohzehn-consent-actions .customize {
  background: transparent; color: rgba(255,255,255,0.7); padding-left: 4px; padding-right: 4px;
}
.ohzehn-consent-actions .customize:hover { color: #fff; }
.ohzehn-consent-fine {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: none;
}
.ohzehn-consent.is-customizing .ohzehn-consent-fine { display: block; }
.ohzehn-consent-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; padding: 10px 0;
}
.ohzehn-consent-row + .ohzehn-consent-row { border-top: 1px solid rgba(255,255,255,0.08); }
.ohzehn-consent-row label {
  font-weight: 600; color: #fff; font-size: 13px;
  display: flex; flex-direction: column; gap: 4px;
}
.ohzehn-consent-row label small { font-weight: 400; color: rgba(255,255,255,0.65); font-size: 12.5px; }
.ohzehn-consent-row input[type="checkbox"] {
  margin-top: 4px; accent-color: #f6f3ea;
}
.ohzehn-consent-row input[type="checkbox"]:disabled { opacity: 0.5; }

@media (max-width: 540px) {
  .ohzehn-consent { left: 10px; right: 10px; bottom: 10px; padding: 16px 18px; }
  .ohzehn-consent-actions { flex-direction: column; align-items: stretch; }
  .ohzehn-consent-actions button { width: 100%; text-align: center; }
}
