/*
Theme Name: Vandelay Sound
Theme URI: https://vandelaysound.com
Author: Vandelay Sound Exports
Description: Block theme matching the Vandelay Sound Exports marketing site.
Version: 1.9.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: vandelay-sound
License: GNU General Public License v2 or later
*/

:root {
  --vs-bg: #ffffff;
  --vs-fg: #000000;
  --vs-muted: #5c5c5c;
  --vs-line: #e6e6e6;
  --vs-button: rgba(49, 64, 79, 0.83);
  --vs-button-hover: rgb(48, 63, 78);
  --vs-max: 1224px;
  --font-primary: "DM Sans", sans-serif;
  --font-secondary: Montserrat, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--vs-bg);
  color: var(--vs-fg);
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

body.vs-nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

p a,
.vs-page a,
.vs-prose a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
.wp-block-post-title,
.wp-block-query-title {
  font-family: var(--font-primary);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1,
.wp-block-post-title,
.wp-block-query-title {
  font-size: 48px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

.wp-site-blocks > * + * {
  margin-block-start: 0;
}

.wp-block-template-part {
  margin: 0;
}

.vs-skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.vs-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: var(--vs-button);
  color: #fff;
  padding: 8px 12px;
}

.vs-wrap {
  width: min(100% - 48px, var(--vs-max));
  margin-inline: auto;
}

.vs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
}

.vs-header-inner {
  width: min(100% - 40px, var(--vs-max));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.vs-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: #000;
  text-decoration: none;
}

.vs-brand img {
  width: 350px;
  max-width: min(350px, 46vw);
  height: auto;
  border-radius: 0;
}

.vs-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.vs-nav-toggle span,
.vs-nav-toggle span::before,
.vs-nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  position: relative;
}

.vs-nav-toggle span::before,
.vs-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.vs-nav-toggle span::before {
  top: -7px;
}

.vs-nav-toggle span::after {
  top: 7px;
}

.vs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vs-nav > ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vs-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}

.vs-nav .current-menu-item > a,
.vs-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.vs-has-sub {
  position: relative;
}

.vs-has-sub > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #111;
  margin-top: 2px;
}

.vs-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--vs-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  z-index: 20;
}

.vs-has-sub:hover > .vs-sub,
.vs-has-sub:focus-within > .vs-sub {
  display: block;
}

.vs-sub a {
  display: block;
  padding: 10px 18px;
  white-space: normal;
}

.vs-sub a:hover {
  background: #f6f6f6;
}

.vs-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vs-button);
  color: #fff !important;
  border-radius: 999px;
  padding: 12px 28px !important;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none !important;
}

.vs-contact-btn:hover {
  background: var(--vs-button-hover);
}

.vs-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1920 / 347;
  background: #111;
}

.vs-hero-slides {
  position: absolute;
  inset: 0;
}

.vs-hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.vs-hero-slides img.is-active {
  opacity: 1;
}

.vs-hero-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.vs-hero-nav::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.vs-hero-prev {
  left: 12px;
}

.vs-hero-prev::before {
  transform: rotate(-135deg);
  margin-left: 8px;
}

.vs-hero-next {
  right: 12px;
}

.vs-hero-next::before {
  transform: rotate(45deg);
  margin-left: 4px;
}

.vs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vs-section {
  padding: 72px 0;
}

.vs-section h2 {
  text-align: center;
  margin-bottom: 24px;
}

.vs-featured p {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--vs-muted);
  font-size: 16px;
  font-weight: 300;
}

.vs-video {
  max-width: 812px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #111;
}

.vs-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.vs-story {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .vs-story {
    grid-template-columns: 1fr 1.1fr;
  }
}

.vs-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.vs-story h2 {
  text-align: left;
  font-size: 32px;
  margin-bottom: 16px;
}

.vs-story p {
  color: var(--vs-muted);
  margin: 0 0 1em;
}

.vs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  border-radius: 999px;
  background: var(--vs-button);
  color: #fff !important;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none !important;
}

