/* Donkers Agri — static rebuild of the WordPress/The7 site */

:root {
  --orange: #ee7623;
  --header-orange: #f07629;
  --brown: #572316;
  --blue: #007daf;
  --link: #1ebbf0;
  --text: #85868c;
  --heading: #333333;
  --tile: #eaeaea;
  --footer: #1a1c20;
  --box: 1200px;
  --gutter: 50px;
  --font: "Roboto", Helvetica, Arial, Verdana, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #e6e6e6 url("../images/grey_wood.jpg") repeat left top fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }

h1, h2, h3, h4 { color: var(--heading); font-weight: 700; margin: 0 0 10px; }
h1 { font-size: 44px; line-height: 54px; }
h2 { font-size: 34px; line-height: 44px; }
h3 { font-size: 24px; line-height: 34px; }
h4 { font-size: 20px; line-height: 30px; }
p { margin: 0 0 10px; }

/* ---------- Boxed page ---------- */
.page {
  max-width: var(--box);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
  overflow-x: clip; /* keeps the bounceInLeft/Right entrances from causing sideways scroll */
}

.wrap { padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--header-orange);
  box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.07);
}

.header-bar {
  display: flex;
  align-items: center;
  height: 90px;
  padding: 0 var(--gutter);
}

.logo img { height: 77px; width: auto; }

.header-bar > nav { margin: 0 auto; }

.main-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > li { position: relative; }

.main-nav a {
  display: block;
  padding: 6px 12px;
  margin: 0 3px;
  color: var(--brown);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.2s, color 0.2s;
}

.main-nav > li > a:hover,
.main-nav > li:hover > a { background: rgba(255, 255, 255, 0.23); }

