/*
Theme Name: YosPro
Theme URI: https://yospro.com
Author: YosPro Team
Author URI: https://yospro.com
Description: Professional B2B Supplier Directory SaaS Theme for YosPro.com — Built for Elementor Free
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yospro
Tags: business, b2b, directory, supplier, elementor, saas
*/

/* ══ RESET ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ══ VARIABLES ══ */
:root {
  --g:   #0D5C47;
  --gd:  #0A4A38;
  --gm:  #1BAF82;
  --gl:  #7ECBB5;
  --gp:  #E1F5EE;
  --gray: #F5F5F3;
  --bdr: #E2E2DF;
  --txt: #6B6B68;
  --r8:  8px;
  --r14: 14px;
  --r22: 22px;
}

/* ══ TYPOGRAPHY ══ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 800;
  color: var(--gd);
  line-height: 1.1;
}
p { line-height: 1.7; color: var(--txt); }

/* ══ WORDPRESS CORE ══ */
.wp-site-blocks { padding: 0 !important; }
.entry-title, .page-title, .post-title,
.wp-block-post-title, .entry-header,
header.entry-header, .page-header {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-main { margin: 0; padding: 0; }
.entry-content { margin: 0; padding: 0; }

/* ══ ELEMENTOR OVERRIDES ══ */
.elementor-section { width: 100% !important; }
.elementor-container { max-width: 100% !important; }

/* ══ NAVBAR ══ */
.ysp-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.ysp-logo { display: flex; align-items: center; gap: 13px; }
.ysp-logo-box {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--g);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .2s;
}
.ysp-logo-box:hover { transform: scale(1.06); }
.ysp-logo-box svg { width: 30px; height: 30px; }
.ysp-logo-text { display: flex; flex-direction: column; gap: 3px; }
.ysp-logo-name {
  font-size: 21px; font-weight: 800;
  color: var(--gd); letter-spacing: -0.4px; line-height: 1;
}
.ysp-logo-name span { color: var(--gm); }
.ysp-logo-tag {
  font-size: 9.5px; font-weight: 700;
  color: var(--gl); letter-spacing: 0.16em; text-transform: uppercase;
}
.ysp-nav-links { display: flex; gap: 32px; }
.ysp-nav-links a {
  font-size: 14px; color: var(--txt); font-weight: 500;
  transition: color .2s; position: relative;
}
.ysp-nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--g); transition: width .22s;
}
.ysp-nav-links a:hover { color: var(--g); }
.ysp-nav-links a:hover::after { width: 100%; }
.ysp-nav-ctas { display: flex; gap: 10px; align-items: center; }

/* ══ BUTTONS ══ */
.ysp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px; border-radius: var(--r8);
  font-size: 14px; font-weight: 700; cursor: pointer; border: none;
  transition: all .22s; font-family: 'Inter', Arial, sans-serif;
  white-space: nowrap;
}
.ysp-btn-primary { background: var(--g); color: #fff; }
.ysp-btn-primary:hover { background: var(--gd); transform: translateY(-1px); }
.ysp-btn-outline {
  background: transparent;
  border: 1.5px solid var(--bdr); color: var(--gd);
}
.ysp-btn-outline:hover { border-color: var(--g); color: var(--g); }
.ysp-btn-lg { padding: 15px 36px; font-size: 15px; border-radius: var(--r14); }
.ysp-btn-white { background: #fff; color: var(--g); }
.ysp-btn-white:hover { background: var(--gp); }
.ysp-btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,.4); color: #fff;
}
.ysp-btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ══ HERO SECTION ══ */
.ysp-hero {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
}
.ysp-hero-left {
  padding: 72px 5vw;
  display: flex; flex-direction: column; justify-content: center;
  background: #fff;
}
.ysp-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gp); color: var(--gd);
  font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 99px;
  margin-bottom: 28px; border: 1px solid var(--gl);
  width: fit-content;
}
.ysp-hero-left h1 {
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 800; line-height: 1.07;
  color: var(--gd); margin-bottom: 20px; letter-spacing: -1.5px;
}
.ysp-hero-left h1 .accent { color: var(--gm); }
.ysp-hero-left p {
  font-size: clamp(14px, 1.3vw, 17px);
  color: var(--txt); line-height: 1.7;
  margin-bottom: 36px; max-width: 500px;
}
.ysp-hero-ctas { display: flex; gap: 12px; margin-bottom: 52px; flex-wrap: wrap; }
.ysp-hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.ysp-hs-num {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800; color: var(--g);
}
.ysp-hs-lbl { font-size: 12px; color: var(--txt); font-weight: 500; margin-top: 2px; }

