/*
Theme Name: Apex Venture Group
Theme URI: https://example.com/apex
Author: Amir
Author URI: https://example.com
Description: A clean single-page WordPress theme for Apex Venture Group - everyday essentials store with request-price popup forms.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apex
*/

:root{
  --navy:#0b2447;
  --navy-dark:#0a1f3d;
  --green:#4f6f5a;
  --cream:#efe9df;
  --cream-light:#f6f3ee;
  --sage:#8a9b8a;
  --text:#1f2933;
  --muted:#6b7280;
  --border:#e4ded4;
  --white:#ffffff;
}
/* ---------- Footer contact block ---------- */
.footer-contact{list-style:none;display:flex;flex-direction:column;gap:12px;margin-top:18px;padding:0}
.footer-contact li{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:rgba(255,255,255,.75);line-height:1.5;margin:0}
.footer-contact svg{width:16px;height:16px;stroke:var(--sage);flex-shrink:0;margin-top:3px}
.footer-contact a{color:rgba(255,255,255,.75)}
.footer-contact a:hover{color:#fff}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--text);
  line-height:1.6;
  background:var(--white);
  font-size:15px;
}
/* ---------- Logo image ---------- */
.logo img{height:48px;width:auto;display:block}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
.container{max-width:1450px;margin:0 auto;padding:0 24px}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:999;
  background:var(--cream-light);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 24px;max-width:1450px;margin:0 auto;
}
.logo{font-weight:800;letter-spacing:2px;font-size:26px;color:var(--navy);line-height:1}
.logo span{display:block;font-size:9px;letter-spacing:4px;font-weight:500;color:var(--muted);margin-top:2px}
.main-nav ul{display:flex;gap:30px;list-style:none;align-items:center}
.main-nav a{font-size:14px;font-weight:500;color:var(--text);transition:.2s}
.main-nav a:hover{color:var(--green)}
.header-icons{display:flex;gap:20px;align-items:center}
.header-icons svg{width:20px;height:20px;stroke:var(--text);cursor:pointer}
.nav-toggle{display:none;background:none;border:none;cursor:pointer}
.nav-toggle svg{width:26px;height:26px;stroke:var(--navy)}

