/* ==========================================================================
   Virginia Valet Company theme — site styles
   Bootstrap colors, fonts and the dark color mode come from
   css/skins/default.css, compiled from css/presets/default. This file holds
   the site's own layout and components. Restyle a build by changing the
   variables below first.
   ========================================================================== */

/* Set on the wrapper, not :root: the color mode (data-bs-theme) is on the
   wrapper, and variables resolve where they're defined. */
.theme-vavalet {
    --vavalet-header-height: 72px;
    --vavalet-header-bg: var(--bs-body-bg);
    --vavalet-header-color: var(--bs-body-color);
    --vavalet-header-border: var(--bs-border-color-translucent);
    /* Small text in the brand color uses the link color, which the style guide
       checks for contrast; the raw primary may be too light for text. */
    --vavalet-nav-active: var(--bs-link-color);
    --vavalet-hello-bg: var(--bs-primary);
    --vavalet-hello-color: #fff;
    --vavalet-footer-bg: var(--bs-dark-accent, #0f172a);
    --vavalet-footer-color: #cbd5e1;
    --vavalet-footer-link: #fff;
    --vavalet-footer-legal-bg: rgba(0, 0, 0, 0.25);
    --vavalet-panel-bg: var(--bs-tertiary-bg);
    --vavalet-radius: 0.75rem;
    --vavalet-section-y: 4rem;
    --vavalet-hero-y: 5rem;
}

/* Bootstrap applies text and background colors on <body>, which sits
   outside the wrapper. Apply them again here so the color mode takes effect. */
.theme-vavalet {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

/* Fills the area outside the wrapper (overscroll, short pages). */
body.vavalet-body--dark {
    background-color: #0b1120;
}

/* Links inside running text are underlined, so they don't rely on color
   alone (WCAG 1.4.1). Navigation, buttons and standalone links stay plain. */
.theme-vavalet :is(main, footer) :is(p, li, td, dd, blockquote, figcaption) a:not(.btn) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* ---- Editor styles (page_theme.php getThemeEditorClasses) ---- */

.vavalet-display {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
}

.vavalet-section-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.vavalet-section-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--bs-primary);
}

.text-center .vavalet-section-heading::after,
.vavalet-section-heading.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.vavalet-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bs-link-color);
}

/* Outline buttons: text in the link color (contrast-checked), not the raw primary. */
.theme-vavalet .btn-outline-primary {
    --bs-btn-color: var(--bs-link-color);
}

.vavalet-panel {
    background: var(--vavalet-panel-bg);
    border-radius: var(--vavalet-radius);
    box-shadow: var(--vavalet-panel-shadow, none);
    padding: 2rem;
}

/* Dark mode: the primary color is too dark for text on a dark page. */
.theme-vavalet[data-bs-theme="dark"] .vavalet-eyebrow,
.theme-vavalet[data-bs-theme="dark"] .vavalet-header__menu .nav-link.active {
    color: var(--bs-primary-text-emphasis);
}

.theme-vavalet[data-bs-theme="dark"] .btn-outline-primary {
    --bs-btn-color: var(--bs-primary-text-emphasis);
    --bs-btn-border-color: var(--bs-primary-text-emphasis);
}

/* ---- Skip link ---- */

.vavalet-skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1100;
    padding: 0.5rem 1rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* ---- Header ---- */

.vavalet-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--vavalet-header-height);
    background: var(--vavalet-header-bg);
    color: var(--vavalet-header-color);
    border-bottom: 1px solid var(--vavalet-header-border);
    padding: 0.5rem 0;
    transition: box-shadow 0.2s ease;
}

.vavalet-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.vavalet-header__brand {
    margin: 0;
    padding: 0;
}

.vavalet-header__brand img {
    display: block;
    max-height: 56px;
    width: auto;
}

.vavalet-header__logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 60vw;
}

.vavalet-header__site-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: inherit;
}

.vavalet-header__menu .nav {
    flex-wrap: wrap;
}

.vavalet-header__menu .nav-link {
    color: inherit;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
}

.vavalet-header__menu .nav-link:hover,
.vavalet-header__menu .nav-link:focus,
.vavalet-header__menu .nav-link.active,
.vavalet-header__menu .nav-selected > a {
    color: var(--vavalet-nav-active);
}

.vavalet-header__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: 1rem;
}

