/* =========================================================
   KSH Agricultural Industries — unified theme (2026-11-26, v4)
   Palette, tokens and fixes per the brand brief. No other colours.
   Loaded after Tailwind CDN; Tailwind's own colour scales are remapped
   to this palette in tailwind.config (see <head><meta charset="utf-8"> of every page).
   ========================================================= */
:root{
  --leaf:#3F6B1F; --leaf-dark:#2C4A14; --leaf-tint:#EEF3E3;
  --wheat:#D9A42B; --soil:#7A4E2D; --danger:#B42318;
  --bg:#FAF8F2; --surface:#FFFFFF; --sand:#F3ECDC; --border:#E4DCCB;
  --text:#23261E; --text-muted:#5F6355;
  --footer-bg:#233318; --footer-text:#F3ECDC; --footer-link:#C9CDBE;
  --danger-bg:#FDF0EE; --whatsapp:#25D366;
  --r-ctl:10px; --r-card:16px;
  --shadow-card:0 2px 8px rgba(35,38,30,.06);
  --shadow-hover:0 8px 20px rgba(35,38,30,.10);
  --sec-pad:80px;
}
@media (max-width:767px){:root{--sec-pad:56px}}

/* ---------- Base ---------- */
html{-webkit-text-size-adjust:100%}
html body{font-family:'Cairo',sans-serif!important;font-size:16px;font-weight:400;line-height:1.8;color:var(--text);background:var(--bg)!important;overflow-x:hidden}
html body img{max-width:100%}
html body a{text-decoration:none}
html body .container{max-width:1240px}
html body :focus-visible{outline:3px solid var(--leaf-tint);outline-offset:2px}
html body .font-black,html body .font-extrabold{font-weight:800!important}
html body .font-light,html body .font-thin{font-weight:400!important}
html body .font-medium{font-weight:600!important}

/* ---------- Typography tokens ---------- */
html body h1,html body .ksh-h1{font-size:44px!important;font-weight:800!important;line-height:1.3!important}
html body section h2.text-3xl,html body .section-title,html body section .text-center>h2{font-size:32px!important;font-weight:800!important;line-height:1.4!important;color:var(--text)!important;position:relative;padding-bottom:16px;margin-bottom:16px}
html body section h2.text-3xl::after,html body .section-title::after,html body section .text-center>h2::after{content:"";position:absolute;bottom:0;inset-inline-start:0;width:48px;height:4px;border-radius:2px;background:var(--wheat)}
html body .text-center>h2.text-3xl::after,html body .text-center>.section-title::after,html body section .text-center>h2::after{inset-inline-start:50%;transform:translateX(50%)}
html body[dir="ltr"] .text-center>h2.text-3xl::after,html body[dir="ltr"] .text-center>.section-title::after,html body[dir="ltr"] section .text-center>h2::after{transform:translateX(-50%)}
html body h3,html body .product-card h3,html body #featuredProducts h3,html body #whyUsCardsContainer h4{font-size:20px!important;font-weight:700!important;line-height:1.5!important;color:var(--text)!important}
html body p{font-size:16px}
@media (max-width:767px){
  html body h1,html body .ksh-h1{font-size:30px!important}
  html body section h2.text-3xl,html body .section-title,html body section .text-center>h2{font-size:24px!important}
}

/* ---------- Radius: 10px controls, 16px cards/images, 50% circles ---------- */
html body .rounded,html body .rounded-sm,html body .rounded-md,html body .rounded-lg{border-radius:var(--r-ctl)!important}
html body .rounded-xl,html body .rounded-2xl,html body .rounded-3xl{border-radius:var(--r-card)!important}

