/* Royal Farms Theme Overrides */

/* --- Mobile Menu Hamburger Icon --- */
.top-bar__navigation-toggler {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
}

.top-bar__navigation-toggler span,
.top-bar__navigation-toggler span:before,
.top-bar__navigation-toggler span:after {
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: #282828;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.top-bar__navigation-toggler span:before,
.top-bar__navigation-toggler span:after {
    content: '';
    display: block;
}

.top-bar__navigation-toggler span:before {
    top: -10px;
}

.top-bar__navigation-toggler span:after {
    top: 10px;
}

/* Close icon transformation */
.top-bar.is-expanded .top-bar__navigation-toggler span {
    background-color: transparent;
}

.top-bar.is-expanded .top-bar__navigation-toggler span:before {
    transform: rotate(45deg);
    top: 0;
}

.top-bar.is-expanded .top-bar__navigation-toggler span:after {
    transform: rotate(-45deg);
    top: 0;
}

/* --- New Mobile Menu Design --- */

/* --- New Mobile Menu Design --- */
@media (max-width: 991px) {
  /* Set a dark background for the expanded menu */
  .top-bar.is-expanded .top-bar__inner {
    background-color: #282828 !important;
  }

  /* Set logo size for mobile view */
  .top-bar .row.align-items-center {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 0 12px !important;
    min-height: 60px;
  }
  .top-bar__logo.site-logo {
    margin-top: 0 !important;
    padding-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 60px;
  }
  .top-bar__logo img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
    display: block;
  }
  .top-bar__navigation-toggler {
    display: flex !important;
    align-items: center !important;
    height: 60px;
    margin: 0 !important;
    margin-left: auto !important;
  }

  /* Bring logo to the front in expanded menu */
  .top-bar.is-expanded .top-bar__logo {
    position: relative;
    z-index: 1051; /* Ensure it's above the menu panel */
  }

  /* Hide the cart and profile icons in the mobile menu */
  .top-bar.is-expanded .li-cart,
  .top-bar.is-expanded .li-profile {
    display: none !important;
  }

  /* Style the main menu links */
  .top-bar.is-expanded .main-menu > li {
    text-align: center; /* Center align all menu items */
  }

  .top-bar.is-expanded .main-menu > li > a {
    color: var(--royal-farms-white) !important;
    font-weight: bold;
    padding: 12px 0; /* Add vertical padding for spacing */
    display: inline-block;
  }

  /* Style the 'GET IN TOUCH' button */
  .top-bar.is-expanded .li-btn {
    margin-top: 20px; /* Add space above the button */
  }

  .top-bar.is-expanded .li-btn a {
    background-color: #29c51b !important; /* Royal Farms Accent Yellow */
    color: #504935 !important; /* Dark text for contrast */
    border-radius: 30px;
    padding: 15px 30px;
    font-weight: bold;
  }

  /* Remove the bottom panel in the new design */
  .top-bar.is-expanded .navigation-panel-bottom {
    display: none !important;
  }
}

:root {
  --royal-farms-primary-green: #13560c;
  --royal-farms-secondary-green: #29c51b;
  --royal-farms-dark-green-1: #174314;
  --royal-farms-dark-green-2: #101e0e;
  --royal-farms-light-green-bg: #E6F4E5;
  --royal-farms-white: #FFFFFF;
}

/* Overrides for inline styles found in index.html */
#vegas-slider .vegas-control__btn:hover {
  color: #29c51b !important; /* Royal Farms Secondary Green */
}

.start-screen__content .custom-btn.primary {
  background-color: #29c51b !important; /* Royal Farms Secondary Green */
  color: var(--royal-farms-white) !important; /* White text for contrast */
}

/* Header top bar background */
#top-bar.top-bar--style-1 .top-bar__bg {
  background-color: #174314 !important; /* Keep image, only override color */
}

/* Default link color from critical.min.css */
body a,
body a:link,
body a:visited {
  color: #29c51b !important; /* Royal Farms Primary Green */
}

