/* PetInn website styles. Colours and font follow the mobile app (petinn-mobile/lib/src/app.dart). */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #d7ebdf;           /* app scaffold background */
  --bg-deep: #c4e0cf;
  --surface: #f6fbf8;
  --brown: #4a2f1c;        /* app icon brown */
  --brown-soft: #6b4a33;
  --text: #2e1d11;
  --text-muted: #5a4a3e;
  --green: #2f6b4f;
  --green-soft: #e8f4ed;
  --todo-bg: #fff1b8;
  --todo-text: #6a4b00;
  --draft: #b3261e;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(74, 47, 28, 0.10);
  --max: 1080px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brown);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

/* ---------- Header ---------- */

.site-header {
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brown);
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.lang-toggle {
  display: inline-flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow);
}

.lang-toggle button {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border: 0;
  background: transparent;
  color: var(--brown);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 44px;
  min-height: 36px;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--brown);
  color: #fff;
}

main {
  flex: 1 0 auto;
}

/* ---------- Report banner ---------- */

.report-banner {
  margin: 8px 0 0;
}

.report-banner .inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.report-banner svg {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--green);
  margin-top: 2px;
}

.report-banner h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--brown);
}

.report-banner p {
  margin: 0 0 8px;
  color: var(--text-muted);
}

.report-banner a {
  font-weight: 700;
}

/* ---------- Open in the app (Android, /reports/{id}) ---------- */

.open-app {
  margin: 4px 0 12px;
}

.open-app .button {
  max-width: 100%;
  text-align: center;
}

.hero .open-app-hero {
  margin: 24px 0 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 32px 0 48px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  text-align: center;
}

.hero-icon {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 40px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--brown);
  letter-spacing: -0.5px;
}

.hero .tagline {
  margin: 10px 0 0;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--green);
}

.hero .lead {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: 1.1rem;
  color: var(--text);
}

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

.stores {
  margin-top: 28px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: var(--brown);
  color: #fff;
  text-decoration: none;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

a.store-badge[href]:hover {
  background: #3a2414;
  color: #fff;
  transform: translateY(-2px);
}

.store-badge svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge .badge-small {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.85;
}

.store-badge .badge-big {
  font-size: 1.3rem;
  font-weight: 800;
}

.store-badge[aria-disabled="true"] {
  background: var(--brown-soft);
  cursor: default;
}

.store-badge[aria-disabled="true"] .badge-small {
  color: #ffe6a8;
  opacity: 1;
}

.stores .note {
  margin: 14px auto 0;
  max-width: 30em;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */

.section {
  padding: 40px 0;
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brown);
  text-align: center;
}

.section .section-lead {
  margin: 0 auto 28px;
  max-width: 36em;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card svg {
  width: 44px;
  height: 44px;
  color: var(--green);
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.closing {
  text-align: center;
}

.closing .panel {
  background: var(--bg-deep);
  border-radius: 28px;
  padding: 36px 24px;
}

.closing p {
  margin: 0 auto 20px;
  max-width: 34em;
  font-size: 1.1rem;
}

.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
}

.button:hover {
  background: #245640;
  color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 28px 0 36px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(74, 47, 28, 0.15);
  padding-top: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  font-weight: 700;
}

/* ---------- Document pages (privacy, 404) ---------- */

.doc {
  padding: 16px 0 48px;
}

.doc .container {
  max-width: 820px;
}

.doc-body {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

.doc-body h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 800;
  color: var(--brown);
  line-height: 1.2;
}

.doc-body h2 {
  margin: 32px 0 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.3;
}

.doc-body h3 {
  margin: 20px 0 6px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--brown);
}

.doc-body ul {
  padding-left: 1.3em;
}

.doc-body li {
  margin: 4px 0;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.draft-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 2px dashed var(--draft);
  background: #fdecea;
  color: var(--draft);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 20px;
  font-weight: 700;
}

.draft-banner strong {
  display: inline-block;
  background: var(--draft);
  color: #fff;
  border-radius: 6px;
  padding: 0 8px;
  letter-spacing: 1px;
}

.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
}

.notfound {
  text-align: center;
}

.notfound .code {
  font-size: clamp(4rem, 20vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brown);
  margin: 0;
}

.notfound img {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  border-radius: 28px;
}

.notfound p {
  color: var(--text-muted);
  max-width: 30em;
  margin: 12px auto 24px;
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .doc-body {
    padding: 40px 48px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 56px 0 72px;
  }

  .hero .container {
    grid-template-columns: 280px 1fr;
    gap: 56px;
    text-align: left;
  }

  .hero-icon {
    width: 280px;
    height: 280px;
    border-radius: 64px;
  }

  .hero .lead {
    margin-left: 0;
  }

  .store-buttons {
    justify-content: flex-start;
  }

  .stores .note {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .store-badge {
    transition: none;
  }
}