.vs-btn:hover {
  background: var(--vs-button-hover);
}

.vs-story-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.vs-office {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .vs-office {
    grid-template-columns: 400px 1fr;
  }
}

.vs-office-copy {
  text-align: center;
}

.vs-office h2,
.vs-office h3 {
  text-align: center;
}

.vs-office p {
  margin: 0 0 1.2em;
}

.vs-badge {
  width: 220px;
  margin: 24px auto 0;
  display: block;
}

.vs-office-photos {
  display: grid;
  gap: 16px;
}

.vs-office-photos img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.vs-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--vs-line);
  text-align: center;
}

.vs-footer h3 {
  margin-bottom: 16px;
}

.vs-social {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 0 0 28px;
}

.vs-social a {
  color: #000;
  width: 26px;
  height: 26px;
  display: inline-flex;
}

.vs-legal {
  font-size: 13px;
  color: #444;
}

.vs-legal a {
  text-decoration: none;
}

.vs-legal a:hover {
  text-decoration: underline;
}

.vs-page,
.vs-article {
  width: min(100% - 48px, 720px);
  margin: 48px auto 80px;
}

.vs-page:has(.vs-layout) {
  width: min(100% - 48px, 1400px);
}

.vs-page .wp-block-post-title,
.vs-article .wp-block-post-title,
.wp-block-query-title {
  margin-bottom: 24px;
}

.vs-page:has(.vs-layout) .wp-block-post-title {
  display: none;
}

.vs-page:not(:has(.vs-layout)) .wp-block-post-content > .wp-block-heading:first-child,
.vs-page:not(:has(.vs-layout)) .wp-block-post-content > h1:first-child {
  display: none;
}

.wp-block-post-date {
  color: var(--vs-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.wp-block-query {
  width: min(100% - 48px, 720px);
  margin: 0 auto 80px;
}

.wp-block-post-template {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vs-page-media {
  margin: 0 0 32px;
}

.vs-page-media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.vs-gallery {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 700px) {
  .vs-gallery-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.vs-portrait {
  max-width: 420px;
  margin: 0 auto 32px;
}

.vs-team,
.vs-service-grid {
  display: grid;
  gap: 8px;
  margin: 24px 0 32px;
}

@media (min-width: 700px) {
  .vs-team {
    grid-template-columns: repeat(3, 1fr);
  }

  .vs-service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.vs-team a,
.vs-service-grid a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.vs-team img,
.vs-service-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.vs-service-grid img {
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
}

.vs-team-card {
  position: relative;
}

.vs-team-card strong,
.vs-service-grid strong {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 400;
}

.vs-team-card strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(70, 70, 70, 0.62);
  color: #fff;
}

.vs-layout h1 {
  font-size: 48px;
  font-weight: 500;
  margin: 0 0 24px;
}

.vs-layout h2 {
  font-size: 32px;
  text-align: left;
  margin: 0 0 16px;
}

.vs-kicker-lg {
  margin: 0 0 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vs-about-top {
  display: grid;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .vs-about-top {
    grid-template-columns: 0.9fr 1.35fr;
  }
}

.vs-about-copy p,
.vs-layout > p,
.vs-profile-copy p,
.vs-team-intro,
.vs-split-copy p,
.vs-contact-copy p,
.vs-blog-landing h2 {
  color: var(--vs-muted);
  font-weight: 300;
}

.vs-service-hero {
  position: relative;
  margin: 0 0 40px;
  overflow: hidden;
  background: #111;
}

.vs-service-hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  opacity: 0.72;
}

.vs-service-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: #fff;
  padding: 24px;
}

.vs-service-hero-inner h1 {
  color: #fff;
  margin: 0;
}

.vs-hero-tag {
  color: #fff;
  font-weight: 300;
  max-width: 720px;
  margin: 0;
}

.vs-split {
  display: grid;
  gap: 32px;
  align-items: center;
  margin: 40px 0;
}

@media (min-width: 900px) {
  .vs-split {
    grid-template-columns: 1fr 1fr;
  }

  .vs-split-flip .vs-split-photo {
    order: 2;
  }
}

.vs-split-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.vs-next {
  margin: 56px 0 24px;
  text-align: center;
}

.vs-next h2 {
  text-align: center;
}

.vs-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px 20px;
  margin: 32px 0;
}

.vs-product h3 {
  margin: 12px 0 4px;
  font-size: 16px;
  font-weight: 500;
}

.vs-product h3 a {
  text-decoration: none;
  color: inherit;
}

.vs-product-media {
  display: block;
}

.vs-product img,
.vs-product-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.vs-product-price {
  font-weight: 300;
  margin: 0 0 12px;
}

.vs-product-bag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 22px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000 !important;
  font-size: 14px;
  text-decoration: none !important;
}

.vs-product-bag:hover {
  background: #f4f4f4;
}

.vs-product-page {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .vs-product-page {
    grid-template-columns: 1fr 1fr;
  }
}

.vs-contact-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 40px;
}

