/* ========== RESET & BASE STYLES ========== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ========== UTILITY CLASSES ========== */
.width-100 { width: 100%; }
.height-100 { height: 100%; }
.margin-0 { margin: 0; }
.margin-1 { margin: 1rem; }
.margin-top-1 { margin-top: 1rem; }
.margin-top-2 { margin-top: 2rem; }
.margin-bottom-0 { margin-bottom: 0; }
.margin-bottom-1 { margin-bottom: 1rem; }
.margin-bottom-2 { margin-bottom: 2rem; }
.margin-bottom-3 { margin-bottom: 3rem; }
.margin-top-3 { margin-top: 3rem; }
.margin-vertical-0 { margin-top: 0; margin-bottom: 0; }
.margin-vertical-1 { margin-top: 1rem; margin-bottom: 1rem; }
.margin-vertical-3 { margin-top: 3rem; margin-bottom: 3rem; }
.margin-left-1 { margin-left: 1rem; }
.padding-0 { padding: 0; }
.padding-1 { padding: 1rem; }
.padding-top-1 { padding-top: 1rem; }
.padding-top-2 { padding-top: 2rem; }
.padding-bottom-1 { padding-bottom: 1rem; }
.padding-bottom-2 { padding-bottom: 2rem; }
.padding-vertical-0 { padding-top: 0; padding-bottom: 0; }
.text-center { text-align: center; }
.position-relative { position: relative; }
.flex-container { display: flex; }
.align-middle { align-items: center; }
.align-top { align-items: flex-start; }
.align-left { justify-content: flex-start; }
.align-center { justify-content: center; }
.align-right { justify-content: flex-end; }
.align-justify { justify-content: space-between; }
.no-bullet { list-style: none; padding-left: 0; }

