:root {
    --royal-farms-primary-green: #13560c;
    --royal-farms-secondary-green: #29c51b;
}

body a,
body a:link,
body a:visited {
    color: var(--royal-farms-secondary-green);
}

a.custom-btn,
a.custom-btn:link,
a.custom-btn:visited {
    color: #ffffff !important; /* Overriding default link color for buttons */
}

.partners-list .js-slick {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: space-around !important;
}

@media (min-width: 992px) {
    /* Transparent header background before scroll */
    .top-bar .top-bar__bg{
        background: transparent !important;
    }
    /* Remove decorative white bar layer (same as mobile) */
    #top-bar.top-bar--style-1 .top-bar__bg{
        display:none !important;
    }

	.top-bar.fixed-nav {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		background-color: rgba(255, 255, 255, 0.95) !important;
		z-index: 1000;
		box-shadow: 0 2px 4px rgba(0,0,0,0.1);
		transition: all 0.3s ease-in-out;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	.top-bar.fixed-nav .top-bar__bg {
		background: none !important;
	}

	.top-bar.fixed-nav .main-menu > li > a {
		color: #333;
	}

	.top-bar.fixed-nav .main-menu > li.active > a {
		color: #13560c;
	}

	.top-bar.fixed-nav .li-profile a,
	.top-bar.fixed-nav .li-cart a {
		color: #333;
	}

	.top-bar.fixed-nav .top-bar__navigation-toggler--light span,
	.top-bar.fixed-nav .top-bar__navigation-toggler--light span::before,
	.top-bar.fixed-nav .top-bar__navigation-toggler--light span::after {
		background-color: #333;
	}
}

