/* 
 * HA BUILDING SOLUTIONS LTD
 * Custom Stylesheet
 */

 :root {
    --primary-color: #0B132B; /* Navy Blue */
    --secondary-color: #D4AF37; /* Gold */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --text-dark: #333333;
    --text-muted: #6c757d;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
}

/* Utilities */
.text-gold {
    color: var(--secondary-color) !important;
}
.text-navy {
    color: var(--primary-color) !important;
}
.text-light-gray {
    color: #cccccc !important;
}
.bg-navy {
    background-color: var(--primary-color) !important;
}
.bg-gold {
    background-color: var(--secondary-color) !important;
}
.bg-light-gray {
    background-color: var(--light-gray) !important;
}

/* Buttons */
.btn-gold {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: transparent;
    color: var(--secondary-color);
}
.btn-outline-gold {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Navigation */
.navbar {
    background-color: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
}
.navbar.scrolled {
    background-color: rgba(11, 19, 43, 0.95);
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary-color);
}
.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}
.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 100%;
}
.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(11, 19, 43, 0.7), rgba(11, 19, 43, 0.8)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(11, 19, 43, 0.8), rgba(11, 19, 43, 0.9)), url('https://images.unsplash.com/photo-1560518883-ce09059eeefa?q=80&w=1973&auto=format&fit=crop') center/cover no-repeat;
    color: var(--white);
    text-align: center;
}
.hero h1, .page-header h1 {
    font-weight: 800;
    letter-spacing: -1px;
}
.hero p, .page-header p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Sections */
.section-padding {
    padding: 100px 0;
}
.section-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 0;
}
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.icon-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}
.icon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--secondary-color);
}
.icon-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.icon-card h4 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
}
.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover img {
    transform: scale(1.1);
}
.service-content {
    background: var(--white);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    margin: -50px 20px 0;
    border-radius: 8px;
    z-index: 1;
    transition: background-color 0.3s, color 0.3s;
}
.service-card:hover .service-content {
    background: var(--primary-color);
    color: var(--white);
}
.service-card:hover .service-content h4 {
    color: var(--white);
}
.service-card:hover .service-content i {
    color: var(--white);
}
.service-content h4 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.service-content i {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* Stats */
.stat-box {
    text-align: center;
    padding: 30px;
}
.stat-box h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.stat-box p {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    margin-bottom: 50px;
    position: relative;
}
.timeline-item::after {
    content: "";
    display: table;
    clear: both;
}
.timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    margin-left: -25px;
    text-align: center;
    line-height: 50px;
    font-size: 1.2rem;
    z-index: 2;
    border: 3px solid var(--white);
}
.timeline-content {
    width: 45%;
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    position: relative;
}
.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}
.timeline-item:nth-child(even) .timeline-content {
    float: right;
}
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-icon {
        left: 20px;
        margin-left: -25px;
    }
    .timeline-content {
        width: 100%;
        padding-left: 60px;
        float: right !important;
        background: transparent;
    }
}

/* Testimonials */
.testimonial-item {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 8px;
    margin: 15px;
    position: relative;
}
.testimonial-item i {
    color: var(--secondary-color);
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 30px;
}
.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(11, 19, 43, 0.9), rgba(11, 19, 43, 0.9)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') center/cover fixed;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--secondary-color);
}
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
}
.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Floating Elements */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    line-height: 60px;
    transition: all 0.3s;
}
.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}
.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(11, 19, 43, 0.95);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
    backdrop-filter: blur(5px);
}

/* Calculator Styles */
.calculator-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color);
}
.calc-result {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}
.calc-result h3 {
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Form Styles */
.form-control {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* Custom Progress Bar */
.progress {
    height: 10px;
    margin-bottom: 20px;
    background-color: #e9ecef;
    border-radius: 5px;
}
.progress-bar {
    background-color: var(--secondary-color);
}

/* Maps */
.map-container {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
