/* ================================================
   eNeighbor.app shared page styles
   ================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #fdfaf5;
  --surface: #ffffff;
  --card: #f8f2e8;
  --band: #ede6d6;
  --text: #1a2b1c;
  --text-muted: #6b6050;
  --border: #e7ddd0;

  --primary: #1e6fa0;
  --primary-ink: #ffffff;
  --accent: #f49f04;
  --green: #16541f;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:
    "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 960px;
  --content: 760px;
  --radius: 14px;

  --color-bg: var(--bg);
  --color-text: var(--text);
  --color-accent: var(--primary);
  --color-muted: var(--text-muted);
  --color-border: var(--border);
  --font-main: var(--font-display);
  --font-ui: var(--font-body);
  --max-width: var(--content);
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem 5rem;
  flex: 1;
}

img {
  max-width: 100%;
}

a {
  color: var(--primary);
}

a:hover {
  color: #14507a;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Skip navigation (accessibility) ---- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--text);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ---- Shared navigation ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  box-shadow: 0 1px 3px rgba(43, 37, 33, 0.18);
  display: block;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--text);
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.6rem 1.15rem;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover,
button:hover {
  color: var(--primary-ink);
  opacity: 0.88;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-ink);
}

/* ---- Typography ---- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  max-width: 15ch;
  margin: 0 0 1rem;
  font-size: clamp(2.05rem, 6vw, 3rem);
}

h2 {
  margin: 2.75rem 0 0.6rem;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
}

p {
  margin: 0 0 1.2rem;
}

ul,
ol {
  padding-left: 1.35rem;
  margin: 0 0 1.35rem;
}

li {
  margin: 0.45rem 0;
}

strong {
  color: var(--text);
}

.app-name {
  font-style: italic;
  white-space: nowrap;
}

/* ---- Support and action blocks ---- */

.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 1.75rem 0;
  font-family: var(--font-body);
  box-shadow: 0 18px 45px -32px rgba(26, 43, 28, 0.35);
}

.contact-block a {
  font-weight: 600;
}

/* ---- Store badges ---- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 1.5rem;
}

.store-badge {
  display: inline-flex;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 5px;
  transition: border-color 0.15s;
}

.store-badge:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.store-badge img {
  width: auto;
  display: block;
}

/* Apple's badge art fills its box; Google's bakes in its required ~1/4 clear
   space. Rendering Google taller makes the two visible buttons match height. */
.store-badge--apple img {
  height: 44px;
}

.store-badge--google img {
  height: 65px;
}

/* Accent frame around the store matching the visitor's detected device. The
   badge art itself stays unaltered, per Apple/Google brand guidelines. */
.store-badge--primary {
  border-color: var(--primary);
  background: var(--surface);
}

/* ---- Shared footer ---- */

.footer {
  background: var(--text);
  color: #d9cfc4;
}

.footer .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.footer__brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
}

.footer__brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #fdfaf5;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.footer__links a {
  color: #d9cfc4;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer__links a:hover {
  color: #fdfaf5;
  text-decoration: underline;
}

.footer__legal {
  font-size: 0.85rem;
  color: #a89b8d;
  margin: 0;
}

.footer__legal a {
  color: #d9cfc4;
  text-decoration: underline;
}

.footer__legal a:hover {
  color: #fdfaf5;
}

@media (max-width: 700px) {
  .nav__links {
    display: none;
  }

  main {
    padding-top: 3rem;
  }
}

@media (max-width: 440px) {
  html {
    font-size: 17px;
  }

  .nav__inner {
    padding-inline: 1rem;
  }

  .brand__name {
    font-size: 1.15rem;
  }

  .btn {
    padding-inline: 0.9rem;
  }

  .contact-block {
    padding: 1.25rem;
  }
}
