/**
* Theme Name: GreenMart Child
* Description: This is a child theme for GreenMart
* Author: Thembay
* Author URI: https://thembay.com/
* Version: 1.1.0
* Template: greenmart
*/

/* =====================================================================
   Rutuba Agri Tech – design layer
   Palette taken from the logo: leaf green, coffee ochre.
   ===================================================================== */

:root {
  --rt-green: #127C0A;
  --rt-deep: #0B4F06;
  --rt-ochre: #C27503;
  --rt-ochre-dark: #9C5E02;
  --rt-gold: #F2C46B;
  --rt-ink: #1E2A1C;
  --rt-text: #4A5560;
  --rt-cream: #F7F3EA;
  --rt-leaf: #EAF4E6;
  --rt-line: #E3E8E0;
  --rt-radius: 18px;
  --rt-shadow: 0 10px 30px rgba(18, 124, 10, .08);
  --rt-shadow-hover: 0 18px 44px rgba(11, 79, 6, .16);
  --rt-ease: cubic-bezier(.2, .7, .2, 1);
  --rt-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---------- Typography ---------- */
[data-elementor-type="wp-page"] h1.elementor-heading-title,
[data-elementor-type="wp-page"] h2.elementor-heading-title,
.page-title, .woocommerce div.product .product_title, .single .entry-title, .tbay-addon-title {
  font-family: var(--rt-serif);
  font-weight: 600;
  letter-spacing: -.01em;
  font-optical-sizing: auto;
}
[data-elementor-type="wp-page"] h3.elementor-heading-title { letter-spacing: -.005em; }
::selection { background: var(--rt-green); color: #fff; }

/* ---------- Header ---------- */
.elementor-element-ca4f443 { width: 50% !important; }
.elementor-element-8218e71 .elementor-button { white-space: nowrap; padding-left: 0; }
#tbay-header .tbay-mainmenu-elementor .menu > li > a,
#tbay-header .elementor-widget-tbay-nav-menu .navbar-nav > li > a { font-weight: 600; transition: color .25s var(--rt-ease); }
#tbay-header .elementor-widget-tbay-nav-menu .navbar-nav > li.active > a,
#tbay-header .elementor-widget-tbay-nav-menu .navbar-nav > li > a:hover { color: var(--rt-green); }
.elementor-sticky--effects { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); background: #fff; }
.elementor-sticky--effects .elementor-widget-tbay-nav-menu .navbar-nav > li > a { padding-top: 6px !important; padding-bottom: 6px !important; }

/* ---------- Buttons ---------- */
.elementor-button, .button, button.button, .woocommerce a.button, input[type=submit] {
  transition: transform .25s var(--rt-ease), box-shadow .25s var(--rt-ease), background-color .25s var(--rt-ease), color .25s var(--rt-ease) !important;
}
[data-elementor-type="wp-page"] .elementor-button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 79, 6, .18); }
.elementor-button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--rt-gold); outline-offset: 3px; }

/* ---------- Cards and media ---------- */
.rt-card > .elementor-widget-wrap { transition: transform .35s var(--rt-ease), box-shadow .35s var(--rt-ease); }
.rt-card:hover > .elementor-widget-wrap { transform: translateY(-6px); box-shadow: var(--rt-shadow-hover); }
.rt-media .elementor-widget-container, .rt-media .elementor-image { overflow: hidden; border-radius: var(--rt-radius); }
.rt-media img { transition: transform .8s var(--rt-ease); }
.rt-media:hover img, .rt-card:hover .rt-media img { transform: scale(1.045); }

/* Numbered process steps */
.rt-step .rt-step-num .elementor-heading-title {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--rt-leaf); color: var(--rt-green) !important;
  font-family: var(--rt-serif); font-size: 22px !important; font-weight: 700;
}
.rt-step { position: relative; }
@media (min-width: 1025px) {
  .rt-step:not(:last-child)::after {
    content: ''; position: absolute; top: 56px; right: -12%; width: 24%;
    border-top: 2px dashed rgba(18, 124, 10, .3);
  }
}

/* Hero chips */
.rt-chips .elementor-icon-list-items { gap: 10px 22px; }
.rt-chips .elementor-icon-list-item { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: 7px 14px !important; border-radius: 40px; backdrop-filter: blur(4px); }

/* Counters with separators */
.rt-counters .elementor-column + .elementor-column > .elementor-widget-wrap { border-left: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 767px) { .rt-counters .elementor-column + .elementor-column > .elementor-widget-wrap { border-left: 0; } }

/* Scroll reveal (activated by rutuba-core.php) */
.rt-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--rt-ease), transform .8s var(--rt-ease); }
.rt-reveal.rt-in { opacity: 1; transform: none; }

/* ---------- Team ---------- */
.tbay-element-our-team .our-team-content { overflow: hidden; border-radius: var(--rt-radius); }
.tbay-element-our-team .our-team-content img { width: 100% !important; aspect-ratio: 1 / 1; height: auto !important; object-fit: cover; border-radius: var(--rt-radius) !important; transition: transform .8s var(--rt-ease); }
.tbay-element-our-team .item:hover .our-team-content img { transform: scale(1.04); }
.tbay-element-our-team .our-team-content img[src*="Logo_Rutuba"] { object-fit: contain; background: var(--rt-cream); padding: 28px; }
.tbay-element-our-team .info .name-team { margin-top: 16px; font-family: var(--rt-serif); font-weight: 600; font-size: 19px; }
.tbay-element-our-team .info .job { color: var(--rt-ochre); font-weight: 600; font-size: 14px; }

