/*
 * DaBuurma Farms: this site's additions to the agriox template.
 * Loaded after agriox.css, so these win.
 */

/* ---------- Header (components/layout/Header.tsx) ---------- */

/* The menu buttons are React's own, not the template's .mobile-nav__toggler
   (agriox.js binds a click to that class, and two handlers cancel out). */
.dbf-nav-toggler {
  display: inline-block;
  background: none;
  border: 0;
  padding: 0;
  /* A 44px target, whatever the icon's size. */
  min-width: 44px;
  min-height: 44px;
  font-size: 30px;
  line-height: 1;
  color: var(--df-label, #111111);
  cursor: pointer;
  transition: color 500ms;
}

.dbf-nav-toggler:hover,
.dbf-nav-toggler:focus-visible {
  color: #ffffff;
}

/* Inline-flex only below 1200px, where the button shows: the rule above it
   hides it from 1200px, and a display set here must not undo that. */
@media (max-width: 1199.98px) {
  .dbf-nav-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .dbf-nav-toggler {
    display: none;
  }
}

/* The only obvious way out of the menu on a phone, so a 44px target too. */
.dbf-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  line-height: 1;
}

/* Keeps the X where agriox.css put it (top 20px, right 15px) now that the
   button around it is bigger. */
.mobile-nav__close.dbf-nav-close {
  top: 7px;
  right: 2px;
}

.dbf-nav-toggler:focus-visible,
.dbf-nav-close:focus-visible {
  outline: 3px solid var(--df-label, #111111);
  outline-offset: 2px;
}

.dbf-mobile-nav__list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Anchored sections clear the sticky header, which shows from 1200px. */
@media (min-width: 1200px) {
  #about,
  #services,
  #faq,
  #contact,
  #openings,
  #general {
    scroll-margin-top: 110px;
  }
}

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

/* Was an inline <style> in the old index.html. */
.services-one__single {
  background-color: #ffffff;
}

