/* ─── Agrovitae – stylesheet ─────────────────────────────────────── */

:root {
  --dark:    #1F4E29;
  --mid:     #2E7D32;
  --light:   #81C784;
  --accent:  #A5D6A7;
  --cream:   #F5F5F0;
  --text:    #1A2E1A;
  --muted:   #5A7A5A;
  --white:   #FFFFFF;
  --card-bg: #E8F5E9;
  --radius:  10px;
  --shadow:  0 4px 20px rgba(31,78,41,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

/* ── Language toggle ─────────────────────────────────────────────── */
body.lang-en [data-nl] { display: none !important; }
body.lang-nl [data-en] { display: none !important; }

/* ── Navigation ──────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.nav-logo img { height: 44px; width: 44px; object-fit: contain; border-radius: 50%; }

.nav-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.lang-btn {
  background: var(--mid);
  border: 1.5px solid var(--light);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s, color .2s;
  letter-spacing: .5px;
}
.lang-btn:hover { background: var(--light); color: var(--dark); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(rgba(10,40,15,.60), rgba(10,40,15,.60)),
    url('assets/peren-hero.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(129,199,132,.12);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -60px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}

.hero-logo {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--white);
  object-fit: contain;
  margin: 0 auto 1.5rem;
  display: block;
  padding: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: -1px;
}

.hero-tag {
  display: inline-block;
  background: var(--light);
  color: var(--dark);
  font-size: .95rem;
  font-weight: 700;
  padding: .3rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1.4rem;
  letter-spacing: .3px;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  background: var(--light);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  padding: .8rem 2.2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ── Section base ─────────────────────────────────────────────────── */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -.5px;
}

.section-intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ── About ────────────────────────────────────────────────────────── */
#about {
  background:
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)),
    url('assets/peer-tak.jpg') center/cover no-repeat fixed;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  border-left: 4px solid var(--mid);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: .3rem;
}

.stat-label {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

.about-text h3 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-text p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }

.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.pill {
  background: var(--dark);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 20px;
  letter-spacing: .2px;
}

/* ── Suppliers nav ────────────────────────────────────────────────── */
#products { background: var(--cream); }

.supplier-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--white);
  border: 2px solid var(--card-bg);
  color: var(--dark);
  font-size: .95rem;
  font-weight: 700;
  padding: .6rem 1.6rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all .2s;
}
.tab-btn:hover, .tab-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

/* ── Product grid ─────────────────────────────────────────────────── */
.supplier-section { display: none; }
.supplier-section.visible { display: block; }

.supplier-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.8rem 2rem;
  background: var(--dark);
  border-radius: var(--radius);
  color: var(--white);
}

.supplier-badge {
  background: var(--light);
  color: var(--dark);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .8rem;
  border-radius: 12px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.supplier-header h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: .4rem; }
.supplier-header p { color: rgba(255,255,255,.8); font-size: .95rem; max-width: 600px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--mid);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.product-card .product-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 1rem;
  background: var(--cream);
  padding: .5rem;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(31,78,41,.18);
}

.product-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--mid);
  background: var(--card-bg);
  padding: .2rem .7rem;
  border-radius: 8px;
  margin-bottom: .9rem;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .5rem;
}

.product-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.product-meta {
  font-size: .8rem;
  color: var(--mid);
  font-weight: 600;
  border-top: 1px solid var(--card-bg);
  padding-top: .7rem;
  margin-top: auto;
}

/* ── Dealers ──────────────────────────────────────────────────────── */
#dealers {
  background:
    linear-gradient(rgba(10,40,15,.72), rgba(10,40,15,.72)),
    url('assets/peren-bg3.jpg') center/cover no-repeat;
  color: var(--white);
}
#dealers .section-label { color: var(--light); }
#dealers .section-title { color: var(--white); }
#dealers .section-intro { color: rgba(255,255,255,.75); }

.dealer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}

.dealer-card {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.6rem;
  border-top: 3px solid var(--light);
  transition: background .2s;
}
.dealer-card:hover { background: rgba(255,255,255,.14); }

.dealer-logo {
  display: block;
  max-height: 52px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  background: white;
  padding: 6px 10px;
  border-radius: 6px;
}
.dealer-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: var(--white); }
.dealer-card p { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.55; }

/* ── Contact ─────────────────────────────────────────────────────── */
#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

.contact-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 36px; height: 36px;
  background: var(--card-bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: .1rem; }
.contact-item-text span { font-size: .95rem; color: var(--text); }

.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 1.4rem; }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid #dce9dc;
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--mid);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: .8rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
  letter-spacing: .3px;
}
.form-submit:hover { background: var(--mid); }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 2rem;
  font-size: .85rem;
}
footer strong { color: var(--light); }

/* ── Hamburger (mobile) ───────────────────────────────────────────── */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: all .3s; }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  nav { position: sticky; flex-wrap: wrap; }
  .supplier-header { flex-direction: column; gap: .8rem; }
}

/* ── Divider ──────────────────────────────────────────────────────── */
.divider {
  width: 60px; height: 4px;
  background: var(--light);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
