/*
Theme Name: VistaRender
Theme URI: https://vista-render.com/
Author: VistaRender
Description: Lightweight theme for vista-render.com. Recreates the original Squarespace layout: portfolio grids, stacked project galleries, animation and 360 tour pages, contact form.
Version: 1.2.3
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: vistarender
*/

@font-face {
  font-family: "Abel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/abel-latin-400-normal.woff2") format("woff2");
}

:root {
  --vr-bg: #f0f0f0;
  --vr-band: #e6e6e1;
  --vr-foot: #e0e0db;
  --vr-ink: #2a2829;
  --vr-navy: #253551;
  --vr-muted: #5d5b5c;
  --vr-line: rgba(42, 40, 41, .18);
  --vr-white: #fff;
  --vr-font: "Abel", "Helvetica Neue", Arial, sans-serif;
  --vr-wrap: 1320px;
  --vr-gutter: clamp(16px, 4vw, 56px);
  --vr-gap: 10px;
  --vr-header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--vr-bg);
  color: var(--vr-ink);
  font-family: var(--vr-font);
  font-size: 21.4px;
  line-height: 1.7;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--vr-navy); }
a:hover { color: var(--vr-ink); }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.25; margin: 0 0 .6em; text-wrap: balance; }
/* Type scale copied from the Squarespace site: mobile values, desktop from 768px. */
h1 { font-size: 48.4px; line-height: 1.23; }
h2 { font-size: 35.44px; line-height: 1.3; }
h3 { font-size: 28.96px; line-height: 1.33; }
h4 { font-size: 22.48px; line-height: 1.37; }
@media (min-width: 768px) {
  body { font-size: 24.4px; }
  h1 { font-size: 66.4px; }
  h2 { font-size: 46.24px; }
  h3 { font-size: 36.16px; }
  h4 { font-size: 26.08px; }
}
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--vr-navy); outline-offset: 3px; }
.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; left: 12px; top: 12px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--vr-navy); color: var(--vr-white); }

.vr-wrap { width: 100%; max-width: var(--vr-wrap); margin: 0 auto; padding-left: var(--vr-gutter); padding-right: var(--vr-gutter); }
.vr-section { padding-block: clamp(48px, 7vw, 110px); }
.vr-band { background: var(--vr-band); }

/* Header */
.vr-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--vr-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.vr-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--vr-header-h); }
.vr-logo img { width: 220px; height: auto; }
.vr-nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.vr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.6vw, 26px); }
.vr-nav a { color: var(--vr-ink); text-decoration: none; font-size: clamp(19px, 1.25vw + 6px, 24.4px); padding-block: 4px; border-bottom: 1px solid transparent; }
.vr-nav a:hover, .vr-nav .current-menu-item > a, .vr-nav .current-page-ancestor > a, .vr-nav .current_page_parent > a { border-bottom-color: currentColor; }
.vr-social { display: inline-flex; width: 22px; height: 22px; color: var(--vr-ink); }
/* In the menu the icon takes the menu font size and matches the capital letters. */
.vr-nav .vr-social { width: .74em; height: .7em; padding: 0; border: 0; font-size: clamp(19px, 1.25vw + 6px, 24.4px); }
.vr-social svg { width: 100%; height: 100%; fill: currentColor; }
.vr-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--vr-ink); }
/* Two thin lines 35px wide, 11px apart, as on the Squarespace site. */
.vr-burger span { display: block; width: 35px; height: 1px; background: currentColor; margin: 10px 0; transition: transform .25s; }