.services-one__single-content h3 {
  color: var(--agriox-primary, #334b35);
}

/* agriox.css points this section at a shape image the template never shipped. */
.features-three {
  background-image: none;
}

/* ---------- Contact form (components/home/ContactForm.tsx) ---------- */

/* 16px at least: iPhones zoom the page in on a field with smaller text, and
   agriox.css sets these to 14px. */
.dbf-contact-form .comment-form__input-box input,
.dbf-contact-form .comment-form__input-box textarea {
  text-transform: none;
  font-size: 16px;
}

.dbf-contact-form .comment-form__input-box input[type="tel"] {
  height: 70px;
  width: 100%;
  border: none;
  background: #f6f4ec;
  padding: 0 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  outline: none;
  font-size: 16px;
  color: #383838;
  font-weight: 400;
  font-family: var(--agriox-font, "DM Sans", sans-serif);
}

.dbf-contact-form input:focus-visible,
.dbf-contact-form textarea:focus-visible,
.dbf-apply input:focus-visible,
.dbf-apply select:focus-visible,
.dbf-apply textarea:focus-visible {
  outline: 3px solid var(--df-label, #111111) !important;
  outline-offset: 2px;
}

.dbf-contact-form input[aria-invalid="true"],
.dbf-contact-form textarea[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px #c0392b;
}

.dbf-form-note {
  color: #ffffff;
  font-size: 14px;
  line-height: 24px;
  margin: 0 0 20px;
}

.dbf-form-note a {
  color: var(--df-label, #111111);
  text-decoration: underline;
}

.dbf-form-error {
  background: #fdecea;
  color: #8a1c14;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  line-height: 24px;
  margin: 0 0 20px;
}

.dbf-form-error:focus {
  outline: 3px solid var(--df-label, #111111);
  outline-offset: 2px;
}

.dbf-form-success {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px 30px;
}

.dbf-form-success p {
  color: var(--agriox-primary, #334b35);
  font-size: 18px;
  line-height: 30px;
  font-weight: 500;
  margin: 0;
}

.comment-one__form .thm-btn[disabled] {
  opacity: 0.7;
  cursor: default;
}

/* The honeypot: off screen, out of the tab order, hidden from screen readers. */
.dbf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.footer-one__bottom-text .dbf-legal-links {
  margin: 4px 0 0;
  font-size: 14px;
}

.footer-one__bottom-text .dbf-legal-links a {
  font-size: 14px;
  text-decoration: underline;
}

.footer-one__bottom-text p a:hover {
  color: var(--df-label, #111111);
}

/* ---------- Inner pages (careers, legal, not found) ---------- */

/* The header floats over the top of every page, so an inner page starts with
   a dark banner tall enough to sit under it. */
.dbf-page-header {
  padding: 230px 0 110px;
}

.page-header__inner h1 {
  color: #ffffff;
  font-size: 50px;
  line-height: 1.1em;
  letter-spacing: -0.04em;
}

@media (max-width: 1199px) {
  .dbf-page-header {
    padding: 190px 0 90px;
  }
}

@media (max-width: 767px) {
  .dbf-page-header {
    padding: 160px 0 70px;
  }

  .page-header__inner h1 {
    font-size: 38px;
  }
}

.dbf-page-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #ffffff;
  font-size: 16px;
  line-height: 26px;
}

.dbf-page-header__meta i {
  color: var(--df-label, #111111);
  margin-right: 8px;
}

.dbf-section {
  padding: 100px 0;
  background: #ffffff;
}

.dbf-section--cream {
  background: #f6f4ec;
}

@media (max-width: 767px) {
  .dbf-section {
    padding: 70px 0;
  }
}

.dbf-section .sec-title {
  margin-bottom: 30px;
}

.dbf-lead {
  font-size: 18px;
  line-height: 32px;
  max-width: 800px;
}

/* ---------- Careers ---------- */

.dbf-job-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e8e4d4;
  border-radius: 10px;
  padding: 30px;
  color: var(--agriox-color-1, #383838);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.dbf-job-card:hover,
.dbf-job-card:focus-visible {
  border-color: var(--df-sage, #97a176);
  box-shadow: 0 10px 30px rgba(51, 75, 53, 0.12);
  transform: translateY(-4px);
  color: var(--agriox-color-1, #383838);
}

.dbf-job-card__type {
  color: var(--agriox-secondary, #334b35);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  margin-bottom: 10px;
}

.dbf-job-card h3 {
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 12px;
}

.dbf-job-card p {
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 16px;
}

.dbf-job-card__meta {
  font-size: 15px;
  line-height: 26px;
  margin-bottom: 18px;
}

.dbf-job-card__meta i,
.dbf-info i {
  color: var(--agriox-secondary, #334b35);
  margin-right: 8px;
}

.dbf-job-card__more {
  margin-top: auto;
  color: var(--agriox-primary, #334b35);
  font-weight: 700;
  font-size: 15px;
}

.dbf-job-card__more i {
  margin-left: 8px;
  color: var(--agriox-secondary, #334b35);
}

.dbf-info {
  background: #ffffff;
  border: 1px solid #e8e4d4;
  border-radius: 10px;
  padding: 30px;
  height: 100%;
}

.dbf-info h3 {
  font-size: 22px;
  line-height: 30px;
  margin-bottom: 14px;
}

.dbf-info p,
.dbf-info li {
  font-size: 16px;
  line-height: 28px;
}

.dbf-info a,
.dbf-section .dbf-link {
  color: var(--agriox-primary, #334b35);
  text-decoration: underline;
}

.dbf-pay {
  background: rgba(241, 207, 105, 0.25);
  border: 1px solid var(--df-sage, #97a176);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--agriox-primary, #334b35);
  font-weight: 700;
  margin-bottom: 30px;
}

.dbf-pay i {
  margin-right: 8px;
}

.dbf-back {
  display: inline-block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 14px;
}

.dbf-back:hover {
  color: var(--df-label, #111111);
}

.dbf-job-summary {
  color: var(--agriox-primary, #334b35);
  font-size: 20px;
  line-height: 32px;
  margin-bottom: 30px;
}

/* The advert's own HTML, written in the console. */
.job-description {
  font-size: 16px;
  line-height: 28px;
}

.job-description h1,
.job-description h2,
.job-description h3,
.job-description h4,
.job-description h5,
.job-description h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 22px;
  line-height: 30px;
}

.job-description p {
  margin-bottom: 1em;
}

.job-description ul,
.job-description ol {
  padding-left: 24px;
  margin-bottom: 1em;
}

.job-description li {
  margin-bottom: 0.4em;
}

.job-description a {
  color: var(--agriox-primary, #334b35);
  text-decoration: underline;
}

.job-description blockquote {
  border-left: 3px solid var(--df-sage, #97a176);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
}

.job-description strong {
  color: var(--agriox-primary, #334b35);
}

.dbf-statements {
  background: #f6f4ec;
  border-radius: 10px;
  padding: 25px;
  margin-top: 40px;
}

.dbf-statements p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 12px;
}

.dbf-statements p:last-child {
  margin-bottom: 0;
}

/* ---------- Application form (components/careers/ApplyForm.tsx) ---------- */

.dbf-apply {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8e4d4;
  border-radius: 10px;
  padding: 35px;
}

@media (max-width: 575px) {
  .dbf-apply {
    padding: 25px 20px;
  }
}

.dbf-apply h3 {
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 20px;
}

.dbf-apply h3 i {
  color: var(--agriox-secondary, #334b35);
  margin-right: 10px;
}

.dbf-apply .dbf-label {
  display: block;
  color: var(--agriox-primary, #334b35);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  margin-bottom: 8px;
}

.dbf-apply .dbf-input {
  display: block;
  width: 100%;
  min-height: 50px;
  background: #f6f4ec;
  border: 1px solid #e8e4d4;
  border-radius: 10px;
  padding: 12px 16px;
  /* 16px at least: iPhones zoom the page in on a field with smaller text. */
  font-size: 16px;
  line-height: 24px;
  color: var(--agriox-primary, #334b35);
  font-family: var(--agriox-font, "DM Sans", sans-serif);
}

.dbf-apply textarea.dbf-input {
  min-height: 130px;
  resize: vertical;
}

.dbf-apply .file-upload-wrapper {
  position: relative;
  width: 100%;
}

/* Visually hidden but still reachable by keyboard; the label below is the target. */
.dbf-apply .file-upload-wrapper input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.dbf-apply .file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: #f6f4ec;
  border: 2px dashed #d6d0b8;
  border-radius: 10px;
  padding: 26px 20px;
  color: var(--agriox-primary, #334b35);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.dbf-apply .file-upload-label:hover,
.dbf-apply .file-upload-wrapper input[type="file"]:focus-visible + .file-upload-label {
  border-color: var(--agriox-secondary, #334b35);
}

.dbf-apply .file-upload-wrapper input[type="file"]:focus-visible + .file-upload-label {
  outline: 3px solid var(--df-label, #111111);
  outline-offset: 2px;
}

.dbf-apply .file-upload-label i {
  font-size: 26px;
  color: var(--agriox-secondary, #334b35);
}

.dbf-apply .file-upload-label small {
  display: block;
  color: var(--agriox-color-1, #383838);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}

.dbf-apply .file-name {
  color: var(--agriox-primary, #334b35);
  margin-top: 10px;
  font-size: 14px;
  line-height: 22px;
}

.dbf-apply__alert {
  background: #fdecea;
  color: #8a1c14;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 24px;
  margin-bottom: 20px;
}

.dbf-apply__alert a {
  color: #8a1c14;
  text-decoration: underline;
}

.dbf-apply__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  color: var(--agriox-primary, #334b35);
  font-size: 15px;
  line-height: 24px;
}

.dbf-apply__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--agriox-secondary, #334b35);
}

.dbf-apply__consent small {
  display: block;
  margin-top: 4px;
  color: var(--agriox-color-1, #383838);
  font-size: 13px;
  line-height: 20px;
}

.dbf-apply .thm-btn {
  width: 100%;
}

.dbf-apply .thm-btn[disabled] {
  opacity: 0.7;
  cursor: default;
}

.dbf-apply__notice {
  color: var(--agriox-color-1, #383838);
  font-size: 13px;
  line-height: 22px;
  margin-top: 16px;
}

.dbf-apply__notice strong {
  color: var(--agriox-primary, #334b35);
}

.dbf-apply__notice a,
.dbf-apply a {
  color: var(--agriox-primary, #334b35);
  text-decoration: underline;
}

.dbf-apply__done p {
  font-size: 16px;
  line-height: 28px;
}

/* ---------- Legal pages ---------- */

.dbf-legal {
  max-width: 860px;
}

.dbf-legal .dbf-updated {
  font-size: 15px;
  margin-bottom: 30px;
}

.dbf-legal h2 {
  font-size: 26px;
  line-height: 34px;
  margin: 36px 0 12px;
}

.dbf-legal p,
.dbf-legal li {
  font-size: 17px;
  line-height: 30px;
}

.dbf-legal p {
  margin-bottom: 12px;
}

.dbf-legal ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.dbf-legal li {
  margin-bottom: 6px;
}

.dbf-legal a {
  color: var(--agriox-primary, #334b35);
  text-decoration: underline;
}

/* ---------- Brand (brand.groupsolum.com/dabuurma-farms) ---------- */

/* Labels that were wheat yellow are white on the dark and photo grounds,
   black everywhere else (--df-label in agriox.css). */
.main-header,
.stricky-header,
.main-slider,
.page-header,
.faq-one__dark,
.contact-page,
.cta-two,
.mobile-nav__wrapper {
  --df-label: #ffffff;
}

/* Sage field: black text and icon. */
.features-three__image__caption,
.features-three__image__caption h3,
.features-three__image__caption i {
  color: #111111;
}
