/*
Theme Name: Versatile Dhaka
Theme URI: https://versatiledhaka.store
Author: Versatile Dhaka
Author URI: https://versatiledhaka.store
Description: Official custom WordPress theme for Versatile Dhaka - General Wholesale and Commercial Suppliers in Dhaka, Bangladesh.
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: versatile-dhaka
Tags: business, wholesale, responsive, custom-logo, custom-menu
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --vd-navy: #0f172a;
  --vd-cyan: #0284c7;
  --vd-cyan-dark: #0369a1;
  --vd-slate: #1e293b;
  --vd-gray: #f8fafc;
  --vd-border: #e2e8f0;
  --vd-text: #1e293b;
  --vd-muted: #64748b;
  --vd-white: #ffffff;
  --vd-radius: 10px;
  --vd-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --vd-max: 1200px;
  --vd-font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --vd-font-head: "Poppins", "Inter", "Segoe UI", Arial, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--vd-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--vd-text);
  background: var(--vd-gray);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--vd-cyan); text-decoration: none; }
a:hover, a:focus { color: var(--vd-cyan-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vd-font-head);
  color: var(--vd-navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.vd-container {
  width: 100%;
  max-width: var(--vd-max);
  margin: 0 auto;
  padding: 0 20px;
}

.vd-section { padding: 72px 0; }
.vd-section--alt { background: var(--vd-white); }

.vd-section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.vd-section__head p { color: var(--vd-muted); margin: 0; }

.vd-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--vd-cyan);
  margin-bottom: 10px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  background: var(--vd-white); color: var(--vd-navy);
  padding: 10px 16px; border-radius: 6px; clip: auto; width: auto; height: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.vd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--vd-radius);
  font-weight: 600;
  font-family: var(--vd-font-head);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.vd-btn:hover { transform: translateY(-2px); text-decoration: none; }
.vd-btn--primary { background: var(--vd-cyan); color: var(--vd-white); }
.vd-btn--primary:hover { background: var(--vd-cyan-dark); color: var(--vd-white); }
.vd-btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--vd-white); }
.vd-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--vd-white); }
.vd-btn--dark { background: var(--vd-navy); color: var(--vd-white); }
.vd-btn--dark:hover { background: var(--vd-slate); color: var(--vd-white); }

/* ==========================================================================
   Header
   ========================================================================== */
.vd-topbar {
  background: var(--vd-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
}
.vd-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
}
.vd-topbar a { color: var(--vd-white); }
.vd-topbar__contact { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.vd-topbar__license { color: rgba(255, 255, 255, 0.7); }

.vd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--vd-white);
  border-bottom: 1px solid var(--vd-border);
}
.vd-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
}
.vd-brand { display: flex; align-items: center; gap: 12px; }
.vd-brand__mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vd-navy), var(--vd-cyan));
  color: var(--vd-white);
  font-family: var(--vd-font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.vd-brand__name {
  font-family: var(--vd-font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--vd-navy);
  line-height: 1.1;
}
.vd-brand__name a { color: inherit; text-decoration: none; }
.vd-brand__tag { font-size: 0.75rem; color: var(--vd-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.custom-logo { max-height: 56px; width: auto; }

.vd-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.vd-nav li { position: relative; }
.vd-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--vd-slate);
  font-weight: 600;
  font-size: 0.95rem;
}
.vd-nav a:hover, .vd-nav .current-menu-item > a {
  background: var(--vd-gray);
  color: var(--vd-cyan);
  text-decoration: none;
}
.vd-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  flex-direction: column;
  align-items: stretch;
  background: var(--vd-white);
  border: 1px solid var(--vd-border);
  border-radius: var(--vd-radius);
  box-shadow: var(--vd-shadow);
  padding: 8px;
  display: none;
}
.vd-nav li:hover > .sub-menu, .vd-nav li:focus-within > .sub-menu { display: flex; }

.vd-header__cta { display: flex; align-items: center; gap: 10px; }

.vd-nav-toggle {
  display: none;
  background: var(--vd-navy);
  color: var(--vd-white);
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.vd-hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(2, 132, 199, 0.45), transparent 65%),
    linear-gradient(160deg, var(--vd-navy) 0%, var(--vd-slate) 100%);
  color: var(--vd-white);
  padding: 92px 0;
}
.vd-hero h1 { color: var(--vd-white); max-width: 900px; }
.vd-hero p { color: rgba(255, 255, 255, 0.82); max-width: 680px; font-size: 1.08rem; }
.vd-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.vd-hero__badges {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px;
  list-style: none; padding: 0;
}
.vd-hero__badges li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Grids / cards
   ========================================================================== */
.vd-grid { display: grid; gap: 24px; }
.vd-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.vd-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.vd-card {
  background: var(--vd-white);
  border: 1px solid var(--vd-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--vd-shadow);
  transition: transform 0.18s ease;
}
.vd-card:hover { transform: translateY(-4px); }
.vd-card h3 { margin-bottom: 10px; }
.vd-card p:last-child { margin-bottom: 0; }
.vd-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(2, 132, 199, 0.12);
  color: var(--vd-cyan);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.vd-about__panel {
  background: var(--vd-navy);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 34px;
}
.vd-about__panel h3 { color: var(--vd-white); }
.vd-facts { list-style: none; margin: 0; padding: 0; }
.vd-facts li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.95rem; }
.vd-facts li:last-child { border-bottom: 0; }
.vd-facts strong { display: block; color: var(--vd-white); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

.vd-checklist { list-style: none; padding: 0; margin: 0; }
.vd-checklist li { position: relative; padding: 8px 0 8px 30px; }
.vd-checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  color: var(--vd-cyan); font-weight: 700;
}

