/* ==========================================================================
   Braspenning Agro — conceptwebsite
   Natuurlijke groentinten, rustig en professioneel.
   ========================================================================== */

:root {
  --green-dark: #23392c;
  --green-mid: #4c6b4f;
  --green-soft: #e9efe6;
  --green-line: #d7e1d1;
  --cream: #faf9f5;
  --white: #ffffff;
  --text-main: #2a2f28;
  --text-muted: #5b6459;
  --accent: #8a6d3b;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --container-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--green-dark);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 500;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

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

.container.narrow { max-width: 760px; }

/* Concept banner --------------------------------------------------------- */

.concept-banner {
  background: var(--green-dark);
  color: var(--green-soft);
  text-align: center;
  font-size: .85rem;
  padding: 8px 16px;
  letter-spacing: .01em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--green-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--green-dark);
  font-weight: 500;
}

.logo-mark {
  height: 30px;
  width: auto;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a:not(.btn) {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.main-nav a:not(.btn):hover { color: var(--green-mid); }

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

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--green-dark);
  color: var(--green-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--green-soft);
}

.btn-small {
  padding: 9px 20px;
  font-size: .85rem;
}

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

.hero {
  background:
    linear-gradient(160deg, rgba(24, 38, 29, 0.62) 0%, rgba(24, 38, 29, 0.42) 45%, rgba(24, 38, 29, 0.22) 100%),
    url('images/hero-veld.jpg') center 65% / cover no-repeat;
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--green-line);
}

.hero-inner { max-width: 760px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green-soft);
  margin-bottom: 18px;
}

.hero h1 {
  margin-bottom: 22px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(15, 23, 17, 0.45);
}

.hero-tagline {
  font-size: 1.05rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(15, 23, 17, 0.4);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

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

.section {
  padding: 90px 0;
}

.section-muted {
  background: var(--cream);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-intro {
  max-width: 620px;
  font-size: 1.05rem;
}

/* Placeholder markers -------------------------------------------------------- */

.placeholder-text,
.placeholder-block {
  position: relative;
  border: 1.5px dashed #c9b98f;
  background: #fbf7ee;
  border-radius: 10px;
  padding: 14px 18px;
}

.placeholder-text.small { font-size: .9rem; padding: 10px 14px; }

.placeholder-text::before,
.placeholder-block::before {
  content: attr(data-placeholder-label);
  position: absolute;
  top: -11px;
  left: 14px;
  background: var(--white);
  padding: 0 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}

.placeholder-block p:last-child,
.placeholder-text p:last-child { margin-bottom: 0; }

/* Stats (Over ons) -------------------------------------------------------------- */

.stats-label {
  margin-top: 40px;
  margin-bottom: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--green-line);
}

.stat { text-align: left; }

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--green-dark);
  line-height: 1.15;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
}

/* Geschiedenis / tijdlijn -------------------------------------------------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.timeline-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--green-line);
  background: var(--green-soft);
}

.timeline-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.timeline-portraits {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.timeline-portraits img {
  flex: 1;
  min-width: 0;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--green-line);
}

/* Een los portret (geen paar) krijgt een vaste, bijna vierkante afmeting.
   Zonder een vaste breedte rekt deze foto mee met de kolombreedte: op
   desktop (veel smalle kolommen) valt dat niet op, maar op mobiel (1 brede
   kolom) werd de foto dan heel breed en laag, waardoor object-fit:cover
   het beeld extreem inzoomde op een klein middenstukje. Een vaste breedte
   houdt de uitsnede overal gelijk aan wat er op desktop te zien is. */
.timeline-portraits img:only-child {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  max-width: 100%;
  margin: 0 auto;
}

/* Diensten / cards ------------------------------------------------------------ */

.cards-grid {
  display: grid;
  /* 9 stappen in de teeltcyclus: 3 kolommen geeft een nette 3x3-indeling
     zonder losse kaart op een eigen rij. */
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}

.card {
  background: var(--white);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media {
  height: 160px;
  background: var(--green-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Twee foto's naast elkaar in dezelfde afbeeldingzone, voor een stap waarin
   twee dingen tegelijk gebeuren (bv. poten + teelt van uitgangsmateriaal). */
.card-media-split {
  display: flex;
  height: 160px;
}

.card-media-split img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.card-media-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
}

.card-media-icon svg {
  width: 46px;
  height: 46px;
}

.card-body {
  padding: 20px 22px 24px;
}

.card-body h3 { margin-bottom: 8px; }

.card-body p { margin-bottom: 0; font-size: .95rem; }

.card-list {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: .9rem;
  color: var(--text-muted);
}

.card-list li { margin-bottom: 4px; }

/* Fallback: placeholder tegels (voor toekomstige extra foto's) ----------------- */

.photo-placeholder {
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, #eef2ea, #eef2ea 10px, #e4ebe0 10px, #e4ebe0 20px);
  border: 1px solid var(--green-line);
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
}

.photo-placeholder::after {
  content: attr(data-placeholder-label);
  display: block;
  width: 100%;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.85);
  padding: 8px 6px;
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  margin-top: 40px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 14px; }

.contact-link {
  font-weight: 600;
  color: var(--green-dark);
  border-bottom: 1.5px solid var(--green-mid);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.hidden-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: .85rem;
  background: var(--green-soft);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  color: var(--green-dark);
}

.contact-form label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  margin-top: 14px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 11px 14px;
  border: 1px solid var(--green-line);
  border-radius: 8px;
  background: var(--cream);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green-mid);
  outline-offset: 1px;
}

.contact-form button { margin-top: 20px; align-self: flex-start; }

.form-feedback {
  margin: 14px 0 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green-mid);
  min-height: 1.2em;
}

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

.site-footer {
  background: var(--green-dark);
  color: var(--green-soft);
}

.footer-inner {
  padding: 26px 0;
  text-align: center;
  font-size: .85rem;
}

.footer-inner p { color: var(--green-soft); margin: 0; }

/* Responsive ------------------------------------------------------------------------ */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--green-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 22px;
    display: none;
  }

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

  .main-nav a:not(.btn) { padding: 10px 0; width: 100%; }

  .main-nav .btn { margin-top: 10px; }

  .nav-toggle { display: flex; }

  .hero { padding: 70px 0 60px; }

  .section { padding: 64px 0; }

  .cards-grid { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
}
