/* ==========================================================================
   Provision Test 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-scprovtest {
    --scprovtest-header-height: 72px;
    --scprovtest-header-bg: var(--bs-body-bg);
    --scprovtest-header-color: var(--bs-body-color);
    --scprovtest-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. */
    --scprovtest-nav-active: var(--bs-link-color);
    --scprovtest-hello-bg: var(--bs-primary);
    --scprovtest-hello-color: #fff;
    --scprovtest-footer-bg: var(--bs-dark-accent, #0f172a);
    --scprovtest-footer-color: #cbd5e1;
    --scprovtest-footer-link: #fff;
    --scprovtest-footer-legal-bg: rgba(0, 0, 0, 0.25);
    --scprovtest-panel-bg: var(--bs-tertiary-bg);
    --scprovtest-radius: 0.75rem;
    --scprovtest-section-y: 4rem;
    --scprovtest-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-scprovtest {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

/* Fills the area outside the wrapper (overscroll, short pages). */
body.scprovtest-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-scprovtest :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) ---- */

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

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

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

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

.scprovtest-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-scprovtest .btn-outline-primary {
    --bs-btn-color: var(--bs-link-color);
}

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

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

.theme-scprovtest[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 ---- */

.scprovtest-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 ---- */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.scprovtest-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-scprovtest .scprovtest-footer {
    padding: 3rem 0 0;
}

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

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

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

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

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

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

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

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

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

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

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

/* Tall cut-outs (portrait PNGs) shouldn't stretch the hero. */
.scprovtest-hero__media img {
    width: auto;
    max-width: 100%;
    max-height: var(--scprovtest-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. */
.scprovtest-cta-band {
    text-align: center;
}

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

.scprovtest-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. */
.scprovtest-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;
}

.scprovtest-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.scprovtest-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 .scprovtest-header {
    position: static;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .scprovtest-header,
    .scprovtest-header__toggle-bar {
        transition: 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. */
/* style-guide:start */
/* style-guide:end */
/* real dev upload test */