/* Header positioning and z-index fix */
.top-bar {
    position: relative;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

.top-bar.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Ensure header content stays above backdrop */
.top-bar__inner {
    position: relative;
    z-index: 1051;
}

.top-bar__logo.site-logo {
    position: relative;
    margin-top: 15px !important;
    padding-left: 15px !important;
    z-index: 1051;
}

/* Adjust slider z-index to be below header */
.ltn__slider-area {
    position: relative;
    z-index: 1;
}

.start-screen.start-screen--style-1 {
    position: relative;
    z-index: 1;
}

/* Shop Catalog Nav Bar Alignment Fix */
.top-bar--style-2 .container > .row {
	justify-content: flex-start !important;
}

.top-bar--style-2 .top-bar__inner {
	margin-left: auto;
}

.top-bar__logo img {
    width: 130px !important;
    height: 130px !important;
    object-fit: contain;
}

@media (max-width: 991px) {
    .top-bar__logo img {
        width: 130px !important;
        height: 130px !important;
    }
}

/* Active nav link underline fix */
.top-bar--style-2 .navigation > ul > li.active > a::after {
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	right: auto;
	bottom: 1.1em;
}

/* Commitment Section Text Legibility Fix */
.section--base-bg .__title,
.section--base-bg p {
    color: #ffffff;
}

.section--base-bg .__title span {
    color: #fcdb5a;
}

/* -------------------------------------------------
   Hero slider sizing (ensures next section starts below)
   ------------------------------------------------- */
.ltn__slider-area {
    /* Set height to viewport minus the header, overriding JS inline styles */
    height: calc(100vh - 95px) !important; /* 95px desktop header */

    position: relative;
    z-index: 1;
}
@media (max-width: 991px) {
    .ltn__slider-area {
        /* Adjust mobile height, overriding JS inline styles */
        height: calc(100vh - 75px) !important; /* 75px mobile header */
        min-height: 560px;
    }
}
/* ------------------------------------------------- */

/* Fix: Ensure slider and its children fill the container height */
.ltn__slide-one-active,
.ltn__slide-one-active .slick-list,
.ltn__slide-one-active .slick-track,
.ltn__slide-item,
.ltn__slide-item .ltn__slide-item-inner {
    height: 100%; /* Make all slider elements fill the container */
}

/* Note: Removed previous flexbox override to restore theme\"s default content alignment. */

/* Royal Farms style-4 button override */
.custom-btn--style-4 {
    background-color: #29c51b !important; /* Secondary green */
    border-color: #29c51b !important;
    color: #ffffff !important;
}
.custom-btn--style-4:hover,
.custom-btn--style-4:focus,
a.custom-btn.custom-btn--style-4:hover,
a.custom-btn.custom-btn--style-4:focus {
    background-color: var(--royal-farms-primary-green) !important;
    border-color: var(--royal-farms-primary-green) !important;
    color: var(--royal-farms-secondary-green) !important;
}

/* Global Button Styles */

/* Brand outline button across site (default and hover) */
.custom-btn--style-1{
    background: #29c51b !important;
    color:#ffffff !important;
    border:2px solid #29c51b !important;
}
.custom-btn--style-1:hover,
.custom-btn--style-1:focus,
a.custom-btn.custom-btn--style-1:hover,
a.custom-btn.custom-btn--style-1:focus {
    background:var(--royal-farms-primary-green) !important;
    border-color:var(--royal-farms-primary-green) !important;
    color:var(--royal-farms-secondary-green) !important;
}


/* Ensure all custom buttons have centered label */
.custom-btn,
.custom-btn--style-1,
.custom-btn--style-4,
button.custom-btn,
a.custom-btn{
    justify-content:center !important;
    text-align:center !important;
}
.custom-btn--style-1 {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    padding: 1rem 1.75rem;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.custom-btn--style-1::after {
    content: \"\";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(41, 197, 27, 0.4),
        transparent
    );
    transition: 0.5s;
}

.custom-btn--style-1:hover {
    background: rgba(41, 197, 27, 0.15);
    border-color: #29c51b;
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

.custom-btn--style-1:active {
    transform: translateY(0);
}

/* Dark background button variant */
.section:not(.section--dark-bg):not(.start-screen) .custom-btn--style-1 {
    color: #13560c;
    border-color: #13560c;
}

.section:not(.section--dark-bg):not(.start-screen) .custom-btn--style-1:hover {
    color: #29c51b;
    border-color: #29c51b;
    background: rgba(41, 197, 27, 0.1);
}

/* Mobile Menu Close Icon */
.top-bar__navigation-toggler {
    position: absolute;
    z-index: 1052;
    transition: all 0.3s ease;
}

.top-bar__navigation-toggler span,
.top-bar__navigation-toggler span::before,
.top-bar__navigation-toggler span::after {
    background-color: #fff;
    content: \"\";
    position: absolute;
    height: 2px;
    transition: all 0.3s ease;
}

.top-bar__navigation-toggler span {
    width: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.top-bar__navigation-toggler span::before {
    width: 24px;
    top: -8px;
    left: 0;
}

.top-bar__navigation-toggler span::after {
    width: 24px;
    bottom: -8px;
    left: 0;
}

/* Active state - X shape */
.top-bar.is-expanded .top-bar__navigation-toggler span {
    background-color: transparent;
}

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

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

/* Adjust colors for light/dark variants */
.top-bar__navigation-toggler--light span,
.top-bar__navigation-toggler--light span::before,
.top-bar__navigation-toggler--light span::after {
    background-color: #fff;
}

.top-bar__navigation-toggler--dark span,
.top-bar__navigation-toggler--dark span::before,
.top-bar__navigation-toggler--dark span::after {
    background-color: #333;
}

/* Mobile menu panel styling */
@media (max-width: 991px) {
    .top-bar__inner {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(40, 40, 40, 0.98);
        padding: 80px 30px 30px;
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 1051;
    }

    .top-bar.is-expanded .top-bar__inner {
        right: 0;
    }

    .top-bar.is-expanded .top-bar__navigation > ul {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.3s;
    }

    .top-bar__navigation > ul {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    /* Ensure header remains transparent and overlays content on mobile */
    .top-bar,
    .top-bar.fixed-nav {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        background-color: transparent !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    /* Hide decorative background layer on mobile */
    #top-bar.top-bar--style-1 .top-bar__bg {
        display: none !important;
    }

    /* Glassmorphism card spacing and padding */
    .ltn__slider-style-custom .slide-item-info-inner {
        margin: 0 1.25rem !important; /* equal space left & right */
        padding: 60px 28px !important; /* reduce horizontal padding so text stays inside */
        max-width: 100% !important; /* prevent overflow beyond viewport */
    }

    /* Prevent mid-word breaks and scale titles on small screens */
    .ltn__slider-style-custom .slide-item-info-inner h1 {
        word-break: keep-all;
        overflow-wrap: normal;
        white-space: normal;
        font-size: clamp(2rem, 6.2vw, 3.75rem);
        line-height: 1.1;
    }
    .ltn__slider-style-custom .slide-item-info-inner p {
        word-break: normal;
        overflow-wrap: normal;
    }

    /* Center align button text & icons on mobile */
    a.custom-btn,
    button.custom-btn,
    .custom-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
}




/* Proposed Solution for Hero Slider Issue */

/* Allow content (glass card) to extend freely */
.ltn__slider-area {
    overflow: visible !important;
}

/* Vertically center content within each slide item */
.ltn__slide-item-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    padding: 0 4vw 60px; /* smaller bottom gap so card visible */
}
@media (max-width: 767px){
    .ltn__slide-item-inner{
        padding-bottom:90px; /* extra space on small screens */
    }
}

/* Center pagination dots and override Swiper inline styles */
.ltn__slider-area .swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 0 !important;           /* override inline left:0 */
    width: 100% !important;       /* span full slider width */
    transform: none !important;   /* so we can use flex centring */
    display: flex;
    justify-content: center;      /* center bullets */
    z-index: 10;
}

/* Ensure the button wrapper has appropriate spacing */
.slide-item-info-inner .btn-wrapper {
    margin-top: auto;
    padding-bottom: 20px;
}

/* Hide the vertical scroll-discover cue */
.scroll-discover {
    display: none !important;
}

/* -------------------------------------------------
   Reduce gap between hero and following section
   ------------------------------------------------- */
.start-screen{
    margin-bottom:0 !important; /* remove default space */
}
.start-screen + .section{
    padding-top:40px !important; /* was huge; make compact */
}
@media (min-width:992px){
    .start-screen + .section{
        padding-top:60px !important; /* desktop modest spacing */
    }
}

/* Custom CSS for Royal Farms */

.fixed-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.top-bar__logo img {
    max-height: 130px;
    transition: max-height 0.3s ease;
}

.fixed-nav .top-bar__logo img {
    max-height: 130px; /* Adjust shrunken logo size */
}

@media (max-width: 991.98px) {
    .top-bar .container-fluid {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .top-bar__logo {
        order: 1;
        flex-grow: 0;
    }

    .top-bar__navigation-toggler {
        order: 2;
    }

    #top-bar__inner {
        order: 3;
        width: 100%;
    }
}

.top-bar__contacts {
    display: none;
}

/* Core Categories Hover Effect */
.feature--style-1 .__item:before {
    display: none !important; /* Override theme's rectangle pseudo-element */
}

.feature--style-1 .__item {
    transition: all 0.3s ease-in-out;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid transparent; /* Prevent layout shift on hover */
}

.feature--style-1 .__item:hover {
    transform: translateY(-5px); /* Subtle lift */
    box-shadow: 0 10px 20px rgba(19, 86, 12, 0.1); /* Refined shadow */
    border-color: #13560c; /* Primary green border */
}

.feature--style-1 .__item:hover .__title {
    color: #13560c; /* Primary Green */
}

/* Banner Size Optimization */
.section--base-bg {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Partner Carousel Styles */
.section-partners {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light gray background to separate it */
}

.splide__slide img {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.splide__slide img:hover {
    opacity: 1;
}

/* Updated Testimonial Slider Styles */
.testimonial-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.testimonial-header {
    margin-bottom: 60px;
}

.testimonial-header .__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.testimonial-header .__title .highlight-green {
    color: #1DB954; /* Spotify Green */
}

.testimonial-subheader {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

.custom-btn--style-5 {
    background-color: #1DB954;
    color: #ffffff;
    border-radius: 50px;
    padding: 12px 18px 12px 24px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.custom-btn--style-5:hover {
    background-color: #1ed760;
    color: #ffffff;
}

.custom-btn--style-5 .icon-wrapper {
    background-color: #ffffff;
    color: #1DB954;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 0.8rem;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin: 0 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

.testimonial-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-user-info {
    text-align: left;
    margin-left: 15px;
    padding-top: 4px; /* Nudges the text block down for better alignment */
    line-height: 1.2;
}

.testimonial-user-name {
    font-weight: 700;
    color: #000000;
    margin-bottom: 2px;
}

.testimonial-user-details {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
}

.testimonial-section .splide__pagination {
    bottom: -50px;
}

.testimonial-section .splide__pagination__page.is-active {
    background: #1DB954;
}

/* Testimonial Section */
.jarallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(2, 40, 2, 0.7), rgba(1, 15, 1, 0.9));
    z-index: 1;
}

.jarallax .container {
    position: relative;
    z-index: 2;
}

#testimonials-slider .splide__slide {
    padding: 0 15px; /* Add horizontal spacing between slides */
}

#testimonials-slider .testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
		min-height: 250px; /* Ensure cards have a minimum height */
}

#testimonials-slider .testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
}

#testimonials-slider .testimonial-author {
    text-align: right;
}

#testimonials-slider .testimonial-author__name {
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

#testimonials-slider .testimonial-author__title {
    font-size: 0.9rem;
    color: #777;
}