.vavalet-header__toggle {
    border: 0;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vavalet-header__toggle:focus {
    box-shadow: 0 0 0 2px var(--bs-primary);
}

.vavalet-header__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.vavalet-header__toggle:not(.collapsed) .vavalet-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.vavalet-header__toggle:not(.collapsed) .vavalet-header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.vavalet-header__toggle:not(.collapsed) .vavalet-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991.98px) {
    .vavalet-header__nav-collapse {
        padding: 0.75rem 0;
    }

    .vavalet-header__menu .nav {
        flex-direction: column;
    }

    .vavalet-header__cta {
        margin: 0.75rem 0 0;
    }
}

/* ---- Hello Bar ---- */

.vavalet-hello-bar {
    background: var(--vavalet-hello-bg);
    color: var(--vavalet-hello-color);
    font-weight: 600;
    text-align: center;
}

.vavalet-hello-bar__inner {
    padding: 0.6rem 1rem;
}

.vavalet-hello-bar p:last-child {
    margin-bottom: 0;
}

.vavalet-hello-bar a {
    color: inherit;
    text-decoration: underline;
}

/* ---- Footer ---- */

.vavalet-footer {
    background: var(--vavalet-footer-bg);
    color: var(--vavalet-footer-color);
    padding-top: 3rem;
    margin-top: 3rem;
}

.vavalet-footer a {
    color: var(--vavalet-footer-link);
}

.vavalet-footer a:hover {
    text-decoration: underline;
}

.vavalet-footer h2,
.vavalet-footer h3,
.vavalet-footer h4 {
    color: #fff;
    font-size: 1.1rem;
}

.vavalet-footer__logo img {
    display: block;
    max-height: 64px;
    max-width: 220px;
    width: auto;
}

.vavalet-footer__site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

/* Atomik's skin pads every footer (div.theme-atomik footer). Scoped under
   the wrapper so these win. */
.theme-vavalet .vavalet-footer {
    padding: 3rem 0 0;
}

/* Landing pages: legal line only. */
.theme-vavalet .vavalet-footer--minimal {
    padding-top: 0;
}

.vavalet-footer--minimal .vavalet-footer__legal {
    margin-top: 0;
}

.vavalet-footer__legal {
    background: var(--vavalet-footer-legal-bg);
    font-size: 0.875rem;
    padding: 1.25rem 0;
    margin-top: 2rem;
}

.vavalet-footer__legal p {
    margin-bottom: 0.25rem;
}

.vavalet-footer__login {
    margin-top: 0.25rem;
}

/* ---- Containers (elements/containers/vavalet_*.php) ---- */

.vavalet-section {
    padding: var(--vavalet-section-y, 4rem) 0;
}

.vavalet-section--light {
    background: var(--vavalet-panel-bg);
}

.vavalet-section__title,
.vavalet-card-grid__title {
    margin-bottom: 2rem;
}

.vavalet-hero {
    padding: var(--vavalet-hero-y, 5rem) 0;
}

.vavalet-hero__media img,
.vavalet-split__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--vavalet-radius);
}

/* Tall cut-outs (portrait PNGs) shouldn't stretch the hero. */
.vavalet-hero__media img {
    width: auto;
    max-width: 100%;
    max-height: var(--vavalet-hero-image-max, 560px);
    margin: 0 auto;
    object-fit: contain;
}

/* Background and text color come from Bootstrap's text-bg-primary class on the
   section, which picks black or white text for contrast with the primary. */
.vavalet-cta-band {
    text-align: center;
}

.vavalet-cta-band__inner {
    max-width: 52rem;
}

.vavalet-cta-band :is(h1, h2, h3, h4, p, .lead, a:not(.btn)) {
    color: inherit;
}

/* A primary button on the primary band would disappear: make it white with
   black text, which reads on any band color. */
.vavalet-cta-band .btn-primary {
    --bs-btn-bg: #fff;
    --bs-btn-color: #000;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-bg: #f1f1f1;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-border-color: #f1f1f1;
}

.vavalet-cta-band .btn-outline-primary {
    --bs-btn-color: currentColor;
    --bs-btn-border-color: currentColor;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-border-color: #fff;
}

.vavalet-section p:last-child {
    margin-bottom: 0;
}

/* ---- Block templates (blocks/*/templates) ---- */

/* Testimonial: quote_card */
.vavalet-quote-card {
    margin: 0;
}