/* ══ HERO RIGHT ══ */
.ysp-hero-right {
  background: var(--g);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 5vw; gap: 22px;
}
.ysp-search-card {
  background: #fff; border-radius: var(--r22);
  padding: 30px 34px; width: 100%; max-width: 440px;
  box-shadow: 0 12px 48px rgba(0,0,0,.22);
}
.ysp-search-card h3 {
  font-size: 17px; font-weight: 700;
  color: var(--gd); margin-bottom: 18px;
}
.ysp-search-card input,
.ysp-search-card select {
  width: 100%; padding: 13px 16px; font-size: 14px;
  border: 1.5px solid var(--bdr); border-radius: var(--r8);
  outline: none; font-family: 'Inter', Arial, sans-serif;
  color: #1a1a1a; margin-bottom: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.ysp-search-card input:focus,
.ysp-search-card select:focus {
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(13,92,71,.1);
}
.ysp-search-card button {
  width: 100%; padding: 14px; background: var(--g); color: #fff;
  border: none; border-radius: var(--r8);
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Inter', Arial, sans-serif;
  transition: background .2s, transform .2s;
}
.ysp-search-card button:hover { background: var(--gd); transform: translateY(-1px); }
.ysp-mini-stats { display: flex; gap: 12px; width: 100%; max-width: 440px; }
.ysp-ms {
  flex: 1; background: rgba(255,255,255,.13);
  border-radius: var(--r14); padding: 16px 12px; text-align: center;
  transition: background .2s;
}
.ysp-ms:hover { background: rgba(255,255,255,.2); }
.ysp-ms-num { font-size: 22px; font-weight: 800; color: #fff; }
.ysp-ms-lbl { font-size: 11px; color: rgba(255,255,255,.7); font-weight: 500; margin-top: 3px; }

/* ══ SECTIONS ══ */
.ysp-section { padding: 88px 5vw; width: 100%; }
.ysp-section-alt { background: var(--gray); }
.ysp-sec-label {
  font-size: 11px; font-weight: 700; color: var(--g);
  letter-spacing: .14em; text-transform: uppercase;
  text-align: center; margin-bottom: 10px;
}
.ysp-sec-title {
  font-size: clamp(24px, 3vw, 38px); font-weight: 800;
  color: var(--gd); text-align: center;
  margin-bottom: 10px; letter-spacing: -.8px;
}
.ysp-sec-sub {
  font-size: 16px; color: var(--txt); text-align: center;
  margin-bottom: 52px; max-width: 520px;
  margin-left: auto; margin-right: auto; line-height: 1.6;
}

/* ══ CATEGORIES ══ */
.ysp-cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.ysp-cat-card {
  background: #fff; border: 1.5px solid var(--bdr);
  border-radius: var(--r14); padding: 26px 14px;
  text-align: center; cursor: pointer; transition: all .25s;
}
.ysp-cat-card:hover {
  border-color: var(--g);
  box-shadow: 0 8px 28px rgba(13,92,71,.13);
  transform: translateY(-4px);
}
.ysp-cat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gp); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; transition: transform .2s;
}
.ysp-cat-card:hover .ysp-cat-icon { transform: scale(1.1); }
.ysp-cat-name { font-size: 13px; font-weight: 700; color: var(--gd); margin-bottom: 4px; }
.ysp-cat-count { font-size: 11px; color: var(--txt); font-weight: 500; }