/*==================================================
  Commitment Section Background
==================================================*/
.section--base-bg {
    padding-top: 100px; /* Increased padding for better spacing */
    padding-bottom: 100px; /* Increased padding for better spacing */
    position: relative;
    background-image: url('../img/gallery_img/17.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.section--base-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(19, 86, 12, 0.85), rgba(19, 86, 12, 0.85)); /* Gradient overlay */
    z-index: 1;
}


.section--base-bg .container {
    position: relative;
    z-index: 2;
}

/*==================================================
  Rebuilt Testimonial Slider
==================================================*/
.review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin: 0 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    border: 1px solid #eee;
}

.review-card__quote {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows quote to take up available space */
}

.review-card__author {
    margin-top: auto; /* Pushes author to the bottom */
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.review-card__author-name {
    display: block;
    font-weight: 700;
    color: #13560c; /* Brand primary green */
}

.review-card__author-title {
    font-size: 0.9rem;
    color: #777;
}

/* CTA Button Arrow Animation */
.custom-btn .arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease-out;
}

.custom-btn:hover .arrow {
    transform: translateX(5px);
}

.quotation-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.quotation-bar .nav-quote-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #29c51b;
  color: #fff;
  border: none;
  border-radius: 999px; /* pill shape */
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 400;
  box-shadow: none;
  transition: background 0.18s, transform 0.12s;
  outline: none;
}
.quotation-bar .nav-quote-btn svg {
  width: 1.25em;
  height: 1.25em;
  display: block;
  fill: #fff;
  stroke: #fff;
}
.quotation-bar .nav-quote-btn:focus-visible {
  outline: 2px solid #13560c;
  outline-offset: 2px;
}
.quotation-bar .nav-quote-btn:hover,
.quotation-bar .nav-quote-btn:active {
  background: #1fb51a; /* slightly darker for hover */
  transform: translateY(-2px) scale(1.05);
}
@media (max-width: 991px) {
  .quotation-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .quotation-bar .nav-quote-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-bottom: 0.5rem;
  }
}

