/* =================================================================== */
/* === RD GREENTECH MASTER STYLESHEET (ALL PAGES) === */
/* =================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@400;600;700&display=swap');

/* Global Design System */
:root {
    --primary-color: #003B2F;
    --accent-color: #2e7d32;
    --background-color: #FFFFFF;
    --text-color: #1A1A1A;
    --white-text: #FFFFFF;
    --button-bg-hover: #246a28;
    --button-border-radius: 8px;
    --card-border-radius: 12px;
    --shadow-soft: 0 8px 25px rgba(0, 59, 47, 0.05);
    --shadow-emphasis: 0 15px 35px rgba(0, 59, 47, 0.08), 0 5px 15px rgba(0,0,0,0.05);
    --background-light-alt: #F4F7F6;
}

/* Base Styles */
body { font-family: 'Montserrat', sans-serif; color: var(--text-color); background-color: var(--background-color); margin: 0; padding: 0; line-height: 1.6; font-size: 16px; }
*, *::before, *::after { box-sizing: border-box; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; color: var(--primary-color); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }

/* Header & Navigation */
header { background-color: var(--background-color); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; padding: 15px 0; }
nav.container { display: flex; justify-content: space-between; align-items: center; }
nav.container ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
nav.container ul li a { text-decoration: none; color: var(--text-color); padding: 8px 12px; transition: color 0.3s ease; font-family: 'Montserrat', sans-serif; font-weight: 500; }
nav.container ul li a.active, nav.container ul li a:hover { color: var(--accent-color); }
nav.container ul li a.btn { color: var(--white-text); }
.logo img { height: 60px; width: auto; margin-right: 10px; }