/* ---------- Buttons: Primary / Secondary only ---------- */
html body .ksh-btn,html body a.bg-green-600,html body button.bg-green-600,html body a.bg-green-700,html body button.bg-green-700,html body button[type=submit],html body .slide-content a{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px!important;font-size:16px!important;font-weight:600!important;line-height:1.5!important;border-radius:var(--r-ctl)!important;border:1.5px solid var(--leaf)!important;background:var(--leaf)!important;color:#fff!important;box-shadow:none!important;transition:background-color .2s,border-color .2s,color .2s}
html body .ksh-btn:hover,html body a.bg-green-600:hover,html body button.bg-green-600:hover,html body a.bg-green-700:hover,html body button.bg-green-700:hover,html body button[type=submit]:hover,html body .slide-content a:hover{background:var(--leaf-dark)!important;border-color:var(--leaf-dark)!important;color:#fff!important}
html body .ksh-btn-secondary,html body a.border-green-600,html body button.border-green-600,html body a.border-2.border-green-600,html body .filter-btn:not(.active),html body .lang-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px!important;font-size:16px!important;font-weight:600!important;line-height:1.5!important;border-radius:var(--r-ctl)!important;border:1.5px solid var(--leaf)!important;background:transparent!important;color:var(--leaf)!important;box-shadow:none!important;transition:background-color .2s}
html body .ksh-btn-secondary:hover,html body a.border-green-600:hover,html body button.border-green-600:hover,html body .filter-btn:not(.active):hover,html body .lang-toggle:hover{background:var(--leaf-tint)!important;color:var(--leaf)!important}
html body .filter-btn.active{padding:12px 24px!important;font-size:16px!important;font-weight:600!important;border-radius:var(--r-ctl)!important;border:1.5px solid var(--leaf)!important;background:var(--leaf)!important;color:#fff!important}
/* language switch = Secondary button */
html body .lang-toggle{padding:0!important;overflow:hidden}
html body .lang-toggle .lang-option{padding:10px 20px!important;font-size:16px!important;font-weight:600!important;line-height:1.5!important;border-radius:0!important;background:transparent!important;color:var(--leaf)!important;box-shadow:none!important;min-width:0!important;height:auto!important}
html body .lang-toggle .lang-option.active,html body .lang-toggle .lang-option[class*="bg-"]{background:transparent!important;color:var(--leaf)!important}

/* ---------- Header ---------- */
html body header.sticky,html body header{background:var(--surface)!important;box-shadow:none!important;border-bottom:1px solid var(--border)}
html body header img{height:44px!important;width:auto!important}
html body header nav a,html body header .hidden.md\:flex a{font-weight:600;font-size:16px;color:var(--text)!important;padding:8px 14px;border-radius:var(--r-ctl);margin-inline:2px!important;background:transparent}
html body header nav a:hover,html body header .hidden.md\:flex a:hover{background:var(--leaf-tint);color:var(--leaf)!important}
html body header a.text-green-700,html body header a.font-semibold.text-green-700,html body #mobile-menu a.text-green-700{background:var(--leaf-tint)!important;color:var(--leaf)!important}
html body #mobile-menu{border-top:1px solid var(--border);box-shadow:var(--shadow-card)!important;background:var(--surface)!important}
html body #mobile-menu a{display:block;padding:12px;border-radius:var(--r-ctl);font-weight:600;color:var(--text)}

/* ---------- Hero ---------- */
html body .hero-slide{height:clamp(420px,62vh,600px)!important;background-position:center 25%!important}
html body .hero-slide::before{background:rgba(35,38,30,.50)!important}
html body .slide-content{max-width:min(640px,88vw)!important;right:clamp(20px,8vw,120px)!important;text-shadow:none!important}
html body[dir="ltr"] .slide-content{left:clamp(20px,8vw,120px)!important;right:auto!important}
html body .slide-content h1,html body .slide-content .ksh-h1{color:#fff!important;margin-bottom:12px}
html body .slide-content p{font-size:18px!important;color:#fff!important;margin-bottom:24px!important}
html body #heroSlider .owl-nav button{width:44px!important;height:44px!important;border-radius:50%!important;background:transparent!important;border:1.5px solid #fff!important;color:#fff!important}
html body #heroSlider .owl-dots{position:absolute;bottom:18px;width:100%}
html body #heroSlider .owl-dot span{width:12px!important;height:12px!important;background:transparent!important;border:1.5px solid #fff!important;border-radius:50%!important}
html body #heroSlider .owl-dot.active span{background:#fff!important}

/* ---------- Inner-page banners (solid, no gradients) ---------- */
html body section.gradient-bg:not(#home){background:var(--leaf)!important;padding-block:var(--sec-pad)!important}
html body section.gradient-bg:not(#home) h1,html body section.gradient-bg:not(#home) p{color:#fff!important}
html body section.gradient-bg:not(#home) p{font-size:18px!important}

/* ---------- Section rhythm & backgrounds ---------- */
html body>section:not(#home):not(.gradient-bg){padding-block:var(--sec-pad)!important}
html body section.bg-white{background:var(--bg)!important}
html body section.bg-gray-50,html body section.bg-green-50{background:var(--sand)!important}
html body #products{background:var(--sand)!important}
html body #about,html body #contact{background:var(--bg)!important}

/* ---------- Cards ---------- */
html body .card-hover,html body .product-card,html body .rounded-xl.shadow-md,html body .shadow-md,html body .shadow-lg,html body .shadow-xl,html body .shadow-2xl{box-shadow:var(--shadow-card)!important}
html body .card-hover,html body .product-card{background:var(--surface)!important;border:1px solid var(--border);border-radius:var(--r-card)!important;transition:transform .2s ease,box-shadow .2s ease}
html body .card-hover:hover,html body .product-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover)!important}

/* ---------- Stats ---------- */
html body section.py-12.bg-white .grid>div{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);padding:24px 12px;box-shadow:var(--shadow-card)}
html body #stat0,html body #stat1,html body #stat2,html body #stat3{font-size:36px!important;font-weight:800!important;color:var(--leaf-dark)!important;line-height:1.3}
html body [id^="stat"][id$="_label"]{color:var(--text-muted)!important;font-weight:600}
@media (max-width:767px){html body section.py-12.bg-white .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}}

/* ---------- Product cards (home + products page) ---------- */
html body #featuredProducts,html body #products-container{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important}
html body #featuredProducts>div,html body .product-card{display:flex!important;flex-direction:column;overflow:hidden}
html body #featuredProducts>div>div:first-child,html body .product-card>div:first-child{height:220px!important;aspect-ratio:auto!important;background:var(--sand)!important;display:flex;align-items:center;justify-content:center;padding:16px!important;flex:none}
html body img[src*="/storage/projects/"]{width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important;background:transparent!important;mix-blend-mode:multiply}
html body #featuredProducts>div>div:last-child,html body .product-card>div:last-child{display:flex;flex-direction:column;flex:1;padding:20px!important}
html body #featuredProducts p,html body .product-card p{color:var(--text-muted)!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:16px}
html body #featuredProducts>div>div:last-child>div:last-child,html body .product-card>div:last-child>div:last-child{margin-top:auto}
html body #featuredProducts a.bg-green-600,html body .product-card a.bg-green-600,html body .product-card button.bg-green-600{width:100%}
html body .ksh-badge,html body .product-card span.bg-green-100,html body #featuredProducts span.bg-green-100{display:inline-block;align-self:flex-start;background:var(--leaf-tint)!important;color:var(--soil)!important;font-size:13px!important;font-weight:600!important;padding:4px 10px!important;border-radius:var(--r-ctl)!important;margin-bottom:8px;line-height:1.6}
html body .quick-view-btn{border-radius:var(--r-ctl)!important;background:var(--surface)!important;color:var(--leaf)!important;border:1.5px solid var(--leaf)!important}
@media (max-width:1023px){html body #featuredProducts,html body #products-container{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:559px){
  html body #featuredProducts,html body #products-container{gap:12px!important}
  html body #featuredProducts>div>div:first-child,html body .product-card>div:first-child{height:150px!important;padding:10px!important}
  html body #featuredProducts>div>div:last-child,html body .product-card>div:last-child{padding:12px!important}
  html body #featuredProducts h3,html body .product-card h3{font-size:16px!important}
  html body #featuredProducts p,html body .product-card p{display:none}
  html body .product-card .quick-view-btn{display:none}
  html body #featuredProducts a.bg-green-600,html body .product-card a.bg-green-600,html body .product-card button.bg-green-600{padding:10px 8px!important;font-size:14px!important}
  html body .product-card .flex.space-x-2{flex-direction:column;gap:8px}
}

/* ---------- Why choose KSH ---------- */
html body #whyUsCardsContainer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important}
html body #whyUsCardsContainer>div{padding:24px!important}
html body .ksh-icon{width:56px!important;height:56px!important;border-radius:50%!important;background:var(--leaf-tint)!important;color:var(--leaf)!important;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
html body .ksh-icon svg{width:26px;height:26px;stroke:var(--leaf)}
html body #whyUsCardsContainer p{color:var(--text-muted)!important}
@media (max-width:1023px){html body #whyUsCardsContainer{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:639px){html body #whyUsCardsContainer{grid-template-columns:1fr!important}}

/* ---------- Contact ---------- */
html body .contact-info .flex.items-center>div:first-child{width:48px!important;height:48px!important;border-radius:50%!important;background:var(--leaf-tint)!important;color:var(--leaf)!important;flex:none}
html body .contact-info a,html body #contact_phone_display,html body #contact_whatsapp_display,html body #contact_email_display{color:var(--text)!important;font-weight:600}
html body .contact-info a:hover{color:var(--leaf)!important}
html body .contact-info p{color:var(--text-muted)!important}
html body .ksh-social{display:flex;gap:10px;flex-wrap:wrap}
html body .ksh-social a{width:40px!important;height:40px!important;border-radius:50%!important;display:inline-flex!important;align-items:center;justify-content:center;background:var(--leaf-tint)!important;color:var(--leaf)!important;border:0!important;padding:0!important;font-size:17px;transition:background-color .2s,color .2s}
html body .ksh-social a:hover{background:var(--leaf)!important;color:#fff!important}

/* ---------- Forms ---------- */
html body input:not([type=checkbox]):not([type=radio]):not([type=file]),html body textarea,html body select{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:var(--r-ctl)!important;padding:12px 14px!important;color:var(--text);font-family:inherit;font-size:16px;transition:border-color .2s,box-shadow .2s}
html body input:focus,html body textarea:focus,html body select:focus{border-color:var(--leaf)!important;box-shadow:0 0 0 3px var(--leaf-tint)!important;outline:none!important}

/* ---------- Safety warning box (product pages) ---------- */
html body .ksh-warning{display:flex;gap:12px;align-items:flex-start;border:1.5px solid var(--danger);background:var(--danger-bg);color:var(--text);border-radius:var(--r-card);padding:16px;margin:16px 0}
html body .ksh-warning svg{flex:none;width:24px;height:24px;stroke:var(--danger)}
html body .ksh-warning b{color:var(--danger);display:block;margin-bottom:4px}

/* ---------- Footer ---------- */
html body footer{background:var(--footer-bg)!important;color:var(--footer-text)!important;padding:64px 0 32px!important}
.ksh-footer{display:grid;grid-template-columns:1.4fr 1fr 1.2fr 1fr;gap:40px}
.ksh-footer h4{font-size:18px;font-weight:800;margin-bottom:14px;color:var(--wheat)!important}
.ksh-footer p,.ksh-footer li{color:var(--footer-text)!important;font-size:15px}
.ksh-footer a{color:var(--footer-link)!important}
.ksh-footer a:hover{color:var(--footer-text)!important}
.ksh-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.ksh-footer .ksh-brand img{display:block;height:64px!important;width:auto!important;min-width:48px;background:var(--surface);border-radius:var(--r-card);padding:6px;margin-bottom:12px}
.ksh-footer .ksh-contact li{display:flex;gap:10px;align-items:flex-start}
.ksh-footer .ksh-contact i{color:var(--wheat);margin-top:6px;width:16px;text-align:center}
.ksh-footer .ksh-pay i{color:var(--wheat)!important;margin-inline-end:8px}
html body footer .ksh-social a{background:var(--leaf)!important;color:var(--footer-text)!important}
html body footer .ksh-social a:hover{background:var(--leaf-dark)!important}
.ksh-copy{border-top:1px solid var(--leaf-dark);margin-top:40px;padding-top:20px;text-align:center;font-size:14px;color:var(--footer-link)}
@media (max-width:1023px){.ksh-footer{grid-template-columns:1fr 1fr}}
@media (max-width:559px){.ksh-footer{grid-template-columns:1fr;gap:28px}}

/* ---------- Floating contact buttons (bottom-right) ---------- */
html body a.floating-wa{width:52px!important;height:52px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;border-radius:50%!important;box-shadow:var(--shadow-hover)!important;left:auto!important;right:20px!important;background:var(--leaf)!important;color:#fff!important}
html body a.floating-wa[href*="wa.me"]{background:var(--whatsapp)!important}
html body a.floating-wa.bottom-0{bottom:20px!important}
html body a.floating-wa.bottom-16{bottom:84px!important}
html body a.floating-wa span{display:none!important}
html body a.floating-wa i{font-size:22px!important}
@media (max-width:767px){
  html body{padding-bottom:72px}
  html body a.floating-wa{width:48px!important;height:48px!important;right:14px!important}
  html body a.floating-wa.bottom-0{bottom:14px!important}
  html body a.floating-wa.bottom-16{bottom:72px!important}
}

/* ---------- Misc ---------- */
html body #loader{background:var(--bg)!important}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- v4.1 fixes ---------- */
html body .lang-toggle{width:auto!important;height:auto!important;position:relative}
html body .lang-toggle .lang-slider{display:none!important}
html body .lang-toggle .lang-option.active{display:none!important}
html body .lang-toggle .lang-option:not(.active){display:block!important;position:static!important;cursor:pointer}
@media (max-width:767px){html body #heroSlider .owl-nav{display:none!important}}

/* ---------- Hero: products showcase slide (image has its own solid dark text area) ---------- */
html body .hero-slide[style*="hero-showcase"],html body .hero-slide[style*="6v32B50RxrSV4uugnAskPf7tUNNx63VPxhKJuKKO"]{background-color:var(--footer-bg)!important;background-position:0 85%!important}
html body .hero-slide[style*="hero-showcase"]::before,html body .hero-slide[style*="6v32B50RxrSV4uugnAskPf7tUNNx63VPxhKJuKKO"]::before{background:transparent!important}
@media (max-width:1023px){
  html body .hero-slide[style*="hero-showcase"],html body .hero-slide[style*="6v32B50RxrSV4uugnAskPf7tUNNx63VPxhKJuKKO"]{background-position:22% 85%!important}
  html body .hero-slide[style*="hero-showcase"]::before,html body .hero-slide[style*="6v32B50RxrSV4uugnAskPf7tUNNx63VPxhKJuKKO"]::before{background:rgba(35,38,30,.55)!important}
}
/* ---------- Floating buttons: palette ---------- */
html body a.floating-wa{background:var(--leaf)!important;color:#fff!important;border:2px solid var(--surface)!important;box-shadow:var(--shadow-hover)!important;transition:background-color .2s,transform .2s}
html body a.floating-wa:hover{background:var(--leaf-dark)!important;transform:translateY(-2px)}
html body a.floating-wa[href^="tel:"]{background:var(--wheat)!important;color:var(--text)!important}
html body a.floating-wa[href^="tel:"]:hover{background:var(--soil)!important;color:#fff!important}
html body a.floating-wa[href*="wa.me"]{background:var(--leaf)!important;color:#fff!important}
/* end floating */
