/********** Template CSS **********/
:root {
    /* Main Brand Color - Maroon Red */
    --primary: #a31d21;
    
    /* Supporting Color - Leaf Green */
    --secondary: #016549;
    
    /* Highlight Color - Sky Blue */
    --accent: #5DADE2;
    
    /* Dark Neutral - Earth Brown */
    --dark: #795548;
    
    /* Backgrounds and Surface */
    --light: #F4F9F4; /* Light tint of green for a fresh background */
    --white: #FFFFFF;
}
a {
  color: var(--bs-primary);
}
a:hover {
  color: #821619; /* Darker maroon for hover */
}
/* Carousel (Home) thavira matha sections-ku mattum padding */
#about, 
#services, 
#process, 
#gallery, 
#contact {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

/* Section headings mela gap correct-aa irukka */
#about .container, 
#services .container, 
#gallery .container, 
#contact .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Content cards-kulla irukura space increase panna */
.process-item, .service-item {
    padding: 50px !important;
}
.navbar-brand h1
{
font-size:30px;}
/* --- Call Now Button Special (In Navbar) --- */
.nav-item.nav-link.bg-primary {
    color: #ffffff !important;
    border-radius: 5px;
    margin: 10px 0;
    transition: 0.3s;
}

.nav-item.nav-link.bg-primary:hover {
    background-color: #E9B824 !important; /* Hover panna Gold-ah maarum */
    color: #1A1A1B !important;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(163, 29, 33, 0.5); /* Maroon color with transparency */
    border-radius: 50%;
    background-size: 50%;
}
/* --- Success Button (Logo Leaf Green) --- */
.btn-success {
    color: #fff !important;
    background-color: #016549 !important;
    border-color: #016549 !important;
}

.btn-success:hover {
    background-color: #146c43 !important;
    border-color: #13653f !important;
}
.btn-primary {
    color: #fff !important;
    background-color: #A31D21 !important;
    border-color: #A31D21 !important;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    color: #fff !important;
    background-color: #821619 !important; /* Darker Maroon */
    border-color: #721316 !important;
    box-shadow: 0 0 0 0.25rem rgba(163, 29, 33, 0.25) !important;
}

.btn-primary:disabled {
    background-color: #A31D21 !important;
    opacity: 0.65;
}

/* --- Secondary Button (Gold) --- */
.btn-secondary {
    color: #000 !important; /* Black text looks better on Gold */
    background-color: #E9B824 !important;
    border-color: #E9B824 !important;
}

.btn-secondary:hover, 
.btn-secondary:focus, 
.btn-secondary:active {
    color: #000 !important;
    background-color: #d1a41f !important; /* Darker Gold */
    border-color: #c49a1d !important;
    box-shadow: 0 0 0 0.25rem rgba(233, 184, 36, 0.25) !important;
}

/* Custom Topbar Styles based on Logo Colors */
.topbar-bg {
    background-color: #821619; /* Logo Maroon Red */
}

.text-green {
    color: #016549!important; /* Logo Leaf Green for Icons */
}

.social-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.social-btn:hover {
    background: #016549; /* Hover Green */
    color: white;
}

/* Moving content more to the edges */
.topbar-bg .row {
    margin-right: 0;
    margin-left: 0;
}
.topbar-link {
    color: var(--secondary);
    text-decoration: none;
}
.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-primary {
    color: #FFFFFF;
    background-color: 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;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
    background: var(--secondary);
    color: var(--dark);
}

/* Updated Radial Gradients to use brand colors */
.bg-dark-radial {
    background-image: repeating-radial-gradient(center center, rgba(26, 26, 27, 0.4), rgba(26, 26, 27, 0.4) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.bg-light-radial {
    background-image: repeating-radial-gradient(center center, rgba(163, 29, 33, 0.1), rgba(163, 29, 33, 0.1) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary); /* Highlighting with Gold on hover */
}
.navbar-light .navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
}

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

/* Desktop screen-la menu items center-ah align panna */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        padding: 30px 15px !important; /* Logo-vuku nera center-ah varum */
        margin-left: 5px;
    }
}

/* Mobile-la logo size adjust panna */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 45px !important;
    }
    .navbar-brand h1 {
        font-size: 20px;
    }
}
.carousel-item img {
    height: 85vh; /* Screen height-il 70% mattum edukkum */
    object-fit: cover;
}
/* Changed background from blue-dark to Logo-Charcoal */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 27, 0.42);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

/* Updated Header Gradient to match brand */
.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(26, 26, 27, 0.8), rgba(26, 26, 27, 0.8)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}
/* Unique Info Cards in About Section */
.info-card {
    transition: all 0.3s ease;
    border-radius: 8px !important;
    min-height: 65px;
}

.info-card:hover {
    transform: translateX(10px); /* Hover panna light-ah move aagum */
    background-color: #f8f9fa !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Border color - Maroon based on your logo */
.info-card.border-primary {
    border-left-color: #A31D21 !important; 
}

/* Icon box styling */
.icon-box {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(163, 29, 33, 0.1); /* Very light maroon background */
    border-radius: 6px;
}

.icon-box i {
    font-size: 16px;
    color: #A31D21 !important; /* Maroon Icon */
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .info-card {
        margin-bottom: 5px;
    }
}

.process-item {
    min-height: 380px; /* Card height-ai fix panna */
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s ease;
    border: 1px solid #eee !important;
}

.process-item:hover {
    background-color: #f8f9fa;
    border-color: #A31D21 !important; /* Primary color border on hover */
    transform: translateY(-15px);
}

.process-number {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2rem; /* Background number size increase */
}

.fs-5 {
    font-size: 1.1rem !important; /* Content text size increase */
}

.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background: var(--primary);
    color: var(--light);
}

