/* Reset & Basics */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --clr-bg: #f8fafc;
    --clr-text: #1e293b;
    --clr-primary: #10b981; /* Vibrant Green */
    --clr-primary-dark: #059669;
    --clr-secondary: #1e1b4b; /* Deep Indigo */
    --clr-accent: #f59e0b; /* Dynamic Accent Orange */
    --clr-light: #ffffff;
    --clr-border: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--clr-secondary);
    line-height: 1.2;
}

a { text-decoration: none; color: var(--clr-primary); transition: var(--transition); }
a:hover { color: var(--clr-primary-dark); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 25px; }

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
    color: var(--clr-light);
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: var(--clr-light);
}

/* --- Header Section --- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.05); }

.top-bar { background-color: var(--clr-secondary); color: rgba(255,255,255,0.8); font-size: 0.85rem; padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-contact a { color: rgba(255,255,255,0.8); margin-right: 20px; display: inline-flex; align-items: center; gap: 6px; }
.top-contact a:hover { color: var(--clr-primary); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo img { max-height: 50px; }
.logo-text { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--clr-secondary); letter-spacing: -0.5px; }

.nav-menu { display: flex; gap: 30px; }
.nav-menu li a { font-weight: 500; color: var(--clr-text); font-size: 1.05rem; position: relative; }
.nav-menu li a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
    background-color: var(--clr-primary); transition: var(--transition); border-radius: 2px;
}
.nav-menu li a:hover { color: var(--clr-primary); }
.nav-menu li a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 15px; }
.mobile-toggle { display: none; background: transparent; border: none; font-size: 1.5rem; color: var(--clr-secondary); cursor: pointer; }

/* Responsive Nav */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px);
        background: var(--clr-light); flex-direction: column; align-items: center; justify-content: center;
        transition: var(--transition); gap: 20px; z-index: 999;
    }
    .nav-menu.active { left: 0; }
    .nav-actions .btn-primary { display: none; }
    .mobile-toggle { display: block; }
    .top-bar { display: none; }
}

/* --- Floating Buttons --- */
.floating-whatsapp {
    position: fixed; bottom: 30px; left: 30px; width: 60px; height: 60px;
    background-color: #25D366; color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 32px; box-shadow: var(--shadow-lg); z-index: 9999;
    transition: var(--transition); animation: pulse 2s infinite;
}
.floating-whatsapp:hover { transform: scale(1.1); color: white; }
.floating-whatsapp .tooltip-text {
    position: absolute; left: 75px; background: #fff; color: #333;
    padding: 6px 12px; border-radius: 4px; font-size: 14px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: var(--transition);
    box-shadow: var(--shadow-sm); font-family: var(--font-body); font-weight: 500;
}
.floating-whatsapp:hover .tooltip-text { opacity: 1; left: 85px; }

