/*
Theme Name: VectorDose
Theme URI: https://vectordose.com/
Author: VectorDose
Description: Custom Mobbin-style black premium theme for VectorDose — a free SVG brand-logo download site.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vectordose
*/

/* ============ Tokens ============ */
:root {
  color-scheme: light;
  --vd-black: #111;
  --vd-black-hover: #292929;
  --vd-gray: #f5f5f5;
  --vd-gray-hover: #e8e8e8;
  --vd-footer: #1a1a1a;
  --vd-ink: #111111;
  --vd-muted: #656565;
  --vd-line: #dedede;
  --vd-card: #ffffff;
  --vd-shadow: 0 16px 48px rgba(17, 17, 17, .08);
  --vd-card-hover-shadow: 0 14px 34px rgba(17, 17, 17, .11);
  --vd-radius: 8px;
  --vd-font: 'Manrope', sans-serif;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--vd-ink);
  font-family: var(--vd-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main, body > .vd-container, body > #main {
  flex: 1 0 auto;
}
.vd-footer {
  margin-top: auto;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, a { font: inherit; }
button { color: inherit; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; }
a, button, summary { cursor: pointer; }

/* ============ Layout ============ */
.vd-container {
  width: 100%;
  max-width: calc(1180px + 40px);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ============ Section heading ============ */
.vd-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.vd-section__title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 0;
  font-weight: 700;
}
.vd-view-all {
  border: 0;
  background: transparent;
  color: var(--vd-ink);
  font-weight: 800;
  padding: 8px 0;
  white-space: nowrap;
}
.vd-view-all:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ============ Buttons ============ */
.vd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: var(--vd-radius);
  font-weight: 800;
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
}
.vd-btn--primary { background: var(--vd-black); border-color: var(--vd-black); color: #fff; }
.vd-btn--primary:hover { background: var(--vd-black-hover); border-color: var(--vd-black-hover); color: #fff; }
.vd-btn--secondary { background: var(--vd-gray); border-color: #e8e8e8; color: var(--vd-black); }
.vd-btn--secondary:hover { background: var(--vd-gray-hover); color: var(--vd-black); }

/* ============ Logo card ============ */
.vd-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: var(--vd-card);
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.vd-card:hover, .vd-card:focus-visible {
  border-color: var(--vd-black);
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--vd-card-hover-shadow);
}
.vd-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1.15;
  padding: 34px;
  background: var(--vd-gray);
  overflow: hidden;
  transition: background-color .18s;
}
.vd-card:hover .vd-card__img, .vd-card:focus-visible .vd-card__img {
  background-color: #fafafa;
  background-image:
    linear-gradient(45deg, #efefef 25%, transparent 25%),
    linear-gradient(-45deg, #efefef 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #efefef 75%),
    linear-gradient(-45deg, transparent 75%, #efefef 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.vd-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .2s;
}
.vd-card:hover .vd-card__img img, .vd-card:focus-visible .vd-card__img img { transform: scale(1.04); }
.vd-card__name {
  display: flex;
  align-items: center;
  height: 58px;
  flex: 0 0 58px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Header ============ */
.vd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--vd-line);
}
.vd-nav {
  height: 74px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(300px, 460px) minmax(300px, 1fr);
  align-items: center;
  gap: 24px;
}
.vd-brand {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 8px 10px 8px 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
  color: var(--vd-ink);
}
.vd-brand:hover { color: var(--vd-black-hover); }
.vd-nav-search { min-width: 0; }

/* Mini search (demo-styled, functional) */
.vd-mini-search {
	position: relative;
	width: 100%;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #dedede;
	background: #ffffff;
	padding: 9px 11px;
	border-radius: 999px;
	color: #656565;
}

.vd-mini-search:focus-within {
	border-color: #111111;
}

.vd-mini-search > svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

.vd-mini-search input[type="search"] {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #111111;
	font-size: 14px;
}

.vd-mini-search input[type="search"]::placeholder {
	color: #656565;
}

.vd-kbd {
	font-size: 11px;
	border: 1px solid #dedede;
	background: #f5f5f5;
	border-radius: 8px;
	padding: 1px 6px;
	flex: 0 0 auto;
}

/* Primary menu */
.vd-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.vd-menu > li { position: relative; }
.vd-menu a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--vd-radius);
  color: var(--vd-muted);
  font-weight: 700;
  white-space: nowrap;
}
.vd-menu a:hover, .vd-menu .current-menu-item > a { color: var(--vd-ink); background: var(--vd-gray); }

/* Sub-menus: simple single-column card by default */
.vd-menu ul.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  list-style: none;
  margin: 0;
  padding: 10px;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: var(--vd-radius);
  box-shadow: var(--vd-shadow);
}
.vd-menu li:hover > ul.sub-menu,
.vd-menu li:focus-within > ul.sub-menu { display: block; }
.vd-menu ul.sub-menu a { display: block; color: var(--vd-ink); }
.vd-menu ul.sub-menu a:hover { background: var(--vd-gray); }