/* General Components */
.btn { display: inline-block; background-color: var(--primary-color); color: var(--white-text); padding: 12px 25px; border-radius: var(--button-border-radius); text-decoration: none; transition: background-color 0.3s ease, transform 0.2s ease; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem; }
.btn:hover { background-color: var(--button-bg-hover); transform: translateY(-2px); }
.hero-section { position: relative; width: 100%; min-height: 450px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white-text); background-size: cover; background-position: center; padding: 80px 20px; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.55); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-content h1 { font-size: 3.2em; margin-bottom: 20px; color: var(--white-text); font-weight: 700; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.hero-content p { font-size: 1.25em; margin-bottom: 30px; color: var(--white-text); opacity: 0.95; line-height: 1.7; }
.card { background-color: var(--background-color); border: 1px solid #E0E0E0; border-radius: var(--card-border-radius); padding: 30px; margin: 0; box-shadow: var(--shadow-soft); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,0.1), 0 8px 10px rgba(0,0,0,0.08); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.two-col-layout { display: flex; flex-wrap: wrap; gap: 30px; align-items: stretch; }
.two-col-layout > div { flex: 1; min-width: 280px; display: flex; }
.section-padding { padding-top: 80px; padding-bottom: 80px; }
.section-title { font-size: 2.6rem; margin-bottom: 50px; text-align: center; }

/* Footer */
.footer { background-color: var(--primary-color); color: #e0e0e0; padding: 50px 0 20px 0; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; text-align: left; }
.footer-column { flex: 1 1 220px; min-width: 220px; margin: 15px; padding: 0 10px; }
.footer-column h4 { color: var(--white-text); margin-bottom: 20px; font-size: 1.2rem; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column p, .footer-column ul li a { color: #c0c0c0; text-decoration: none; font-size: 0.95rem; line-height: 1.8; transition: color 0.3s ease; }
.footer-column ul li a:hover { color: var(--accent-color); }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid #2a6652; font-size: 0.9em; text-align: center; color: #a0a0a0; }
.footer .social-icons { margin-top: 10px; }
.footer .social-icons img { width: 32px; height: 32px; vertical-align: middle; }
.footer .social-icons a:hover img { opacity: 0.8; }

/* === SITE-WIDE ICON SIZING === */
.core-services .card img { max-width: 60px; height: 60px; object-fit: contain; margin: 0 auto 15px auto; }
.industries-serve .icon-block img { max-width: 60px; height: 60px; object-fit: contain; margin: 0 auto 15px auto; }
.why-rd-grid .card img { max-width: 70px; height: 70px; object-fit: contain; margin: 0 auto 20px auto; }

/* === SUSTAINABILITY PAGE SPECIFIC STYLES === */
.hero-sustainability {
    background-image: url('../images/sustainability-hero.png'); /* Path is relative to the CSS file */
    min-height: 500px;
}
.sustainability-targets-quantitative + .sustainability-philosophy {
    padding-top: 0; /* Fixes large gap */
}
.target-quantitative-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    object-fit: contain;
}
.target-quantitative-card h3.target-quantitative-metric {
    font-size: 3.5rem; /* Increased font size for impact */
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 10px 0;
    line-height: 1.2;
}
.target-quantitative-card p.target-quantitative-description { font-size: 1rem; }
.sustainability-philosophy { background-color: var(--background-light-alt); }
.philosophy-intro-text { max-width: 800px; margin: 0 auto 50px auto; text-align: center; }
.philosophy-intro-text p { font-size: 1.1rem; line-height: 1.8; }
.philosophy-concepts-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 992px) { .philosophy-concepts-grid { grid-template-columns: repeat(3, 1fr); } }
.philosophy-concept-card { padding: 35px 30px; }
.philosophy-concept-icon { width: 70px; height: 70px; margin: 0 auto 25px auto; object-fit: contain; }
.philosophy-concept-card h4 { font-size: 1.4rem; min-height: 2.8em; display: flex; align-items: center; justify-content: center; }
.philosophy-concept-card p { font-size: 0.95rem; flex-grow: 1; }

/* === BLOG PAGE SPECIFIC STYLES === */
.blog-hero { background-color: var(--primary-color); color: var(--white-text); text-align: center; padding: 60px 20px; }
.blog-hero h2 { font-size: 2.8rem; color: var(--white-text); margin-bottom: 15px; }
.blog-hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto; opacity: 0.9; }
.blog-grid { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
@media (min-width: 992px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { padding: 0; overflow: hidden; text-align: left; }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card .card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card h4 { font-size: 1.3rem; margin-top: 0; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.95rem; opacity: 0.8; line-height: 1.5; margin-bottom: 1.5rem; /* Removed flex-grow to fix button alignment */ }
.read-more { margin-top: auto; align-self: flex-start; }

/* Modal Styling */
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); }
.modal-content { background-color: #fefefe; margin: 8% auto; padding: 40px; border-radius: 10px; width: 90%; max-width: 700px; position: relative; box-shadow: 0 5px 25px rgba(0,0,0,0.2); animation: fadeIn 0.3s; }
@keyframes fadeIn { from {opacity: 0; transform: scale(0.95);} to {opacity: 1; transform: scale(1);} }
.close-btn { color: #aaa; position: absolute; top: 15px; right: 25px; font-size: 2rem; font-weight: bold; line-height: 1; transition: color 0.3s; cursor: pointer; }
.close-btn:hover, .close-btn:focus { color: #333; text-decoration: none; }
#modal-body h3 { font-size: 2rem; margin-top: 0; }
#modal-body p { font-size: 1.05rem; line-height: 1.8; }

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    nav.container, .footer .container { flex-direction: column; }
    nav.container ul { text-align: center; width: 100%; }
    .footer-column { text-align: center; }
    .section-title { font-size: 2.1rem; margin-bottom: 30px; }
    .two-col-layout > div { min-width: 100%; }

    /* Sustainability Responsive */
    .target-quantitative-icon { width: 60px; height: 60px; }
    .target-quantitative-card h3.target-quantitative-metric { font-size: 2.5rem; }
    .philosophy-concept-icon { width: 60px; height: 60px; }
    .philosophy-concept-card h4 { min-height: 0; }
    
    /* Blog Responsive */
    .blog-hero h2 { font-size: 2.2rem; }
    .modal-content { margin: 15% auto; padding: 25px; }
    #modal-body h3 { font-size: 1.5rem; }
}

/*
 * ==========================================
 * === CONTACT PAGE SPECIFIC STYLES ===
 * ==========================================
 */

.contact-section .section-header {
    margin-bottom: 50px;
}
.contact-section .section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0 auto;
    opacity: 0.9;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Make form slightly larger */
    gap: 3rem;
    align-items: flex-start;
}

/* Contact Form Styling */
.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form-container .form-group {
    display: flex;
    flex-direction: column;
}
.contact-form-container label {
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
}
.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--button-border-radius, 8px);
    border: 1px solid #ccc;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 59, 47, 0.1);
}
.contact-form-container button.btn {
    align-self: flex-start; /* Align button to the left */
    width: auto;
}

/* Contact Info & Map Styling */
.contact-info-container h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.contact-list li .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}
.contact-list li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-list li a:hover {
    color: var(--accent-color);
}
.map-container {
    border-radius: var(--card-border-radius, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-soft, 0 8px 25px rgba(0,0,0,0.1));
    border: 1px solid #e0e0e0;
}


/* Responsive Adjustments for Contact Page */
@media (max-width: 992px) {
    .contact-layout-grid {
        grid-template-columns: 1fr; /* Stack columns on tablets and smaller */
    }
}
@media (max-width: 768px) {
    .contact-info-container {
        margin-top: 3rem; /* Add space when stacked */
    }
}