/* Link hover/focus color from critical.min.css */
body a:hover,
body a:focus,
body a:active {
  color: #29c51b !important; /* Royal Farms Secondary Green */
}

/* --- Overrides based on style.min.css snippets --- */

/* General buttons */
button,
.button {
  background-color: #fff !important; /* Royal Farms Primary Green */
  border-color: #174314 !important; /* Royal Farms Primary Green */
  color: var(--royal-farms-primary-green) !important; /* White text for contrast */
}

/* Slider elements (IRS) */
.irs-handle {
  border: 2px solid #29c51b !important; /* Royal Farms Secondary Green */
  /* background-color: #fff; original, keep if no new bg is specified for handle itself */
}

.irs--round .irs-from,
.irs--round .irs-single,
.irs--round .irs-to {
  background-color: #174314 !important; /* Royal Farms Primary Green */
}

.irs--round .irs-from:before,
.irs--round .irs-single:before,
.irs--round .irs-to:before {
  border-top-color: #174314 !important; /* Royal Farms Primary Green */
}

/* Pagination active link */
.pagination .page-item.active .page-link {
  border-color: #174314 !important; /* Royal Farms Primary Green */
  /* color: #4f4a37; original text color, keep for now */
}

/* Decorative content border */
.__content:before {
  border: 10px solid #174314 !important; /* Royal Farms Primary Green */
}

/* Slick slider active dot */
.slick-dots li.slick-active button {
  background-color: #174314 !important; /* Royal Farms Primary Green */
  border-color: #174314 !important; /* Royal Farms Primary Green */
}

/* === Modern Navigation Enhancements === */

/* Hamburger button – hidden on desktop */
#mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  margin-right: 8px;
  cursor: pointer;
  z-index: 1060; /* above nav panel */
}
#mobile-nav-toggle .bar {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  background: #282828;
  border-radius: 3px;
  transition: all .3s ease;
}
/* X transformation */
body.nav-open #mobile-nav-toggle .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open #mobile-nav-toggle .bar:nth-child(2) {
  opacity: 0;
}
body.nav-open #mobile-nav-toggle .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Off-canvas panel */
.nav {
  transition: transform .3s ease;
}
@media (max-width: 991px) {
  /* show hamburger and position */
  .header { position: relative; }
  #mobile-nav-toggle {
    display: block;
    position: absolute;
    right: 16px; /* align right */
    top: 12px;
    padding-bottom: 20px;
  }
  /* off-canvas layout */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #174314;
    overflow-y: auto;
    padding-top: 80px; /* space for header */
    transform: translateX(-100%);
    z-index: 1055;
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .nav ul { list-style: none; padding-left: 0; }
  .nav ul li { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav ul li a { display:block; color:#fff; padding:14px 20px; font-weight:600; }
  .nav ul li ul { padding-left:15px; }
 }

/* Desktop link underline animation */
@media (min-width: 992px) {
  .nav ul > li > a {
    position: relative;
    display: inline-block;
    padding: 10px 16px;
    font-weight: 600;
    color: #174314;
  }
  .nav ul > li > a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 4px;
    width: 0; height: 2px;
    background: #29c51b;
    transition: width .25s ease;
  }
  .nav ul > li > a:hover::after,
  .nav ul > li > a:focus::after,
  .nav ul > li.active > a::after {
    width: 100%;
  }
}

/* slight shadow on main header bar */
.header { box-shadow: 0 2px 4px rgba(0,0,0,.05); }

/* -- Quotation Form Styles -- */

/* Modal Content */
#quotationModal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Modal Header */
#quotationModal .modal-header {
    background-color: #13560c; /* Royal Farms Primary Green */
    color: #ffffff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

#quotationModal .modal-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

#quotationModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Form Section Titles */
.form-section-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: #13560c;
    margin-bottom: 1rem;
    border-left: 4px solid #29c51b; /* Royal Farms Accent Yellow */
    padding-left: 10px;
}

