/* 
 * Master Stylesheet: Estructura Specialised Construction Pvt Ltd 
 * Last Updated: May 1, 2026 
 */

/* =========================================
   Global Variables & Resets
   ========================================= */
/* Universal Box Sizing - Prevents padding from breaking layouts */
*, *::before, *::after {
    box-sizing: border-box;
}
:root {
    --primary-navy: #0B2046;
    --accent-orange: #F25C05;
    --bg-light-gray: #F4F6F8;
    --text-dark: #333333;
    --text-light: #FFFFFF;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--text-light);
}

h1, h2, h3, h4 {
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
    background-color: var(--text-light);
    padding: 15px 50px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    max-height: 50px;
    margin-right: 15px;
}

.logo-container h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-navy);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-weight: bold;
    color: var(--primary-navy);
    padding: 10px 0;
}

nav ul li a:hover {
    color: var(--accent-orange);
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--text-light);
    min-width: 250px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    top: 100%;
    left: 0;
    z-index: 1;
    border-top: 3px solid var(--accent-orange);
    border-radius: 0 0 4px 4px;
}

.dropdown-content a {
    color: var(--primary-navy);
    padding: 12px 16px;
    display: block;
    font-weight: normal;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:hover {
    background-color: var(--bg-light-gray);
    color: var(--accent-orange);
    padding-left: 20px; /* Slight indent on hover for UX */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Social Media Navigation Links */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 15px;
}

.nav-socials a img {
    width: 28px;
    height: 28px;
    display: block;
    transition: transform 0.3s ease;
}

.nav-socials a:hover img {
    transform: scale(1.15);
}

/* Mobile Responsiveness: Adjust for phone screens */
@media (max-width: 767px) {
    .social-top-right {
        top: 10px;
        right: 15px;
        gap: 10px;
    }
    .social-top-right a img {
        width: 22px;
        height: 22px;
    }
}

/* =========================================
   Core Capabilities Section (Three-Column Cards)
   ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-img-container {
    width: 100%;
    height: 200px;
    background-color: var(--bg-light-gray);
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h3 {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.know-more-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto;
}

.know-more-btn:hover {
    background-color: var(--primary-navy);
    color: var(--text-light);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 100px 50px;
    text-align: center;
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 20px; 
}

.hero p { 
    font-size: 1.2rem; 
    max-width: 800px; 
    margin: 0 auto 30px auto; 
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--text-light) !important;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    border: 2px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.cta-button:hover { 
    background-color: transparent; 
    color: var(--accent-orange) !important;
}

/* =========================================
   General Layout Utility Classes
   ========================================= */
.section-padding { 
    padding: 80px 50px; 
}

.bg-gray { 
    background-color: var(--bg-light-gray); 
}

.text-center { 
    text-align: center; 
}

/* =========================================
   Service Pages
   ========================================= */
.service-header {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 60px 50px;
    text-align: center;
    border-bottom: 5px solid var(--accent-orange);
}

.service-content {
    padding: 60px 50px;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* =========================================
   Ongoing Projects Page
   ========================================= */
.project-section {
    padding: 60px 50px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 2px solid var(--bg-light-gray);
}

.project-section:last-child { 
    border-bottom: none; 
}

.project-title { 
    color: var(--primary-navy); 
    margin-bottom: 10px; 
    font-size: 2rem; 
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.media-box {
    background-color: #E2E8F0;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #64748B;
    font-weight: bold;
    border: 2px dashed #CBD5E1;
}

/* =========================================
   Why Partner Section (Two-Column Layout)
   ========================================= */
.why-partner-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-partner-image {
    flex: 1;
}

.why-partner-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: block;
}

.why-partner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px; 
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.check-icon {
    color: var(--accent-orange);
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.2;
}

.benefit-text h3 {
    color: var(--primary-navy);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.benefit-text p {
    color: #555555;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .why-partner-container {
        flex-direction: column;
    }
}

/* =========================================
   Downloads Page
   ========================================= */
.download-list {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 50px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--bg-light-gray);
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 5px solid var(--accent-orange);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.download-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-navy);
}

.download-btn {
    background-color: var(--primary-navy);
    color: var(--text-light) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.download-btn:hover {
    background-color: var(--accent-orange);
}

/* =========================================
   Contact Us Page
   ========================================= */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 50px;
    gap: 50px;
}

