/* Towne Restoration — home page hero slider + sticky pre-header
 * (replaces Smart Slider 3 and the Sticky Menu plugin) */

/* sticky pre-header */
header.preheader.stuck { position: fixed; top: 0; left: 0; right: 0; z-index: 2; }

/* hero slider: 1400x500 design, scales with the page like the old slider did */
.entry-content > .hero-slider { max-width: 100%; padding: 0; margin: 0; }
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1400 / 500;
    overflow: hidden;
    background: #000;
    font-size: clamp(8px, 1.1428vw, 16px);
    font-family: Roboto, Arial, sans-serif;
    color: #fff;
}
.hero-slide {
    position: absolute; inset: 0;
    display: none;
    background-size: cover;
    background-position: 50% 65%;
    background-repeat: no-repeat;
    transition: transform .8s cubic-bezier(.25,.46,.45,.94);
    transform: translateX(0);
}
.hero-slide.is-active { display: block; }
.hero-slide.enter-right { transform: translateX(100%); transition: none; }
.hero-slide.enter-left  { transform: translateX(-100%); transition: none; }
.hero-slide.leave-left  { transform: translateX(-100%); }
.hero-slide.leave-right { transform: translateX(100%); }
.hero-inner {
    box-sizing: border-box;
    height: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.hero-slide--reverse .hero-inner { flex-direction: row-reverse; }
.hero-col { box-sizing: border-box; padding: 10px; display: flex; justify-content: center; }
.hero-col--box { width: 35%; }
.hero-col--text { width: 65%; }
.hero-box {
    box-sizing: border-box;
    width: 100%;
    max-width: 475px;
    padding: 30px;
    background: rgba(0, 0, 0, .8);
}
.hero-box-inner {
    border: 1px solid #fff;
    padding: 50px 50px 31px;
    text-align: center;
}
.hero-slider h1.hero-title,
.hero-title {
    margin: 0;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 250%;
    font-weight: 900;
    line-height: 1.2;
    text-transform: none;
}
.hero-text {
    margin: 10px 0 0;
    font-size: 175%;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
}
.hero-btn, .dhmain .hero-btn {
    display: inline-block;
    margin: 20px 0 0;
    padding: 10px 30px;
    background: rgba(14, 99, 190, .91);
    color: #fff;
    font-size: 112.5%;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}
.hero-btn:hover, .hero-btn:focus, .hero-btn:active { background: rgba(14, 99, 190, 1); color: #fff; }
.hero-tagline {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 225%;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    text-shadow: 3px 3px 2px rgba(0, 0, 0, 1);
}
@media (max-width: 700px) {
    /* phones: the two columns stack (as the old slider did) and the slide grows to fit */
    .hero-slider { aspect-ratio: auto; font-size: 12px; }
    .hero-slide { position: relative; inset: auto; transform: none !important; transition: none; }
    .hero-inner { flex-wrap: wrap; padding: 20px 10px; gap: 10px; }
    .hero-slide--reverse .hero-inner { flex-direction: column-reverse; }
    .hero-col--box, .hero-col--text { width: 100%; }
    .hero-box { max-width: none; padding: 20px; }
    .hero-box-inner { padding: 30px 20px; }
}