.vavalet-quote-card__quote {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.vavalet-quote-card__quote p::before {
    content: "\201C";
}

.vavalet-quote-card__quote p::after {
    content: "\201D";
}

.vavalet-quote-card__person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vavalet-quote-card__image img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.vavalet-quote-card__name,
.vavalet-quote-card__role {
    display: block;
}

/* Full body color: the 75% secondary color is too faint on tinted panels. */
.vavalet-quote-card__role {
    font-size: 0.9rem;
}

/* FAQ: collapsible */
.vavalet-faq__item {
    border-bottom: 1px solid var(--bs-border-color);
}

.vavalet-faq__question {
    cursor: pointer;
    font-weight: 700;
    padding: 1rem 2rem 1rem 0;
    position: relative;
    list-style: none;
}

.vavalet-faq__question::-webkit-details-marker {
    display: none;
}

.vavalet-faq__question::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--bs-primary);
}

.vavalet-faq__item[open] > .vavalet-faq__question::after {
    content: "\2212";
}

.vavalet-faq__question:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.vavalet-faq__answer {
    padding-bottom: 1rem;
}

/* ---- Edit mode ----
   Sticky positioning and shadows on the header cover Concrete's toolbar and
   area menus. Keep things static while editing. */

html.ccm-edit-mode .vavalet-header {
    position: static;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .vavalet-header,
    .vavalet-header__toggle-bar {
        transition: none;
    }
}

/* ---- Error pages (page_not_found.php, application/themes/core/error.php) ---- */
.vavalet-error-page {
    text-align: center;
}

.vavalet-error-page__code {
    margin: 0;
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--bs-primary);
    opacity: 0.2;
}

.vavalet-error-page__title {
    margin: 0.5rem 0 1rem;
}

.vavalet-error-page__text {
    max-width: 36rem;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
}

.vavalet-error-page__detail {
    max-width: 36rem;
    margin: 0 auto 2rem;
    color: var(--bs-secondary-color);
}

.vavalet-error-page__search {
    display: flex;
    gap: 0.5rem;
    max-width: 28rem;
    margin: 0 auto 2rem;
}

.vavalet-error-page__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* ---- Brand ----
   Written by the style-guide skill from ../style-guide.json. It's last in
   the file so its values win. Edit style-guide.json and re-run the skill
   instead of changing this block by hand. */
/* Grids that follow each other (the gallery's rows) read as one section. */
.vavalet-card-grid + .vavalet-card-grid {
    padding-top: 0;
}

/* ---- Old-site look (replica of the 2015 concrete5 site) ----
   One scrolling page: grey menu bar, photo sections with fixed backgrounds,
   brushed-blue bars, dark see-through panels, grey contact band, black footer. */

.theme-vavalet .vavalet-header {
    border-bottom: 0;
    padding: 0.25rem 0;
    --vavalet-header-height: 52px;
}

.theme-vavalet .vavalet-header a,
.theme-vavalet .vavalet-header .nav-link {
    color: #fff;
}

.theme-vavalet .vavalet-header .nav-link {
    font-size: 17px;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
    letter-spacing: 0;
}

.theme-vavalet .vavalet-header .nav-link:hover,
.theme-vavalet .vavalet-header .nav-link:focus {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.vavalet-header-quote {
    margin: 0;
    font-size: 17px;
    text-transform: uppercase;
}

.vavalet-header-quote a {
    text-decoration: none;
}

.vavalet-header-quote a:hover {
    text-decoration: underline;
}

/* Section anchors land below the sticky menu bar. */
.theme-vavalet [id] {
    scroll-margin-top: 64px;
}

/* The home page has no gap above the footer. */
.theme-vavalet .vavalet-footer {
    margin-top: 0;
    font-size: 14px;
    padding-top: 2rem;
}

.theme-vavalet .vavalet-footer h2.h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

.vavalet-footer .ccm-image-block,
.vavalet-footer picture img {
    margin: 0 auto;
}

.vavalet-powered,
.vavalet-powered a {
    color: #c0c0c0 !important;
}

.theme-vavalet .vavalet-footer :is(p, li) a:not(.btn) {
    text-decoration: none;
}

/* Photo sections: the image block in "Background" fills the section and stays
   fixed while the page scrolls (clip-path keeps it inside the section). */
.vavalet-photo {
    position: relative;
    isolation: isolate;
    clip-path: inset(0);
    color: #fff;
    background: #222;
}

.vavalet-photo__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.vavalet-photo__bg img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    object-fit: cover;
}

/* While editing, the background image is an ordinary block at the top. */
.vavalet-photo--editing {
    clip-path: none;
}

.vavalet-photo--editing .vavalet-photo__bg {
    position: static;
    z-index: auto;
}

.vavalet-photo--editing .vavalet-photo__bg img {
    position: static;
    width: 240px;
    height: auto;
}

