/* =============================================================
   modern.css — North Kiwi Limited design-layer override
   Loaded LAST so it wins the cascade over style.css and head.php inline styles.
   Prefer targeted selectors; !important only where the theme forces it.
   ============================================================= */


/* =====================================================================
   1. DESIGN TOKEN OVERRIDES (:root)
   Override theme variables defined in style.css lines 66-84
   ===================================================================== */
:root {
  /* Brand colours */
  --color-primary:       #8cc63f;   /* brand green (was gold #f1cf69) */
  --color-primary-dark:  #6fae28;   /* hover / active green */
  --color-primary-light: #a8d862;   /* lighter accent */

  /* Keep secondary green-adjacent */
  --color-secondary: #6fae28;

  /* Heading & body text — softer, readable */
  --color-heading:   #1f2a24;
  --color-paragraph: #5b6660;

  /* CTA gradient band: green only, no gold */
  --bg-gradient-secondary: linear-gradient(120deg, #8cc63f 0%, #5a9e1e 100%);
  /* Primary gradient for buttons */
  --bg-gradient: linear-gradient(120deg, #8cc63f 0%, #6fae28 100%);

  /* Shadow scale */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.15);

  /* Radius scale */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
}


/* =====================================================================
   2. TYPOGRAPHY
   ===================================================================== */
body {
  font-family: 'Heebo', sans-serif;
  line-height: 1.7;
  color: var(--color-paragraph);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Heebo', sans-serif;
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

h1, h2 {
  line-height: 1.15;
}

h3, h4, h5, h6 {
  line-height: 1.25;
}

p {
  color: var(--color-paragraph);
}


/* =====================================================================
   3. BUTTONS — modern radius, weight, shadow, hover lift
   ===================================================================== */

/* Base theme button reset / restyle */
.btn-theme,
a.btn-theme,
button.btn-theme {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: 2px solid var(--color-primary) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.02em;
  padding: 10px 26px !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease !important;
  display: inline-block;
  text-decoration: none;
}

.btn-theme:hover,
a.btn-theme:hover,
button.btn-theme:hover {
  background: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Light variant (used on green bands) */
.btn-light,
a.btn-light {
  background: #fff !important;
  color: var(--color-primary) !important;
  border: 2px solid #fff !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  padding: 10px 26px !important;
  transition: all 0.25s ease !important;
}

.btn-light:hover,
a.btn-light:hover {
  background: transparent !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Outlined / border variant */
.btn-theme.border,
a.btn-theme.border {
  background: transparent !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.btn-theme.border:hover,
a.btn-theme.border:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
}


/* =====================================================================
   4. REQUEST LABOUR BUTTON (Task C)
   Replaces the big inline style removed from header.php
   ===================================================================== */
.request-labour-link,
.request-labour-btn a.request-labour-link {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: 2px solid var(--color-primary) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 22px !important;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.25s ease !important;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.01em;
}

.request-labour-link:hover,
.request-labour-btn a.request-labour-link:hover {
  background: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Override head.php inline hover that used dark colour */
.request-labour-btn a:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
  box-shadow: var(--shadow-md) !important;
}


/* =====================================================================
   5. HERO — homepage (Task D)
   ===================================================================== */

/* Welcome heading: Heebo, brand green, responsive size */
.hero-welcome-heading {
  font-family: 'Heebo', sans-serif !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: clamp(26px, 7vw, 52px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55) !important;
  margin-bottom: 10px !important;
}

/* Ensure the main sub-heading also uses clamp */
.banner-area .content h2 {
  font-size: clamp(22px, 4vw, 42px) !important;
  font-family: 'Heebo', sans-serif !important;
  font-weight: 700 !important;
}

/* Hero play / video button */
.video-play-button,
a.video-play-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50% !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  font-size: 18px !important;
  box-shadow: 0 0 0 8px rgba(140,198,63,.30);
  transition: all 0.25s ease !important;
  margin-left: 14px;
  vertical-align: middle;
}

.video-play-button:hover,
a.video-play-button:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
  box-shadow: 0 0 0 12px rgba(140,198,63,.20);
  transform: scale(1.08);
}


/* =====================================================================
   6. TOP BAR (Task C)
   ===================================================================== */
.top-bar-area {
  background: #1a2118 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  font-size: 13px;
}

/* Fix 1: ensure top-bar text columns sit above the farm-scene (z-index:1) */
.top-bar-area .flex-item,
.top-bar-area .social {
  position: relative;
  z-index: 2;
}

.top-bar-area .flex-item.left p,
.top-bar-area .flex-item.left ul li {
  color: rgba(255,255,255,.80);
  font-size: 13px;
}

/* Fix 9: Social icons in top bar — 44×44px tap targets, circular */
.top-bar-area .social ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  font-size: 14px;
  min-width: 44px;
}

.top-bar-area .social ul li a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}


