/********** Template CSS **********/

/* Custom Color Theme for Sun Printers */
/**
 * CSS Custom Properties - Color Variables
 * 
 * Primary Colors:
 * --primary-color: #f59e0b          Used for primary buttons, links, and accent elements
 * --hover-orange: #e68900           Used for hover states on primary interactive elements
 * 
 * Background Colors:
 * --dark-bg: #120a0a                Used for dark themed backgrounds and main container
 * --light-bg: #d78080               Used for light colored sections and alternating backgrounds
 * --secondary-bg: #f8f9fa           Used for secondary content areas and cards
 * --tertiary-bg: #e9ecef            Used for tertiary sections and subtle background divisions
 * --footer: #f8f9fa                 Used for footer background (same as secondary-bg)
 * 
 * Text Colors:
 * --primary-text: #dee2e6           Used for primary body text and main content
 * --secondary-text: #c1dcf4         Used for secondary text, captions, and sub-headings
 * 
 * Form Elements:
 * --input-bg: #ffffff               Used for input field and form control backgrounds
 * --input-border: #dee2e6           Used for input field borders and form control borders
 */
:root {
    --primary-color: #f59e0b;
    --light-bg: #d78080;
    --secondary-bg: #ffffff;
    --tertiary-bg: #eff4f7;
    --primary-text: #dee2e6;
    --secondary-text: #ffffff;
    --footer: #f8f9fa;
    --input-bg: #ffffff;
    --input-border: #b20a85;
    --hover-orange: #e68900;

    /* ✅ ADD THIS (missing variable fix) */
    --dark-bg: #120a0a;
}

/* Override Bootstrap variables */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-text) !important;
}

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

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

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-text) !important;
}

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

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

.bg-dark {
    background-color: var(--dark-bg) !important;
}

.bg-secondary {
    background-color: var(--secondary-bg) !important;
}

/* Navbar styling */
.navbar {
    background-color: transparent !important;
}

.navbar.bg-dark {
    background-color: var(--dark-bg) !important;
}

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

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

/* Section backgrounds */
.container-fluid.bg-secondary {
    background-color: var(--secondary-bg) !important;
}

.container-fluid.py-5.bg-secondary {
    background-color: var(--tertiary-bg) !important;
}

.container-fluid.bg-dark {
    background-color: var(--dark-bg) !important;
}

/* Service items */
.service-item.service-item-left,
.service-item.service-item-right {
    background: linear-gradient(to right, var(--secondary-bg), var(--dark-bg)) !important;
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        background: linear-gradient(to bottom, var(--secondary-bg), var(--dark-bg)) !important;
    }
}

/* Footer */
.footer {
    background-color: var(--footer) !important;
}

.footer .text-light {
    color: var(--secondary-text) !important;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* Form styling */
.form-control {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--primary-text) !important;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25) !important;
}

.form-floating label {
    color: var(--primary-color) !important;
}

/* Text colors */
.text-body {
    color: var(--secondary-text) !important;
}

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

/* List group items */
.list-group-item {
    background-color: var(--dark-bg) !important;
    border-color: var(--secondary-bg) !important;
    color: var(--secondary-text) !important;
}

/* Table styling */
.table-dark {
    background-color: var(--dark-bg) !important;
}

.table-dark td,
.table-dark th {
    border-color: var(--secondary-bg) !important;
    color: var(--secondary-text) !important;
}

/* Owl carousel dots */
.testimonial-carousel .owl-dots .owl-dot {
    background: var(--dark-bg) !important;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    background: var(--primary-color) !important;
}

.testimonial-carousel .owl-dots .owl-dot img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dark-bg);
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    border-color: var(--primary-color);
}

/* Back to top button */
.back-to-top {
    background-color: var(--primary-color) !important;
    color: var(--primary-text) !important;
}

.back-to-top:hover {
    background-color: var(--hover-orange) !important;
}

/* Spinner */
.spinner-grow {
    color: var(--primary-color) !important;
}

/* Icons */
.fa-check-circle {
    color: var(--primary-color) !important;
}