/* ---------- Hero ---------- */
.hero{background:var(--cream);padding:0}
.hero-inner{
  max-width:1450px;margin:0 auto;
  display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px;
  padding:60px 24px;
}
.hero-text h1{font-size:52px;line-height:1.05;font-weight:700;color:var(--navy)}
.hero-text h1 .accent{color:var(--sage)}
.hero-text p{margin:22px 0 28px;color:var(--muted);max-width:420px;font-size:16px}
.btn{
  display:inline-block;background:var(--navy);color:#fff;
  padding:14px 30px;border-radius:4px;font-weight:500;font-size:14px;
  border:none;cursor:pointer;transition:.2s;
}
.btn:hover{background:var(--navy-dark)}
.btn-outline{background:#fff;color:var(--navy);border:1px solid var(--navy)}
.btn-outline:hover{background:var(--navy);color:#fff}
.hero-img img{border-radius:4px;width:100%;object-fit:cover;max-height:360px}
.hero-features{display:flex;gap:34px;margin-top:40px;flex-wrap:wrap}
.feature{display:flex;gap:10px;align-items:flex-start}
.feature svg{width:26px;height:26px;stroke:var(--navy);flex-shrink:0;margin-top:2px}
.feature strong{display:block;font-size:14px;font-weight:600}
.feature span{font-size:12px;color:var(--muted)}

/* ---------- Bestsellers ---------- */
.section{padding:70px 0}
.section-head h2{font-size:30px;font-weight:700;color:var(--navy)}
.section-head p{color:var(--muted);margin-top:6px}
.products{
  display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:36px;
}
.product-card{
  border:1px solid var(--border);border-radius:6px;overflow:hidden;
  background:#fff;transition:.25s;
}
.product-card:hover{box-shadow:0 10px 30px rgba(0,0,0,.08);transform:translateY(-4px)}
.product-img{background:#f4f2ee;padding:26px;aspect-ratio:1;display:flex;align-items:center;justify-content:center}
.product-img img{max-height:100%;width:auto;object-fit:contain}
.product-body{padding:18px}
.product-body h3{font-size:15px;font-weight:600;line-height:1.35;min-height:42px}
.product-price{font-size:16px;font-weight:700;color:var(--navy);margin:8px 0 12px}
.request-price-btn{
  width:100%;background:var(--green);color:#fff;border:none;
  padding:11px;border-radius:4px;font-size:13px;font-weight:500;cursor:pointer;transition:.2s;
}
.request-price-btn:hover{background:#415c4b}

/* ---------- Why Choose ---------- */
.why-choose{background:var(--navy);color:#fff;text-align:center;padding:64px 0}
.why-choose h2{font-size:30px;font-weight:700;margin-bottom:8px}
.why-divider{width:50px;height:2px;background:rgba(255,255,255,.35);margin:14px auto 44px}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px}
.why-item .icon-circle{
  width:56px;height:56px;border-radius:50%;border:1px solid rgba(255,255,255,.25);
  display:flex;align-items:center;justify-content:center;margin:0 auto 16px;
}
.why-item svg{width:24px;height:24px;stroke:#fff}
.why-item h4{font-size:15px;font-weight:600;margin-bottom:6px}
.why-item p{font-size:13px;color:rgba(255,255,255,.7)}

/* ---------- Popular Categories ---------- */
.categories-section{padding:64px 0;background:var(--cream-light)}
.cat-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}
.cat-head h2{font-size:28px;font-weight:700;color:var(--navy)}
.cat-head a{font-size:13px;color:var(--muted)}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.cat-card{text-align:center}
.cat-card .cat-img{border-radius:6px;overflow:hidden;aspect-ratio:1.15;background:#f4f2ee}
.cat-card .cat-img img{width:100%;height:100%;object-fit:cover}
.cat-card p{margin-top:12px;font-size:14px;font-weight:500}

/* ---------- Split Row (Quality + About, container width, real images) ---------- */
.split-row{
  display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:48px;
}
.split-img img{
  width:100%;height:auto;border-radius:8px;display:block;
}
.split-text h2{font-size:32px;font-weight:700;line-height:1.2;color:var(--navy);margin-bottom:16px}
.split-text p{font-size:15px;color:var(--muted);line-height:1.6;max-width:460px}

/* Quality section uses green heading treatment on light background */
.quality-section .quality-text h2{color:var(--navy)}
.about-section-v2 .about-divider{width:40px;height:2px;background:var(--border);margin:0 0 22px}

/* ---------- Trust Row ---------- */
.trust-row{background:var(--cream-light);padding:54px 0}
.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;text-align:center;max-width:900px;margin:0 auto}
.trust-item .icon-circle{
  width:52px;height:52px;border-radius:50%;background:#e8e2d7;
  display:flex;align-items:center;justify-content:center;margin:0 auto 14px;
}
.trust-item svg{width:22px;height:22px;stroke:var(--navy)}
.trust-item h4{font-size:15px;font-weight:600;margin-bottom:6px}
.trust-item p{font-size:13px;color:var(--muted)}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy);color:#fff;padding:56px 0 0}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.6fr;gap:40px;padding-bottom:40px}
.footer-logo{font-weight:800;letter-spacing:2px;font-size:26px}
.footer-logo span{display:block;font-size:9px;letter-spacing:4px;font-weight:400;color:rgba(255,255,255,.6);margin-top:2px}
.footer-col h5{font-size:14px;font-weight:600;margin-bottom:16px;letter-spacing:.5px}
.footer-col ul{list-style:none}
.footer-col ul li{margin-bottom:10px}
.footer-col ul li a{font-size:13px;color:rgba(255,255,255,.7);transition:.2s}
.footer-col ul li a:hover{color:#fff}
.footer-col p{font-size:13px;color:rgba(255,255,255,.7);margin-bottom:14px}
.newsletter{display:flex;border:1px solid rgba(255,255,255,.2);border-radius:4px;overflow:hidden;max-width:300px}
.newsletter input{flex:1;background:transparent;border:none;padding:11px 14px;color:#fff;font-size:13px;outline:none}
.newsletter input::placeholder{color:rgba(255,255,255,.5)}
.newsletter button{background:var(--green);border:none;padding:0 16px;cursor:pointer;display:flex;align-items:center}
.newsletter button svg{width:16px;height:16px;stroke:#fff}
.social{display:flex;gap:14px;margin-top:20px}
.social a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;transition:.2s}
.social a:hover{background:var(--green)}
.social svg{width:16px;height:16px;stroke:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:20px 0;text-align:center}
.footer-bottom p{font-size:12px;color:rgba(255,255,255,.55)}

/* ---------- Request Price Modal ---------- */
.apex-modal-overlay{
  position:fixed;inset:0;background:rgba(11,36,71,.6);
  display:none;align-items:center;justify-content:center;z-index:9999;padding:20px;
}
.apex-modal-overlay.active{display:flex}
.apex-modal{
  background:#fff;border-radius:8px;max-width:440px;width:100%;
  padding:32px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.3);
  animation:modalIn .25s ease;
}
@keyframes modalIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.apex-modal h3{font-size:22px;font-weight:700;color:var(--navy);margin-bottom:4px}
.apex-modal .modal-sub{font-size:13px;color:var(--muted);margin-bottom:20px}
.apex-modal .product-name-tag{
  display:inline-block;background:var(--cream);color:var(--navy);
  padding:6px 14px;border-radius:4px;font-size:13px;font-weight:600;margin-bottom:18px;
}
.apex-modal-close{
  position:absolute;top:16px;right:16px;background:none;border:none;
  font-size:26px;line-height:1;cursor:pointer;color:var(--muted);
}
.form-group{margin-bottom:14px}
.form-group label{display:block;font-size:13px;font-weight:500;margin-bottom:5px}
.form-group input,.form-group textarea{
  width:100%;border:1px solid var(--border);border-radius:4px;
  padding:11px 13px;font-size:14px;font-family:inherit;outline:none;transition:.2s;
}
.form-group input:focus,.form-group textarea:focus{border-color:var(--green)}
.form-group textarea{resize:vertical;min-height:80px}
.apex-modal .btn{width:100%;margin-top:6px}
.apex-form-msg{margin-top:12px;font-size:14px;text-align:center;display:none}
.apex-form-msg.success{color:var(--green);display:block}
.apex-form-msg.error{color:#c0392b;display:block}

/* ---------- Responsive ---------- */
@media(max-width:992px){
  .products,.why-grid,.cat-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .main-nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--cream-light);border-bottom:1px solid var(--border);padding:16px 24px}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;gap:16px;align-items:flex-start}
  .nav-toggle{display:block}
  .hero-inner{grid-template-columns:1fr}
  .hero-text h1{font-size:38px}
  .hero-img{order:-1}
  .trust-grid{grid-template-columns:1fr;gap:26px}
  /* Split rows stack; keep image first on quality, text first on about */
  .split-row{grid-template-columns:1fr;gap:24px}
  .about-section-v2 .split-row .split-img{order:-1}
}
@media(max-width:520px){
  .products,.why-grid,.cat-grid,.footer-grid{grid-template-columns:1fr}
  .cat-grid{grid-template-columns:repeat(2,1fr)}
}

/* ---------- OTP flow additions ---------- */
.product-price-revealed{font-size:18px;font-weight:700;color:var(--navy);margin:4px 0 12px}
.get-quote-btn{
  width:100%;background:var(--green);color:#fff;border:none;
  padding:11px;border-radius:4px;font-size:13px;font-weight:500;cursor:pointer;transition:.2s;
}
.get-quote-btn:hover{background:#415c4b}
.apex-resend{font-size:12px;color:var(--muted);text-align:center;margin-top:12px}
.apex-resend a{color:var(--green);font-weight:500}
.apex-check{
  width:56px;height:56px;border-radius:50%;background:var(--green);color:#fff;
  font-size:30px;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;
}
.apex-big-price{
  font-size:40px;font-weight:800;color:var(--navy);text-align:center;
  margin:8px 0 22px;letter-spacing:1px;
}
#apexStepPrice{text-align:center}
#apexCode{letter-spacing:8px;font-size:22px;text-align:center;font-weight:700}

/* ---------- Header Request Quote / Contact button ---------- */
.header-quote-btn{
  background:var(--green);color:#fff;border:none;
  padding:10px 22px;border-radius:4px;font-size:14px;font-weight:600;
  cursor:pointer;transition:.2s;font-family:inherit;
}
.header-quote-btn:hover{background:#415c4b}

/* ---------- Wide content modal (policies/about) ---------- */
.apex-modal-wide{max-width:560px}
.apex-content-body{max-height:60vh;overflow-y:auto;margin-top:6px}
.apex-content-body h4{font-size:17px;font-weight:700;color:var(--navy);margin-bottom:12px}
.apex-content-body p{font-size:14px;color:var(--muted);margin-bottom:12px;line-height:1.6}
.apex-content-body p:last-child{margin-bottom:0}

/* ---------- Newsletter thank-you ---------- */
.newsletter-thanks{color:#fff;font-size:14px;font-weight:600;margin-top:4px}