/* ══ SUPPLIERS ══ */
.ysp-sup-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.ysp-sup-card {
  background: #fff; border: 1.5px solid var(--bdr);
  border-radius: var(--r14); padding: 24px; transition: all .25s;
}
.ysp-sup-card:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,.1);
  transform: translateY(-4px); border-color: var(--gl);
}
.ysp-sup-top { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.ysp-sup-av {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--g);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.ysp-sup-name { font-size: 14px; font-weight: 700; color: var(--gd); }
.ysp-sup-country { font-size: 12px; color: var(--txt); margin-top: 2px; }
.ysp-sup-tag {
  display: inline-block; background: var(--gp); color: var(--gd);
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 99px; margin-bottom: 11px;
}
.ysp-sup-desc { font-size: 12px; color: var(--txt); line-height: 1.6; margin-bottom: 16px; }
.ysp-sup-foot { display: flex; align-items: center; justify-content: space-between; }
.ysp-verified { font-size: 12px; font-weight: 700; color: var(--g); }
.ysp-verified::before { content: '✓ '; }
.ysp-view-btn {
  font-size: 12px; font-weight: 700; color: var(--g);
  border: 1.5px solid var(--g); border-radius: 7px;
  padding: 5px 13px; cursor: pointer;
  transition: all .2s; background: transparent;
  font-family: 'Inter', Arial, sans-serif;
}
.ysp-view-btn:hover { background: var(--g); color: #fff; }

/* ══ PRICING ══ */
.ysp-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.ysp-plan {
  background: #fff; border: 1.5px solid var(--bdr);
  border-radius: 20px; padding: 32px 28px;
  position: relative; transition: all .25s;
}
.ysp-plan:hover { box-shadow: 0 10px 40px rgba(0,0,0,.1); transform: translateY(-4px); }
.ysp-plan.popular { border: 2px solid var(--g); box-shadow: 0 8px 32px rgba(13,92,71,.15); }
.ysp-popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--g); color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 16px;
  border-radius: 99px; white-space: nowrap;
}
.ysp-plan-name {
  font-size: 13px; font-weight: 700; color: var(--txt);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.ysp-plan-price {
  font-size: 42px; font-weight: 800; color: var(--gd);
  letter-spacing: -1px; line-height: 1;
}
.ysp-plan-price span { font-size: 16px; font-weight: 500; color: var(--txt); }
.ysp-plan-desc { font-size: 13px; color: var(--txt); margin: 12px 0 24px; line-height: 1.5; }
.ysp-plan-features { list-style: none; margin-bottom: 28px; }
.ysp-plan-features li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: #1a1a1a;
  padding: 7px 0; border-bottom: 0.5px solid var(--bdr);
}
.ysp-plan-features li:last-child { border-bottom: none; }
.ysp-plan-features li::before { content: '✓'; font-weight: 700; color: var(--g); flex-shrink: 0; }
.ysp-plan-features li.no { color: var(--txt); }
.ysp-plan-features li.no::before { content: '–'; color: var(--bdr); }

/* ══ HOW IT WORKS ══ */
.ysp-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; position: relative;
}
.ysp-steps::before {
  content: ''; position: absolute; top: 28px;
  left: 12%; width: 76%; height: 2px;
  background: var(--gp); z-index: 0;
}
.ysp-step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.ysp-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--g); color: #fff;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  border: 4px solid #fff; box-shadow: 0 0 0 2px var(--g);
  transition: transform .2s;
}
.ysp-step:hover .ysp-step-num { transform: scale(1.1); }
.ysp-step h4 { font-size: 15px; font-weight: 700; color: var(--gd); margin-bottom: 8px; }
.ysp-step p { font-size: 13px; color: var(--txt); line-height: 1.6; }

/* ══ FEATURES ══ */
.ysp-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ysp-feat {
  background: #fff; border: 1.5px solid var(--bdr);
  border-radius: var(--r14); padding: 30px; transition: all .25s;
}
.ysp-feat:hover {
  border-color: var(--gl);
  box-shadow: 0 6px 24px rgba(13,92,71,.09);
  transform: translateY(-3px);
}
.ysp-feat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gp); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; transition: transform .2s;
}
.ysp-feat:hover .ysp-feat-icon { transform: scale(1.1); }
.ysp-feat h3 { font-size: 16px; font-weight: 700; color: var(--gd); margin-bottom: 8px; }
.ysp-feat p { font-size: 13px; color: var(--txt); line-height: 1.7; }