@media (max-width: 1100px) {
  .vr-logo img { width: 170px; }
  .vr-burger { display: block; }
  .vr-nav { position: fixed; inset: var(--vr-header-h) 0 0 0; background: var(--vr-bg); flex-direction: column; justify-content: flex-start; padding: 40px var(--vr-gutter); transform: translateX(100%); transition: transform .3s ease; }
  .vr-nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .vr-nav a, .vr-nav .vr-social { font-size: 28px; }
  .vr-nav .vr-social { margin-top: 10px; }
  body.vr-nav-open { overflow: hidden; }
  body.vr-nav-open .vr-nav { transform: none; }
  body.vr-nav-open .vr-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  body.vr-nav-open .vr-burger span:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* Buttons */
.vr-btn {
  display: inline-block; padding: 1.05em 2.2em; border-radius: 300px;
  background: var(--vr-navy); color: var(--vr-white); border: 1px solid var(--vr-navy);
  font: 400 16px/1 var(--vr-font); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.vr-btn:hover { background: transparent; color: var(--vr-navy); }
.vr-btn--line { display: block; text-align: center; background: transparent; color: var(--vr-ink); border-color: var(--vr-ink); border-radius: 6px; padding: .55em 1em; font-size: 14px; }
.vr-btn--line:hover { background: var(--vr-ink); color: var(--vr-white); }

/* Home hero */
.vr-hero { padding: clamp(16px, 2.5vw, 48px) var(--vr-gutter) 0; }
.vr-hero__media { position: relative; overflow: hidden; min-height: clamp(420px, 62vh, 720px); display: grid; place-items: center; text-align: center; max-width: var(--vr-wrap); margin: 0 auto; }
.vr-hero__media video, .vr-hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vr-hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(240, 240, 240, .42); }
.vr-hero__text { position: relative; z-index: 1; max-width: 900px; padding: 48px 24px; color: var(--vr-navy); }
.vr-hero__text h1 { color: var(--vr-navy); }
.vr-hero__text p { font-size: 28.96px; line-height: 1.33; }
@media (min-width: 768px) { .vr-hero__text p { font-size: 36.16px; } }

.vr-lead { text-align: center; }
.vr-lead h2 { font-size: 48.4px; line-height: 1.23; max-width: 900px; margin: 0 auto .6em; }
@media (min-width: 768px) { .vr-lead h2 { font-size: 66.4px; } }
.vr-lead p { text-align: left; }
.vr-services-title { text-align: center; margin-bottom: 1.1em; }

/* Services */
.vr-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 3vw, 40px); }
.vr-service__media { display: block; aspect-ratio: 16 / 9; background: #ddd; overflow: hidden; }
.vr-service__media img, .vr-service__media video, .vr-service__media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
/* Cards side by side: the "Learn more" buttons line up at the bottom whatever the text length. */
.vr-service { display: flex; flex-direction: column; }
.vr-service .vr-btn--line { margin-top: auto; }
.vr-service h3 { font-size: 22.48px; margin: 18px 0 8px; }
@media (min-width: 768px) { .vr-service h3 { font-size: 26.08px; } }
.vr-service h3 a { color: var(--vr-navy); }
.vr-service p { color: var(--vr-ink); }
@media (max-width: 760px) { .vr-services { grid-template-columns: minmax(0, 1fr); } }

/* Split intro (h1 left, text right) */
.vr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.vr-split__text { font-size: 1em; }
@media (max-width: 860px) { .vr-split { grid-template-columns: minmax(0, 1fr); } }

/* Portfolio grid */
.vr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--vr-gap); }
.vr-card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; color: var(--vr-white); text-decoration: none; }
.vr-card img { width: 100%; height: 100%; object-fit: cover; }
/* Hover as on the Squarespace site: light veil (#e0e0db at 70%) and the project title. */
.vr-card__title { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #000; font-size: 28.96px; line-height: 1.4; background: rgba(224, 224, 219, .7); opacity: 0; transition: opacity .2s; }
@media (min-width: 768px) { .vr-card__title { font-size: 34.72px; } }
.vr-card:hover .vr-card__title, .vr-card:focus-visible .vr-card__title { opacity: 1; }
@media (hover: none) { .vr-card__title { opacity: 1; inset: auto 0 0 0; padding: 10px 14px; font-size: 22.48px; } }
@media (max-width: 860px) { .vr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vr-grid { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.vr-cta { position: relative; overflow: hidden; text-align: center; color: var(--vr-white); }
.vr-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vr-cta::after { content: ""; position: absolute; inset: 0; background: rgba(20, 24, 34, .45); }
.vr-cta .vr-wrap { position: relative; z-index: 1; padding-block: clamp(80px, 12vw, 180px); }
.vr-cta h2 { max-width: 900px; margin: 0 auto 1em; }
.vr-cta .vr-btn { border-color: var(--vr-white); }

/* Project page */
.vr-project__head { text-align: center; padding-top: clamp(36px, 5vw, 70px); }
.vr-project__head h1 { font-size: 35.44px; margin-bottom: .3em; }
.vr-project__city { font-size: 22.48px; color: var(--vr-ink); }
@media (min-width: 768px) { .vr-project__head h1 { font-size: 46.24px; } .vr-project__city { font-size: 26.08px; } }
.vr-gallery.wp-block-gallery, .vr-gallery { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: var(--vr-gap) !important; margin: 0; }
.vr-gallery .wp-block-image { margin: 0 !important; width: 100% !important; }
.vr-gallery img { width: 100% !important; height: auto !important; }
.vr-gallery a { display: block; cursor: zoom-in; }
.vr-pager { display: flex; justify-content: space-between; gap: 20px; padding-block: 40px 70px; font-size: 1em; }
.vr-pager a { text-decoration: none; color: var(--vr-ink); }
.vr-pager a:hover { color: var(--vr-navy); }
.vr-pager .is-next { text-align: right; margin-left: auto; }

/* Lightbox */
.vr-lb { position: fixed; inset: 0; z-index: 200; background: rgba(15, 15, 15, .96); display: none; align-items: center; justify-content: center; }
.vr-lb.is-open { display: flex; }
.vr-lb img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.vr-lb button { position: absolute; background: none; border: 0; color: #fff; font: 300 44px/1 var(--vr-font); padding: 16px 20px; cursor: pointer; opacity: .8; }
.vr-lb button:hover { opacity: 1; }
.vr-lb__close { top: 8px; right: 8px; }
.vr-lb__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.vr-lb__next { right: 4px; top: 50%; transform: translateY(-50%); }
.vr-lb__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #bbb; font-size: 14px; }

/* Videos & tours */
.vr-works h2 { margin-bottom: 1.2em; }
.vr-video { margin: 0 0 clamp(40px, 5vw, 72px); }
.vr-video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vr-video figcaption, .vr-tour figcaption { margin-top: 1.2em; font-size: 22.48px; }
@media (min-width: 768px) { .vr-video figcaption, .vr-tour figcaption { font-size: 26.08px; } }
/* Poster with a big play button until the visitor starts the video. */
.vr-player { position: relative; }
.vr-service__media .vr-player { height: 100%; }
.vr-player video { object-fit: cover; }
.vr-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.vr-play span { display: grid; place-items: center; width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%; background: rgba(42, 40, 41, .62); transition: background .2s, transform .2s; }
.vr-play svg { width: 38%; height: 38%; margin-left: 8%; fill: #fff; }
.vr-play:hover span, .vr-play:focus-visible span { background: rgba(37, 53, 81, .9); transform: scale(1.06); }
.vr-player.is-playing .vr-play { display: none; }
.vr-tour { margin: 0 0 clamp(40px, 5vw, 72px); }
.vr-tour iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #ddd; }

/* About: story on the left, founders on the right (Squarespace layout) */
.vr-about { padding-bottom: 14px; }
.vr-about__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr) minmax(0, 3fr); align-items: end; margin-top: .2em; }
.vr-about__story { grid-column: 1; }
.vr-about .vr-team:nth-of-type(1) { grid-column: 3; }
.vr-about .vr-team:nth-of-type(2) { grid-column: 5; }
.vr-team { margin: 0 0 1em; text-align: center; }
.vr-team img, .vr-team__mono { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: 14px; }
.vr-team figcaption a { display: block; color: var(--vr-navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.vr-team figcaption span { display: block; color: var(--vr-ink); }
.vr-rule { border: 0; height: 1px; background: var(--vr-ink); margin: clamp(30px, 4vw, 50px) 0 0; }
@media (max-width: 860px) {
  .vr-about__body { grid-template-columns: minmax(0, 1fr); }
  .vr-about__story, .vr-about .vr-team:nth-of-type(n) { grid-column: 1; }
  .vr-team { margin-top: 1em; }
}
.vr-prose { max-width: 920px; }

/* Contact */
.vr-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.vr-contact__img img { width: 100%; height: auto; }
@media (max-width: 860px) { .vr-contact { grid-template-columns: minmax(0, 1fr); } }
.vr-form { display: grid; gap: 18px; margin-top: 10px; }
.vr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .vr-form__row { grid-template-columns: 1fr; } }
.vr-form label { display: grid; gap: 6px; font-size: .8em; }
.vr-form input, .vr-form textarea { width: 100%; font: inherit; font-size: 18px; color: var(--vr-ink); background: transparent; border: 1px solid var(--vr-ink); border-radius: 6px; padding: 10px 12px; }
.vr-form textarea { min-height: 160px; resize: vertical; }
.vr-form .vr-hp { position: absolute; left: -9999px; }
.vr-notice { padding: 14px 18px; border-radius: 6px; background: #e3ecdf; color: #22401a; }
.vr-notice--err { background: #f3e0df; color: #5c1b17; }
.vr-mail { white-space: nowrap; }

/* Footer: full-width band like on the Squarespace site */
.vr-footer { background: var(--vr-foot); padding-block: clamp(36px, 4vw, 52px); }
.vr-footer__box { text-align: center; }
.vr-footer__brand { color: var(--vr-navy); margin: 0 0 .7em; }
.vr-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.vr-footer__nav a { color: var(--vr-navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.vr-footer__nav a:hover { color: var(--vr-ink); }
.vr-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.vr-footer__cols p { margin: 0; }
.vr-footer__cols a { color: var(--vr-ink); text-decoration: none; }
.vr-footer__cols a:hover { text-decoration: underline; }
.vr-footer__legal { margin-top: 6px !important; font-size: 16px; line-height: 1.7; color: #000; }
.vr-footer .vr-social { display: inline-flex; width: 20px; height: 20px; margin-top: 12px; }
.vr-footer__p1 { grid-area: 1 / 1; } .vr-footer__p2 { grid-area: 1 / 2; } .vr-footer__mail { grid-area: 1 / 3; }
.vr-footer__legal { grid-area: 2 / 2; } .vr-footer__soc { grid-area: 2 / 3; }
@media (max-width: 900px) {
  .vr-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .vr-footer__cols > p { grid-area: auto; }
  .vr-footer__legal { order: 5; margin-top: 14px !important; }
}

/* Back to top */
.vr-top { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 60; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(37, 53, 81, .82); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.vr-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.vr-top:hover, .vr-top:focus-visible { background: var(--vr-navy); }
.vr-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.vr-nav-open .vr-top, .vr-lb.is-open ~ .vr-top { display: none; }

/* Generic page */
.vr-page { padding-block: clamp(40px, 6vw, 90px); }
.vr-page .entry-content > * { max-width: 920px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.vr-team__mono { display: grid; place-items: center; background: var(--vr-band); color: var(--vr-navy); font-size: 64px; }