.vavalet-photo :is(h2, h3, a) {
    color: #fff;
}

.vavalet-photo h2 {
    text-align: center;
    font-size: 44px;
    font-weight: 400;
    margin: 0 0 1.25rem;
}

.vavalet-photo h3 {
    font-size: 18px;
    font-weight: 400;
}

.vavalet-banner {
    padding: 56px 0;
    text-align: center;
}

.vavalet-banner__content img {
    display: inline-block;
    max-width: min(418px, 80vw);
    height: auto;
}

.vavalet-photo-columns,
.vavalet-photo-split {
    padding: 30px 0;
}

.vavalet-photo-columns {
    font-size: 16px;
}

.vavalet-photo-split {
    font-size: 14px;
}

.theme-vavalet .vavalet-panel {
    background: rgba(1, 1, 1, 0.6);
    border-radius: 0;
    padding: 15px;
    margin: 0;
}

.vavalet-panel p:last-child {
    margin-bottom: 0;
}

.vavalet-scroller {
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    max-height: 145px;
    overflow-y: scroll;
    padding: 10px;
}

.vavalet-scroller a {
    color: var(--bs-link-color) !important;
}

.vavalet-photo-three {
    padding: 30px 0;
    text-align: center;
}

/* The social row's texture scrolls with the page and stretches to fit, as before. */
.vavalet-photo-three:not(.vavalet-photo--editing) .vavalet-photo__bg img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.vavalet-photo-three .container img {
    display: inline-block;
    width: auto;
    max-height: 89px;
}

/* Brushed-blue bars ("Request a Quote", "VA Valet In Action"). */
.vavalet-bar {
    background: #1d3fb0 url("../images/bluebar.jpg") center / 100% 100%;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 30px;
    line-height: 1.2;
}

.vavalet-bar :is(p, h2) {
    margin: 0;
    font-size: 30px;
    font-weight: 400;
    color: #fff;
}

.theme-vavalet .vavalet-bar a,
.theme-vavalet main .vavalet-bar p a:not(.btn) {
    color: #fff;
    text-decoration: none;
}

.theme-vavalet .vavalet-bar a:hover {
    text-decoration: underline;
}

/* Full-width slides with arrows and dots. */
.vavalet-slider .ccm-image-slider-container {
    margin: 0;
    padding: 0;
}

/* Slide titles are the photos' alt text, not captions. */
.vavalet-slider .ccm-image-slider-text {
    display: none;
}

.vavalet-slider .rslides img {
    width: 100%;
    height: auto;
}

/* Grey contact band and the quote form. */
.vavalet-gray {
    background: #757575;
    color: #fff;
    padding: 14px 14px 40px;
}

.vavalet-gray h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 400;
    color: #fff;
}

.vavalet-gray__form {
    max-width: 560px;
    margin: 0 auto;
    font-size: 18px;
}

.vavalet-gray__form :is(label, .form-label, legend, .control-label) {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
}

.vavalet-gray__form .text-muted,
.vavalet-gray__form .form-text {
    color: #fff !important;
}

.vavalet-gray__form :is(input, select, textarea) {
    border-radius: 0;
}

.vavalet-gray__form .alert-success {
    font-size: 16px;
}

.vavalet-gray__form .btn,
.vavalet-gray__form [type="submit"] {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
}

/* The home page: the Hero area holds every section; Main stays empty. */
.page-template-home .vavalet-main > .container:empty {
    display: none;
}

/* style-guide:start */
:root {
    --brand-va-blue: #183bab; /* links and highlights on the old site */
    --brand-deep-blue: #1d0977; /* headings on the old site */
    --brand-bar-blue: #1260a6; /* the blue bars / quote band */
    --brand-cyan: #00d2ed; /* used once on the old site (a button) */
    --brand-bar-gray: #757575; /* header and content bars */
    --brand-font-body: effra, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --brand-font-headings: effra, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --brand-font-ui: effra, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.theme-vavalet {
    --vavalet-header-bg: #757575;
    --vavalet-header-color: #ffffff;
    --vavalet-nav-active: #ffffff;
    --vavalet-hello-bg: #183bab;
    --vavalet-hello-color: #ffffff;
    --vavalet-footer-bg: #000000;
    --vavalet-footer-color: #ffffff;
    --vavalet-footer-link: #ffffff;
}

.theme-vavalet .btn, .theme-vavalet .vavalet-header__menu .nav-link, .theme-vavalet .vavalet-eyebrow {
    font-family: effra, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
/* style-guide:end */
