/*
Theme Name: Root Crop Global
Theme URI: https://rootcropglobal.com
Author: Root Crop Global
Description: A clean B2B fresh produce WordPress theme for Root Crop Global.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: rootcrop
*/

:root {
  --rc-forest: #063f24;
  --rc-leaf: #14813f;
  --rc-mint: #eaf7ed;
  --rc-cream: #fffaf0;
  --rc-tomato: #c6372f;
  --rc-gold: #c99a2e;
  --rc-ink: #162019;
  --rc-body: #4d5a52;
  --rc-muted: #758077;
  --rc-line: #dfe7df;
  --rc-white: #ffffff;
  --rc-shadow: 0 16px 42px rgba(6, 63, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--rc-body);
  background: var(--rc-white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: var(--rc-leaf);
  text-decoration: none;
}

a:hover {
  color: var(--rc-tomato);
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 231, 223, 0.9);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(22, 32, 25, 0.08);
}

.site-header__inner,
.site-footer__inner,
.rc-container,
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-heading,
.entry-content > p,
.entry-content > ul,
.entry-content > .wp-block-shortcode {
  width: min(1160px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rc-ink);
  font-weight: 800;
}

.site-brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--rc-white);
  background: var(--rc-forest);
  border-radius: 8px;
  font-size: 13px;
}

.site-brand__text {
  display: grid;
  line-height: 1.18;
}

.site-brand__name {
  font-size: 18px;
}

.site-brand__tagline {
  color: var(--rc-muted);
  font-size: 12px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--rc-ink);
  font-size: 14px;
  font-weight: 700;
}

.menu a:hover,
.current-menu-item > a {
  color: var(--rc-leaf);
  background: var(--rc-mint);
}

.header-whatsapp,
.rc-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--rc-leaf);
  color: var(--rc-white);
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.header-whatsapp:hover,
.rc-button:hover,
.wp-block-button__link:hover {
  background: var(--rc-forest);
  color: var(--rc-white);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: var(--rc-white);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--rc-ink);
}

.site-main {
  min-height: 64vh;
}

.entry-content {
  overflow: hidden;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 0 0 18px;
  color: var(--rc-ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
}

.entry-content h1 {
  font-size: 56px;
}

.entry-content h2 {
  font-size: 38px;
}

.entry-content h3 {
  font-size: 24px;
}

.entry-content p {
  margin-top: 0;
}

.rc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--rc-gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.rc-eyebrow::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.rc-hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: end;
  padding: 130px 0 70px;
  color: var(--rc-white);
  isolation: isolate;
}

.rc-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 63, 36, 0.92), rgba(6, 63, 36, 0.58) 48%, rgba(6, 63, 36, 0.16));
  content: "";
}

.rc-hero .wp-block-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
}

.rc-hero .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.rc-hero__copy {
  width: min(760px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1160px) / 2));
}

.rc-hero h1,
.rc-hero p {
  color: var(--rc-white);
}

.rc-hero h1 {
  margin-bottom: 22px;
}

.rc-hero .rc-lead {
  width: min(650px, 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.rc-hero .wp-block-buttons {
  margin-top: 34px;
}

.rc-hero .wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.08);
}

.rc-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--rc-white);
  background: rgba(255, 255, 255, 0.18);
}

.rc-section {
  padding: 88px 0;
}

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

.rc-section--dark {
  background: var(--rc-forest);
  color: rgba(255, 255, 255, 0.78);
}

.rc-section--dark h2,
.rc-section--dark h3 {
  color: var(--rc-white);
}

.rc-section__head {
  max-width: 720px;
  margin-bottom: 38px;
}

.rc-section__head p {
  color: var(--rc-muted);
  font-size: 18px;
}

.rc-section--dark .rc-section__head p {
  color: rgba(255, 255, 255, 0.76);
}

.rc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.rc-stat {
  padding: 24px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: var(--rc-white);
  box-shadow: var(--rc-shadow);
}

