/*------------------------------------------------------------------
File Name: style.css
Description: Main Stylesheet for AS Crown Engineers
Theme: Brand Blue & Off-White
--------------------------------------------------------------------

TABLE OF CONTENTS
1.  Imports & Theme Variables
2.  General & Basic Styles
3.  Reusable Components (Loader, Titles)
4.  Header & Navigation
5.  Hero Section (Carousel)
6.  About Us Section
7.  Products Section
8.  Our Process Section
9.  Projects Section
10. Contact Section
11. Footer
12. Utilities & Widgets (WhatsApp)
13. Responsive Media Queries

-------------------------------------------------------------------*/

/* --- 1. Imports & Theme Variables --- */

@import url('https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i');
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900&display=swap');

/* CSS Theme variables MUST be defined here, right after imports */
:root {
    --brand-dark-blue: #2B1D75;
    --brand-off-white: #F4EFDF;
    --text-dark: #111111;
    --text-light: #ffffff;
    --text-muted: #666666;
    --background-light-gray: #f8f9fa;
    --accent-hover: #4a3db3; /* A lighter shade of the dark blue for hovers */
}


/* --- 2. General & Basic Styles --- */

* {
    box-sizing: border-box !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    font-weight: normal;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
}

a {
    color: var(--brand-dark-blue);
    text-decoration: none !important;
    outline: none !important;
    transition: all .3s ease-in-out;
}

a:hover {
    color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0;
    font-weight: normal;
    position: relative;
    padding: 0;
    line-height: normal;
    color: var(--text-dark);
    margin: 0;
}

p {
    margin: 0px;
    font-weight: normal;
    font-size: 17px;
    line-height: 28px;
    color: var(--text-dark);
}

ul, li, ol {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button:focus {
    outline: none;
}


/* --- 3. Reusable Components --- */

/* Loader */
.loader_bg {
    position: fixed;
    z-index: 9999999;
    background: var(--brand-dark-blue); /* Uses your brand blue */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader img {
    width: 100px;
    height: auto;
    animation: pulse-logo 1.5s infinite ease-in-out;
}

@keyframes pulse-logo {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}


/* Section Titles */
.titlepage {
    padding-bottom: 40px;
}

.section_title {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 30px;
    color: var(--brand-dark-blue);
    font-weight: 600;
}

.section_title::after {
    content: '';
    width: 90px;
    height: 4px;
    background: var(--brand-dark-blue);
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
}

.lead {
    font-size: 18px;
    line-height: 30px;
    color: var(--text-muted);
    margin: 0;
    padding: 0;
}

/* Buttons */
.view-more-btn {
    background-color: var(--brand-off-white);
    border: 2px solid var(--brand-off-white);
    color: var(--brand-dark-blue) !important;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    color: var(--brand-off-white) !important;
    background-color: transparent;
    border-color: var(--brand-off-white);
}

/* --- 4. Header & Navigation --- */
.header-area {
    padding: 30px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.sticky-header {
    position: fixed;
}

.sticky-header.scrolled {
    background-color: rgba(43, 29, 117, 0.95); /* RGB of --brand-dark-blue */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.logo a img {
    max-height: 60px;
    transition: all 0.3s ease;
}

.sticky-header.scrolled .logo a img {
    max-height: 50px;
}

.header-right {
    margin-left: auto;
}

.site-navbar ul {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.site-navbar ul li a {
    color: var(--brand-off-white);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 10px 0;
    position: relative;
}

.site-navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand-off-white);
    transition: width 0.3s ease;
}

.site-navbar ul li a:hover,
.site-navbar ul li a:hover::after {
    color: var(--brand-off-white);
    width: 100%;
}

.nav-toggler {
    display: none; /* Mobile only */
}

/* --- 5. Hero Section (Carousel) --- */
.full_bg_home {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.slider_main, #banner1, .carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.5rem;
    color: var(--brand-off-white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
}

/* --- 6. About Us Section --- */
.about-section {
    padding: 4rem 0 5rem;
    background-color: #ffffff;
}
.about-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
    margin-bottom: 1rem;
}
.about-divider {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--brand-dark-blue);
    margin: 0 auto 1.5rem;
}
.about-description {
    font-size: 1rem;
    color: #4b5563;
    max-width: 62rem;
    margin: 0 auto;
    padding: 0 0.5rem;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}
.vision-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
    margin-bottom: 1rem;
}
.vision-text {
    color: #4b5563;
    margin-bottom: 1rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
.stat-card {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
}
.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.875rem;
    color: #4b5563;
}
.why-choose-container {
    background-color: rgba(43, 29, 117, 0.05); /* Light blue tint */
    padding: 1.5rem;
    border-radius: 1rem;
    position: relative;
    margin-top: 2rem;
}
.why-choose-content {
    position: relative;
    z-index: 10;
}
.why-choose-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
    margin-bottom: 1rem;
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.feature-item {
    display: flex;
    align-items: flex-start;
}
.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--brand-dark-blue);
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}
.feature-title {
    font-weight: 600;
    color: #1f2937;
}
.feature-description {
    font-size: 0.875rem;
    color: #4b5563;
}