.sub-nav {
  position: absolute;
  top: 100%;
  left: 3px;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 10px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.main-nav > li:hover > .sub-nav,
.main-nav > li:focus-within > .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-nav a { margin: 0; padding: 8px 10px; font-weight: 500; }
.sub-nav a:hover { background: rgba(87, 35, 22, 0.1); }

.header-widgets { display: flex; align-items: center; gap: 18px; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.header-phone svg { width: 14px; height: 14px; fill: currentColor; }

.header-btn {
  display: inline-block;
  padding: 9px 19px;
  background: var(--brown);
  border: 1px solid var(--brown);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 1px;
  transition: background-color 0.25s, border-color 0.25s;
}

.header-btn:hover { background: #23aadd; border-color: #23aadd; }

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 12px 11px;
  background: var(--brown);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin-bottom: 6px;
  background: #fff;
  border-radius: 2px;
}

.menu-toggle span:last-child { margin-bottom: 0; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: 330px;
  max-width: 85vw;
  padding: 60px 30px 30px;
  background: var(--header-orange);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.13, 0.62, 0.11, 0.99);
}

.mobile-menu ul { list-style: none; margin: 0; padding: 0; }

.mobile-menu li { border-bottom: 1px solid rgba(87, 35, 22, 0.35); }

.mobile-menu a {
  display: block;
  padding: 11px 0;
  color: var(--brown);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu .sub a { padding-left: 18px; font-weight: 500; }

.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  color: var(--brown);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

body.menu-open .mobile-menu { transform: translateX(0); }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1200 / 450;
  min-height: 260px;
  padding: 20px;
  background: #3b3b2f url("../images/hERO-FINAL-1.png") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 42px;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin: 0 0 22px;
  font-size: 34px;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-btn {
  display: inline-block;
  padding: 0 40px;
  line-height: 50px;
  background: linear-gradient(rgb(255, 149, 0) 0%, rgb(255, 94, 58) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: filter 0.3s ease-in-out;
}

.hero-btn:hover { filter: brightness(120%); }

/* Revolution Slider-style layer fade-in on load */
.hero-layer { opacity: 0; animation: heroIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.hero-layer:nth-child(2) { animation-delay: 0.25s; }
.hero-layer:nth-child(3) { animation-delay: 0.5s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Page title banner (inner pages) ---------- */
.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 25px var(--gutter) 20px;
  background: #f7f7f7 url("../images/title.png") center / auto repeat;
  text-align: center;
}

.page-title h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 40px;
  text-transform: uppercase;
}

/* ---------- Main content ---------- */
.main { padding: 70px 0 70px; }
.main.flush-top { padding-top: 0; }

/* Orange product header band */
.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 45px -16px 0;
  padding: 0 16px;
  background: var(--orange);
}

.band:first-child { margin-top: 0; }

.band h1, .band h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 44px;
  line-height: 54px;
}

.band h2 sub { font-size: 0.55em; }

.band p {
  margin: 0 0 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  text-transform: uppercase;
}

.band-logo { width: 90px; height: 90px; margin: 4px 0; flex-shrink: 0; }

.band.centered { justify-content: center; text-align: center; }
.band.centered h1 { margin-top: 12px; }

/* Product intro row: image + description + features */
.product {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-top: 30px;
}

.product-img img {
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.product-img a { display: block; }

.product-text strong { color: var(--text); }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 25px;
  text-align: center;
}

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

.features svg { width: 32px; height: 32px; fill: #606060; margin: 0 auto 12px; display: block; }

.features h3 {
  margin: 0;
  color: var(--heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

/* Button pair */
.btn-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0 30px;
}

.btn {
  display: block;
  width: 25%;
  min-width: 220px;
  padding: 18px 20px;
  border: 0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #d66a1f; color: #fff; }

.btn-grey {
  background: #ebebeb;
  color: #666;
  border: 1px solid #ddd;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.btn-grey:hover { background: #dcdcdc; color: #555; }

.btn-wide { width: 50%; }
.btn-md { padding: 14px 20px; }

/* Full-width coloured sections */
.full {
  margin: 0 calc(-1 * var(--gutter));
  padding: 30px var(--gutter);
}

.rani-plast { background: var(--blue); color: #fff; margin-top: 30px; }

.rani-plast .intro {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 20px;
}

.rani-plast h2 { color: #fff; font-size: 30px; line-height: 1.3; margin: 0; }
.rani-plast p { color: #fff; }

.tips {
  position: relative;
  margin-top: 45px;
  padding-top: 20px;
  padding-bottom: 40px;
  background: #4d8a2c url("../images/Bailing-BG.png") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.tips h1 { color: #fff; text-align: center; font-size: 44px; margin: 10px 0 25px; }

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 60px;
}

.tips p { color: #fff; }

/* Parallax-content rows: JS moves this wrapper as the row scrolls past */
.parallax-inner { will-change: transform; }

/* "Other products" tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.tile {
  background: var(--tile);
  padding: 20px 20px 10px;
  text-align: center;
}

.tile img {
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.tile h1, .tile h2 {
  margin: 25px 0 20px;
  font-size: 38px;
  line-height: 1.15;
  text-transform: uppercase;
}

.tile h2 { font-size: 30px; }

.tile-center { grid-column: 2; }

/* The7 image rollover on linked images */
.rollover { position: relative; display: block; }

.rollover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(87, 35, 22, 0.35);
  opacity: 0;
  transition: opacity 0.4s;
}

.rollover:hover::after { opacity: 1; }

/* Separator with centred heading */
.separator {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 50px 0 25px;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-top: 1px solid rgba(51, 51, 51, 0.12);
}

.separator h4 { margin: 0; font-size: 18px; font-weight: 700; text-align: center; }

.separator.on-orange {
  margin: 45px calc(-1 * var(--gutter)) 25px;
  padding: 25px var(--gutter);
  background: var(--orange);
}

.separator.on-orange::before,
.separator.on-orange::after { border-color: rgba(255, 255, 255, 0.5); }

.separator.on-orange h4 { color: var(--heading); font-size: 16px; }

/* Spec tables (TablePress look) */
.table-scroll { overflow-x: auto; margin: 0 0 30px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.4;
}

.spec-table th,
.spec-table td {
  padding: 8px;
  text-align: left;
  border-top: 1px solid #ddd;
}

.spec-table thead th {
  background: #d9edf7;
  color: var(--heading);
  font-weight: 700;
  border-top: 0;
}

.spec-table tbody tr:nth-child(odd) td { background: #f9f9f9; }
.spec-table tbody td { color: var(--heading); }
.spec-table tbody tr:hover td { background: #f3f3f3; }

.spec-table tbody tr:last-child td { border-bottom: 1px solid #ddd; }

/* Masonry gallery */
.gallery {
  column-count: 6;
  column-gap: 10px;
  margin-top: 10px;
}

.gallery img {
  width: 100%;
  margin-bottom: 10px;
  break-inside: avoid;
  box-shadow: 0 4px 12px 3px rgba(0, 0, 0, 0.25);
  transition: opacity 0.4s;
}

.gallery img:hover { opacity: 0.7; }

/* About */
.about h1 { font-size: 34px; line-height: 44px; margin-bottom: 0; }
.about hr { border: 0; border-top: 1px solid #b4b5bb; margin: 0 0 8px; }
.about img { margin: 30px auto 0; width: 1024px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-grid a { color: var(--link); }

.map {
  width: 100%;
  height: 450px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 60px;
  padding: 10px var(--gutter);
  background: var(--footer);
  color: #fff;
  font-size: 13px;
}

.site-footer .credit { font-size: 11px; }
.site-footer a { color: #0fbcf5; text-decoration: none; }

/* ---------- Scroll-triggered entrance animations (animate.css keyframes, as used by WPBakery) ---------- */
.js .animate { opacity: 0; }
.js .animate.animated { opacity: 1; animation-duration: 1s; animation-fill-mode: both; }
.js .animate.bounceIn.animated { animation-name: bounceIn; animation-duration: 0.75s; }
.js .animate.bounceInLeft.animated { animation-name: bounceInLeft; }
.js .animate.bounceInRight.animated { animation-name: bounceInRight; }
.js .animate.fadeInUpBig.animated { animation-name: fadeInUpBig; }

@keyframes bounceIn {
  from, 20%, 40%, 60%, 80%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
  20% { transform: scale3d(1.1, 1.1, 1.1); }
  40% { transform: scale3d(0.9, 0.9, 0.9); }
  60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
  80% { transform: scale3d(0.97, 0.97, 0.97); }
  to { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes bounceInLeft {
  from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  0% { opacity: 0; transform: translate3d(-3000px, 0, 0); }
  60% { opacity: 1; transform: translate3d(25px, 0, 0); }
  75% { transform: translate3d(-10px, 0, 0); }
  90% { transform: translate3d(5px, 0, 0); }
  to { transform: none; }
}

@keyframes bounceInRight {
  from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  0% { opacity: 0; transform: translate3d(3000px, 0, 0); }
  60% { opacity: 1; transform: translate3d(-25px, 0, 0); }
  75% { transform: translate3d(10px, 0, 0); }
  90% { transform: translate3d(-5px, 0, 0); }
  to { transform: none; }
}

@keyframes fadeInUpBig {
  from { opacity: 0; transform: translate3d(0, 2000px, 0); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .animate, .hero-layer { opacity: 1 !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 6px 8px; margin: 0; }
  .header-phone { display: none; }
}

@media (max-width: 990px) {
  :root { --gutter: 20px; }
  .header-bar { height: 70px; }
  .logo img { height: 52px; }
  .main-nav, .header-widgets { display: none; }
  .menu-toggle { display: block; }
  .gallery { column-count: 4; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 22px; }
  .tile h1 { font-size: 28px; }
  .tile h2 { font-size: 22px; }
}

@media (max-width: 767px) {
  h1 { font-size: 32px; line-height: 40px; }
  .band h1, .band h2 { font-size: 32px; line-height: 42px; }
  .band-logo { display: none; }
  .band { margin-left: -20px; margin-right: -20px; padding: 6px 20px; }
  .product { grid-template-columns: 1fr; }
  .features, .features.three { grid-template-columns: 1fr 1fr; }
  .btn-row { flex-direction: column; align-items: center; gap: 12px; }
  .btn, .btn-wide { width: 100%; min-width: 0; }
  .rani-plast .intro { grid-template-columns: 1fr; }
  .rani-plast .intro img { max-width: 200px; }
  .rani-plast h2 { font-size: 22px; }
  .tips h1 { font-size: 30px; line-height: 38px; }
  .tips-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile-center { grid-column: auto; }
  .gallery { column-count: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .map { height: 320px; }
  .hero { aspect-ratio: auto; min-height: 300px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 17px; }
  .hero-btn { font-size: 15px; line-height: 44px; padding: 0 28px; }
  .main { padding: 40px 0; }
  .site-footer { justify-content: center; text-align: center; }
}
