/* Witt Building Company - site-specific components */

:root {
    --color-footer: var(--color-dark);
}

/* ============================================
   HERO SLIDER (home page)
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider__track {
    position: relative;
    min-height: 460px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero-slide--background {
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-slide--background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-slide__inner {
    position: relative;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 0;
    text-align: center;
}

.hero-slide__content h2 {
    color: #fff;
    font-size: 40px;
}

.hero-slide__content .et_pb_button {
    margin-top: 10px;
    border-color: #fff;
    color: #fff;
}

.hero-slide__content .et_pb_button:hover {
    background-color: #fff;
    color: var(--color-tertiary);
}

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    font-size: 32px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    cursor: pointer;
    z-index: 2;
}

.hero-slider__arrow--prev { left: 15px; }
.hero-slider__arrow--next { right: 15px; }

.hero-slider__dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.hero-slider__dot.is-active {
    background: #fff;
}

/* ============================================
   CTA BAND ("client base grew" section)
   ============================================ */
.wb-cta-band {
    background-color: var(--color-dark);
    padding: 60px 0;
    text-align: center;
}

.wb-cta-band__inner {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
}

.wb-cta-band__inner h2 {
    color: #fff;
}

/* ============================================
   PROJECT CARDS (recent projects, building-projects list)
   ============================================ */
.wb-recent-projects,
.wb-project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.wb-project-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--color-border);
}

.wb-project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.wb-project-card__body {
    padding: 15px 18px;
}

.wb-project-card__body h2 {
    font-size: 18px;
    padding-bottom: 4px;
}

.wb-project-card:hover h2 {
    color: var(--color-primary);
}

.wb-project-card__meta {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    padding-bottom: 0;
}

/* ============================================
   GALLERY (image-gallery page, project post galleries)
   ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.gallery__item {
    display: block;
    color: inherit;
    text-decoration: none;
}

.gallery__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery__caption {
    margin-top: 6px;
    font-size: 13px;
    text-align: center;
    color: var(--color-tertiary);
    padding-bottom: 0;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
}

.lightbox__image {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    margin: 0 auto;
}

.lightbox__caption {
    color: #fff;
    text-align: center;
    margin-top: 15px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.lightbox__close { top: 20px; right: 30px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ============================================
   FORMS (get-started)
   ============================================ */
.wb-contact-form {
    max-width: 600px;
}

.wb-form-row {
    margin-bottom: 18px;
}

.wb-form-row label {
    display: block;
    font-weight: 700;
    color: var(--color-tertiary);
    margin-bottom: 6px;
}

.wb-required {
    color: var(--color-primary);
}

.wb-form-row input,
.wb-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 15px;
}

/* ============================================
   MISC
   ============================================ */
.wb-logos-row .sl-row {
    align-items: center;
}

.wb-logos-row img {
    max-width: 150px;
    margin: 0 auto;
}