/* Mega dropdown: sub-menu with more than 6 items */
.vd-menu ul.sub-menu.vd-mega {
  min-width: 480px;
  padding: 16px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.vd-menu li:hover > ul.sub-menu.vd-mega,
.vd-menu li:focus-within > ul.sub-menu.vd-mega { display: grid; }
.vd-menu ul.sub-menu.vd-mega a { padding: 8px 10px; font-size: 14px; }

/* Hamburger + drawer */
.vd-hamburger { display: none; }
.vd-drawer, .vd-drawer-backdrop { display: none; }

/* ============ Footer ============ */
.vd-footer { background: var(--vd-footer); color: #bbb; padding: 70px 0 0; }
.vd-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 54px;
  padding-bottom: 56px;
}
.vd-footer-brand {
  display: inline-block;
  padding: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
  color: #fff;
}
.vd-footer-brand:hover { color: #e6e6e6; }
.vd-footer-tagline { max-width: 260px; margin: 14px 0 22px; }
.vd-social-icons { display: flex; align-items: center; gap: 10px; }
.vd-social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #424242;
  border-radius: var(--vd-radius);
  display: grid;
  place-items: center;
  color: #bbb;
  transition: color .18s, border-color .18s;
}
.vd-social-icon svg { width: 17px; height: 17px; overflow: visible; }
.vd-social-icon .brand-fill { fill: currentColor; stroke: none; }
.vd-social-icon:hover { color: #fff; border-color: #777; }
.vd-footer-col h2 { margin: 0 0 18px; color: #fff; font-size: 15px; font-weight: 800; }
.vd-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.vd-footer-link { padding: 0; font-size: 14px; color: #bbb; transition: color .18s; }
.vd-footer-link:hover { color: #fff; }
.vd-footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  color: #8f8f8f;
  font-size: 13px;
}

/* ============ Fallback loop ============ */
.vd-fallback { padding: 64px 0; }
.vd-fallback article { margin-bottom: 32px; }
.vd-fallback h2 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 8px; }
.vd-fallback h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .vd-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 42px; }
}
@media (max-width: 640px) {
  :root { --vd-font: 'Manrope', sans-serif; }
  .vd-container { padding-inline: 13px; }
  .vd-nav { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 0; }
  .vd-brand { font-size: 28px; padding-right: 4px; }
  .vd-nav-search, .vd-menu { display: none; }
  .vd-hamburger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: var(--vd-radius);
    background: transparent;
    color: var(--vd-ink);
    margin-left: auto;
  }
  .vd-hamburger:hover { background: var(--vd-gray); }
  .vd-hamburger svg { width: 21px; height: 21px; }
  body.vd-drawer-open { overflow: hidden; }
  .vd-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, .42);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
  }
  .vd-drawer {
    display: flex;
    position: fixed;
    z-index: 81;
    top: 0; bottom: 0; left: 0;
    width: min(86vw, 360px);
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 18px;
    background: #fff;
    box-shadow: 20px 0 54px rgba(0, 0, 0, .2);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.22, .72, .2, 1), visibility .28s ease;
  }
  body.vd-drawer-open .vd-drawer-backdrop { opacity: 1; visibility: visible; }
  body.vd-drawer-open .vd-drawer { transform: translateX(0); visibility: visible; }
  .vd-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .vd-drawer-brand { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.055em; }
  .vd-drawer-close {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border: 0; border-radius: var(--vd-radius);
    background: var(--vd-gray); color: var(--vd-ink);
  }
  .vd-drawer-close:hover { background: var(--vd-gray-hover); }
  .vd-drawer-close svg { width: 20px; height: 20px; }
  .vd-drawer .vd-menu { display: grid; gap: 2px; justify-content: stretch; }
  .vd-drawer .vd-menu > li > a { display: block; padding: 12px 10px; font-size: 17px; font-weight: 800; color: var(--vd-ink); }
  .vd-drawer .vd-menu ul.sub-menu {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 12px;
    margin-bottom: 6px;
  }
  .vd-drawer .vd-menu ul.sub-menu.vd-mega { display: block; min-width: 0; padding: 0 0 0 12px; }
  .vd-drawer .vd-menu ul.sub-menu a { font-size: 14px; padding: 8px 10px; color: var(--vd-muted); }
  .vd-drawer .vd-menu ul.sub-menu a:hover { color: var(--vd-ink); background: transparent; }
  .vd-footer-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 42px; }
  .vd-footer { padding-top: 52px; }
  .vd-footer-bottom { line-height: 1.6; }
  .vd-section__title { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .vd-drawer, .vd-drawer-backdrop, .vd-card { transition: none; }
}