/* Centered quantity counter for product cards */
.quantity-counter.js-quantity-counter {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0 1rem 0;
  gap: 0.5rem;
}
.quantity-counter .__btn {
  width: 2rem;
  height: 2rem;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: #29c51b;
  border: none;
  transition: background 0.15s;
}
.quantity-counter .__btn:hover {
  background: #e6f4e5;
}
.quantity-counter .__q-input {
  width: 2.5rem;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
}

/* Product card visual balance improvements */
.goods--style-1 .__item, .goods--style-1 .__item .__content {
  padding: 1.5rem 1rem 1.5rem 1rem;
  text-align: center;
}
.goods--style-1 .__item .__content h4 {
  margin-bottom: 0.5rem;
}
.goods--style-1 .__item .__content .__category {
  color: #7a7a7a;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.goods--style-1 .__item .__content .product-price {
  margin-bottom: 1.1rem;
}
.goods--style-1 .__item .__content .product-price__item--old {
  color: #e74c3c;
  font-size: 0.95rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.goods--style-1 .__item .__content .quantity-counter {
  margin-bottom: 1.2rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
}
.goods--style-1 .__item .__content .custom-btn {
  margin-top: 0.5rem;
  width: 90%;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.goods--style-1 .__item {
  box-shadow: 0 2px 12px rgba(41,197,27,0.04);
  border-radius: 16px;
  background: #fff;
  transition: box-shadow 0.18s;
}
.goods--style-1 .__item:hover {
  box-shadow: 0 6px 24px rgba(41,197,27,0.10);
}

@media (max-width: 575.98px) {
  .goods--style-1 .__item .__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .goods--style-1 .__item .__content .quantity-counter {
    width: auto !important;
    min-width: 0;
    max-width: 180px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: center !important;
  }
}

/* Custom Modal Styles */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
}

.custom-modal.is-open {
  display: flex;
}

.custom-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.custom-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-modal.is-open .custom-modal-dialog {
  opacity: 1;
  transform: translateY(0);
}

.custom-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.custom-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #13560c;
  margin: 0;
}