.vs-hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.vs-hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.vs-hero-dot.is-active {
  background: #fff;
}

.vs-contact-heading {
  text-align: center;
  margin-bottom: 40px;
}

.vs-contact-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .vs-contact-grid {
    grid-template-columns: 1.2fr 0.9fr;
  }
}

.vs-contact-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.vs-blog-landing h2 {
  font-size: 22px;
  text-align: left;
  margin: 0 0 32px;
}

.vs-about-crew {
  max-width: 400px;
  margin: 40px auto 0;
}

.vs-profile {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .vs-profile {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.vs-profile-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.vs-profile-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.vs-profile-nav a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  text-decoration: none;
}

.vs-profile-nav img {
  width: 28px;
  height: auto;
}

.vs-page .vs-video {
  margin: 0 0 24px;
  max-width: none;
}

.vs-blog-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.vs-blog-grid li {
  margin: 0;
}

.vs-blog-grid .wp-block-post-featured-image {
  margin: 0 0 16px;
}

.vs-blog-grid .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

.vs-blog-grid .vs-post-cats {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vs-muted);
}

.vs-blog-grid .vs-post-cats a {
  color: inherit;
  text-decoration: none;
}

/*
 * .vs-page:has(.vs-layout) .wp-block-post-title hides the auto page title
 * on pages whose custom .vs-layout content already has its own <h1>. The
 * blog index's intro block also uses .vs-layout (for the wide container),
 * which makes that rule match the whole page and hide every card's title
 * too - override it back on for titles inside the query loop specifically.
 */
.vs-page:has(.vs-layout) .wp-block-post-template .wp-block-post-title {
  display: block;
}

.vs-blog-grid .wp-block-post-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.vs-blog-grid .wp-block-post-title a {
  color: var(--vs-fg);
  text-decoration: none;
}

.vs-blog-grid .wp-block-post-excerpt {
  color: var(--vs-muted);
  font-weight: 300;
}

.vs-blog-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--vs-line);
}

.vs-blog-pagination a,
.vs-blog-pagination span {
  color: var(--vs-fg);
  text-decoration: none;
}

.vs-blog-pagination .page-numbers.current {
  font-weight: 700;
}

@media (max-width: 1099px) {
  .vs-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .vs-nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--vs-line);
    padding: 12px 20px 28px;
    flex-direction: column;
    align-items: stretch;
  }

  .vs-nav.is-open {
    display: flex;
  }

  .vs-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .vs-sub {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    padding-left: 12px;
  }

  .vs-has-sub.is-open > .vs-sub {
    display: block;
  }

  .vs-contact-btn {
    margin-top: 8px;
    width: 100%;
  }

  h1,
  .wp-block-post-title {
    font-size: 36px;
  }

  .vs-section {
    padding: 48px 0;
  }

  .vs-brand img {
    width: 220px;
  }

  .vs-layout h1 {
    font-size: 36px;
  }

  .vs-service-hero img {
    height: 240px;
  }

  .vs-blog-grid .wp-block-post-template {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
