/********** Template CSS **********/
:root {
    --primary: #06a6a4;
    --secondary: #274146;
    --light: #E0F2F1;
    --dark: #1a2d31;
}

/* Override Bootstrap Colors */
.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.border-primary {
    border-color: var(--primary) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}

[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary,
.btn-primary:hover,
.btn-secondary:hover {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item img {
    height: 600px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .carousel-item,
    .carousel-item img {
        height: 400px;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 15, 45, .5);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 12px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 24px;
        font-weight: 600 !important;
    }

    .carousel-caption .p-3 {
        padding: 1rem !important;
    }
}

@media (max-width: 768px) {
    .carousel-caption h5 {
        font-size: 14px;
    }

    .carousel-caption h1 {
        font-size: 28px;
    }
}

/* Responsive Typography */
@media (max-width: 576px) {
    .display-1 {
        font-size: 2.5rem !important;
    }

    .display-5 {
        font-size: 2rem !important;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }
}

/* Responsive Navbar */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 40px !important;
    }

    .nav-contact {
        margin-left: 0 !important;
        margin-top: 10px;
        text-align: center;
    }
}

/* Responsive Spacing */
@media (max-width: 768px) {
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .service-item .position-relative {
        padding: 2rem !important;
    }

    .service-item i {
        font-size: 3rem !important;
    }

    .btn-square {
        width: 50px !important;
        height: 50px !important;
    }

    .btn-square i {
        font-size: 1.5rem !important;
    }
}

/* Responsive Contact & Footer */
@media (max-width: 576px) {
    .bg-light.rounded.p-5,
    .bg-white.rounded.p-5 {
        padding: 2rem !important;
    }

    .d-flex.align-items-center i.fs-1 {
        font-size: 2rem !important;
    }

    .btn-lg-square {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }
}

/* Responsive Grid */
@media (max-width: 576px) {
    .col-sm-6.wow {
        margin-bottom: 1rem;
    }

    .bg-primary.d-flex.flex-column,
    .bg-secondary.d-flex.flex-column {
        height: 150px !important;
        padding: 1.5rem !important;
    }

    .bg-primary.d-flex.flex-column i,
    .bg-secondary.d-flex.flex-column i {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Responsive Images */
@media (max-width: 768px) {
    .col-lg-5[style*="min-height"] {
        min-height: 300px !important;
    }

    .position-absolute.w-100.h-100 {
        position: relative !important;
    }
}

/* Dropdown Menu Mobile Fix */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 10px;
        margin-top: 10px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
}

/* Table Responsive */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* List Items Responsive */
@media (max-width: 576px) {
    .list-unstyled li {
        font-size: 0.9rem;
    }

    ul.list-unstyled {
        padding-left: 0;
    }
}

/* Hero/Page Header Responsive */
@media (max-width: 768px) {
    .hero-header,
    .bg-primary.hero-header {
        padding: 80px 0 !important;
    }

    .hero-header h1.display-1 {
        font-size: 2rem !important;
    }

    .hero-header h5 {
        font-size: 1rem !important;
    }
}

/* Button Responsive */
@media (max-width: 576px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn.py-3 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .btn.px-5 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Form Responsive */
@media (max-width: 576px) {
    input.form-control,
    textarea.form-control {
        font-size: 14px;
    }
}

/* Overflow Fix */
@media (max-width: 991.98px) {
    body {
        overflow-x: hidden;
    }

    .container-fluid {
        overflow-x: hidden;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.carousel-indicators {
    align-items: flex-end;
}

.carousel-indicators [data-bs-target] {
    width: 5px;
    height: 25px;
}

.carousel-indicators .active {
    height: 45px;
}

.hero-header {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}

.service-item div {
    z-index: 1;
}

.service-item div::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 2px 2px 0 0;
    transition: .5s;
    z-index: -1;
}

.service-item div:hover::after {
    width: 100%;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}

.bg-offer {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-2.jpg) top right no-repeat;
    background-size: cover;
}

.testimonial-carousel .owl-dots {
    height: 45px;
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 5px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.blog-date {
    position: absolute;
    width: 90px;
    height: 65px;
    top: 75px;
    left: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--secondary);
}

.blog-date::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: -25px;
    left: 0;
    border: 13px solid;
    border-color: transparent #D34351 #D34351 transparent;
    z-index: -1;
}


/********** Dropdown Menu Styles **********/
.navbar-nav .dropdown-menu {
    border: 0;
    border-radius: 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    padding: 0;
}

.navbar-nav .dropdown-item {
    padding: 10px 25px;
    color: #666666;
    transition: 0.3s;
    font-size: 15px;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item.active {
    background: var(--primary);
    color: #FFFFFF;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    transition: 0.3s;
}

.navbar-nav .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        top: 100%;
        transform: translateY(20px);
        transition: 0.3s;
    }

    .navbar-nav .dropdown:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        padding-left: 20px;
    }

    .navbar-nav .dropdown-item {
        padding: 8px 20px;
        background: transparent;
    }

    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
}

/********** Preloader **********/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #E0F2F1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.preloader-logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #E0F2F1;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader-text {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 500;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/********** Accessibility **********/
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Focus Visible Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Improved Button Focus */
.btn:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

/********** WhatsApp Floating Button **********/
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    margin: 0;
    line-height: 60px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
    
    .whatsapp-float i {
        line-height: 50px;
    }
}

/********** Cookie Consent Banner **********/
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 45, 49, 0.98);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 3rem;
    color: var(--primary);
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cookie-text p {
    margin: 0;
    color: #E0F2F1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-link {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn {
    padding: 10px 30px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-icon {
        font-size: 2rem;
    }
    
    .cookie-text {
        min-width: 100%;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-buttons .btn {
        flex: 1;
    }
}