/* =====================================================================
   7. STICKY NAV
   ===================================================================== */
.sticky-header-wrapper header,
.sticky-header-wrapper .navbar {
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* Nav link hover → brand green */
.validnavs ul.nav > li > a {
  transition: color 0.2s ease;
  letter-spacing: 0.025em;
}

.validnavs ul.nav > li > a:hover,
.validnavs ul.nav > li.active > a {
  color: var(--color-primary) !important;
}


/* =====================================================================
   8. CARDS — service-item, mission/value/leadership/why-choose
   ===================================================================== */

/* Generic card look: white bg, radius, shadow, hairline border */
.service-item,
.services-area .service-item {
  background: #fff;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid rgba(0,0,0,.05) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
}

.service-item:hover,
.services-area .service-item:hover {
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-4px) !important;
}

/* Mission / value / leadership cards (about-us.php inline cards) */
.about-content-area .content[style*="background: #f8f9fa"],
.about-content-area .content[style*="background:#f8f9fa"],
.team-member {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid rgba(0,0,0,.05) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
}

.about-content-area .content[style*="background: #f8f9fa"]:hover,
.about-content-area .content[style*="background:#f8f9fa"]:hover,
.team-member:hover {
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-3px) !important;
}

/* Gallery tiles */
.gallery-area .items .item,
.gallery-items .item {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
}

.gallery-area .items .item:hover,
.gallery-items .item:hover {
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-3px) !important;
}


/* =====================================================================
   9. GREEN GRADIENT BAND (.bg-gradient-green)
   The var() override handles most of it; these rules tighten details.
   ===================================================================== */
.bg-gradient-green {
  background: var(--bg-gradient-secondary) !important;
}

.bg-gradient-green h2,
.bg-gradient-green h5,
.bg-gradient-green p {
  color: #fff !important;
}

/* Ensure CTA button on green band is legible */
.bg-gradient-green .btn-light {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
}

.bg-gradient-green .btn-light:hover {
  color: #fff !important;
}

/* Service carousel cards sit ON the green band but are white cards —
   their description text must stay dark, not inherit the band's white. */
.thumb-services-area .services-items .item .content p,
.services-area .services-items .item .content p {
  color: #5b6660 !important;
}

/* Robust top-bar layering: keep ALL top-bar content (address, email,
   social) above the decorative farm-scene animation (z-index:1). */
.top-bar-area .container {
  position: relative;
  z-index: 3;
}

/* Belt-and-suspenders against the residual mobile horizontal overflow:
   clip the carousel's off-canvas track. */
.banner-area .carousel-inner,
.thumb-services-area {
  overflow-x: hidden;
}


/* =====================================================================
   10. SECTION RHYTHM
   ===================================================================== */
.default-padding {
  padding: 90px 0;
}

/* Contact section on index.php — stack on mobile */
.contact-area {
  position: relative;
  overflow: hidden;
}


/* =====================================================================
   10b. CONTACT FORM SUBMIT BUTTON — "Send Now" on homepage (Fix 2+3)
   Overrides style.css ~line 6690 green-to-gold gradient.
   ===================================================================== */