/* WhatsApp button styling */
.btn-whatsapp {
    background-color: transparent !important;
    border: 2px solid var(--primary-text) !important;
    color: var(--primary-text) !important;
}

.btn-whatsapp:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-text) !important;
}

/* Floating buttons */
.floating-btn {
    background-color: var(--primary-color) !important;
    color: var(--primary-text) !important;
    border: none !important;
}

.floating-btn:hover {
    background-color: var(--hover-orange) !important;
}

.floating-whatsapp {
    background-color: #25d366 !important;
    color: var(--primary-text) !important;
}

.floating-whatsapp:hover {
    background-color: #128c7e !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    background-color: var(--primary-color);
    color: var(--primary-text);
    border-radius: 50px;
    width: 55px;
    height: 55px;
    transition: .5s;
}

.back-to-top:hover {
    background-color: var(--hover-orange);
    color: var(--primary-text);
}

/* WhatsApp float button */
.whatsapp-float {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 110px;
    z-index: 99;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    width: 55px;
    height: 55px;
    transition: .5s;
    border: 2px solid #25d366;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
}


/*** 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: 600;
    transition: .5s;
    border-radius: 50px;
}

.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: inherit;
}

.btn-primary {
    color: var(--bs-white);
}


/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

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

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 550px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 200px;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-1.jpg) top center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-white);
}


/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 1px solid var(--bs-white);
}

/* Fix for white background sections */
.bg-secondary .title .title-left h5,
.bg-secondary .title .title-center h5,
.bg-secondary .title .title-right h5,
.bg-secondary .title .title-left h1,
.bg-secondary .title .title-center h1,
.bg-secondary .title .title-right h1 {
    color: #000000;
}

.bg-secondary .title .title-left h5::after,
.bg-secondary .title .title-center h5::before,
.bg-secondary .title .title-center h5::after,
.bg-secondary .title .title-right h5::before,
.bg-secondary .title .title-left h1,
.bg-secondary .title .title-center h1,
.bg-secondary .title .title-right h1 {
    border-color: #000000;
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 1rem solid rgba(0, 0, 0, .5);
    border-radius: 50%;
    z-index: 1;
}

@media (max-width: 767.98px) {
    .service-item .service-img::before {
        border-width: 0.5rem;
    }
}

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

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

.service-item-left .service-text p {
    color: var(--secondary-text) !important;
}

.service-item-right .service-text p {
    color: var(--dark-bg) !important;
}

.small-service .service-text {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        text-align: center;
    }
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.team-item .team-name {
    position: absolute;
    width: 100%;
    height: auto;
    min-height: 60px;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.9);
    padding: 10px;
    text-align: center;
}

.team-item .team-body {
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.team-item .team-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: .5s;
    padding: 15px;
}

.team-item .team-body .team-after {
    left: auto;
    right: 0;
}

.team-item .team-body .team-before {
    text-align: right;
}

.team-item:hover .team-body .team-before,
.team-item:hover .team-body .team-after {
    width: 50%;
}

.team-item .team-body .team-before span,
.team-item .team-body .team-after span {
    margin: 5px;
    color: var(--bs-white);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-body .team-before span,
.team-item:hover .team-body .team-after span {
    opacity: 1;
    transition-delay: .2s;
}

@media (max-width: 768px) {
    .team-item .team-body {
        min-height: 200px;
    }
    
    .team-item .team-name {
        min-height: 50px;
        padding: 8px;
    }
    
    .team-item .team-name h5 {
        font-size: 14px;
    }
    
    .team-item:hover .team-body .team-before,
    .team-item:hover .team-body .team-after {
        width: 100%;
    }
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    transition: .5s;
    opacity: 0.5;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
	0% {
        background-position: 0 0;
    }

	100% {
        background-position: -1000px 0;
    }
}

.footer {
	background-image: url(printingpress\img\footer.jpg);
	background-position: 0px 0px;
    background-repeat: repeat-x;
	animation: footerAnimatedBg 50s linear infinite;
}