/*
Theme Name: Ryan Brewer Bridge
Description: Interim theme for Ryan Brewer Fence.
Version: 0.3.2
Requires at least: 6.9
Requires PHP: 8.3
Author: Southbound Studio
Text Domain: ryan-brewer-bridge
*/
@font-face {
    font-family: "Source Sans Pro";
    src: url("assets/SourceSansPro-Light.woff") format("woff");
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans Pro";
    src: url("assets/SourceSansPro-Regular.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}
:root {
    --ink: #111;
    --muted: #595959;
    --paper: #f8f8f8;
    --line: #ddd;
    --red: #991717;
    --red-band: #a51a1a;
    --wrap: 73.125rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--muted); font: 15px/1.6 "Source Sans Pro", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); font-weight: 400; line-height: 1.15; }
h1 { margin: 0; font-size: 34px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
a { color: var(--red); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid #d45252; outline-offset: 4px; }
.wrap { width: min(calc(100% - clamp(2rem, 8.6vw, 6.875rem)), var(--wrap)); margin-inline: auto; }
.skip-link { position: fixed; top: -5rem; padding: .65rem 1rem; background: #fff; z-index: 30; }
.skip-link:focus { top: 1rem; left: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 130px;
    background: #000;
    color: #fff;
}
.admin-bar .site-header { top: 32px; }
.brand { display: grid; place-items: center; flex: 0 0 min(20.5vw, 262px); padding: 1rem min(2.35vw, 30px); background: #101010; }
.brand a { color: #fff; text-decoration: none; }
.brand .custom-logo { width: 202px; }
.site-nav { display: flex; align-items: stretch; margin-inline: auto 0; padding-inline: 1rem clamp(1rem, 3.55vw, 2.875rem); }
.site-nav ul, .footer-bottom ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: stretch; gap: clamp(.9rem, 2.35vw, 1.875rem); }
.site-nav li { position: relative; display: flex; align-items: stretch; }
.site-nav :is(a, .company-toggle) { display: flex; align-items: center; color: #fff; text-decoration: none; font: inherit; font-size: 18px; white-space: nowrap; }
.site-nav :is(a:hover, [aria-current="page"], .company-toggle:hover, .current-company, .company-toggle[aria-expanded="true"]) { color: #d85858; }
.company-toggle, .menu-toggle { border: 0; padding: 0; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.menu-toggle { display: none; }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 10rem; background: #0e0e0e; }
.site-nav .sub-menu a { width: 100%; padding: .55rem 1rem; font-size: 16px; }
.site-nav .menu-item-has-children:is(:hover, :focus-within) > .sub-menu,
.site-nav .company-toggle[aria-expanded="true"] + .sub-menu { display: block; }

.button, .wp-block-button__link, .inquiry button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 41px;
    padding: .65rem 2.15rem;
    border: 1px solid transparent;
    border-radius: 0;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font: inherit;
    font-size: 13px;
    letter-spacing: .09em;
    cursor: pointer;
}
.button:hover, .wp-block-button__link:hover, .inquiry button:hover { background: #741212; color: #fff; }

.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(340px, 33.45vw, 500px);
    background: #2a241a var(--hero-poster) center center / cover no-repeat;
    color: #fff;
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgb(0 0 0 / .63); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-copy { padding-block: 3rem; }
.hero h1 { margin: 0 0 18px; color: #fff; font-size: clamp(2.65rem, 4.7vw, 3.75rem); font-weight: 300; }
.hero .button, .consultation .wp-block-button__link { border-color: #fff; background: transparent; }
.hero .button:hover, .consultation .wp-block-button__link:hover { background: #fff; color: #161616; }
.hero-motion { position: absolute; right: 1rem; bottom: 1rem; border: 1px solid #fff9; padding: .3rem .7rem; background: #0008; color: #fff; font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .hero-video, .hero-motion { display: none; } }

.home-content > .wp-block-group { margin-block: 0; }
.home-services { padding-block: clamp(3.5rem, 6.35vw, 5.1rem) clamp(3.5rem, 7vw, 5.75rem); text-align: center; }
.home-services .wp-block-columns { margin: 2.65rem 0 0; gap: 2rem; }
.home-services .wp-block-column figure { margin: 0 auto; }
.home-services .wp-block-column img { width: 150px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-inline: auto; }
.home-services h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.75rem, 2vw, 1.55rem);
    margin: 0 0 1.25rem;
    font-size: clamp(2.3rem, 4vw, 3.125rem);
    font-weight: 300;
}
.home-services h2::before, .home-services h2::after { content: ""; width: min(6.3vw, 5rem); height: 1px; background: var(--line); }
.home-services h3 { margin: 1.65rem 0 .9rem; font-size: 32px; }
.home-services h3 a { text-decoration: none; }
.home-services h3 a:hover { text-decoration: underline; }
.home-services p { margin-block: 0; }
.home-services > p { max-width: 48rem; margin-inline: auto; }
.consultation { background: var(--red-band); color: #fff; padding-block: clamp(2.5rem, 4.6vw, 3.75rem); }
.consultation .wp-block-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 2rem; text-align: center; }
.consultation p { margin: 0; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 300; }
.home-values { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.home-values .wp-block-columns { margin-bottom: 0; align-items: center !important; gap: clamp(1.5rem, 7vw, 5rem); }
.home-values h3 { margin: .85em 0 .15em; font-size: 22px; }
.home-values h3:first-child { margin-top: 0; }
.home-values p { margin: 0; }
.value-list { counter-reset: values; padding-inline-start: 3.8rem; }
.value-list h3 { position: relative; counter-increment: values; }
.value-list h3::before {
    content: counter(values);
    position: absolute;
    inset-inline-start: -3.8rem;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
}
.home-gallery .wp-block-columns { gap: 0; margin: 0; }
.home-gallery figure { margin: 0; }
.home-gallery img { width: 100%; aspect-ratio: 1.42; object-fit: cover; }

.page-title { background: #f4f4f4; border-bottom: 1px solid #e7e7e7; padding-block: 32px; }
.page-title h1 { color: #575757; }
.content { padding-block: clamp(2.25rem, 5vw, 4rem); }
.content > :first-child { margin-top: 0; }
.content .wp-block-gallery { margin-block: 1.5rem 2.5rem; }
.page-image { width: 100%; max-height: 37rem; object-fit: cover; margin-block: 1rem 2rem; }
.fence-type { margin-block: 0 3.5rem; gap: 2rem; }
.fence-type > .wp-block-column:first-child { flex-basis: 23% !important; flex-grow: 0; }
.fence-type img { width: 150px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-inline: auto; }
.fence-type h2 { color: var(--red); margin: 0 0 .6em; }
.estimate-content { padding-top: 0; }
.estimate-steps { margin-inline: calc((100% - 100vw) / 2); padding: clamp(1.75rem, 4vw, 3.75rem); background: #0d0d0d; color: #eee; text-align: center; overflow: hidden; margin-bottom: 3.75rem; }
.estimate-steps h2 { color: #fff; font-size: 22px; }
.estimate-steps :last-child { margin-bottom: 0; }
.estimate-form { max-width: 570px; margin-inline: auto; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: 1rem; margin-block: 1.5rem 2rem; }
.card { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.card-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 1.2rem; }
.card h3 { margin: 0; }
.card p { margin: .7rem 0 0; color: var(--muted); }
.callout { background: #eee; padding: clamp(1.25rem,4vw,2.5rem); margin-block: 2rem; }
.callout h2 { margin-top: 0; }
.site-footer { padding-block: 2rem 1.5rem; background: #111; color: #ddd; font-size: 14px; }
.site-footer a { color: #ddd; }
.footer-row, .footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.footer-bottom { border-top: 1px solid #333; margin-top: 1.5rem; padding-top: 1rem; align-items: center; justify-content: space-between; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.inquiry { max-width: 46rem; }
.inquiry-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap: 1rem; }
.estimate-form .inquiry-grid { grid-template-columns: 1fr; }
.inquiry label { display: block; }
.inquiry :is(input,textarea,select) { display: block; width: 100%; max-width: 100%; background: #fcfcfc; color: var(--ink); border: 1px solid var(--line); padding: .45rem .6rem; font: inherit; }
.inquiry textarea { min-height: 8rem; }
.inquiry-trap { position: absolute; left: -10000px; width: 1px; overflow: hidden; }
.inquiry-status { border-left: .25rem solid var(--red); padding: .65rem 1rem; background: #eee; }

@media (max-width: 1120px) {
    .site-header { min-height: 84px; flex-wrap: wrap; align-items: center; }
    .brand { flex: 0 0 auto; padding: .7rem 1.25rem; }
    .brand .custom-logo { width: 150px; }
    .has-menu-toggle .menu-toggle { display: block; margin-right: 1.25rem; border: 1px solid #777; padding: .35rem .85rem; }
    .site-nav, .site-nav > ul { display: block; width: 100%; padding: 0; }
    .site-nav { max-height: min(65vh, 480px); overflow: auto; }
    .has-menu-toggle .menu-toggle[aria-expanded="false"] + .site-nav { display: none; }
    .site-nav li { display: block; }
    .site-nav :is(a, .company-toggle) { width: 100%; padding: .45rem 1.25rem; border-top: 1px solid #262626; }
    .site-nav .sub-menu { position: static; }
    .site-nav .sub-menu a { padding-inline-start: 2.5rem; }
    .has-menu-toggle .site-nav .company-toggle[aria-expanded="false"] + .sub-menu { display: none; }
}
@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
    .home-gallery .wp-block-column { flex-basis: 100% !important; }
    .fence-type img { margin-inline: 0; }
}

/* Interior galleries and editorial layouts. */
.interior-full-width { margin-inline: calc((100% - 100vw) / 2); }
.gallery-section { margin-block: 0 5.5rem; }
.gallery-section:last-child { margin-bottom: 0; }
.gallery-section h2 { margin: 0 0 2rem; }
.wp-block-gallery.parity-gallery {
    --gallery-columns: 6;
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
    gap: 2px;
    margin: 0;
}
.wp-block-gallery.parity-gallery.columns-5 { --gallery-columns: 5; }
.wp-block-gallery.parity-gallery.columns-3 { --gallery-columns: 3; }
.wp-block-gallery.parity-gallery.has-nested-images figure.wp-block-image {
    width: 100% !important;
    margin: 0;
    aspect-ratio: 1;
    overflow: hidden;
}
.parity-gallery a { position: relative; width: 100%; height: 100%; }
.parity-gallery a::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgb(0 0 0 / .43);
    color: #fff;
    content: "+";
    font-size: 2rem;
    opacity: 0;
}
.parity-gallery a:is(:hover, :focus-visible)::after { opacity: 1; }
.parity-gallery a:focus-visible { outline-offset: -4px; }
.parity-gallery img { width: 100%; height: 100%; object-fit: cover; }
.work-content { padding-top: 0; }
.work-gallery .wp-block-gallery.parity-gallery { gap: 0; }
.work-projects { margin-block: 4rem 0; }
.wall-art-row, .mailbox-columns, .contact-columns, .team-members, .team-stories { gap: 30px; }
.wall-art-row figure, .mailbox-columns figure, .team-members figure, .team-stories figure { margin: 0; }
.wall-art-row p { margin: 1.5rem 0 0; }
.mailbox-columns video { width: 100%; background: #111; }
.contact-columns h2 { margin: 0 0 1rem; }
.contact-map iframe { display: block; width: 100%; height: 500px; border: 0; background: #eee; }
.contact-map a { display: inline-block; margin-top: .6rem; }
.contact-columns .inquiry-grid { grid-template-columns: 1fr; gap: 0; }
.contact-columns .inquiry-grid p { margin-top: .8rem; margin-bottom: 0; }

.content > .team-intro { margin-top: -2.2rem; }
.team-intro, .team-testimonials { text-align: center; }
.team-intro p, .faq-intro p { margin: 0 0 .1rem; font-size: 26px; line-height: 1.25; }
.team-intro h2, .team-testimonials h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.65rem, 2vw, 1.55rem);
    margin: 0 0 2.2rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 300;
}
.team-intro h2::before, .team-intro h2::after, .team-testimonials h2::before, .team-testimonials h2::after {
    content: "";
    flex: 0 1 5rem;
    height: 1px;
    background: var(--line);
}
.team-members { text-align: center; }
.team-members .wp-block-column { padding-bottom: 1rem; border-bottom: 1px solid #eee; }
.team-members img { width: 100%; }
.team-members h3 { margin: 1rem 0 0; font-size: 17px; }
.team-members p { margin: .15rem 0 0; }
.team-testimonials { margin-block: clamp(4rem, 8vw, 6rem) 4.5rem; }
.testimonial-quotes blockquote { margin: 0 0 1rem; }
.testimonial-quotes p { margin: 0 0 .8rem; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 300; }
.testimonial-quotes cite { font-style: normal; }
.testimonial-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; margin-top: .8rem; }
.testimonial-dots button {
    display: grid;
    place-items: center;
    width: 23px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.testimonial-dots button::after { content: ""; width: 10px; height: 10px; border: 1px solid #747474; border-radius: 50%; }
.testimonial-dots button[aria-pressed="true"]::after { border: 2px solid var(--red); }
.team-stories { margin-bottom: 4rem; }
.team-stories img { width: 100%; aspect-ratio: 570 / 320; object-fit: cover; }
.team-stories h3 { margin: 1.25rem 0 .45rem; }
.team-stories h3 a { text-decoration: none; }
.team-stories h3 a:hover { text-decoration: underline; }
.faq-intro h2 { margin: 0 0 2.6rem; font-size: 38px; font-weight: 300; }
.service-faq details { margin-top: 1rem; }
.service-faq summary { background: #fcfcfc; border: 1px solid var(--line); padding: .7rem .9rem; font-weight: 600; cursor: pointer; }
.service-faq details[open] summary { color: #fff; background: var(--red); border-color: var(--red); }
.service-faq details > p { padding-inline: 1.8rem; }
.article-date { margin: .3rem 0 0; color: #777; font-size: 13px; }
.feature-article { max-width: 800px; }
.feature-article .page-image { margin-top: 0; max-height: none; object-fit: initial; }

.rbf-lightbox {
    width: min(60rem, calc(100vw - 1.5rem));
    max-width: none;
    max-height: calc(100dvh - 1.5rem);
    padding: 2.75rem 3rem 1rem;
    border: 0;
    background: #141414;
    color: #fff;
    text-align: center;
}
.rbf-lightbox::backdrop { background: rgb(0 0 0 / .84); }
.rbf-lightbox figure { margin: 0; }
.rbf-lightbox img { width: auto; max-height: 74dvh; margin-inline: auto; object-fit: contain; }
.rbf-lightbox figcaption { margin-top: .65rem; }
.rbf-lightbox button { border: 0; color: #fff; background: #222; font: inherit; cursor: pointer; }
.rbf-lightbox .lightbox-close { position: absolute; top: .45rem; right: .6rem; font-size: 1.5rem; line-height: 1; }
.rbf-lightbox .lightbox-arrow { position: absolute; top: 50%; width: 2rem; min-height: 2.5rem; font-size: 1.5rem; }
.rbf-lightbox .lightbox-prev { left: .35rem; }
.rbf-lightbox .lightbox-next { right: .35rem; }

@media (max-width: 960px) {
    .wp-block-gallery.parity-gallery:is(.columns-5, .columns-6) { --gallery-columns: 4; }
}
@media (max-width: 781px) {
    .contact-map iframe { height: 320px; }
    .team-members img { width: auto; margin-inline: auto; }
    .gallery-section { margin-bottom: 3.6rem; }
}
@media (max-width: 580px) {
    .wp-block-gallery.parity-gallery:is(.columns-5, .columns-6) { --gallery-columns: 2; }
}