/* --- 7. Products Section --- */
.products-section {
    padding: 60px 0;
    background-color: var(--background-light-gray);
}
.main-product-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
    height: 100%;
}
.main-product-card img {
    border-radius: 8px;
    margin-bottom: 15px;
    max-height: 250px;
    width: 100%;
    object-fit: cover;
}
.main-product-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--brand-dark-blue);
}
.concrete-tabs-container {
    margin-top: 40px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.concrete-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    border-right: 1px solid #e0e0e0;
}
.concrete-tabs-nav li {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}
.concrete-tabs-nav li:last-child {
    border-bottom: none;
}
.concrete-tabs-nav li:hover {
    background-color: rgba(43, 29, 117, 0.05);
    color: var(--brand-dark-blue);
}
.concrete-tabs-nav li.active {
    background-color: var(--brand-dark-blue);
    color: #fff;
    border-left: 4px solid var(--accent-hover);
    font-weight: 600;
}
.concrete-tab-content .tab-pane { display: none; animation: fadeIn 0.5s; }
.concrete-tab-content .tab-pane.active { display: block; }
.concrete-tab-content .tab-pane img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.concrete-tab-content .tab-pane h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--brand-dark-blue);
    margin-bottom: 10px;
}
.concrete-tab-content .tab-pane p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- 8. Our Process Section --- */
.how_it_works {
    padding: 60px 0;
    background-color: #ffffff;
}
.step_box {
    background: #fefefd;
    padding: 30px 20px;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out;
    height: 100%;
}
.step_box:hover {
    transform: translateY(-10px);
}
.step_box h4 {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-dark-blue);
}
.step_box p {
    font-size: 16px;
    line-height: 24px;
    color: #444;
    margin-top: 10px;
}
.icon_circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(43, 29, 117, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon_circle img {
    max-width: 40px;
    height: auto;
}

/* --- 9. Projects Section --- */
.completed-projects-section {
    padding: 60px 0;
    background-color: var(--background-light-gray);
}
.project-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.project-content { padding: 20px; }
.project-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--brand-dark-blue);
}

/* --- 10. Contact Section --- */
#contact {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
#contact .text-center {
    margin-bottom: 3rem;
}
#contact h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1rem;
}
#contact .w-24.bg-indigo-600 {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--brand-dark-blue);
    margin: 0 auto 1.5rem;
}
#contact p {
    font-size: 1rem;
    color: #4b5563;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}
#contact .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
#contact form, #contact .bg-gray-50 {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}
#contact .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1.5rem;
}
#contact .form_control, #contact .textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
}
#contact .send_btn {
    background-color: var(--brand-dark-blue);
    color: var(--brand-off-white) !important;
    font-weight: 600;
    padding: .75rem 1.5rem;
    border-radius: .5rem;
    transition: background-color .15s ease-in-out;
    border: none;
}
#contact .send_btn:hover {
    background-color: var(--accent-hover);
}
#contact h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}
#contact .flex { display: flex; }
#contact .items-start { align-items: flex-start; }
#contact .bg-indigo-100 {
    background-color: rgba(43, 29, 117, 0.1);
}
#contact .rounded-lg { border-radius: .5rem; }
#contact .text-indigo-600 { color: var(--brand-dark-blue); }
#contact h4 { font-weight: 600; color: #1f2937; margin-bottom: .25rem; }
#contact .text-sm { font-size: .875rem; }
#contact .text-gray-600 { color: #4b5563; }
#contact .w-10 { width: 2.5rem; }
#contact .h-10 { height: 2.5rem; }
#contact .justify-center { justify-content: center; }
#contact .items-center { align-items: center; }
#contact .mr-3 { margin-right: .75rem; }

