/* Wereldwinkel Huizen – public site. Mobile-first. */

:root {
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-200: #bbf7d0;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --sand-50: #fffbeb;
  --sand-200: #fde68a;
  --ink: #1f2a22;
  --muted: #5b6b60;
  --line: #d6e7da;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 83, 45, 0.06), 0 4px 16px rgba(20, 83, 45, 0.07);
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--green-900);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green-800);
}

a:hover {
  color: var(--green-700);
}

:focus-visible {
  outline: 3px solid var(--sand-200);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--white);
  padding: 0.5rem 1rem;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 48rem;
}

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

.site-header {
  background: var(--green-900);
  color: var(--white);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}

.brand {
  color: var(--white);
  text-decoration: none;
  text-align: center;
}

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

.brand-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1.2;
}

.brand-tagline {
  display: block;
  font-size: 0.875rem;
  color: var(--green-200);
  letter-spacing: 0.02em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.site-nav a[aria-current="page"] {
  background: var(--white);
  color: var(--green-900);
}

/* ---------- Bands (page sections) ---------- */

.band {
  padding: 2.5rem 0;
}

.band-green {
  background: var(--green-50);
}

.band-sand {
  background: var(--sand-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-intro {
  padding: 2rem 0 1.5rem;
}

.page-intro h1 {
  margin: 0;
}

.section-title {
  margin-bottom: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.card + .card {
  margin-top: 1.25rem;
}

.card h2 {
  font-size: 1.3rem;
}

.button {
  display: inline-block;
  background: var(--green-900);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--green-800);
  color: var(--white);
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.text-link {
  font-weight: 600;
}

.photo {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.photo-wide {
  margin-top: 1.5rem;
}

/* ---------- Markdown text ---------- */

.prose > :last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 1.5em;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.25em;
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.prose li + li {
  margin-top: 0.25em;
}

.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 0.95rem;
  max-width: 100%;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--green-50);
  color: var(--green-900);
}

.prose-anbi td:not(:first-child),
.prose-anbi th:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

/* ---------- Opening hours ---------- */

.hours {
  margin: 0;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
}

.hours-row:last-child {
  border-bottom: 0;
}

.hours dt {
  font-weight: 600;
}

.hours dd {
  margin: 0;
  text-align: right;
}

/* ---------- Home ---------- */

.welcome-grid {
  display: grid;
  gap: 2rem;
}

.news-article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.news-article + .news-article {
  margin-top: 1.5rem;
}

.news-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.4rem;
}

.news-figure {
  margin: 0 0 1rem;
}

.news-figure img {
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  max-height: 28rem;
  width: auto;
}

.news-figure figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.read-more {
  margin-top: 1rem;
}

.read-more summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  background: var(--green-900);
  color: var(--white);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
}

.read-more summary::-webkit-details-marker {
  display: none;
}

.read-more summary:hover {
  background: var(--green-800);
}

.read-more[open] summary {
  margin-bottom: 1rem;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* ---------- Showcase ---------- */

.category-nav ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-nav a {
  display: block;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--green-200);
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
}

.category-nav a:hover {
  background: var(--green-100);
}

.category + .category {
  border-top: 1px solid var(--line);
}

.category-intro {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.product-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--sand-200);
  color: var(--green-900);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.product h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.product p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-details {
  font-style: normal;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--green-900);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #a7d7b5;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--green-200);
  border-color: var(--green-700);
}

/* Honeypot: hidden from people, visible to simple bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message:empty {
  display: none;
}

.form-message {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.form-message.is-success {
  background: var(--green-100);
  border: 1px solid var(--green-200);
  color: var(--green-900);
}

.form-message.is-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

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

.site-footer {
  background: var(--green-900);
  color: var(--white);
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
  font-size: 0.95rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.15rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer .hours-row {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li + li {
  margin-top: 0.3rem;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--green-200);
  margin: 2rem 0 0;
}

/* ---------- Larger screens ---------- */

@media (min-width: 40rem) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .product {
    padding: 1rem;
  }
}

@media (min-width: 48rem) {
  h1 {
    font-size: 2.4rem;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .brand {
    text-align: left;
  }

  .band {
    padding: 4rem 0;
  }

  .page-intro {
    padding: 2.5rem 0 2rem;
  }

  .welcome-grid {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 64rem) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