.custom-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.custom-modal-close:hover {
    color: #000;
}

.custom-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.custom-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.custom-modal-footer .btn-cancel,
.custom-modal-footer .btn-submit {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-modal-footer .btn-cancel {
    background: #fff;
    color: #555;
}
.custom-modal-footer .btn-cancel:hover {
    background: #f1f1f1;
}

#quotationModal .custom-modal-footer .btn-submit {
    background-color: #29c51b;
    border-color: #29c51b;
    color: #fff;
}
.custom-modal-footer .btn-submit:hover {
    background: #13560c;
    border-color: #13560c;
}

/* Refined Quotation Form Styles */
.refined-quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.refined-quote-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.refined-quote-form .form-group {
    display: flex;
    flex-direction: column;
}

.refined-quote-form label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.refined-quote-form input[type="text"],
.refined-quote-form input[type="email"],
.refined-quote-form input[type="tel"],
.refined-quote-form input[type="number"],
.refined-quote-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.refined-quote-form input[type="text"]:focus,
.refined-quote-form input[type="email"]:focus,
.refined-quote-form input[type="tel"]:focus,
.refined-quote-form input[type="number"]:focus,
.refined-quote-form textarea:focus {
    outline: none;
    border-color: #29c51b;
    box-shadow: 0 0 0 3px rgba(41, 197, 27, 0.15);
}

/* Custom Radio Buttons */
.refined-quote-form .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.refined-quote-form .radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 0;
}

.refined-quote-form .radio-group input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid #ddd;
    border-radius: 50%;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
}

.refined-quote-form .radio-group input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #29c51b;
}

.refined-quote-form .radio-group input[type="radio"]:checked {
    border-color: #29c51b;
}

.refined-quote-form .radio-group input[type="radio"]:checked::before {
    transform: scale(1);
}

@media (max-width: 767px) {
    .refined-quote-form .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Custom button vertical alignment fix */
a.custom-btn.custom-btn--small.custom-btn--style-1 {
    padding-top: 14px !important;
    padding-bottom: 10px !important;
}

/* Footer layout overrides */
#footer .footer__item {
    margin-bottom: 0px;
}

#footer .row {
    align-items: flex-start;
}

#footer .col-12.col-lg-auto .footer__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#footer .col-12.col-sm {
    display: none;
}

#footer .site-logo {
    margin-bottom: 0px;
}

#footer address {
    margin-bottom: 15px;
}

#footer .social-btns {
    order: 3;
}

