/*
Theme Name: Vertical Access
Theme URI: https://vertical-access.com/
Author: Vertical Access
Description: Standalone, version-controlled theme for vertical-access.com.
Version: 1.2.2
Requires at least: 6.5
Requires PHP: 7.3
Text Domain: vertical-access
*/

:root {
  --va-blue: #005dac;
  --va-blue-light: #4c8dc4;
  --va-blue-pale: #eaf3fa;
  --va-ink: #333;
  --va-muted: #818174;
  --va-paper: #f5f4ef;
  --va-line: #d8dde0;
  --va-white: #fff;
  --va-warm: #fff0d1;
  --va-max: 88rem;
  --va-reading: 48rem;
  --va-radius: .2rem;
  --va-shadow: 0 .4rem 1.5rem rgba(25, 42, 51, .12);
}

@font-face {
  font-family: "Panton";
  src: url("assets/fonts/panton-regular-webfont.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--va-ink); background: var(--va-white); font: 1rem/1.45 "Source Sans Pro", "Segoe UI", Arial, sans-serif; }
body.admin-bar .site-header { top: 32px; }
img { display: block; height: auto; max-width: 100%; }
figure { margin: 1.5rem 0; }
a { color: var(--va-blue); text-underline-offset: .16em; }
a:hover, a:focus { color: var(--va-blue-light); }
button, input, select, textarea { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: var(--va-ink); font-family: "Panton", Arial, sans-serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 2.55rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin-top: 0; margin-bottom: 1.1rem; }
p { font-size: 1.05rem; }
hr { border: 0; border-top: 1px solid var(--va-line); margin: 2rem 0; }
blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: .3rem solid var(--va-blue); font-size: 1.2rem; }

.site-shell { margin-inline: auto; width: min(calc(100% - 2rem), var(--va-max)); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus, .skip-link:focus { z-index: 100000; top: .5rem; left: .5rem; width: auto; height: auto; padding: .75rem 1rem; clip: auto; background: var(--va-white); color: var(--va-ink); }
.skip-link { position: fixed; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 50; background: var(--va-white); }
.header-main { min-height: 15rem; display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; align-items: center; gap: 2rem; padding-block: 2rem .6rem; }
.custom-logo-link, .brand-link { display: inline-block; }
.custom-logo, .brand-logo { width: 9.4rem; max-height: 5.4rem; object-fit: contain; }
.header-tools { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.contact-links { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: .55rem; color: var(--va-muted); font-size: 1.15rem; }
.contact-links a { text-decoration: none; }
.contact-line { display: flex; align-items: center; gap: .8rem; }
.social-links { display: flex; flex-direction: row-reverse; gap: 1.1rem; margin-right: .4rem; }
.social-links a { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; color: var(--va-blue); text-decoration: none; }
.social-links svg { width: 100%; height: 100%; fill: currentColor; }
.nav-row { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; width: 100%; }
.menu-toggle { display: none; padding: .65rem .9rem; border: 0; border-radius: var(--va-radius); background: var(--va-blue); color: var(--va-white); }
.primary-navigation ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0; padding: 0; margin: 0; list-style: none; }
.primary-navigation li { position: relative; }
.primary-navigation a { display: block; padding: .45rem 1rem; color: #111; font: 1.25rem/1.2 "Panton", Arial, sans-serif; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation a:focus, .primary-navigation .current-menu-item > a, .primary-navigation .current-menu-ancestor > a { color: var(--va-muted); }
.primary-navigation .sub-menu { position: absolute; left: 0; top: 100%; min-width: 15rem; display: none; padding: .55rem; background: var(--va-warm); box-shadow: var(--va-shadow); }
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { display: block; }
.primary-navigation .sub-menu a { padding: .45rem .65rem; }
@media (min-width: 50.01rem) {
  .primary-navigation .menu-item-has-children > a { position: relative; padding-bottom: 1rem; }
  .primary-navigation .menu-item-has-children > a::after { position: absolute; bottom: .15rem; left: 50%; width: .45rem; height: .45rem; content: ""; border-right: 2px solid var(--va-muted); border-bottom: 2px solid var(--va-muted); transform: translateX(-50%) rotate(45deg); }
}

.site-main { min-height: 50vh; }
.page-header { padding-block: 2rem; }
.page-header .site-shell { max-width: var(--va-reading); margin-left: max(1rem, calc((100vw - min(calc(100vw - 2rem), var(--va-max))) / 2)); }
.breadcrumbs { margin-bottom: .6rem; color: var(--va-muted); font-size: .75rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: #9ba4a8; }
.breadcrumbs a { color: inherit; }
.entry-meta { color: var(--va-muted); font-size: .9rem; }

.content-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.content-wrap { padding-block: 1rem 3rem; }
.entry-header h1 { margin: .25rem 0 1.25rem; }
.entry-content { max-width: none; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content a { text-decoration: underline; }
.entry-content img { border-radius: var(--va-radius); }
.entry-content .alignwide { width: min(100vw - 2rem, var(--va-max)); max-width: none; }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { clear: both; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { margin-top: .4rem; color: var(--va-muted); font-size: .82rem; font-style: italic; }
.entry-content::after { display: table; clear: both; content: ""; }

.home-hero { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--va-ink); }
.home-slides, .home-slide { position: absolute; inset: 0; }
.home-slide { z-index: 1; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.home-slide.is-active { z-index: 2; opacity: 1; pointer-events: auto; }
.home-slide img { width: 100%; height: 100%; object-fit: cover; }
.home-slider-button { position: absolute; z-index: 3; top: 50%; display: grid; width: 2.6rem; height: 3.4rem; padding: 0; place-items: center; border: 0; background: rgba(0, 0, 0, .35); color: var(--va-white); font: 2.5rem/1 Arial, sans-serif; transform: translateY(-50%); }
.home-slider-button:hover, .home-slider-button:focus { background: rgba(0, 0, 0, .62); }
.home-slider-previous { left: 0; }
.home-slider-next { right: 0; }
.home-slider-dots { position: absolute; z-index: 3; right: 0; bottom: .8rem; left: 0; display: flex; justify-content: center; gap: .5rem; }
.home-slider-dot { width: .72rem; height: .72rem; padding: 0; border: 2px solid var(--va-white); border-radius: 50%; background: rgba(0, 0, 0, .32); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.home-slider-dot.is-active { background: var(--va-white); }
.home-content { padding-block: 2rem 3rem; }

.serv-tile, .proj-tile { display: grid; grid-template-columns: repeat(3, 12.5rem); justify-content: space-between; gap: 1rem; max-width: var(--va-max); margin: .5rem auto 1.5rem; }
.proj-tile { grid-template-columns: repeat(4, 12.5rem); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; max-width: var(--va-max); margin: .5rem auto 1.5rem; }
.query-row, .post-card { min-width: 0; margin: 0; background: var(--va-white); }
.query-field-permalink { position: relative; width: 12.5rem; height: 12.5rem; min-height: 12.5rem; background: #f5f5f3; }
.query-field-permalink > a { position: relative; display: block; height: 100%; min-height: inherit; color: var(--va-ink); text-decoration: none; }
.query-field-permalink img, .post-card__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.serv-back { position: absolute; right: 0; bottom: 0; left: 0; min-height: 3rem; padding: .45rem; background: rgba(255, 255, 255, .82); }
.serv-back h3 { margin: 0; color: var(--va-blue); font: 1rem/1.08 "Segoe UI", Arial, sans-serif; }
.query-row a:hover .serv-back h3 { color: var(--va-blue-light); }
.query-exposed { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; padding: 0; margin: .5rem 0 1rem; }
.query-exposed label { width: 100%; font-weight: 700; }
.query-exposed select, .query-exposed button { min-height: 2.6rem; padding: .45rem .7rem; }
.query-exposed button, .search-submit { border: 0; border-radius: .15rem; background: var(--va-muted); color: var(--va-white); }
.page-numbers { display: inline-block; padding: .35rem .6rem; margin: .2rem; border: 1px solid var(--va-line); text-decoration: none; }
.page-numbers.current { background: var(--va-blue); color: var(--va-white); }

.post-card__body { padding: 1.1rem; }
.post-card__title { font-size: 1.35rem; }
.post-card__title a { color: var(--va-ink); text-decoration: none; }
.post-card__excerpt { color: var(--va-muted); }
.archive-wrap { padding-block: clamp(2.5rem, 6vw, 5rem); }
.navigation.pagination { margin-top: 2rem; }

.gallery, .va-image-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.gallery-item { margin: 0; }
.va-image-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.headshot { float: left; max-width: 17.5rem; margin: 0 1.5rem 1rem 0; }
.site-sidebar { min-width: 0; padding-top: 1.2rem; }
.site-sidebar .search-form { width: 100%; }
.sidebar-feature { margin-top: 1.25rem; }
.sidebar-feature h2 { font-size: 1.55rem; line-height: 1.25; }
.sidebar-feature img { width: 100%; height: auto; }
.home .sidebar-feature img, .page-id-3287 .sidebar-feature img, .page-id-3547 .sidebar-feature img { width: auto; max-width: 15rem; }
.sidebar-feature ul { padding-left: 1.1rem; }
.search-form { display: flex; max-width: 32rem; }
.search-field { min-width: 0; flex: 1; padding: .65rem .75rem; border: 1px solid var(--va-line); }
.search-submit { padding: .65rem 1rem; }

.site-footer { margin-top: 0; background: #ccccc7; color: var(--va-ink); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; }
.footer-heading { padding: .9rem 1.25rem .7rem; margin: 0; background: #ffb71d; font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.footer-content { padding: 1.25rem; }
.site-footer p, .site-footer address { margin: 0; font-size: .9rem; font-style: normal; line-height: 1.4; }
.footer-grid > section:first-child .footer-content { display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem; align-items: start; }
.affiliate-logo { width: 9rem; }
.site-info { padding: .25rem 1.25rem; background: var(--va-muted); color: #ccccc7; font-size: .85rem; }

.not-found { max-width: var(--va-reading); padding-block: 5rem; }
.button, .wp-block-button__link { display: inline-block; padding: .7rem 1rem; border-radius: var(--va-radius); background: var(--va-blue); color: var(--va-white); text-decoration: none; }
.button:hover, .wp-block-button__link:hover { background: var(--va-blue-light); color: var(--va-white); }

@media (max-width: 62rem) {
  .proj-tile { grid-template-columns: repeat(3, 12.5rem); }
}

@media (max-width: 50rem) {
  body.admin-bar .site-header { top: 46px; }
  .header-main { grid-template-columns: 9rem 1fr; min-height: 6rem; padding-block: .5rem; }
  .header-tools { justify-content: center; }
  .contact-links { display: none; }
  .menu-toggle { display: block; }
  .nav-row { justify-content: flex-end; }
  .primary-navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: .75rem 1rem 1rem; background: var(--va-white); border-bottom: 1px solid var(--va-line); box-shadow: var(--va-shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; }
  .primary-navigation a { padding: .65rem .4rem; border-bottom: 1px solid var(--va-line); }
  .primary-navigation .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 1rem; background: transparent; box-shadow: none; }
  .content-layout { grid-template-columns: 1fr; }
  .site-sidebar { padding-top: 0; }
  .serv-tile, .proj-tile { grid-template-columns: repeat(2, 12.5rem); justify-content: start; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 36rem) {
  .site-shell { width: min(calc(100% - 1.25rem), var(--va-max)); }
  .header-main { grid-template-columns: 7.5rem 1fr; gap: .75rem; }
  .social-links { display: none; }
  .home-hero { width: 100%; }
  .serv-tile, .proj-tile, .post-grid, .footer-grid, .footer-grid > section:first-child .footer-content { grid-template-columns: 1fr; }
  .query-field-permalink { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .alignleft, .alignright, .headshot { float: none; margin: 1rem auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