.service-item .service-icon i {
    transition: .2s;
}

.service-item:hover .service-icon i {
    font-size: 60px;
}
/* Service Item Container */
.service-item {
    position: relative;
    overflow: visible !important; /* Icon mela theriya idhu mukkiyam */
    transition: 0.3s;
}

/* Image Fit and Size */
.service-img-container {
    width: 80%;
    height: 250px; /* Neenga height adjust pannalaam */
    overflow: hidden;
    position: relative;
    z-index: 1; /* Image layer 1 */
}

.service-img-container img {
    width: 350px;
    height: 100%;
    object-fit: cover; /* Image distort aagaama fit aagum */
    object-position: center;
}

/* Icon visibility fix - Image mela kaata */
.service-item .service-icon {
    position: relative;
    z-index: 10;        /* Image layer-ku mela layer 10 */
    margin-top: -50px;  /* Icon-ai mela thooki image mela vaikkum */
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffff !important; /* White background for icon visibility */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    margin-left: auto;
    margin-right: auto;
}

/* Image Zoom on Hover (Optional, removed if you don't want) */
.service-item:hover .service-img-container img {
    transform: scale(1.05);
    transition: 0.5s;
}

/* --- Seamless Footer with Pattern --- */
.footer-maroon {
    background-image: url('../img/footbg.jpg') !important;
    background-color: #821619 !important;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay for text contrast */
.footer-maroon::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(130, 22, 25, 0.88) !important;
    pointer-events: none;
    z-index: 1;
}

.footer-maroon .container {
    position: relative;
    z-index: 2;
}

/* Removing ALL vertical lines between columns */
.footer-maroon .row.g-5 > div {
    border: none !important;
}

/* Removing any pseudo-element lines (::after) */
.footer-maroon .row.g-5 > div::after {
    display: none !important;
}

/* Link and Icon Styles (Clean - No underlines) */
.footer-maroon a, 
.footer-maroon a:hover {
    text-decoration: none !important;
}

.text-blue {
    color: #026f9a !important;
}

/* Heading with Blue bar below it */
.footer-maroon h4 {
    color: #ffffff !important;
    position: relative;
    font-weight: 700;
    margin-bottom: 30px !important;
    display: inline-block;
}

.footer-maroon h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background: #026f9a;
}

/* Social Buttons */
.footer-maroon .btn-secondary {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    border-radius: 4px;
    color: #fff !important;
    transition: 0.3s;
}

.footer-maroon .btn-secondary:hover {
    background: #026f9a !important;
    transform: translateY(-3px);
}
.footer-maroon a, 
.footer-maroon a:hover {
    text-decoration: none !important; /* Clean links, no underline */
}

/* Quick Links and Copyright Links Hover - Smooth Movement */
.footer-maroon a.footer-link:hover,
.footer-maroon .row.mt-5 a:hover {
    color: #026f9a !important; /* Blue on hover */
    padding-left: 8px; /* Unique smooth move effect */
    transition: 0.3s all ease-in-out;
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--primary);
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: #f8f9fa;
    padding: 20px 0;
}

.marquee-content {
    display: inline-flex;
    animation: scroll 30s linear infinite;
}

.gallery-card {
    flex: 0 0 auto;
    width: 300px;
    margin: 0 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls half the width of the doubled content */
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}
/* Contact Section Alignment & Sizes */
.contact-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.custom-input {
    font-size: 14px !important;
    padding: 10px !important;
    border: 1px solid #f0f0f0 !important;
    background-color: #fafafa !important;
}

.custom-input:focus {
    background-color: #fff !important;
    border-color: #fb5b21 !important; /* Your Primary Color */
    box-shadow: none !important;
}

/* Force equal height on desktop */
@media (min-width: 992px) {
    .align-items-stretch {
        display: flex;
    }
}

/* Reduced Button Style */
#contact .btn-sm {
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 5px;
}
/* WhatsApp Floating Button Style */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 90px; /* Back-to-top button-ku mela irukka */
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}

.float-text {
    position: absolute;
    right: 70px;
    background: #25d366;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.whatsapp-float:hover .float-text {
    opacity: 1;
    visibility: visible;
}

/* Mobile-la floating text hidden-ah irukka */
@media screen and (max-width: 767px) {
    .float-text {
        display: none;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 30px;
        bottom: 80px;
        right: 20px;
    }
}
/* --- Mobile & Tablet Responsive (768px and below) --- */
@media (max-width: 768px) {
    /* 1. Topbar height-ai auto-vaakuvom */
    .topbar-bg .row {
        height: auto !important;
        padding: 10px 0;
    }

    /* 2. Contact items-ai stack panni center panna */
    .topbar-bg .col-lg-9 {
        text-align: center !important;
        margin-bottom: 10px;
    }

    .topbar-bg .d-inline-flex {
        display: flex !important;
        flex-direction: column; /* Address, Email, Phone onnu mela onnu */
        align-items: center;
        gap: 8px;
    }

    .topbar-bg small {
        margin-right: 0 !important;
        display: block;
        width: 100%;
    }

    /* 3. Social Icons Vertical-ah irukuradha Horizontal-ah maatha */
    .topbar-bg .col-lg-3 {
        text-align: center !important;
        width: 100%;
    }

    .topbar-bg .col-lg-3 .d-inline-flex {
        flex-direction: row !important; /* Force horizontal icons */
        justify-content: center !important;
        gap: 15px; /* Icons-ku naduvula nalla gap */
        margin-top: 5px;
    }

    .social-btn {
        width: 35px;
        height: 35px;
    }
}

/* 4. Desktop-la height 40px thirumbavum set panna (992px mela) */
@media (min-width: 992px) {
    .topbar-bg .row {
        height: 40px !important;
    }
}
