/* Tobyhanna Autoparts - Green & Dark Gray Theme */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --secondary: #1a1a1a;
    --dark: #0d0d0d;
    --light: #f5f5f5;
    --gray: #333333;
    --text: #e0e0e0;
    --accent: #66BB6A;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--dark); color: var(--text); line-height: 1.6; }

/* Navigation */
nav { background: var(--secondary); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid var(--primary); }
nav .logo img { height: 50px; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav ul li a { color: var(--text); text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav ul li a:hover, nav ul li a.active { color: var(--primary); }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 25px; height: 3px; background: var(--text); transition: 0.3s; }

/* Hero Section */
.hero { position: relative; height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero h1 { font-size: 3.5rem; color: #fff; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.3rem; color: #ddd; margin-bottom: 30px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 35px; background: var(--primary); color: #fff; text-decoration: none; border-radius: 5px; font-weight: 600; transition: all 0.3s; border: none; cursor: pointer; }
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(76,175,80,0.3); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Sections */
section { padding: 80px 5%; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: #fff; margin-bottom: 10px; }
.section-title p { color: #aaa; font-size: 1.1rem; }

/* Product/Category Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--secondary); border-radius: 10px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid #333; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(76,175,80,0.2); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-content { padding: 20px; }
.card-content h3 { color: #fff; margin-bottom: 10px; }
.card-content p { color: #aaa; font-size: 0.95rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature { text-align: center; padding: 30px; background: var(--secondary); border-radius: 10px; border: 1px solid #333; }
.feature-icon { font-size: 3rem; margin-bottom: 15px; }
.feature h3 { color: #fff; margin-bottom: 10px; }

/* About Section */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-content img { width: 100%; border-radius: 10px; }
.about-text h2 { font-size: 2rem; color: #fff; margin-bottom: 20px; }
.about-text p { margin-bottom: 15px; color: #ccc; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { color: #fff; margin-bottom: 20px; font-size: 1.5rem; }
.contact-info p { margin-bottom: 15px; color: #ccc; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; margin-bottom: 15px; background: var(--secondary); border: 1px solid #444; border-radius: 5px; color: var(--text); font-size: 1rem; }
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.map-container { margin-top: 30px; border-radius: 10px; overflow: hidden; }
.map-container iframe { width: 100%; height: 300px; border: none; }

/* Footer */
footer { background: var(--secondary); padding: 50px 5% 20px; border-top: 2px solid var(--primary); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-section h4 { color: #fff; margin-bottom: 15px; font-size: 1.2rem; }
.footer-section p { color: #aaa; margin-bottom: 8px; }
.footer-section a { color: #aaa; text-decoration: none; transition: color 0.3s; }
.footer-section a:hover { color: var(--primary); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 8px; }
.footer-section ul li a { color: #aaa; }
.footer-logo { height: 40px; margin-bottom: 15px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; color: #666; }
.nowrap { white-space: nowrap; }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    nav ul { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: var(--secondary); padding: 20px; gap: 15px; border-bottom: 2px solid var(--primary); }
    nav ul.active { display: flex; }
    .hero h1 { font-size: 2rem; }
    .about-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}
