/* V Frame main theme styles */

.vfram-hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--vfram-header-text, #ffffff);
  background-color: var(--vfram-header-bg, #02030a);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}

.vfram-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vfram-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.9));
}

.vfram-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 2rem 1.75rem 3.5rem;
  display: flex;
  flex-direction: column;
}

.vfram-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.vfram-logo img {
  max-height: 64px;
  width: auto;
}

.vfram-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.vfram-nav-list li a {
  color: inherit;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.vfram-nav-list li a:hover {
  opacity: 0.8;
}

.vfram-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-align-left .vfram-hero-content {
  align-items: flex-start;
  text-align: left;
}

.header-align-right .vfram-hero-content {
  align-items: flex-end;
  text-align: right;
}

.vfram-hero-title {
  font-size: 2.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.vfram-hero-tagline {
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
  font-size: 0.98rem;
  opacity: 0.9;
}

/* Header style modifiers, applied directly on header element */

.header-style-v-split {
  /* default behaviour uses background image and standard overlay */
}

.header-style-v-solid {
  background-image: none !important;
  background-color: var(--vfram-header-bg, #02030a);
}

.header-style-v-soft .vfram-hero-overlay {
  background: radial-gradient(circle at top, rgba(255,255,255,0.08), rgba(0,0,0,0.9));
}

.header-style-v-soft {
  backdrop-filter: blur(8px);
}


/* Content layout */
.content-full {
  max-width: 960px;
  margin: 0 auto;
}
.no-sidebar .content-full {
  max-width: 1080px;
}

.boxed-layout {
  background: #15151f;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.site-content {
  padding-bottom: 2.5rem;
}

/* Pagination */
.pagination,
.nav-links {
  margin-top: 2rem;
  text-align: center;
}

.pagination .page-numbers,
.nav-links a {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
}

.pagination .current {
  background: var(--vfram-accent, #f5c262);
  color: #000;
  border-color: transparent;
}

/* Search and 404 */
.search-results .entry-title mark {
  background: rgba(245, 194, 98, 0.2);
  padding: 0 0.15em;
  border-radius: 2px;
}

.vfram-404 {
  text-align: center;
  padding: 4rem 1.5rem 5rem;
}

.vfram-404 h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.vfram-404 p {
  max-width: 520px;
  margin: 0.75rem auto 1.5rem;
}

.vfram-404 a.button {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: var(--vfram-accent, #f5c262);
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

/* WooCommerce basic tweaks */
.woocommerce .products ul,
.woocommerce ul.products {
  margin: 0 0 2rem;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  text-align: left;
  background: rgba(255,255,255,0.02);
  padding: 1.25rem;
  border-radius: 6px;
}

.woocommerce div.product .product_title {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--vfram-accent, #f5c262);
}

/* Responsive */
@media (max-width: 960px) {
  .vfram-hero-inner {
    padding-inline: 1.25rem;
  }
  .vfram-hero-top {
    flex-direction: column;
    align-items: center;
  }
  .vfram-nav-list {
    justify-content: center;
  }
}
@media (max-width: 720px) {
  .vfram-hero-title {
    font-size: 1.6rem;
    letter-spacing: 0.08em;
  }
}

/* Header layouts and topbar */

.vfram-topbar {
  background: rgba(0, 0, 0, 0.75);
  color: #f5f5f7;
  font-size: 0.8rem;
}

.vfram-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.35rem;
}

.vfram-topbar-left,
.vfram-topbar-right {
  opacity: 0.9;
}

/* Base header top areas */

.vfram-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.vfram-hero-top-left,
.vfram-hero-top-center,
.vfram-hero-top-right {
  display: flex;
  align-items: center;
}

.vfram-hero-top-left {
  justify-content: flex-start;
}

.vfram-hero-top-center {
  justify-content: center;
}

.vfram-hero-top-right {
  justify-content: flex-end;
}

/* Header layouts */

.vfram-header-layout-1 .vfram-hero-top {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1.2fr);
}

/* Layout 2: logo centered, menu below centered */
.vfram-header-layout-2 .vfram-hero-top {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
}

.vfram-header-layout-2 .vfram-hero-top-left {
  justify-content: center;
  grid-column: 1;
  grid-row: 1;
}

.vfram-header-layout-2 .vfram-hero-top-center {
  justify-content: center;
  grid-column: 1;
  grid-row: 2;
}

.vfram-header-layout-2 .vfram-hero-top-right {
  display: none;
}

.vfram-header-layout-2 .vfram-nav-list {
  justify-content: center;
}


/* Layout 3: logo left, menu center, widgets right (default grid already matches) */

/* Layout 4: logo center, menu left, widgets right */
.vfram-header-layout-4 .vfram-hero-top {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
}

.vfram-header-layout-4 .vfram-hero-top-left {
  justify-content: center;
}

.vfram-header-layout-4 .vfram-hero-top-center {
  justify-content: flex-start;
}

/* Layout 5: compact header, encourage topbar use */
.vfram-header-layout-5 .vfram-hero-top {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
}

.vfram-header-layout-5 .vfram-hero-top-right {
  display: none;
}

.vfram-header-layout-5 .vfram-hero {
  min-height: 220px;
}

/* Header widgets */

.vfram-header-widgets {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.vfram-header-widgets .widget {
  margin: 0;
}

/* Breadcrumbs */

.vfram-breadcrumbs-wrapper {
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
}

.vfram-breadcrumbs {
  padding: 0.6rem 0;
}

.vfram-breadcrumbs .crumb {
  opacity: 0.9;
}

.vfram-breadcrumbs .crumb a {
  color: inherit;
}

.vfram-breadcrumbs .crumb-current {
  font-weight: 600;
}

.vfram-breadcrumbs .crumb-sep {
  margin-inline: 0.3rem;
  opacity: 0.6;
}

/* Mobile tweaks */

@media (max-width: 960px) {
  .vfram-hero-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .vfram-hero-top-center {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 0.75rem;
  }
  .vfram-header-layout-2 .vfram-hero-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vfram-header-textblock {
    max-width: 800px;
    margin: 20px auto 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    color: #ffffff;
    text-align: center;
}

/* V Frame mobile header */

body.vfram-mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .vfram-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
  }

  .vfram-mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
  }

  .vfram-mobile-logo img {
    max-height: 40px;
    height: auto;
    width: auto;
  }

  .vfram-mobile-site-title {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
  }

  .vfram-mobile-toggle {
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .vfram-burger-line {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .vfram-mobile-menu {
    position: fixed;
    top: 56px; /* height of mobile bar */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9998;
  }

  .vfram-mobile-menu-inner {
    padding: 24px 16px 40px;
  }

  .vfram-mobile-nav,
  .vfram-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .vfram-mobile-nav li {
    margin-bottom: 12px;
  }

  .vfram-mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
  }

  .vfram-mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .vfram-mobile-header.is-open .vfram-burger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .vfram-mobile-header.is-open .vfram-burger-line:nth-child(2) {
    opacity: 0;
  }

  .vfram-mobile-header.is-open .vfram-burger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Push hero down so header bar does not overlap */
  .vfram-hero {
    margin-top: 56px;
  }

  /* Hide desktop header structure on mobile.
     This removes the old nav and widgets and leaves hero content. */

  .vfram-hero-top,
  .vfram-main-nav,
  .vfram-nav-list,
  .vfram-header-widgets {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .vfram-mobile-header,
  .vfram-mobile-menu {
    display: none;
  }
}