/* ══ TESTIMONIALS ══ */
.ysp-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ysp-testi {
  background: #fff; border: 1.5px solid var(--bdr);
  border-radius: var(--r14); padding: 28px; transition: all .25s;
}
.ysp-testi:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.ysp-stars { color: #EF9F27; font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.ysp-testi-q { font-size: 14px; color: #1a1a1a; line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.ysp-testi-auth { display: flex; align-items: center; gap: 12px; }
.ysp-testi-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gp);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--gd);
}
.ysp-testi-name { font-size: 13px; font-weight: 700; color: var(--gd); }
.ysp-testi-role { font-size: 11px; color: var(--txt); }

/* ══ CTA BANNER ══ */
.ysp-cta {
  width: 100%; background: var(--g);
  padding: 88px 5vw;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.ysp-cta-l h2 {
  font-size: clamp(26px, 3vw, 44px); font-weight: 800;
  color: #fff; margin-bottom: 14px;
  letter-spacing: -.8px; line-height: 1.1;
}
.ysp-cta-l p { font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.6; }
.ysp-cta-r { display: flex; flex-direction: column; gap: 14px; }
.ysp-cta-r .ysp-btn { font-size: 16px; padding: 16px 32px; border-radius: var(--r14); width: 100%; }

/* ══ FOOTER ══ */
.ysp-footer { background: var(--gd); padding: 64px 5vw 28px; width: 100%; }
.ysp-footer-top {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 52px;
}
.ysp-footer-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; margin-top: 14px; }
.ysp-footer-col h5 {
  font-size: 11px; font-weight: 700; color: var(--gl);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px;
}
.ysp-footer-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,.55);
  margin-bottom: 10px; transition: color .2s;
}
.ysp-footer-col a:hover { color: #fff; }
.ysp-footer-bot {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.ysp-footer-bot p { font-size: 12px; color: rgba(255,255,255,.3); }

/* ══ SCROLL REVEAL ══ */
.ysp-reveal { opacity: 0; transform: translateY(30px); transition: opacity .65s ease, transform .65s ease; }
.ysp-reveal.visible { opacity: 1; transform: translateY(0); }

/* ══ ANIMATIONS ══ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
.ysp-anim-fade { animation: fadeIn .6s ease both; }
.ysp-anim-up { animation: fadeUp .65s .05s ease both; }
.ysp-anim-up-2 { animation: fadeUp .65s .18s ease both; }
.ysp-anim-up-3 { animation: fadeUp .65s .31s ease both; }
.ysp-anim-up-4 { animation: fadeUp .65s .44s ease both; }
.ysp-anim-left { animation: slideLeft .7s .25s ease both; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  .ysp-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .ysp-sup-grid { grid-template-columns: repeat(3, 1fr); }
  .ysp-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .ysp-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ysp-hero { grid-template-columns: 1fr; min-height: auto; }
  .ysp-hero-right { display: none; }
  .ysp-nav-links { display: none; }
  .ysp-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .ysp-sup-grid { grid-template-columns: repeat(2, 1fr); }
  .ysp-steps { grid-template-columns: repeat(2, 1fr); }
  .ysp-steps::before { display: none; }
  .ysp-cta { grid-template-columns: 1fr; text-align: center; }
  .ysp-testi-grid { grid-template-columns: 1fr; }
  .ysp-pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ysp-hero-left h1 { font-size: 28px; letter-spacing: -.5px; }
  .ysp-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ysp-sup-grid { grid-template-columns: 1fr; }
  .ysp-feat-grid { grid-template-columns: 1fr; }
  .ysp-steps { grid-template-columns: 1fr; }
  .ysp-footer-top { grid-template-columns: 1fr; }
  .ysp-section { padding: 52px 20px; }
  .ysp-logo-name { font-size: 17px; }
}