.rc-stat strong {
  display: block;
  color: var(--rc-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.rc-stat span {
  display: block;
  margin-top: 8px;
  color: var(--rc-muted);
  font-size: 14px;
  font-weight: 700;
}

.rc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rc-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rc-card {
  overflow: hidden;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: var(--rc-white);
}

.rc-card__image {
  aspect-ratio: 4 / 3;
  margin: 0;
  background: var(--rc-mint);
}

.rc-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rc-card__body {
  padding: 24px;
}

.rc-card__body h3 {
  margin-bottom: 10px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.25;
}

.rc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.rc-tags li {
  padding: 5px 10px;
  border: 1px solid rgba(20, 129, 63, 0.18);
  border-radius: 999px;
  background: var(--rc-mint);
  color: var(--rc-forest);
  font-size: 12px;
  font-weight: 800;
}

.rc-feature {
  padding: 28px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: var(--rc-white);
}

.rc-feature h3 {
  margin-bottom: 10px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
}

.rc-feature__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--rc-forest);
  color: var(--rc-white);
  font-weight: 900;
}

.rc-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
}

.rc-split .wp-block-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--rc-shadow);
}

.rc-split .wp-block-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
}

.rc-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.rc-process__step {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.rc-process__step strong {
  display: block;
  margin-bottom: 12px;
  color: var(--rc-gold);
  font-size: 13px;
  text-transform: uppercase;
}

.rc-doc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rc-doc {
  padding: 22px;
  border: 1px solid var(--rc-line);
  border-left: 4px solid var(--rc-gold);
  border-radius: 8px;
  background: var(--rc-white);
}

.rc-contact-band {
  padding: 72px 0;
  background: var(--rc-forest);
  color: var(--rc-white);
}

.rc-contact-band a {
  color: var(--rc-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rc-form-wrap {
  padding: 30px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: var(--rc-white);
}

.fluentform .ff-el-input--label label {
  color: var(--rc-ink);
  font-weight: 800;
}

.fluentform .ff-el-form-control {
  border-color: var(--rc-line);
  border-radius: 8px;
  min-height: 46px;
}

.fluentform .ff-btn-submit {
  border-radius: 8px;
  background: var(--rc-leaf);
  font-weight: 800;
}

.site-footer {
  padding: 58px 0 24px;
  background: #082b1a;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 0.9fr 1.1fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  color: var(--rc-white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

.site-footer .menu {
  display: grid;
  gap: 8px;
}

.site-footer .menu a {
  min-height: auto;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-weight: 600;
}

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

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.footer-contact {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--rc-white);
  font-size: 13px;
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--rc-white);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35);
}

.whatsapp-float:hover {
  background: #1eb75a;
  color: var(--rc-white);
}

.whatsapp-float svg {
  width: 29px;
  height: 29px;
}

.page-title-band {
  padding: 88px 0 52px;
  background: var(--rc-forest);
  color: var(--rc-white);
}

.page-title-band h1 {
  margin: 0;
  color: var(--rc-white);
}

.page-title-band p {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.rc-hidden-title .page-title-band {
  display: none;
}

@media (max-width: 920px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .mobile-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 24px;
    border-top: 1px solid var(--rc-line);
    background: var(--rc-white);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .menu {
    display: grid;
    gap: 6px;
  }

  .site-nav .menu a {
    min-height: 44px;
    padding: 0 10px;
  }

  .header-whatsapp {
    width: 100%;
    margin-top: 12px;
  }

  .entry-content h1 {
    font-size: 38px;
  }

  .entry-content h2 {
    font-size: 30px;
  }

  .rc-hero {
    min-height: 620px;
    padding-top: 110px;
  }

  .rc-hero::after {
    background: linear-gradient(0deg, rgba(6, 63, 36, 0.94), rgba(6, 63, 36, 0.52));
  }

  .rc-stats,
  .rc-grid,
  .rc-grid--two,
  .rc-doc-list,
  .rc-process,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .rc-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rc-split .wp-block-image img {
    height: 360px;
  }

  .site-footer__bottom {
    display: grid;
  }
}

@media (max-width: 620px) {
  .site-header__inner,
  .site-footer__inner,
  .rc-container,
  .entry-content > .wp-block-group,
  .entry-content > .wp-block-columns,
  .entry-content > .wp-block-heading,
  .entry-content > p,
  .entry-content > ul,
  .entry-content > .wp-block-shortcode {
    width: min(100% - 28px, 1160px);
  }

  .site-brand__tagline {
    display: none;
  }

  .entry-content h1 {
    font-size: 34px;
  }

  .rc-section {
    padding: 64px 0;
  }

  .rc-card__body,
  .rc-feature,
  .rc-form-wrap {
    padding: 20px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }
}
