/* ============================================================
   DX Grandway — Professional B2B Website Styles
   ============================================================ */
:root{
  --navy:#0c1b2a;
  --navy-2:#13293d;
  --blue:#1565c0;
  --blue-light:#1e88e5;
  --orange:#f57c00;
  --orange-light:#ff9800;
  --text:#1f2933;
  --muted:#64748b;
  --line:#e2e8f0;
  --bg:#ffffff;
  --bg-soft:#f5f8fc;
  --white:#ffffff;
  --shadow:0 10px 30px rgba(12,27,42,.08);
  --shadow-lg:0 20px 60px rgba(12,27,42,.14);
  --radius:14px;
  --maxw:1200px;
}
*{margin:0;padding:0;box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;color:var(--text);background:var(--bg);line-height:1.65;font-size:16px;-webkit-font-smoothing:antialiased}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,h4{font-family:'Manrope','Inter',sans-serif;line-height:1.2;color:var(--navy)}
.accent{color:var(--orange)}
.section{padding:100px 0}
.eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--blue);margin-bottom:16px}
.eyebrow-dot{width:8px;height:8px;border-radius:50%;background:var(--orange);display:inline-block}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:44px}
.section-head h2{font-size:clamp(28px,3.2vw,42px);font-weight:800}
.section-head-desc{max-width:440px;color:var(--muted);font-size:15px}
.section-head.center{flex-direction:column;align-items:center;text-align:center;gap:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 28px;border-radius:10px;font-weight:700;font-size:15px;border:2px solid transparent;cursor:pointer;transition:.25s;white-space:nowrap}
.btn-primary{background:var(--orange);color:#fff;box-shadow:0 6px 18px rgba(245,124,0,.25)}
.btn-primary:hover{background:#e65100;transform:translateY(-2px);box-shadow:0 10px 24px rgba(245,124,0,.35)}
.btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.btn-outline:hover{background:rgba(255,255,255,.12);border-color:#fff}
.btn-sm{padding:10px 20px;font-size:14px}
.btn-block{width:100%}

/* ---------- Header ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);transition:.3s}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:76px}
.brand{display:flex;align-items:center}
.brand-logo{height:46px;width:auto;display:block}
.brand-mark{width:42px;height:42px;border-radius:10px;background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;display:flex;align-items:center;justify-content:center;font-family:'Manrope';font-weight:800;font-size:16px;letter-spacing:-.5px}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-text strong{font-family:'Manrope';font-size:17px;color:var(--navy);letter-spacing:.3px}
.brand-text small{font-size:10px;color:var(--muted);letter-spacing:.5px}
.main-nav{display:flex;gap:32px;align-items:center}
.nav-link{font-size:14px;font-weight:600;color:var(--text);position:relative;transition:.2s}
.nav-link:hover,.nav-link.active{color:var(--orange)}
.nav-link.active::after{content:"";position:absolute;bottom:-8px;left:0;right:0;height:2px;background:var(--orange);border-radius:2px}
.header-actions{display:flex;align-items:center;gap:14px}
.menu-toggle{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:6px}
.menu-toggle span{width:24px;height:2px;background:var(--navy);border-radius:2px}

/* ---------- Hero ---------- */
.hero{position:relative;padding:150px 0 100px;background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 55%,#1b3a5c 100%);overflow:hidden;color:#fff}
.hero-bg{position:absolute;inset:0;background-image:radial-gradient(circle at 80% 20%,rgba(30,136,229,.18),transparent 45%),radial-gradient(circle at 15% 85%,rgba(245,124,0,.12),transparent 40%);pointer-events:none}
.hero-bg::after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:48px 48px}
.hero-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:center;position:relative;z-index:1}
.hero-content .eyebrow{color:#8ec5ff}
.hero h1{color:#fff;font-size:clamp(36px,4.4vw,58px);font-weight:800;letter-spacing:-1px;margin-bottom:22px}
.hero h1 .accent{color:var(--orange-light)}
.hero-lead{font-size:17px;color:#cbd5e1;max-width:560px;margin-bottom:32px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:44px}
.hero-stats{display:flex;gap:44px;padding-top:28px;border-top:1px solid rgba(255,255,255,.12)}
.stat{display:flex;flex-direction:column}
.stat strong{font-family:'Manrope';font-size:24px;color:#fff}
.stat span{font-size:12px;color:#94a3b8;letter-spacing:.5px;text-transform:uppercase}
.hero-visual{position:relative}
.hero-image-wrap{border-radius:20px;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.1);aspect-ratio:4/3;background:#fff}
.hero-img{width:100%;height:100%;object-fit:cover}
.floating-card{position:absolute;background:#fff;color:var(--navy);border-radius:12px;padding:12px 16px;display:flex;align-items:center;gap:10px;box-shadow:var(--shadow-lg)}
.fc-1{top:24px;right:-18px}
.fc-2{bottom:28px;left:-22px}
.fc-icon{width:30px;height:30px;border-radius:50%;background:#e8f5e9;color:#2e7d32;display:flex;align-items:center;justify-content:center;font-weight:800}
.floating-card strong{display:block;font-size:13px}
.floating-card small{font-size:11px;color:var(--muted)}

/* ---------- Products ---------- */
.products-section{background:var(--bg)}
.category-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:28px}
.cat-tab{padding:11px 20px;border:1px solid var(--line);background:#fff;border-radius:30px;font-size:14px;font-weight:600;color:var(--text);cursor:pointer;transition:.2s}
.cat-tab:hover{border-color:var(--blue);color:var(--blue)}
.cat-tab.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.tab-count{font-size:11px;opacity:.7;margin-left:5px}
.product-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px;flex-wrap:wrap}
.search-box{display:flex;align-items:center;gap:10px;background:var(--bg-soft);border:1px solid var(--line);border-radius:10px;padding:0 14px;min-width:320px;flex:1;max-width:460px}
.search-box svg{color:var(--muted);flex-shrink:0}
.search-box input{border:0;background:none;padding:12px 0;width:100%;font-size:14px;outline:none;color:var(--text)}
.result-count{font-size:13px;color:var(--muted)}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.product-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:.28s;cursor:pointer;display:flex;flex-direction:column}
.product-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:transparent}
.product-img-wrap{position:relative;aspect-ratio:1;background:var(--bg-soft);overflow:hidden}
.product-img{width:100%;height:100%;object-fit:cover;transition:.4s}
.product-card:hover .product-img{transform:scale(1.06)}
.product-badge{position:absolute;top:10px;left:10px;background:var(--orange);color:#fff;font-size:10px;font-weight:700;padding:4px 9px;border-radius:5px;text-transform:uppercase;letter-spacing:.5px}
.product-body{padding:16px;display:flex;flex-direction:column;flex:1}
.product-cat{font-size:10px;font-weight:700;color:var(--blue);text-transform:uppercase;letter-spacing:.8px;margin-bottom:6px}
.product-title{font-size:14px;font-weight:700;color:var(--navy);line-height:1.4;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-price{font-size:13px;color:var(--muted);margin-top:auto}
.product-price strong{color:var(--orange);font-size:15px;font-family:'Manrope'}
.product-meta{font-size:11px;color:var(--muted);margin-top:4px}
.product-cta{margin-top:12px;font-size:12px;font-weight:700;color:var(--blue);display:flex;align-items:center;gap:5px}
.empty-state{text-align:center;padding:60px 20px;color:var(--muted);font-size:16px}

/* ---------- Why ---------- */
.why-section{background:var(--bg-soft)}
.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.feature-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px 24px;transition:.25s}
.feature-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.feature-icon{width:52px;height:52px;border-radius:12px;background:linear-gradient(135deg,#e3f2fd,#bbdefb);display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:18px}
.feature-card h3{font-size:17px;margin-bottom:10px}
.feature-card p{font-size:14px;color:var(--muted)}

/* ---------- About ---------- */
.about-inner{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.about-visual{position:relative}
.about-img{border-radius:18px;box-shadow:var(--shadow-lg);width:100%;aspect-ratio:4/3;object-fit:cover}
.about-badge{position:absolute;bottom:-20px;right:-20px;background:var(--navy);color:#fff;border-radius:12px;padding:16px 22px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column}
.about-badge strong{font-family:'Manrope';font-size:22px;color:var(--orange-light)}
.about-badge span{font-size:11px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px}
.about-content h2{font-size:clamp(28px,3vw,40px);margin-bottom:20px}
.about-content p{color:var(--muted);margin-bottom:16px;font-size:15px}
.about-quote{border-left:3px solid var(--orange);padding-left:16px;font-style:italic;color:var(--navy)!important;font-weight:600;margin:22px 0!important}

/* ---------- Blog ---------- */
.blog-section{background:var(--bg-soft)}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.blog-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:.25s}
.blog-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.blog-cover{aspect-ratio:16/9;background:var(--navy);overflow:hidden}
.blog-cover img{width:100%;height:100%;object-fit:cover}
.blog-body{padding:22px}
.blog-meta{display:flex;gap:12px;font-size:11px;color:var(--muted);margin-bottom:10px;text-transform:uppercase;letter-spacing:.5px}
.blog-tag{color:var(--blue);font-weight:700}
.blog-card h3{font-size:18px;margin-bottom:10px;line-height:1.35}
.blog-card p{font-size:14px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.blog-loading{grid-column:1/-1;text-align:center;padding:50px;color:var(--muted)}

/* ---------- Messages ---------- */
.messages-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.message-form,.inquiry-form{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.messages-list{max-height:420px;overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding-right:8px}
.msg-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}
.msg-item-head{display:flex;justify-content:space-between;margin-bottom:8px}
.msg-item-head strong{color:var(--navy);font-size:14px}
.msg-item-head time{font-size:11px;color:var(--muted)}
.msg-item p{font-size:14px;color:var(--text)}
.msg-reply{margin-top:10px;padding:10px 12px;background:#e3f2fd;border-radius:8px;font-size:13px;color:var(--navy)}
.msg-reply small{display:block;font-weight:700;color:var(--blue);margin-bottom:3px}

/* ---------- Forms ---------- */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.field{margin-bottom:16px}
.field label{display:block;font-size:13px;font-weight:600;color:var(--navy);margin-bottom:7px}
input,textarea,select{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:9px;font-size:14px;font-family:'Inter';color:var(--text);background:#fff;outline:none;transition:.2s}
input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(21,101,192,.1)}
textarea{resize:vertical}
.form-note{font-size:13px;margin-top:12px;min-height:18px}
.form-note.success{color:#2e7d32}
.form-note.error{color:#c62828}

/* ---------- Inquiry ---------- */
.inquiry-section{background:linear-gradient(135deg,var(--navy),var(--navy-2));color:#fff}
.inquiry-inner{display:grid;grid-template-columns:.9fr 1.1fr;gap:64px;align-items:start}
.inquiry-intro h2{color:#fff;font-size:clamp(28px,3vw,40px);margin-bottom:18px}
.inquiry-intro h2 .accent{color:var(--orange-light)}
.inquiry-intro p{color:#cbd5e1;margin-bottom:28px}
.inquiry-intro .eyebrow{color:#8ec5ff}
.contact-lines{display:flex;flex-direction:column;gap:16px}
.contact-line{display:flex;align-items:center;gap:14px}
.cl-icon{width:42px;height:42px;border-radius:10px;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-size:18px}
.contact-line small{display:block;color:#94a3b8;font-size:11px;text-transform:uppercase;letter-spacing:.5px}
.contact-line strong{font-size:14px;color:#fff}
.contact-link{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.25);transition:.2s}
.contact-link:hover{color:var(--orange-light);border-bottom-color:var(--orange-light)}
.contact-address{font-size:13px!important;line-height:1.5;max-width:340px}
.contact-social{font-size:13px!important}
.contact-social a{color:#fff;text-decoration:none;transition:.2s}
.contact-social a:hover{color:var(--orange-light)}
.inquiry-form{box-shadow:var(--shadow-lg);border:0}
.inquiry-form .field label{color:var(--navy)}

/* ---------- Footer ---------- */
.site-footer{background:#08131f;color:#cbd5e1;padding:64px 0 0}
.footer-inner{display:flex;justify-content:space-between;gap:60px;padding-bottom:48px}
.footer-brand{display:flex;flex-direction:column;gap:10px;align-items:flex-start;max-width:280px}
.footer-logo{height:54px;width:auto;display:block;filter:brightness(0) invert(1)}
.footer-tagline{font-size:13px;color:#64748b;margin-top:2px;line-height:1.6}
.footer-brand strong{font-family:'Manrope';font-size:18px;color:#fff}
.footer-links{display:flex;gap:60px}
.footer-links>div{display:flex;flex-direction:column;gap:10px}
.footer-links h4{color:#fff;font-size:14px;margin-bottom:6px}
.footer-links a,.footer-links span{font-size:13px;color:#94a3b8;transition:.2s}
.footer-links a:hover{color:var(--orange-light)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:20px 24px;display:flex;justify-content:space-between;font-size:12px;color:#64748b}
.footer-bottom a:hover{color:var(--orange-light)}

/* ---------- Floating Actions ---------- */
.fab-group{position:fixed;right:22px;bottom:24px;z-index:90;display:flex;flex-direction:column;gap:12px}
.fab{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 6px 20px rgba(0,0,0,.2);cursor:pointer;border:0;transition:.25s}
.fab:hover{transform:scale(1.08)}
.fab-whatsapp{background:#25d366}
.fab-chat{background:var(--blue)}
.fab-top{background:var(--navy);opacity:.85}

/* ---------- Chat Panel ---------- */
.chat-panel{position:fixed;right:22px;bottom:92px;width:340px;height:460px;background:#fff;border-radius:16px;box-shadow:var(--shadow-lg);z-index:95;display:flex;flex-direction:column;overflow:hidden;transform:translateY(20px);opacity:0;pointer-events:none;transition:.3s;border:1px solid var(--line)}
.chat-panel.open{transform:translateY(0);opacity:1;pointer-events:auto}
.chat-header{background:var(--navy);color:#fff;padding:16px 18px;display:flex;justify-content:space-between;align-items:center}
.chat-header strong{font-size:15px;display:block}
.chat-header small{font-size:11px;color:#94a3b8;display:flex;align-items:center;gap:6px;margin-top:3px}
.online-dot{width:7px;height:7px;background:#4caf50;border-radius:50%;display:inline-block}
.chat-header button{background:none;border:0;color:#fff;font-size:24px;cursor:pointer;line-height:1}
.chat-messages{flex:1;overflow-y:auto;padding:16px;background:var(--bg-soft);display:flex;flex-direction:column;gap:10px}
.chat-welcome{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:13px;color:var(--muted);max-width:90%}
.chat-msg{border-radius:10px;padding:10px 12px;font-size:13px;max-width:85%;align-self:flex-start;background:#fff;border:1px solid var(--line)}
.chat-msg.own{align-self:flex-end;background:var(--blue);color:#fff;border-color:var(--blue)}
.chat-msg small{display:block;font-size:10px;opacity:.7;margin-bottom:3px}
.chat-input{padding:12px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.chat-input-row{display:flex;gap:8px}
.chat-input-row input{flex:1}
.chat-input-row button{width:44px;border:0;border-radius:9px;background:var(--orange);color:#fff;font-size:16px;cursor:pointer}

/* ---------- Modal ---------- */
.modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:20px}
.modal-backdrop{position:absolute;inset:0;background:rgba(8,19,31,.7);backdrop-filter:blur(4px)}
.modal-body{position:relative;background:#fff;border-radius:18px;max-width:760px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-lg)}
.modal-close{position:absolute;top:14px;right:16px;background:rgba(255,255,255,.9);border:0;width:36px;height:36px;border-radius:50%;font-size:22px;cursor:pointer;z-index:2;color:var(--navy)}
.modal-content{display:grid;grid-template-columns:1fr 1fr}
.modal-img{width:100%;height:100%;min-height:360px;object-fit:cover;background:var(--bg-soft)}
.modal-info{padding:32px}
.modal-info h2{font-size:24px;margin-bottom:12px}
.modal-info .product-cat{margin-bottom:12px}
.modal-info p{font-size:14px;color:var(--muted);margin-bottom:18px}
.spec-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.spec-pill{background:var(--bg-soft);border:1px solid var(--line);border-radius:6px;padding:6px 11px;font-size:12px;color:var(--navy)}
.price-box{background:var(--bg-soft);border-radius:10px;padding:16px;margin-bottom:18px}
.price-box .price{font-size:24px;color:var(--orange);font-family:'Manrope';font-weight:800}
.price-box .price small{font-size:13px;color:var(--muted);font-weight:400}
.price-box .moq{font-size:13px;color:var(--muted);margin-top:4px}
.modal-inquiry-btn{width:100%}

/* ---------- Responsive ---------- */
@media(max-width:1024px){
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .hero-inner{gap:30px}
  .footer-links{gap:30px}
}
@media(max-width:768px){
  .section{padding:70px 0}
  .main-nav{position:absolute;top:76px;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;padding:16px 24px;gap:0;border-bottom:1px solid var(--line);display:none}
  .main-nav.open{display:flex}
  .nav-link{padding:12px 0}
  .nav-link.active::after{display:none}
  .menu-toggle{display:flex}
  .header-actions .btn{display:none}
  .hero{padding:120px 0 70px}
  .hero-inner{grid-template-columns:1fr}
  .hero-visual{margin-top:20px}
  .fc-1{right:8px}.fc-2{left:8px}
  .section-head{flex-direction:column;align-items:flex-start;gap:16px}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .features-grid{grid-template-columns:1fr}
  .about-inner,.inquiry-inner,.messages-layout{grid-template-columns:1fr;gap:40px}
  .about-badge{right:8px}
  .blog-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .footer-inner{flex-direction:column}
  .footer-links{flex-wrap:wrap;gap:30px}
  .product-toolbar{flex-direction:column;align-items:stretch}
  .search-box{min-width:0;max-width:none}
  .modal-content{grid-template-columns:1fr}
  .modal-img{min-height:220px;max-height:260px}
  .chat-panel{right:12px;left:12px;width:auto;bottom:84px}
}
@media(max-width:480px){
  .product-grid{grid-template-columns:1fr}
  .hero-stats{gap:20px;flex-wrap:wrap}
}