/* Position newsletter block to right above the footer links */
#footer {
    position: relative;
}
@media (min-width: 992px) {
    /* Make footer container relative for absolute positioning */
    #footer .footer__inner {
        position: relative !important;
        padding-top: 60px !important; /* Add space for absolutely positioned newsletter */
    }

    #footer .col-12.col-lg-5.col-xl-4 {
        position: absolute !important;
        top: 50% !important;
        right: 15px !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        max-width: 350px !important;
        margin: 0 !important;
    }

    /* Stack heading above the form */
    #footer .col-12.col-lg-5.col-xl-4 .footer__item {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 12px;               /* space between heading and form */
        text-align: right;
        margin-bottom: 0;        /* no bottom margin needed */
    }

    /* Position heading in the marked area and align left */
    #footer .col-12.col-lg-5.col-xl-4 .footer__item .h6 {
        position: absolute !important;
        top: -60px !important;
        left: 10px !important;
        margin: 0;
        white-space: nowrap;
        text-align: left !important;
    }

    /* inline layout for input + button */
    #footer .col-12.col-lg-5.col-xl-4 .footer__item form {
        display: inline-flex;
        align-items: center;
        gap: 16px;
        margin: 0;
    }

    #footer .col-12.col-lg-5.col-xl-4 .footer__item form .textfield {
        width: 230px;
        border: none;
        border-bottom: 1px solid #d9d9d9;
        border-radius: 0;
        background: transparent;
        padding: 0 0 4px 0;
    }

    #footer .col-12.col-lg-5.col-xl-4 .footer__item form .custom-btn {
        white-space: nowrap;
    }
}

/* Schedule Tour Modal Styles */
#scheduleTourModal .custom-modal-dialog {
    max-width: 600px;
    width: 90%;
}

#scheduleTourModal .modal-description {
    color: #666;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.5;
}

.tour-booking-form .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.tour-booking-form .form-group {
    flex: 1;
    margin-bottom: 16px;
}

.tour-booking-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.tour-booking-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.tour-booking-form .form-control:focus {
    outline: none;
    border-color: #29c51b;
    box-shadow: 0 0 0 3px rgba(41, 197, 27, 0.1);
}

.tour-booking-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.tour-booking-form select.form-control {
    cursor: pointer;
}

#scheduleTourModal .btn-submit {
    background-color: #29c51b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#scheduleTourModal .btn-submit:hover {
    background-color: #228b17;
}

#scheduleTourModal .btn-cancel {
    background-color: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#scheduleTourModal .btn-cancel:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* Mobile responsiveness for tour form */
@media (max-width: 768px) {
    .tour-booking-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    #scheduleTourModal .custom-modal-dialog {
        width: 95%;
        margin: 20px auto;
    }
    
    .tour-booking-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Calendly styles removed – no longer used */

/* Google Login Button Styles */
/* Stronger Google Login Button Styles */
button.google-login-btn, .google-login-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0.75em 1em !important;
  margin-top: 0.5em !important;
  background: #fff !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #222 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
  cursor: pointer !important;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.1s !important;
  outline: none !important;
  gap: 0.5em !important;
  box-sizing: border-box !important;
  border-style: solid !important;
}
button.google-login-btn:focus, .google-login-btn:focus {
  border-color: var(--royal-farms-secondary-green) !important;
  box-shadow: 0 0 0 2px rgba(41,197,27,0.15) !important;
}
button.google-login-btn:hover, .google-login-btn:hover {
  border-color: var(--royal-farms-primary-green) !important;
  box-shadow: 0 2px 8px rgba(19,86,12,0.08) !important;
  transform: translateY(-1px) scale(1.01) !important;
}
button.google-login-btn:active, .google-login-btn:active {
  transform: scale(0.98) !important;
}
button.google-login-btn .google-icon, .google-login-btn .google-icon {
  display: flex !important;
  align-items: center !important;
  margin-right: 8px !important;
}
button.google-login-btn .google-btn-text, .google-login-btn .google-btn-text {
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: #222 !important;
}
@media (max-width: 991px) {
  button.google-login-btn, .google-login-btn {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 0.75em 0.5em !important;
  }
}