/* ==========================================================================
   CTA + map
   ========================================================================== */
.vd-cta {
  background: linear-gradient(120deg, var(--vd-cyan), var(--vd-navy));
  color: var(--vd-white);
  border-radius: 18px;
  padding: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.vd-cta h2 { color: var(--vd-white); margin-bottom: 8px; }
.vd-cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }

.vd-map {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--vd-border);
  box-shadow: var(--vd-shadow);
  background: var(--vd-white);
  min-height: 340px;
}
.vd-map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ==========================================================================
   Content / posts
   ========================================================================== */
.vd-page { padding: 56px 0 80px; }
.vd-page-header {
  background: var(--vd-navy);
  color: var(--vd-white);
  padding: 56px 0;
}
.vd-page-header h1 { color: var(--vd-white); margin: 0; }
.vd-page-header p { color: rgba(255, 255, 255, 0.75); margin: 8px 0 0; }

.vd-content {
  background: var(--vd-white);
  border: 1px solid var(--vd-border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--vd-shadow);
}
.vd-content > *:last-child { margin-bottom: 0; }
.vd-content ul, .vd-content ol { padding-left: 22px; }
.vd-content blockquote {
  margin: 0 0 1.2em;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--vd-cyan);
  color: var(--vd-muted);
}
.vd-content table { width: 100%; border-collapse: collapse; }
.vd-content th, .vd-content td { border: 1px solid var(--vd-border); padding: 10px; text-align: left; }

.vd-entry-meta { color: var(--vd-muted); font-size: 0.9rem; margin-bottom: 18px; }
.vd-post-list { display: grid; gap: 22px; }
.vd-post-card { background: var(--vd-white); border: 1px solid var(--vd-border); border-radius: 16px; padding: 28px; }
.vd-post-card h2 { font-size: 1.4rem; margin-bottom: 6px; }

.vd-pagination { margin-top: 34px; display: flex; gap: 8px; flex-wrap: wrap; }
.vd-pagination .page-numbers {
  padding: 9px 15px; border-radius: 8px; border: 1px solid var(--vd-border);
  background: var(--vd-white); color: var(--vd-slate); font-weight: 600;
}
.vd-pagination .page-numbers.current { background: var(--vd-cyan); color: var(--vd-white); border-color: var(--vd-cyan); }

.vd-404 { text-align: center; padding: 96px 0; }
.vd-404__code { font-family: var(--vd-font-head); font-size: clamp(4rem, 12vw, 8rem); color: var(--vd-cyan); line-height: 1; margin: 0; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.vd-form { display: grid; gap: 16px; }
.vd-field { display: grid; gap: 6px; }
.vd-field label { font-weight: 600; font-size: 0.92rem; color: var(--vd-slate); }
.vd-field input, .vd-field textarea, .vd-field select {
  width: 100%;
  font: inherit;
  color: var(--vd-text);
  padding: 12px 14px;
  border: 1px solid var(--vd-border);
  border-radius: 10px;
  background: var(--vd-white);
}
.vd-field input:focus, .vd-field textarea:focus {
  outline: none;
  border-color: var(--vd-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.vd-field textarea { min-height: 150px; resize: vertical; }
.vd-notice { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.vd-notice--ok { background: rgba(2, 132, 199, 0.1); color: var(--vd-cyan-dark); }
.vd-notice--err { background: #fef2f2; color: #b91c1c; }

.vd-info-list { list-style: none; padding: 0; margin: 0; }
.vd-info-list li { padding: 14px 0; border-bottom: 1px solid var(--vd-border); }
.vd-info-list li:last-child { border-bottom: 0; }
.vd-info-list strong { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vd-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.vd-footer { background: var(--vd-navy); color: rgba(255, 255, 255, 0.78); padding: 64px 0 0; }
.vd-footer h3 { color: var(--vd-white); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.vd-footer a { color: rgba(255, 255, 255, 0.85); }
.vd-footer a:hover { color: var(--vd-white); }
.vd-footer__grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.vd-footer ul { list-style: none; margin: 0; padding: 0; }
.vd-footer__menu li { padding: 6px 0; }

.vd-legal {
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 26px;
}
.vd-legal__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.vd-legal__item strong { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vd-cyan); margin-bottom: 4px; }
.vd-legal__item span { color: var(--vd-white); font-size: 0.95rem; }

.vd-footer__bottom {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.88rem;
}
.vd-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .vd-nav-toggle { display: inline-block; }
  .vd-header__inner { flex-wrap: wrap; }
  .vd-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    padding-bottom: 10px;
  }
  .vd-nav.is-open { display: block; }
  .vd-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .vd-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 12px; }
  .vd-header__cta .vd-btn { display: none; }
  .vd-cta { padding: 30px; }
  .vd-content { padding: 26px; }
  .vd-section { padding: 56px 0; }
  .vd-hero { padding: 68px 0; }
}
