/********** Template CSS **********/
:root {
    --primary: #C49A58;
    --light: #FBF7F2;
    --dark: #171411;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1,
    .header-carousel .owl-carousel-item h2 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title h1 {
    position: relative;
    display: inline-block;
    padding: 0 60px;
}

.section-title.text-start h1 {
    padding-left: 0;
}

.section-title h1::before,
.section-title h1::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 5px;
    bottom: 0;
    background: var(--dark);
}

.section-title h1::before {
    left: 0;
}

.section-title h1::after {
    right: 0;
}

.section-title.text-start h1::before {
    display: none;
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item img {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.1);
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    background: rgba(53, 53, 53, .7);
    transition: .5s;
}

.portfolio-item:hover .portfolio-overlay {
    width: 100%;
    height: 100%;
    left: 0;
}

.portfolio-item .portfolio-overlay .btn {
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay .btn {
    opacity: 1;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 38px;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover .team-social {
    left: 0;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    border: 5px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}


/*** Stephcrea custom ***/
body {
    font-family: "Open Sans", Arial, sans-serif;
    color: #4D4640;
    background: #FFFFFF;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand h2,
.brand-name {
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: 0;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary,
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover,
.btn-outline-primary:hover {
    background-color: #171411 !important;
    border-color: #171411 !important;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.topbar {
    border-bottom: 1px solid rgba(196, 154, 88, .2);
}

.topbar-link,
.contact-panel a,
.footer p a {
    color: inherit;
}

.topbar-link:hover,
.contact-panel a:hover,
.footer p a:hover {
    color: var(--primary);
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.navbar-light .navbar-brand {
    min-width: 235px;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.navbar-light .navbar-nav .nav-link {
    color: #171411;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.header-carousel .owl-carousel-item {
    min-height: 760px;
}

.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 760px;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(23, 20, 17, .9) 0%, rgba(23, 20, 17, .62) 46%, rgba(23, 20, 17, .42) 100%),
        radial-gradient(circle at center, rgba(196, 154, 88, .2), transparent 52%);
}

.hero-overlay h1 {
    text-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.section-title h1 {
    color: #171411;
}

.section-title h2 {
    color: #171411;
}

.icon-box {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(196, 154, 88, .35);
}

.feature-number {
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 700;
}

.metric-word {
    font-family: "Playfair Display", Georgia, serif;
    font-size: calc(1.325rem + .9vw);
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 1200px) {
    .metric-word {
        font-size: 2rem;
    }
}

.icon-box-sm {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(196, 154, 88, .35);
}

.service-item {
    height: 100%;
    background: #FFFFFF;
    box-shadow: 0 12px 36px rgba(23, 20, 17, .08);
    display: flex;
    flex-direction: column;
}

.service-item img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.service-item .p-4 {
    flex: 1;
}

.service-item h4 {
    color: #171411;
}

.production-steps {
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF7F2 100%);
}

.step-card {
    height: 100%;
    padding: 34px;
    background: #FFFFFF;
    border: 1px solid rgba(196, 154, 88, .28);
    box-shadow: 0 14px 34px rgba(23, 20, 17, .07);
}

.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    color: #171411;
    background: #FBF7F2;
    border: 1px solid rgba(196, 154, 88, .55);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
}

.step-card h4 {
    color: #171411;
}

.step-card p {
    margin-bottom: 0;
}

.facts {
    background:
        linear-gradient(rgba(23, 20, 17, .94), rgba(23, 20, 17, .94)),
        url("../img/stephcrea-logo.jpg") center/cover;
}

.portfolio-grid {
    align-items: stretch;
}

.portfolio-card {
    position: relative;
    display: block;
    height: 360px;
    overflow: hidden;
    color: #FFFFFF;
    background: #171411;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, opacity .5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
    opacity: .82;
}

.portfolio-card span {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 2;
    padding: 10px 16px;
    color: #171411;
    background: rgba(251, 247, 242, .92);
    font-weight: 700;
}

.portfolio-card-wide {
    height: 470px;
}

.portfolio-card-panorama img {
    object-position: center;
}

.gallery-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #171411;
}

.gallery-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-hero-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 520px;
    align-items: center;
    background: linear-gradient(90deg, rgba(23, 20, 17, .88) 0%, rgba(23, 20, 17, .62) 50%, rgba(23, 20, 17, .2) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 245px;
    gap: 24px;
}

.gallery-card {
    position: relative;
    display: block;
    overflow: hidden;
    color: #FFFFFF;
    background: #171411;
    box-shadow: 0 16px 38px rgba(23, 20, 17, .14);
}

.gallery-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-card-wide {
    grid-column: span 2;
}

.gallery-card-tall {
    grid-row: span 2;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, opacity .5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
    opacity: .82;
}

.gallery-card span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    padding: 9px 14px;
    color: #171411;
    background: rgba(251, 247, 242, .92);
    font-weight: 700;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 32px;
    text-align: left;
    border: 1px solid rgba(196, 154, 88, .45);
}

.brand-card img {
    width: 210px;
    height: 210px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.brand-card span {
    position: static;
    display: inline-block;
    margin-bottom: 14px;
}

.brand-card p {
    max-width: 310px;
    margin: 0;
    color: #F5F1EA;
}

.contact-panel {
    padding: 42px;
    background: #FBF7F2;
    border-left: 5px solid var(--primary);
    box-shadow: 0 16px 44px rgba(23, 20, 17, .09);
}

.legal-page {
    background: #FFFFFF;
}

.legal-section {
    margin-bottom: 34px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(196, 154, 88, .28);
}

.legal-section h2 {
    margin-bottom: 18px;
    color: #171411;
}

.legal-section p {
    margin-bottom: 10px;
}

.legal-section a {
    color: inherit;
}

.legal-section a:hover {
    color: var(--primary);
}

.footer {
    background: #171411 !important;
}

.footer .btn.btn-link:hover,
.footer a:hover {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-brand {
        min-width: auto;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .navbar-brand h2,
    .brand-name {
        font-size: 24px;
    }

    .brand-card {
        flex-direction: column;
        text-align: center;
    }

    .brand-card p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        min-height: 620px;
    }

    .header-carousel .owl-carousel-item img {
        height: 620px;
    }

    .hero-overlay {
        background: linear-gradient(rgba(23, 20, 17, .78), rgba(23, 20, 17, .78));
    }

    .header-carousel .owl-carousel-item h1,
    .header-carousel .owl-carousel-item h2 {
        font-size: 34px;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }

    .service-item img,
    .portfolio-card,
    .portfolio-card-wide {
        height: 320px;
    }

    .gallery-hero,
    .gallery-hero-overlay {
        min-height: 500px;
    }

    .gallery-hero-overlay {
        background: linear-gradient(rgba(23, 20, 17, .78), rgba(23, 20, 17, .78));
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 320px;
    }

    .gallery-card-large,
    .gallery-card-wide,
    .gallery-card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .contact-panel {
        padding: 28px;
    }
}

@media (min-width: 769px) and (max-width: 1199.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