/* ========== COLOR UTILITIES ========== */
.color-white { color: #ffffff; }
.dark-bg { background-color: #3C3B6E; }
.black-bg { background-color: #000000; }
.light-bg { background-color: #f5f5f5; }
.white-bg { background-color: #ffffff; }
.grey-bg { background-color: #e8e8e8; }

/* ========== CONTAINER & GRID ========== */
.is-wrapper { width: 100%; }
.is-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.grid-x {
    display: flex;
    flex-wrap: wrap;
}

.grid-padding-x > .cell {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.grid-padding-y > .cell {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.cell {
    flex: 0 0 auto;
    min-width: 0;
}

.cell.full,
.cell.large-12 {
    width: 100%;
}

.cell.large-6 {
    width: 50%;
}

.cell.large-4 {
    width: 33.333%;
}

.cell.large-3 {
    width: 25%;
}

.cell.large-5 {
    width: 41.667%;
}

.cell.large-7 {
    width: 58.333%;
}

.cell.large-8 {
    width: 66.666%;
}

.cell.large-2 {
    width: 16.666%;
}

.cell.auto {
    flex: 1 1 0;
}

/* ========== HEADER STYLES ========== */
#header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

/* Sticky header that appears on scroll */
#header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #d32f2f;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Hide the white top section when sticky */
#header.sticky .hide-on-stick {
    display: none;
}

/* Adjust the navigation when sticky */
#header.sticky .dark-bg {
    background-color: #d32f2f;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#header.sticky .nav-main .menu > li > a {
    padding: 0.75rem 1rem;
}

.logo-container {
    padding: 1rem 0;
}

.logo-container img {
    max-width: 200px;
    margin: 0 auto;
}

.spl-phone {
    color: #d32f2f;
    font-weight: 600;
    font-size: 1.1rem;
}

.spl-phone:hover {
    color: #b71c1c;
}

.icon {
    margin-right: 0.5rem;
}

/* ========== NAVIGATION ========== */
.dark-bg.padding-top-1 {
    background-color: #3C3B6E;
}

.nav-main .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
}

.nav-main .menu > li {
    position: relative;
}

.nav-main .menu > li > a {
    color: #ffffff;
    padding: 1rem 1.25rem;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color .3s;
}

.nav-main .menu > li.has-submenu:hover > a {
    border-bottom-color: transparent;
}

.nav-main .menu > li:not(.has-submenu) > a:hover {
    background-color: transparent;
    border-bottom: 2px solid #fff;
}

.nav-main .menu > li.active > a {
    background-color: transparent;
    border-bottom: 2px solid #fff;
}

.nav-main .menu:hover > li.active > a {
    border-bottom-color: transparent;
}

.nav-main .is-dropdown-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3C3B6E;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 250px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.nav-main .has-submenu:hover .is-dropdown-submenu {
    display: block;
}

.nav-main .is-dropdown-submenu li a {
    transition: border-bottom-color .3s;
    display: inline-block;
    padding: 0.75rem 0.5rem;
}

.nav-main .is-dropdown-submenu li a:hover {
    background-color: transparent;
    border-bottom: 2px solid #fff;
}

/* ========== BUTTONS ========== */
.button {
    background-color: #d32f2f;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    border: 2px solid #d32f2f;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background-color: #FF8C00;
    border-color: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.button.white-btn {
    background-color: #ffffff;
    color: #d32f2f;
    border-color: #ffffff;
}

.button.white-btn:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.cta-link {
    color: #d32f2f;
    font-weight: 600;
    border-bottom: 2px solid #d32f2f;
    transition: all 0.3s;
}

.cta-link:hover {
    color: #b71c1c;
    border-bottom-color: #b71c1c;
}

.cta-link.color-white {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.cta-link.no-case {
    text-transform: none;
}

/* ========== HERO/BANNER SECTION ========== */
.pos-rel-ban {
    position: relative;
    min-height: 400px;
}

.pos-ab-ban {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1rem;
}

.inner-content-div-home {
    background-color: rgba(60, 59, 110, 0.6);
    padding: 2rem;
    border-radius: 8px;
    max-width: 700px;
}

.banner-main-heading {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner-text {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* ========== SECTION HEADINGS ========== */
.section-main-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-main-heading.color-white {
    color: #ffffff;
}

.section-sub-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-sub-heading.color-white {
    color: #ffffff;
}

/* ========== CONTENT SECTIONS ========== */
.is-section {
    padding: 3rem 0;
}

.home-para {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
}

.inner-sub-div {
    background-color: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.inner-sub-div img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    flex-shrink: 0;
}

.inner-sub-div .text {
    flex: 1;
}

/* ========== CARDS ========== */
.is-card {
    background: #fff;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.shadow-1 {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ========== SERVICES SECTION ========== */
.home-services-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.slide-inner-div {
    background-color: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.slide-inner-div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.slide-inner-div img {
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* ========== NEWSLETTER SECTION ========== */
.home-newsletter-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* ========== LOGO GRID ========== */
.logo-slider img {
    max-width: 150px;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.logo-slider img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========== FOOTER ========== */
#footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 2rem 0 1rem;
}

#footer a {
    color: #ffffff;
    transition: color 0.3s;
}

#footer a:hover {
    color: #d32f2f;
}

.icon-div {
    margin-bottom: 0.5rem;
}

.icon-div i {
    width: 20px;
    margin-right: 0.5rem;
}

.social-icon {
    width: 30px;
    height: 30px;
    fill: #ffffff;
    transition: fill 0.3s;
}

.social-icon:hover {
    fill: #d32f2f;
}

#footer hr {
    border: 0;
    height: 1px;
    background-color: #333;
}

.copyright {
    font-size: 0.9rem;
    color: #999;
}

/* ========== MOBILE MENU ========== */
.mobile-sidenav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    z-index: 2001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidenav.is-open {
    left: 0;
}

.sidenav-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: right;
}

.sidenav-header .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
}

.sidenav-header .close-btn:hover {
    color: #d32f2f;
}

.sidenav-content {
    padding: 1rem 0;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu > li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu > li > a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.mobile-menu > li > a:hover {
    background-color: #f5f5f5;
    color: #d32f2f;
}

.mobile-menu .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu .submenu-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.mobile-menu .has-submenu.active .submenu-toggle i {
    transform: rotate(180deg);
}

.mobile-menu .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f5f5f5;
}

.mobile-menu .has-submenu.active .submenu {
    max-height: 500px;
}

.mobile-menu .submenu li a {
    display: block;
    padding: 0.75rem 2rem;
    color: #555;
    font-size: 0.9rem;
    text-decoration: none;
}

.mobile-menu .submenu li a:hover {
    background-color: #e0e0e0;
    color: #d32f2f;
}

.sidenav-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 1rem;
}

.mobile-phone-btn {
    display: block;
    background-color: #d32f2f;
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.mobile-phone-btn:hover {
    background-color: #b71c1c;
}

/* Overlay for mobile menu */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
    pointer-events: auto;
}

.mobile-overlay.active {
    display: block;
    pointer-events: auto;
}

/* ========== RESPONSIVE STYLES ========== */
@media screen and (max-width: 1024px) {
    .cell.large-12,
    .cell.large-6,
    .cell.large-4,
    .cell.large-3,
    .cell.large-5,
    .cell.large-7,
    .cell.large-8,
    .cell.large-2 {
        width: 100%;
    }

    .hide-for-large {
        display: block !important;
    }

    .show-for-large {
        display: none !important;
    }

    .nav-main,
    .dark-bg.padding-top-1 {
        display: none;
    }

    .sidenav-bar {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .banner-main-heading {
        font-size: 1.75rem;
    }

    .banner-text {
        font-size: 1rem;
    }

    .section-main-heading {
        font-size: 1.5rem;
    }

    .inner-content-div-home {
        padding: 1.5rem;
    }

    .margin-left-sm-0 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }

    .logo-container img {
        max-width: 150px;
    }
}

@media screen and (min-width: 1025px) {
    .hide-for-large {
        display: none !important;
    }

    .large-text-left {
        text-align: left;
    }

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

    .large-order-1 { order: 1; }
    .large-order-2 { order: 2; }
}

/* ========== SMOOTH SCROLL ========== */
html {
    scroll-behavior: smooth;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d32f2f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b71c1c;
}

/* ========== SCROLL TO TOP BUTTON ========== */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #d32f2f;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

#scrollToTop:hover {
    background-color: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#scrollToTop.show {
    display: flex;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== HERO SLIDESHOW ========== */
.hero-slideshow {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Fade animation */
.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Slideshow navigation dots */
.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover,
.dot.active {
    background-color: rgba(255, 255, 255, 1);
}

@media screen and (max-width: 1024px) {
    .hero-slideshow {
        height: 600px;
    }
}

@media screen and (max-width: 768px) {
    .hero-slideshow {
        height: 400px;
    }
}

@media screen and (max-width: 640px) {
    .hero-slideshow {
        height: 300px;
    }

    .slideshow-dots {
        bottom: 10px;
    }

    .dot {
        height: 12px;
        width: 12px;
        margin: 0 3px;
    }
}