/* Form Controls (Inputs, Selects, Textareas) */
.quote-form .form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.quote-form .form-control:focus {
    border-color: #13560c;
    box-shadow: 0 0 0 0.25rem rgba(19, 86, 12, 0.25);
    outline: none;
}

/* Modal Footer */
#quotationModal .modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}

/* Buttons */
#quotationModal .btn {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

#quotationModal .btn-primary {
    background-color: #13560c; /* Royal Farms Primary Green */
    border-color: #13560c;
    color: #ffffff;
}

#quotationModal .btn-primary:hover {
    background-color: #0d3c08; /* Darker Green */
    border-color: #0d3c08;
    transform: translateY(-2px);
}

#quotationModal .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

#quotationModal .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Header & Footer Logo Size */
.top-bar__logo img,
#footer .site-logo img {
  width: 130px !important;
  height: 130px !important;
  object-fit: contain; /* To maintain aspect ratio if original is not square */
}

/* Header "Get in Touch" Button Text Color */
.top-bar__navigation .li-btn .custom-btn {
  color: var(--royal-farms-white) !important; /* White text */
}

/* Header "Get in Touch" Button Alignment */
.top-bar__navigation .li-btn {
  margin-top: 10px !important; /* Adjust as needed */
}

/* Header "Get in Touch" Button Hover Text Color */
.top-bar__navigation .li-btn .custom-btn:hover {
  color: #29c51b !important; /* Royal Farms Secondary Green */
}

/* Custom Button Style 3 (e.g., Discover, Subscribe, Send buttons) */
.custom-btn--style-3 {
  background-color: transparent !important;
  border: 2px solid #174314 !important; /* Royal Farms Primary Green */
  color: #174314 !important; /* Royal Farms Primary Green */
}

.custom-btn--style-3:hover {
  background-color: #174314 !important; /* Royal Farms Primary Green */
  color: var(--royal-farms-white) !important; /* White text */
  /* border-color will be covered by background, but can be set if needed */
}

/* Royal Farms Logo in "Fresh Apples" Banner Section */
.simple-banner--style-1 .__inner img {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain !important; /* Maintain aspect ratio */
  /* Add some margin if needed to prevent touching text, e.g., margin-right: 15px; */
}

/* Navigation link colors */
.main-nav a,
.nav-link {
    color: #29c51b !important; /* Secondary Green */
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.nav-link:hover,
.nav-link:focus {
    color: #13560c !important; /* Primary Green */
    text-decoration: none;
}

.main-nav a.active,
.nav-link.active {
    color: #13560c !important; /* Primary Green */
}

/* Quotation Button in Navigation */
.nav-quote-btn {
    background-color: #29c51b !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-quote-btn:hover {
    background-color: #13560c !important;
    transform: translateY(-1px);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 8px;
}

.modal-header {
    background-color: #13560c;
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.form-section-title {
    color: #13560c;
    margin-bottom: 15px;
    font-weight: 600;
}

.quote-form .form-control {
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 4px;
}

.quote-form .form-control:focus {
    border-color: #29c51b;
    box-shadow: 0 0 0 0.2rem rgba(41, 197, 27, 0.25);
}

.modal-footer .btn-primary {
    background-color: #29c51b;
    border-color: #29c51b;
    padding: 10px 24px;
}

.modal-footer .btn-primary:hover {
    background-color: #13560c;
    border-color: #13560c;
}

/* Success message styles */
.quote-success {
    text-align: center;
    padding: 2rem;
}

.quote-success i {
    color: #29c51b;
    margin-bottom: 1rem;
}

/* About Page Styles */
.about-features,
.about-values {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.about-features li,
.about-values li {
    position: relative;
    padding: 8px 0;
    padding-left: 30px;
    color: #333;
}

.about-features li:before,
.about-values li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #29c51b;
    font-weight: bold;
}

.section-heading p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Counter Section Updates */
.counter .__item .__count {
    color: #13560c;
}

.counter .__item .__title {
    color: #29c51b;
}

body a:active {
  color: #29c51b !important; /* Royal Farms Secondary Green */
}