.green .contact-area .form-content button,
.green .contact-area .form-content button[type="submit"] {
  background: #8cc63f !important;   /* solid brand green — no gradient */
  background-image: none !important; /* remove the green-to-gold gradient from style.css */
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(140,198,63,.35) !important;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}

.green .contact-area .form-content button:hover,
.green .contact-area .form-content button[type="submit"]:hover {
  background: #6fae28 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(111,174,40,.40) !important;
}


/* =====================================================================
   10c. HERO TAGLINE UNDERLINE (Fix 4)
   Overrides the gold/yellow brush-stroke image from style.css ~line 2611.
   ===================================================================== */
.banner-area h3::after {
  background: #8cc63f !important;   /* brand green, no image */
  background-image: none !important; /* remove the gold png */
  height: 3px !important;
  width: 60px !important;            /* deliberate short underline accent */
  border-radius: 2px !important;
}


/* =====================================================================
   11. FOOTER POLISH
   ===================================================================== */

/* Widget title accent underline */
footer .widget-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-family: 'Heebo', sans-serif;
  letter-spacing: -0.01em;
  color: #fff;
}

footer .widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Footer link hover → brand green */
footer a:hover {
  color: var(--color-primary) !important;
  opacity: 1;
}

footer .f-item.link ul li a:hover,
footer .address ul li a:hover {
  color: var(--color-primary) !important;
}

/* Fix 9: Social icons in footer — 44×44px tap targets, circular */
footer .social ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  font-size: 14px;
  min-width: 44px;
}

footer .social ul li a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}


/* =====================================================================
   12. GLOBAL — no horizontal overflow (Fix 7)
   ===================================================================== */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}


/* =====================================================================
   13. MOBILE — max-width: 768px
   ===================================================================== */
@media (max-width: 768px) {

  /* Section rhythm */
  .default-padding {
    padding: 60px 0;
  }

  /* Hero welcome heading already uses clamp() — just ensure min readability */
  .hero-welcome-heading {
    font-size: clamp(22px, 8vw, 38px) !important;
  }

  /* Top bar — graceful single-column stack */
  .top-bar-area .flex-item.left {
    text-align: center;
  }

  .top-bar-area .flex-item.left ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Fix 9: Tap targets already 44px on desktop; ensure they hold on mobile too */
  .top-bar-area .social ul li a,
  footer .social ul li a {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 14px !important;
  }

  /* Prevent iOS form zoom */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Contact section on index.php — stack image and form */
  .contact-area {
    position: relative !important;
  }

  .contact-area .contact-thumb {
    position: relative !important;
    width: 100% !important;
    height: 240px;
    overflow: hidden;
  }

  .contact-area .contact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .contact-area .container-full {
    width: 100% !important;
    padding: 0 !important;
  }

  .contact-area .contact-items {
    padding: 30px 20px !important;
  }

  .contact-area .contact-items .row {
    flex-direction: column;
  }

  /* Cards stack cleanly on mobile */
  .service-item,
  .team-member {
    margin-bottom: 20px;
  }

  /* Nav: make sure request labour button is tappable */
  .request-labour-btn {
    margin-top: 10px !important;
    text-align: center;
  }

  .request-labour-link {
    display: block !important;
    text-align: center;
    padding: 12px 20px !important;
    min-height: 44px;
  }
}


/* =====================================================================
   13. MOBILE — max-width: 480px
   ===================================================================== */
@media (max-width: 480px) {

  .hero-welcome-heading {
    font-size: clamp(20px, 9vw, 32px) !important;
  }

  .banner-area .content h2 {
    font-size: clamp(18px, 6vw, 28px) !important;
  }

  .contact-area .contact-thumb {
    height: 180px;
  }

  /* Ensure footer columns have breathing room */
  footer .f-item {
    padding: 16px 10px !important;
  }
}