/* ---------- Galleries ---------- */
.elementor-image-gallery .gallery-item { overflow: hidden; border-radius: 12px; }
.elementor-image-gallery .gallery-item img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 12px; transition: transform .8s var(--rt-ease); }
.elementor-image-gallery .gallery-item:hover img { transform: scale(1.05); }

/* ---------- Forms ---------- */
.rt-form label { display: block; font-weight: 600; color: var(--rt-ink); font-size: 15px; }
.rt-form .rt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 767px) { .rt-form .rt-row { grid-template-columns: 1fr; } }
.rt-form input:not([type=submit]), .rt-form select, .rt-form textarea {
  width: 100% !important; max-width: 100%; margin-top: 6px; padding: 13px 15px;
  border: 1px solid #D9DED6; border-radius: 12px; background: #fff; font-weight: 400;
  transition: border-color .2s, box-shadow .2s;
}
.rt-form input:focus, .rt-form select:focus, .rt-form textarea:focus { border-color: var(--rt-green); box-shadow: 0 0 0 4px rgba(18, 124, 10, .12); outline: 0; }
.rt-form textarea { min-height: 150px; }
.rt-form input[type=submit] { background: var(--rt-green); color: #fff; border: 0; border-radius: 40px; padding: 15px 36px; font-weight: 600; cursor: pointer; }
.rt-form input[type=submit]:hover { background: var(--rt-deep); transform: translateY(-2px); }
.rt-form .rt-legal { font-size: 13px; color: var(--rt-text); }
.wpcf7 form .wpcf7-response-output { border-radius: 12px; margin: 16px 0 0; }

/* ---------- Shop: product cards ---------- */
.product-block.grid { border-radius: var(--rt-radius); transition: box-shadow .35s var(--rt-ease), transform .35s var(--rt-ease); }
.product-block.grid:hover { box-shadow: var(--rt-shadow-hover); transform: translateY(-4px); }
.product-block .image img { border-radius: 12px; }
.product-block .name a { font-weight: 600; color: var(--rt-ink); }
.product-block .onsale .featured, .product-block .onsale .featured-saled { display: none !important; }
.product-block .rating:has(.star-rating span[style*="width:0%"]) { display: none; }
.woocommerce div.product .woocommerce-product-rating:has(.star-rating span[style*="width:0%"]) { display: none; }
.woocommerce span.onsale .saled, .product-block .onsale .saled { background: var(--rt-ochre) !important; }
.woocommerce .price ins, .product-block .price > .amount, .product-block .price ins { color: var(--rt-green); }
body:not(.single-product) .woosq-btn, .tinvwl-loop-button-wrapper { display: none !important; }
.product-block .add-cart a.button, .rt-quote-btn { border-radius: 40px !important; }
.product-block a.rt-quote-btn { background: var(--rt-ochre) !important; border-color: var(--rt-ochre) !important; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px 14px; font-weight: 600; }
.product-block a.rt-quote-btn:hover { background: var(--rt-ochre-dark) !important; }

/* Single product */
.rt-product-cta { margin: 18px 0 8px; display: grid; gap: 12px; max-width: 460px; }
.rt-product-cta .rt-price-note { margin: 0; padding: 12px 16px; background: var(--rt-cream); border-radius: 12px; color: var(--rt-ink); font-weight: 500; }
.rt-product-cta a.button { text-align: center; border-radius: 40px !important; padding: 14px 20px !important; font-weight: 600; }
.rt-product-cta a.rt-quote-btn { background: var(--rt-ochre) !important; color: #fff !important; }
.rt-product-cta a.rt-wa-btn { background: #fff !important; color: #128C7E !important; border: 2px solid #25D366 !important; }
.rt-product-cta a.rt-wa-btn:hover { background: #25D366 !important; color: #fff !important; }
.rt-assurance { list-style: none; margin: 6px 0 0; padding: 14px 16px; border: 1px solid var(--rt-line); border-radius: 12px; font-size: 14px; color: var(--rt-text); }
.rt-assurance li { padding: 4px 0 4px 24px; position: relative; }
.rt-assurance li::before { content: '✓'; position: absolute; left: 0; color: var(--rt-green); font-weight: 700; }

/* Shop and blog header banners */
.tbay-breadscrumb { position: relative; }
.tbay-breadscrumb .page-title, .tbay-breadscrumb .breadscrumb-inner h1 { color: inherit; }

/* ---------- Floating WhatsApp ---------- */
.rt-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 9990;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff !important; font-weight: 700; font-size: 15px;
  padding: 12px 18px 12px 14px; border-radius: 40px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .38);
  transition: transform .25s var(--rt-ease), box-shadow .25s var(--rt-ease);
}
.rt-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(37, 211, 102, .5); color: #fff; }
.rt-whatsapp svg { flex: 0 0 auto; }
@media (max-width: 1024px) {
  .rt-whatsapp { bottom: 78px; right: 14px; padding: 12px; }
  .rt-whatsapp span { display: none; }
}
#back-to-top, .tbay-to-top { bottom: 92px !important; }

/* ---------- Footer ---------- */
#tbay-footer .tbay-element-menu-vertical a, #tbay-footer .menu a { transition: color .2s, padding .2s; }
#tbay-footer .tbay-element-menu-vertical a:hover, #tbay-footer .menu a:hover { color: var(--rt-green); padding-left: 4px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rt-reveal { opacity: 1; transform: none; }
}
