/* =============================================================
   PRIME INDIAN EARTH MOVER — components.css
   Shared component styles used across all pages
   Tailwind CDN handles utilities; this file handles custom
   design tokens, branded components, and overrides.
   ============================================================= */

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

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
    --gold:          #ffb703; /* A more industrial yellow/gold like CAT equipment */
    --gold-light:    #ffc333;
    --gold-dark:     #e0a000;
    --black:         #111111;
    --black-soft:    #1f1f1f;
    --bg-page:       #ffffff;
    --bg-white:      #ffffff;
    --bg-light:      #f8f9fa;
    --text-dark:     #1a1a1a;
    --text-muted:    #555555;
    --text-light:    #cccccc;
    --border:        #e2e8f0;
    --radius:        2px; /* Sharp industrial corners */
    --transition:    0.25s ease;
    --font-heading:  'Oswald', sans-serif;
    --font-body:     'Inter', sans-serif;
    --shadow-sm:     0 2px 4px rgba(0,0,0,0.05);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:     0 12px 24px rgba(0,0,0,0.12);
}

/* ── GLOBAL RESET ───────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
p { color: var(--text-muted); line-height: 1.75; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--black); }
img { max-width: 100%; height: auto; display: block; }

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 32px;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    border: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gold);
    color: var(--black) !important;
}
.btn-primary:hover {
    background: var(--black);
    color: var(--gold) !important;
}
.btn-outline {
    background: transparent;
    color: var(--black) !important;
    border: 2px solid var(--black);
}
.btn-outline:hover {
    background: var(--black);
    color: #fff !important;
}
.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* ── SECTION UTILITIES ──────────────────────────────────────── */
.section         { padding: 100px 0; background: var(--bg-white); }
.section-light   { padding: 100px 0; background: var(--bg-light); }
.section-white   { padding: 100px 0; background: var(--bg-white); }
.section-dark    { padding: 100px 0; background: var(--black); color: #fff;}
.section-header  { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    background: var(--black);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-radius: var(--radius);
}
.section-title {
    font-size: 42px;
    font-weight: 800;
    color: inherit;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.section-title span { color: var(--gold); }
.section-line {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header { 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    background: var(--bg-white);
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-topbar {
    background: var(--black);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 13px;
}
.topbar-inner  { display: flex; justify-content: space-between; align-items: center; }
.topbar-left, .topbar-right { display: flex; gap: 25px; align-items: center; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
    width: 28px; height: 28px;
    background: #1f1f1f; color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    font-size: 13px;
    transition: all var(--transition);
}
.topbar-social a:hover { color: var(--gold); background: #2a2a2a; }
.header-main {
    background: var(--bg-white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner  { display: flex; justify-content: space-between; align-items: center; }
.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dark) !important;
    text-decoration: none;
    font-weight: 600;
}
.main-nav      { display: flex; gap: 40px; align-items: center; }
.main-nav a {
    font-family: var(--font-heading);
    font-size: 15px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    transition: color var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-dark); }
.nav-contact-btn {
    background: var(--black) !important;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
}
.nav-contact-btn:hover { background: var(--gold) !important; color: var(--black) !important; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer         { background: var(--black); color: var(--text-light); padding-top: 80px; }
.footer-main         { border-bottom: 1px solid var(--black-soft); padding-bottom: 60px; }
.footer-grid         { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 80px; }
.footer-brand h3     { color: var(--white); font-size: 20px; font-weight:800; text-transform: uppercase; margin-bottom: 20px; letter-spacing:1px; }
.footer-brand p      { font-size: 15px; line-height: 1.7; margin-bottom: 25px; color: #a0a0a0; }
.footer-social       { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px;
    background: #1f1f1f; color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    font-size: 16px;
    transition: all var(--transition);
}
.footer-social a:hover { color: var(--gold); background: #2a2a2a; }
.footer-col h4 { color: #fff; font-size: 15px; text-transform: uppercase; margin-bottom: 25px; letter-spacing: 1px; font-weight:700;}
.footer-col a  { display: block; font-size: 15px; margin-bottom: 15px; color: #a0a0a0; transition:color 0.2s; }
.footer-col a:hover { color: var(--gold); padding-left: 5px;}
.footer-col p  { font-size: 15px; color: #a0a0a0; margin-bottom: 15px; display:flex; gap:10px; align-items:flex-start;}
.footer-col p i { color:var(--gold); margin-top:5px; }
.footer-bottom { padding: 30px 0; background:#0a0a0a;}
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.footer-bottom-inner p { color: #888; }
.footer-legal { display: flex; gap: 30px; }
.footer-legal a { color: #888; }
.footer-legal a:hover { color: #fff; }

/* ── CARDS (INDUSTRIAL) ─────────────────────────────────────── */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}
.card-img { width: 100%; height: 200px; object-fit: contain; padding: 15px; border-bottom: 1px solid var(--border); }
.card-img-placeholder {
    width: 100%; height: 200px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; font-size: 54px;
}
.card-body { padding: 20px; flex: 1; display:flex; flex-direction:column; }
.card-title { font-size: 16px; margin-bottom: 10px; color: var(--black); font-weight:800; letter-spacing:0.5px;}
.card-text  { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 15px; flex:1;}

/* ── SERVICES GRID ──────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 992px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .services-grid { grid-template-columns: 1fr; } }

/* ── GLOBAL GRIDS ───────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
}
.breadcrumb a { color: var(--text-muted); font-weight:500;}
.breadcrumb a:hover { color: var(--black); }
.breadcrumb span { color: var(--text-dark); font-weight:600;}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
/* Search Button */
.search-btn {
    background: var(--black);
    color: var(--gold);
    border: none;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-btn:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.search-btn:active {
    background: #000;
    transform: translateY(1px) scale(0.96);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
    .main-nav { gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}

@media (max-width: 768px) {
    .topbar-inner { display: block; }
    .topbar-left { 
        display: none; /* Hide old flex container */
    }
    
    /* New Mobile Topbar 2x2 Grid */
    .mobile-topbar-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .mobile-topbar-grid > div {
        font-size: 10.5px;
    }
    .mobile-topbar-grid .social-icons {
        display: flex;
        justify-content: center;
        gap: 12px;
    }
    
    .topbar-right { display: none; } /* Hide old right container on mobile */
    
    .hide-mobile-text { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .card-img { height: 120px !important; padding: 5px !important; }
    .card-body { padding: 10px !important; }
    .product-card-text { font-size: 11px !important; margin-bottom: 2px !important; }
    .card-img-placeholder { height: 120px !important; font-size: 32px !important; }
    
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .values-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-grid { grid-template-columns: 1fr; gap: 15px; }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        gap: 5px;
        padding: 5px;
    }
    .mobile-menu-toggle span {
        width: 24px; height: 2px;
        background: var(--black);
        transition: all 0.3s;
    }
    
    .header-main { position: relative; background: var(--bg-white); }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        box-shadow: var(--shadow-md);
    }
    .main-nav.open { max-height: 400px; }
    .main-nav a { padding: 16px 20px; border-bottom: 1px solid var(--border); width: 100%; text-align: center; }
    .nav-contact-btn { border-radius: 0; width: 100%; text-align: center; }
    
    .footer-bottom-inner { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 480px) {
    /* Keep 2 products per row on mobile as requested */
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
