/* Slider CSS */

#slide-container {
    display: grid;
    background-color: var(--colour1);
    overflow: hidden;
}

@media(min-width: 992px) {
    #slide-container {

        overflow: hidden;
        align-content: baseline;
    }
}

@media(min-width: 1400px) {
    #slide-container {
        align-content: center;
        height: 624px;
    }
}

/* - */



/* - */

.slide {
    display: grid;
    width: 100%;
    max-width: 100vw;
}

/* - */

.slide-img {
    display: grid;

    grid-row: 1;
    grid-column: 1;
    z-index: 1;

    align-self: center;
    justify-self: center;
    opacity: 0.65;
}

@media(min-width: 768px) {}

/* - */

.slide-img-d {
    display: none;
    width: 100%;
}

@media(min-width: 992px) {
    .slide-img-d {
        display: grid;
    }
}

/* - */

.slide-img-m {
    display: grid;
    width: 100%;
}

@media(min-width: 992px) {
    .slide-img-m {
        display: none;
    }
}

/* - */



/* - */

.slide-txt {
    display: grid;

    grid-row: 1;
    grid-column: 1;

    z-index: 2;

    grid-gap: 20px;
    width: 65%;
    align-self: center;
    justify-self: center;
    padding-top: 32px;

}

@media(min-width: 768px) {
    .slide-txt {
        align-self: center;
        justify-self: center;
        width: 750px;

    }
}

@media(min-width: 992px) {
    .slide-txt {
        /* justify-self: start; */
        width: 950px;
        padding: 0;
    }
}

@media(min-width: 1200px) {
    .slide-txt {
        grid-gap: 32px;
        width: 1200px;
    }
}

/* - */

.slide-txt h2 {
    color: white;
    font-size: 40px;
    text-align: center;
    justify-self: center;
}

@media(min-width: 1200px) {
    .slide-txt h2 {
        font-size: 50px;
    }
}

.slide-txt p {
    font-size: 18px;
    text-align: center;
    justify-self: center;
}


@media(min-width: 1200px) {
    .slide-txt p {
        width: 60%;
    }
}

.slide-txt .btn {
    font-weight: 300;
    letter-spacing: 1px;
    background-color: #222;
    border-radius: 32px;
}

.slide-txt .btn h4 {
    color: #e9e9e9;
    border-radius: 32px;
}

.slide-txt .btn::before {
    border-radius: 32px;
    border: 0px solid var(--colour2);
}


.slide-txt .btn:hover::before {
    border: 2px solid var(--colour2);
}

/*
.slide-txt .btn
{
	color: #fff;
	background-color: #222;
	
	padding: 20px 32px;
	border-radius: 32px;
	
	justify-self: start;
	text-decoration: none;	
}




.slide-txt .btn:hover
{
	background-color: var( --colour1 );
}
*/




/* slides */

.slide-container {
    display: grid;
    width: 100%;
    background-image: url('../img/slide-bg.jpg');
    background-attachment: fixed;
    background-position: center center;
    background-color: #111;
    background-repeat: no-repeat;
    background-size: cover;

    min-height: 400px;
}

.slide {
    grid-row: 1;
    grid-column: 1;
    opacity: 1;
    transition: opacity ease .5s;
    z-index: 3;
}

.opacity-0 {
    opacity: 0 !important;
    z-index: 1;
}





.slide-arrow {
    color: #222;
    font-size: 32px;
    grid-row: 1;
    grid-column: 1;
    z-index: 6;

    align-self: center;
    margin: 32px;

    transition: opacity .5s ease;
}

.slide-arrow:hover {
    cursor: pointer;
    opacity: 0.5;
}

.slide-left {
    justify-self: start;
}

.slide-right {
    justify-self: end;
}










.slide-dots {
    display: grid;
    grid-gap: 8px;
    justify-content: center;
    justify-self: center;
    align-self: end;
    z-index: 6;
    grid-row: 1;
    grid-column: 1;
    margin-bottom: 40px;
}

@media(min-width: 1280px) {
    .slide-dots {
        margin-bottom: 0px;
        margin-top: 550px;
        align-self: center;
    }
}

.slide-dot {
    grid-row: 1;
    width: 8px;
    height: 8px;
    border-radius: 16px;
    border: #222 solid 1px;
    align-self: center;
}

.slide-dot:hover {
    cursor: pointer;
    border-color: var(--colour1);
}

.active-slide-dot {
    background-color: var(--colour1);
    border-color: #222;
    /*border: none;*/
}


/* ===== Hero banner (matches live site): 4 slides, 5s each, fade + Ken Burns zoom-in ===== */

#hero-banner {
    position: relative;
    display: grid;
    place-items: center;
    height: 420px;
    overflow: hidden;
    background-color: #000;
}

@media(min-width: 992px) {
    #hero-banner { height: 520px; }
}

@media(min-width: 1400px) {
    #hero-banner { height: 624px; }
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    animation: heroSlide 20s linear infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }

/* each slide: 0.5s fade in, visible to 5s, 0.5s fade out (25% = 5s of 20s) */
@keyframes heroSlide {
    0%    { opacity: 0; transform: scale(1); }
    2.5%  { opacity: 1; }
    25%   { opacity: 1; }
    27.5% { opacity: 0; transform: scale(1.15); }
    100%  { opacity: 0; transform: scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 24px;
    padding: 0 16px;
}

.hero-logo-box {
    width: 382px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-top: 15px solid #000;
}

.hero-logo-box img {
    display: block;
    width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: none; }
    .hero-slide:first-child { opacity: 1; }
}