.floating-phone {
    display: none; position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background-color: var(--clr-primary); color: white; border-radius: 50%;
    justify-content: center; align-items: center; font-size: 26px; box-shadow: var(--shadow-lg); z-index: 9999;
}
@media (max-width: 768px) {
    .floating-phone { display: flex; }
    .floating-whatsapp { left: 20px; bottom: 20px; width: 50px; height: 50px; font-size: 26px; }
    .floating-whatsapp .tooltip-text { display: none; }
    .floating-phone { right: 20px; bottom: 20px; width: 50px; height: 50px; font-size: 22px; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Global Sections --- */
.section { padding: 120px 0; }
.section-title { text-align: center; margin-bottom: 70px; position: relative; z-index: 2; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; color: var(--clr-secondary); }
.section-title h2 span { color: var(--clr-primary); }
.section-title p { color: #64748b; font-size: 1.15rem; max-width: 650px; margin: 0 auto; line-height: 1.8; }
.section-bg { background-color: #f8fafc; border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border); }

/* --- Advanced Footer --- */
.site-footer { 
    background: #0f172a;
    color: rgba(255,255,255,0.7); 
    padding-top: 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-dark));
}
.footer-top { 
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; position: relative; z-index: 2; 
}
.footer-logo { max-height: 45px; margin-bottom: 20px; filter: brightness(0) invert(1); transition: var(--transition); }
.footer-logo:hover { opacity: 0.8; }
.brand-widget p { line-height: 1.8; font-size: 1rem; margin-bottom: 20px; color: rgba(255,255,255,0.6); }

@media(max-width: 992px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .contact-widget ul li { justify-content: center; }
    .footer-widget h4::after { left: 50%; transform: translateX(-50%); }
}

.footer-widget h4 { 
    color: var(--clr-light); margin-bottom: 25px; position: relative; 
    padding-bottom: 12px; font-size: 1.25rem; font-weight: 600; letter-spacing: 0.5px;
}
.footer-widget h4::after { 
    content: ''; position: absolute; left: 0; bottom: 0; 
    width: 40px; height: 3px; background: var(--clr-primary); border-radius: 2px;
}
.footer-widget ul li { margin-bottom: 12px; transition: var(--transition); }
.footer-widget ul li a { color: rgba(255,255,255,0.6); transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.footer-widget ul li a::before { content: '›'; color: var(--clr-primary); font-size:1.2rem; font-weight: bold; opacity: 0; transform: translateX(-5px); transition: var(--transition); }
.footer-widget ul li a:hover { color: var(--clr-light); padding-left: 3px; }
.footer-widget ul li a:hover::before { opacity: 1; transform: translateX(0); }

.contact-widget ul li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; line-height: 1.5; margin-bottom:15px; color:rgba(255,255,255,0.6); }
.contact-widget ul li i { color: var(--clr-light); font-size: 1.1rem; margin-top: 4px; background: var(--clr-primary); width:32px; height:32px; display:flex; justify-content:center; align-items:center; border-radius: 50%; flex-shrink:0; }
.contact-widget ul li a { color: rgba(255,255,255,0.6); }
.contact-widget ul li a:hover { color: var(--clr-light); }

.footer-bottom { 
    background-color: #020617; padding: 20px 0; 
    text-align: center; font-size: 0.95rem; position: relative; z-index: 2;
    color: rgba(255,255,255,0.5);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(30, 27, 75, 0.8)), url('../img/banner-bg.jpg') center/cover;
    padding: 120px 0; text-align: center; color: var(--clr-light);
}
.page-banner h1 { 
    color: var(--clr-light); 
    font-size: 3.2rem; 
    font-weight: 800; 
    letter-spacing: 1px; 
    text-transform: uppercase;
    margin-bottom: 20px; 
    line-height: 1.2;
}
.page-banner p { font-size: 1.25rem; opacity: 0.9; }

@media(max-width: 768px) {
    .page-banner { padding: 80px 0; }
    .page-banner h1 { font-size: 2rem; }
    .page-banner p { font-size: 1.1rem; }
}

/* Card Components */
.item-card {
    background: var(--clr-light); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
    transition: var(--transition); height: 100%; display: flex; flex-direction: column;
}
.item-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.item-img-wrapper { position: relative; overflow: hidden; padding-top: 60%; }
.item-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.item-card:hover .item-img-wrapper img { transform: scale(1.05); }
.item-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.item-title { font-size: 1.4rem; margin-bottom: 10px; }
.item-title a { color: var(--clr-secondary); }
.item-title a:hover { color: var(--clr-primary); }
.item-excerpt { color: #64748b; margin-bottom: 20px; flex-grow: 1; }
.item-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: #94a3b8; border-top: 1px solid var(--clr-border); padding-top: 15px; }

/* Content Section (for pages & blogs) */
.content-wrapper { padding: 60px 0; }
.rich-text { max-width: 800px; margin: 0 auto; background: var(--clr-light); padding: 40px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.rich-text img { border-radius: 8px; margin: 20px 0; }
.rich-text p { margin-bottom: 20px; font-size: 1.05rem; }
.rich-text h2, .rich-text h3 { margin: 30px 0 15px 0; }
.rich-text ul, .rich-text ol { margin-bottom: 20px; padding-left: 20px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.data-table th, .data-table td { padding: 15px; border-bottom: 1px solid var(--clr-border); text-align: left; }
.data-table th { background: var(--clr-secondary); color: var(--clr-light); font-family: var(--font-heading); }
.data-table tr:hover { background: rgba(16, 185, 129, 0.05); }

/* Form Elements */
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid var(--clr-border); border-radius: 6px; font-family: var(--font-body); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--clr-primary); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }

/* --- New Homepage UI Components --- */

/* About Home Preview */
.about-preview {
    display: flex; gap: 40px; align-items: center;
}
.about-preview-img {
    flex: 1; border-radius: 12px; overflow: hidden; position: relative;
    box-shadow: var(--shadow-lg);
}
.about-preview-img::before {
    content: ''; position: absolute; inset: 0; 
    background: linear-gradient(0deg, rgba(30,27,75,0.7) 0%, transparent 50%); z-index: 1;
}
.about-preview-img img { width: 100%; height: auto; object-fit: cover; }
.about-preview-content {
    flex: 1.2;
}
.about-preview-content h4 { color: var(--clr-primary); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.9rem; margin-bottom: 10px; }
.about-preview-content h2 { font-size: 2.2rem; margin-bottom: 20px; }
.about-preview-content p { color: #64748b; font-size: 1.1rem; margin-bottom: 20px; }
.about-preview-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.about-preview-features li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 1.1rem; }
.about-preview-features li i { color: var(--clr-primary); font-size: 1.4rem; }
@media(max-width: 992px) { .about-preview { flex-direction: column; } }

/* Services Top 3 Cards */
.top-services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px;
}
.top-service-card {
    background: var(--clr-light); padding: 50px 40px; text-align: center;
    border-radius: 12px; box-shadow: var(--shadow-sm); transition: var(--transition);
    position: relative; overflow: hidden; z-index: 1; border: 1px solid var(--clr-border);
}
.top-service-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0;
    background: var(--clr-primary); transition: var(--transition); z-index: -1;
}
.top-service-card:hover { transform: translateY(-10px); border-color: var(--clr-primary); }
.top-service-card:hover::after { height: 100%; top: 0; }
.top-service-card:hover h3, .top-service-card:hover p, .top-service-card:hover i { color: var(--clr-light); }
.top-service-card i { font-size: 3rem; color: var(--clr-primary); margin-bottom: 20px; transition: var(--transition); }
.top-service-card h3 { font-size: 1.4rem; margin-bottom: 15px; transition: var(--transition); }
.top-service-card p { color: #64748b; transition: var(--transition); }

/* 9-Grid Metal Scrap Specific */
.scrap-metals-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px;
}
.scrap-metal-box {
    background: #fff; border: 1px solid var(--clr-border); border-radius: 12px;
    padding: 35px 25px; display: flex; align-items: flex-start; gap: 20px;
    transition: var(--transition); box-shadow: var(--shadow-sm);
}
.scrap-metal-box:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--clr-primary); }
.scrap-metal-icon {
    width: 60px; height: 60px; background: rgba(16, 185, 129, 0.1); border-radius: 12px;
    display: flex; justify-content: center; align-items: center; font-size: 24px; color: var(--clr-primary);
    flex-shrink: 0;
}
.scrap-metal-info h4 { font-size: 1.2rem; margin-bottom: 8px; color: var(--clr-secondary); }
.scrap-metal-info p { font-size: 0.9rem; color: #64748b; line-height: 1.4; margin: 0; }
@media(max-width: 992px) { .scrap-metals-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 768px) { .scrap-metals-grid { grid-template-columns: 1fr; } }

/* Nearest Scrapper Section */
.nearest-scrapper {
    background: var(--clr-secondary); color: var(--clr-light); padding: 80px 0;
    position: relative; overflow: hidden;
}
.nearest-scrapper::before {
    content: ''; position: absolute; right: -10%; top: -20%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, rgba(30,27,75,0) 70%); border-radius: 50%;
}
.nearest-scrapper .section-title h2, .nearest-scrapper .section-title p { color: var(--clr-light); }
.nearest-scrapper .section-title p { opacity: 0.8; }
.nearest-content { max-width: 800px; margin: 0 auto; text-align: center; }
.nearest-content p { font-size: 1.15rem; margin-bottom: 30px; opacity: 0.9; }