.contact-details {
    flex: 1;
    min-width: 300px;
}

.contact-details h2 { 
    color: var(--primary-navy); 
    margin-bottom: 20px; 
    font-size: 2.2rem;
}

.contact-details p { 
    font-size: 1.1rem; 
    margin-bottom: 15px; 
}

.contact-details a { 
    color: var(--accent-orange); 
    font-weight: bold; 
}

.contact-details a:hover {
    text-decoration: underline;
}

.map-container {
    flex: 1;
    min-width: 300px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 60px 50px;
    text-align: center;
}

footer h2 {
    font-size: 2.2rem;
}

.contact-info {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a { 
    color: var(--accent-orange); 
    font-weight: bold; 
}

.contact-info a:hover { 
    text-decoration: underline; 
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        padding: 20px;
    }

    .logo-container {
        margin-bottom: 20px;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 { 
        font-size: 2.2rem; 
    }

    .hero, .section-padding, .service-header, .service-content, .project-section, .contact-container, footer { 
        padding: 40px 20px; 
    }

    .download-list {
        padding: 0 20px;
    }

    .download-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* =========================================
   Post-Tensioning Dark Grid Layout
   ========================================= */
.pt-dark-section {
    background: linear-gradient(to right, #00040A 50%, #001B2E 100%);
    color: #ffffff;
    padding: 60px 0;
}

.pt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

.pt-grid-item {
    padding: 50px;
}

.pt-grid-item.border-right {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.pt-grid-item.border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pt-icon {
    margin-bottom: 25px;
}

.pt-grid-item h3 {
    font-size: 1.25rem;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
}

.pt-grid-item ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.pt-grid-item ul li {
    font-size: 0.95rem;
    color: #D1D5DB;
    line-height: 1.5;
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .pt-grid {
        grid-template-columns: 1fr; 
    }
    .pt-grid-item {
        padding: 40px 20px;
    }
    .pt-grid-item.border-right {
        border-right: none;
    }
    .pt-grid-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* =========================================
   Precast Erection Rows (3-Column Layout)
   ========================================= */
.erection-container {
    max-width: 1200px;
    margin: 0 auto;
}

.erection-row-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    overflow: hidden; 
}

.erection-image {
    flex: 0 0 32%; 
    display: flex; 
    align-items: stretch; 
}

.erection-image img {
    width: 100%;
    height: 100%;
    min-height: 100%; 
    object-fit: cover; 
    object-position: center; 
    display: block;
}

.erection-content {
    flex: 0 0 40%; 
    padding: 40px;
    border-right: 1px solid #E2E8F0; 
}

.erection-content h2 {
    color: var(--primary-navy);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.erection-content p {
    color: #444444;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.erection-benefits {
    flex: 0 0 28%; 
    display: flex;
    flex-direction: column;
}

.erection-benefits .benefit-item {
    padding: 25px 30px;
    border-bottom: 1px solid #E2E8F0; 
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-grow: 1; 
}

.erection-benefits .benefit-item:last-child {
    border-bottom: none;
}

.benefit-item .check-icon {
    color: #D32F2F; 
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 2px;
}

.benefit-item .benefit-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.benefit-item .benefit-text strong {
    color: var(--primary-navy);
    font-size: 1.05rem;
}

.benefit-item .benefit-text span {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* --- Global Container --- */
.product-container {
    max-width: 1000px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
}

.product-card {
    display: flex;
    border: 1px solid #e0e4e8;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
}

.product-image-wrapper {
    flex: 0 0 45%; 
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-details {
    flex: 1; 
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
}

.product-details h2 {
    color: #1a365d; 
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
}

.product-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.specs-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.specs-list li {
    font-size: 13px;
    color: #444;
    padding: 10px 0;
    border-bottom: 1px dashed #d1d5db; 
    display: flex;
    align-items: center;
}

.specs-list li:last-child {
    border-bottom: none; 
}

.specs-list li i {
    color: #e65100; 
    width: 25px;
    font-size: 14px;
}

.specs-list li strong {
    font-weight: 600;
    margin-right: 5px;
}

.view-details-btn {
    color: #e65100;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    margin-top: auto; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.view-details-btn:hover {
    color: #bf360c;
}

@media (max-width: 768px) {
    .product-card {
        flex-direction: column; 
    }
    
    .product-image-wrapper {
        flex: auto;
        height: 250px;
    }
    
    .product-details {
        padding: 20px;
    }
}

@media (max-width: 950px) {
    .erection-row-card {
        flex-direction: column; 
    }
    
    .erection-image, .erection-content, .erection-benefits {
        flex: 1 1 100%; 
    }
    
    .erection-image img {
        height: 250px; 
    }
    
    .erection-content {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding: 30px 20px;
    }
    
    .erection-benefits .benefit-item {
        padding: 20px;
    }
}

/* Container for the whole section */
.bridge-solutions-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 600px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff; 
}

.bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

.bg-slider::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    animation: fadeSlider 25s infinite; 
}

.slide-1 {
    background-image: url('Bow String Arch Bridge Fabrication.jpeg');
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('Bow String Arch Bridge Erection.jpeg');
    animation-delay: 5s; 
}

.slide-3 {
    background-image: url(' kochi-munnar-arch-stag.jpg');
    animation-delay: 10s; 
}

/* Add the rules for the 4th and 5th slides */
.slide-4 {
    background-image: url('casting yard operations.jpg');
    animation-delay: 15s; 
}

.slide-5 {
    background-image: url('Casting Yard Setup.jpeg');
    animation-delay: 20s; 
}

.content-container {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #ffffff; 
}

/* The Keyframe Animation */
@keyframes fadeSlider {
    0%   { opacity: 0; }
    5%   { opacity: 1; }  
    20%  { opacity: 1; }  
    25%  { opacity: 0; }  
    100% { opacity: 0; }  
}

/* Floating WhatsApp Button Styling */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; 
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000; 
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    margin-top: 10px;
    width: 40px;
    height: 40px;
}

@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        margin-top: 8px;
        width: 34px;
        height: 34px;
    }
}

/* =========================================
   Projects Portfolio Section (Card Layout)
   ========================================= */
.projects-portfolio-section {
    background-color: #F8FAFC; 
    padding: 80px 20px;
}

.projects-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-heading {
    color: #003366; 
    font-size: 2.8rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 25px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #003366;
    letter-spacing: 0.5px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-dot {
    width: 6px;
    height: 6px;
    background-color: #003366;
    border-radius: 50%;
}

.meta-pin {
    width: 12px;
    height: 12px;
    stroke: #003366;
}

.project-content h3 {
    color: #003366;
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.project-content p {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Bottom Footer Area */
.project-footer {
    padding: 15px 25px;
    border-top: 1px solid #F1F5F9;
    background-color: #ffffff;
    position: relative; 
    overflow: hidden; 
}

/* The Red Arrow Button Box */
.project-arrow {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%; 
    width: 65px;
    background-color: #b3001b; 
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.project-arrow svg {
    width: 22px;
    height: 22px;
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
}

.project-badge {
    display: inline-block;
    background-color: #F1F5F9;
    color: #64748B;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .projects-heading {
        font-size: 2.2rem;
        text-align: center;
    }
}

.project-content h3 a {
    color: inherit;
    text-decoration: none;
}

.project-content h3 a:hover {
    color: var(--accent-orange); 
}
/* =========================================
   Project Details & Video Grid
   ========================================= */
.project-details-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-grid {
    display: grid;
    /* Forces videos to sit side-by-side on big screens, and stack on phones */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.video-wrapper {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* Ensures both local <video> tags and YouTube <iframe> tags behave identically */
.video-wrapper video, 
.video-wrapper iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Keeps standard widescreen video proportions */
    border-radius: 8px;
    border: none;
    background-color: #000; /* Shows black background while loading */
}

.video-title {
    color: var(--primary-navy);
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 5px;
    text-align: center;
}

/* Mobile Responsiveness for Videos */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr; /* Stacks videos in a single column */
    }
}
/* Ensures YouTube iframes behave perfectly */
.video-wrapper video, 
.video-wrapper iframe {
    width: 100%;
    height: 100%; /* Changed from auto to 100% for iframes */
    aspect-ratio: 16 / 9; /* Keeps standard widescreen video proportions */
    border-radius: 8px;
    border: none;
    background-color: #000;
}