/* --- 11. Footer --- */
.copyright {
    background-color: var(--brand-dark-blue);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}
.copyright p.color-white {
    color: var(--brand-off-white);
}
.copyright a {
    color: var(--brand-off-white);
    font-weight: 600;
    text-decoration: underline !important;
}
.copyright a:hover {
    color: #fff;
}

/* --- 12. Utilities & Widgets --- */
.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9990; /* High z-index to stay on top */
}
.my-float {
    margin-top: 16px;
}

/* --- 13. Responsive Media Queries --- */
@media (min-width: 768px) {
    .about-heading { font-size: 2.5rem; }
    .about-section { padding: 5rem 0 6rem; }
    .about-description { font-size: 1.125rem; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .vision-heading { font-size: 1.5rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 1rem; }
    .why-choose-container { margin-top: 0; }
    .why-choose-heading { font-size: 1.5rem; }
    .feature-description { font-size: 1rem; }

    #contact { padding-top: 5rem; padding-bottom: 5rem; }
    #contact .text-center { margin-bottom: 4rem; }
    #contact h2 { font-size: 2.25rem; }
    #contact .w-24 { margin-bottom: 2rem; }
    #contact p { font-size: 1.125rem; }
    #contact .grid { gap: 3rem; }
    #contact form, #contact .bg-gray-50 { padding: 2rem; }
    #contact h3 { font-size: 1.5rem; }
    #contact .w-12 { width: 3rem; }
    #contact .h-12 { height: 3rem; }
    #contact .mr-4 { margin-right: 1rem; }
    #contact svg { width: 1.5rem; height: 1.5rem; }
    #contact h4 { font-size: 1rem; }
}
@media (min-width: 1024px) {
    #contact .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .header-area { padding: 15px 0; background-color: rgba(43, 29, 117, 0.95); }
    .site-navbar ul { display: none; }
    .nav-toggler { display: block; position: relative; z-index: 10001; }
    
    .carousel-caption h1 { font-size: 2.5rem; }
    .carousel-caption p { font-size: 1.2rem; }

    .about-grid { grid-template-columns: 1fr; }
    .concrete-tabs-nav { border-right: none; border-bottom: 1px solid #e0e0e0; display: flex; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 10px; }
    .concrete-tabs-nav li { border: 1px solid #e0e0e0; border-radius: 20px; margin: 5px; flex-grow: 1; text-align: center; }
    .concrete-tabs-nav li.active { border-left: 1px solid var(--brand-dark-blue); }

    .step_box { margin-bottom: 30px; }
    
    /* Mobile Navigation Menu Styles */
    .site-navbar ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(43, 29, 117, 0.98);
        flex-direction: column;
        padding: 10px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    .site-navbar ul.open {
        max-height: 500px;
    }
    .site-navbar ul li {
        text-align: center;
        padding: 10px 0;
    }
    .nav-toggler span, 
    .nav-toggler span:before, 
    .nav-toggler span:after {
        width: 30px;
        height: 2px;
        background-color: #ffffff;
        display: block;
        transition: .3s;
        position: absolute;
    }
    .nav-toggler span { top: 50%; left: 50%; transform: translate(-50%, -50%); }
    .nav-toggler span:before { content: ''; top: -8px; left: 0; }
    .nav-toggler span:after { content: ''; top: 8px; left: 0; }
    .nav-toggler.toggler-open span { background-color: transparent; }
    .nav-toggler.toggler-open span:before { transform: translateY(8px) rotate(45deg); }
    .nav-toggler.toggler-open span:after { transform: translateY(-8px) rotate(-45deg); }
}