/* --- Modern Login Form Styles --- */
.login-form-wrapper {
  max-width: 400px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(19,86,12,0.08), 0 1.5px 4px rgba(41,197,27,0.04);
  padding: 2.5rem 2rem 2rem 2rem;
  font-family: 'Raleway', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-form-logo {
  width: 120px;
  margin-bottom: 1.5rem;
  display: block;
}
.login-form-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #13560c;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.01em;
}
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.login-form .form-group {
  margin-bottom: 0.5rem;
}
.login-form label {
  font-size: 1rem;
  color: #13560c;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
}
.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.75em 1em;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Raleway', sans-serif;
  background: #fafbfa;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
  border-color: #29c51b;
  box-shadow: 0 0 0 2px rgba(41,197,27,0.12);
  outline: none;
}
.login-form .btn-login {
  width: 100%;
  background: linear-gradient(90deg, #13560c 60%, #29c51b 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  border-radius: 6px;
  padding: 0.85em 0;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 1px 2px rgba(19,86,12,0.04);
}
.login-form .btn-login:hover,
.login-form .btn-login:focus {
  background: linear-gradient(90deg, #29c51b 0%, #13560c 100%);
  box-shadow: 0 2px 8px rgba(19,86,12,0.10);
  transform: translateY(-1px) scale(1.01);
}
.login-form .remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.login-form .remember-me {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.98rem;
  color: #13560c;
}
.login-form .remember-me input[type="checkbox"] {
  accent-color: #29c51b;
  width: 1.1em;
  height: 1.1em;
}
.login-form .forgot-link {
  color: #29c51b;
  font-size: 0.98rem;
  text-decoration: none;
  transition: color 0.2s;
}
.login-form .forgot-link:hover {
  color: #13560c;
  text-decoration: underline;
}
.login-form .error {
  background: #fff0f3;
  color: #e4144d;
  border-left: 4px solid #e4144d;
  padding: 0.7em 1em;
  border-radius: 4px;
  margin-bottom: 1em;
  font-size: 0.98rem;
}
.login-form .success {
  background: #e6fbe6;
  color: #13560c;
  border-left: 4px solid #29c51b;
  padding: 0.7em 1em;
  border-radius: 4px;
  margin-bottom: 1em;
  font-size: 0.98rem;
}
@media (max-width: 600px) {
  .login-form-wrapper {
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    border-radius: 0;
    box-shadow: none;
  }
  .login-form-title {
    font-size: 1.2rem;
  }
  .login-form input[type="email"],
  .login-form input[type="password"] {
    font-size: 0.98rem;
    padding: 0.7em 0.7em;
  }
  .login-form .btn-login {
    font-size: 1rem;
    padding: 0.7em 0;
  }
}

/* Password visibility toggle icon styles */
.form-group { position: relative; }
.form-group .form-control[type="password"],
.form-group .form-control[type="text"] {
  padding-right: 2.8em !important;
}
.toggle-password {
  position: absolute;
  top: 50%;
  right: 0.5em;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: transparent;
  border: none;
  padding: 0.25em;
  height: 1.8em;
  width: 1.8em;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.toggle-password svg {
  display: block;
  width: 1.4em;
  height: 1.4em;
}
.toggle-password:hover {
  background-color: rgba(19, 86, 12, 0.1);
}
.toggle-password:focus {
  outline: 2px solid rgba(41, 197, 27, 0.3);
  outline-offset: 1px;
}
@media (max-width: 600px) {
  .toggle-password {
    right: 0.5em;
    width: 1.8em;
    height: 1.8em;
    padding: 0.1em;
  }
  .toggle-password svg {
    width: 1.2em;
    height: 1.2em;
  }
  .form-group .form-control[type="password"],
  .form-group .form-control[type="text"] {
    padding-right: 2.2em !important;
  }
}




/* --- Mobile Navigation Enhancements --- */
.top-bar__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.top-bar__backdrop.is-active {
    opacity: 1;
}

.top-bar__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}