/* Slogan Banner */
.slogan-banner {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    padding: 60px 0; text-align: center; color: white; margin: 50px 0; border-radius: 16px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}
.slogan-banner h2 { color: white; font-size: 2.5rem; margin-bottom: 20px; }
.slogan-banner p { font-size: 1.2rem; margin-bottom: 0; opacity: 0.9; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Modern Contact & Info Cards */
.info-card {
    background: var(--clr-light); padding: 30px; border-radius: 12px;
    box-shadow: var(--shadow-sm); text-align: center; border: 1px solid var(--clr-border);
}
.info-card i { font-size: 2.5rem; color: var(--clr-primary); margin-bottom: 15px; }
.info-card h4 { margin-bottom: 10px; }
.info-card p, .info-card a { color: #64748b; font-size: 1.05rem; }
.info-card a:hover { color: var(--clr-primary); }

/* Locations Grid */
.locations-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.location-card {
    padding: 20px; background: white; border-radius: 10px; box-shadow: var(--shadow-sm);
    display: flex; align-items: center; gap: 15px; transition: var(--transition);
    border: 1px solid var(--clr-border);
}
.location-card:hover { transform: translateX(5px); border-color: var(--clr-primary); }
.location-card i { font-size: 1.8rem; color: var(--clr-accent); }
.location-card h3 { font-size: 1.2rem; margin: 0; }
.location-card h3 a { color: var(--clr-secondary); }
.location-card h3 a:hover { color: var(--clr-primary); }
