@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-red: #d61a21;
    --primary-red-hover: #b5151b;
    --dark-slate: #1c1c1c;
    --dark-gray: #333333;
    --light-gray: #666666;
    --body-bg: #ffffff;
    --section-bg-light: #f8f9fa;
    --section-bg-alt: #f1f3f5;
    --border-color: #eaeaea;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background-color: var(--body-bg);
    color: var(--dark-gray);
    line-height: 1.6;
}

.img-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 150px;
    background: linear-gradient(135deg, #f0f2f5, #e4e7eb);
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-family: 'Poppins', Monaco, Consolas, monospace;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    padding: 15px;
    transition: var(--transition-smooth);
    user-select: none;
    overflow: hidden;
}

.img-placeholder i {
    font-size: 1.8rem;
    color: #94a3b8;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.img-placeholder:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-color: var(--primary-red);
    color: var(--dark-slate);
}

.img-placeholder:hover i {
    transform: scale(1.12);
    color: var(--primary-red);
}

.img-placeholder.dark {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: #334155;
    color: #94a3b8;
}

.img-placeholder.dark i {
    color: #475569;
}

.img-placeholder.dark:hover {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-color: var(--primary-red);
    color: #f1f5f9;
}

.img-placeholder.circle {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark-slate);
    line-height: 1.3;
}

/* Header & Top Bar */
.top-bar {
    background-color: var(--primary-red);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    padding: 10px 0;
    border-bottom: none;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar-center {
    letter-spacing: 0.5px;
}

header {
    background-color: rgba(220, 222, 225, 0.75); /* metallic light gray semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    width: auto;
    height: 80px;
}

.logo-img {
    height: 100%;
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 0;
    display: inline-block;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background-color: var(--primary-red);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 25px;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: #000000;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 769px) {
    .hero {
        margin-top: -90px; /* pull under the sticky header */
    }
    .hero-content-wrapper {
        padding-top: 95px; /* offset the header overlay so content is perfectly centered */
    }
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content-wrapper h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    text-transform: none;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgb(255, 255, 255);
    margin-top: 15px;
    margin-bottom: 35px;
    max-width: 720px;
    line-height: 1.6;
}


/* Hero CTA Button container */
.hero-cta-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-btn {
    border-radius: 30px; /* rounded pill button */
    padding: 14px 38px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: var(--primary-red);
    box-shadow: 0 5px 15px rgba(214, 26, 33, 0.4);
}

.hero-btn:hover {
    background-color: var(--primary-red-hover);
    box-shadow: 0 8px 25px rgba(214, 26, 33, 0.5);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-red);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(214, 26, 33, 0.3);
}

/* Overlapping Slider Cards */
.overlap-cards {
    position: relative;
    margin-top: -60px;
    z-index: 10;
    padding-bottom: 40px;
}

.overlap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.overlap-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.overlap-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.overlap-card-img {
    height: 180px;
}

.overlap-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.overlap-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-slate);
}

.overlap-card-body p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 18px;
}

.btn-text {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-text:hover {
    color: var(--primary-red-hover);
}

/* About Us & Estimate Form Section */
.about-section {
    background-color: #ffffff;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}

.about-info-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark-slate);
    margin-bottom: 20px;
}

.about-description {
    color: var(--light-gray);
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.about-feature-item {
    display: flex;
    gap: 15px;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background-color: var(--section-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.about-feature-item:hover .about-feature-icon {
    background-color: var(--primary-red);
    color: #ffffff;
}

.about-feature-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 4px;
}

.about-feature-text p {
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Estimate Form Card */
.estimate-card {
    background-color: #ffffff;
    border-top: 4px solid var(--primary-red);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 30px;
}

.estimate-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark-slate);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-red);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-red);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    background-color: var(--primary-red-hover);
}

/* Services Grid Section */
.services-section {
    background-color: var(--section-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.service-card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card-icon {
    position: absolute;
    bottom: -15px;
    left: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-red);
    color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(214, 26, 33, 0.3);
    z-index: 2;
}

.service-card-body {
    padding: 30px 25px 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 10px;
}

.service-card-body p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

/* Expertise Section */
.expertise-section {
    background-color: #ffffff;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.expertise-card,
.formation-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.expertise-card:hover,
.formation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.expertise-number {
    display: inline-block;
    color: var(--primary-red);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.expertise-card h3,
.formation-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 12px;
}

.expertise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.expertise-list li {
    position: relative;
    padding-left: 16px;
}

.expertise-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 700;
}

.formation-section {
    background-color: var(--section-bg-light);
}

.formation-card p {
    color: var(--light-gray);
    margin-bottom: 18px;
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--section-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
    align-items: start;
}

.contact-info-card,
.contact-form-card {
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 30px;
}

.contact-info-card h3,
.contact-form-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 12px;
}

.contact-info-card p {
    color: var(--light-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--light-gray);
}

.contact-list li i {
    color: var(--primary-red);
    margin-top: 3px;
}

.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: var(--transition-smooth);
}

.contact-form textarea:focus {
    border-color: var(--primary-red);
}

/* Call to Action (CTA) Banner */
.cta-banner {
    background-color: var(--primary-red);
    color: #ffffff;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
}

.cta-content {
    padding: 60px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 550px;
}

.cta-actions {
    display: flex;
    gap: 15px;
}

.btn-light {
    background-color: #ffffff;
    color: var(--primary-red);
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-light:hover {
    background-color: var(--dark-slate);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary-red);
    transform: translateY(-2px);
}

.cta-img-wrapper {
    height: 100%;
    min-height: 380px;
    position: relative;
    display: flex;
    align-self: stretch;
}
.cta-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Footer Section */
footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 35px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-contact-info li {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 15px;
}

.footer-contact-info li i {
    color: var(--primary-red);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--light-gray);
}

.footer-bottom-links a {
    color: var(--light-gray);
    text-decoration: none;
    margin-left: 20px;
    transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
    color: var(--primary-red);
}

/* Responsive Styling */
@media (max-width: 1024px) {
    .overlap-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: -60px auto 0 auto;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .services-grid,
    .team-grid,
    .portfolio-grid,
    .testimonials-grid,
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .cta-grid {
        grid-template-columns: 1fr;
    }
    .cta-content {
        padding: 50px 20px;
    }
    .cta-img-wrapper {
        min-height: 250px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .services-grid,
    .team-grid,
    .portfolio-grid,
    .testimonials-grid,
    .blogs-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .hero-content-wrapper h1 {
        font-size: 2.5rem;
    }
}