/* Junivy Studio — brand palette matches Happy Tails Network's theme
   (src/theme/colors.ts) so every Junivy Studio project reads as one family. */
:root {
  --bg: #F4F6F4;
  --surface: #FFFFFF;
  --surface-alt: #C0C8C2;
  --border: #D6DBD4;
  --text: #22281F;
  --text-muted: #5A6459;
  --accent: #738678;
  --accent-alt: #95A399;
  --danger: #C05A4E;
  --warn: #C99A3E;

  --max-width: 1080px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B2119;
    --surface: #242B22;
    --surface-alt: #384E3E;
    --border: #3A4537;
    --text: #EAEFE8;
    --text-muted: #AEB8AA;
    --accent: #8FA495;
    --accent-alt: #566C5C;
    --danger: #E07A6D;
    --warn: #E0B75E;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

a { color: inherit; }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--accent);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.nav-links a.active {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 38px;
  height: 38px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-copyright {
  margin: 0;
  text-align: left;
}

.footer-columns {
  display: flex;
  justify-content: flex-end;
  gap: 56px;
  flex-wrap: wrap;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 2px;
}

.footer-col a {
  font-size: 13px;
  text-decoration: none;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 56px 0 40px;
}

.hero h1 {
  font-size: 42px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

/* ---------- Section headings ---------- */
.section-title {
  font-size: 26px;
  margin: 0 0 8px;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 640px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1.5px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
}

.gallery-placeholder span {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.gallery-placeholder p {
  margin: 0;
  font-size: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

a.card {
  text-decoration: none;
  transition: border-color 0.15s ease;
}

a.card:hover {
  border-color: var(--accent);
}

.card h3 {
  margin: 0;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  flex-grow: 1;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text);
}

.badge-warn {
  background: var(--warn);
  color: #22281F;
}

.card-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* ---------- About / Contact content ---------- */
.prose {
  max-width: 640px;
}

.prose p {
  line-height: 1.7;
  color: var(--text-muted);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 480px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.contact-row:first-of-type {
  border-top: none;
}

.contact-label {
  color: var(--text-muted);
  font-size: 13px;
  width: 90px;
  flex-shrink: 0;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-status {
  margin: 12px 0 0;
  font-size: 13px;
  min-height: 18px;
}

.form-status-success {
  color: var(--accent);
}

.form-status-error {
  color: var(--danger);
}

.qr-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  width: 160px;
}

.qr-item img {
  width: 128px;
  height: 128px;
  border-radius: 8px;
}

.qr-item span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.placeholder-note {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 16px;
}
