/* ===== Manishila - Pasta & Noodles Manufacturing ===== */
:root {
  --primary: #c8392b;
  --primary-dark: #a93226;
  --secondary: #f39c12;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --gray: #6c757d;
  --light: #f8f9fa;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; color: var(--dark); position: relative; display: inline-block; padding-bottom: 15px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--primary); }
.section-title p { color: var(--gray); margin-top: 15px; font-size: 1.05rem; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 12px 30px; border-radius: var(--radius); font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: var(--transition); font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-secondary { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* ===== HEADER ===== */
.top-bar { background: var(--dark); color: rgba(255,255,255,0.8); padding: 8px 0; font-size: 0.85rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--secondary); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar i { margin-right: 5px; color: var(--secondary); }

header { background: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 55px; }
.logo-text h1 { font-size: 1.5rem; color: var(--primary); line-height: 1.2; }
.logo-text span { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

nav ul { display: flex; align-items: center; gap: 5px; }
nav ul li { position: relative; }
nav ul li a { padding: 8px 15px; border-radius: var(--radius); font-weight: 500; color: var(--dark); font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
nav ul li a:hover, nav ul li a.active { color: var(--primary); background: rgba(200,57,43,0.08); }
.nav-arrow { font-size: 0.65rem; transition: var(--transition); }
.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.dropdown { display: none; position: absolute; top: calc(100% + 5px); left: 0; background: var(--white); min-width: 210px; box-shadow: 0 8px 25px rgba(0,0,0,0.12); border-radius: var(--radius); border-top: 3px solid var(--primary); z-index: 100; padding: 6px 0; }
.dropdown li a { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 0; font-size: 0.9rem; color: var(--dark); white-space: nowrap; }
.dropdown li a i { color: var(--primary); font-size: 0.75rem; }
.dropdown li a:hover { background: var(--light); color: var(--primary); padding-left: 22px; }
.has-dropdown:hover .dropdown { display: block; }
.logo-icon-box { width: 50px; height: 50px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; font-weight: 800; flex-shrink: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--dark); transition: var(--transition); }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; overflow: hidden; }
.slide { position: relative; height: 600px; background-size: cover; background-position: center; display: flex; align-items: center; }
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.4) 100%); }
.slide-content { position: relative; z-index: 2; color: var(--white); max-width: 650px; }
.slide-content h2 { font-size: 3rem; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.slide-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.slide-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.slider-nav { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition); border: none; }
.slider-dot.active { background: var(--secondary); transform: scale(1.3); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); color: white; border: 2px solid rgba(255,255,255,0.5); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); z-index: 10; }
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--primary); color: var(--white); padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; font-weight: 800; }
.stat-item p { font-size: 0.9rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 1px; }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: var(--white); }

/* ===== ABOUT SECTION ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: 12px; box-shadow: var(--shadow); }
.about-badge { position: absolute; bottom: -20px; right: -20px; background: var(--primary); color: white; padding: 20px; border-radius: 12px; text-align: center; box-shadow: var(--shadow); }
.about-badge h3 { font-size: 2rem; }
.about-badge p { font-size: 0.8rem; text-transform: uppercase; }
.about-content h2 { font-size: 2rem; color: var(--dark); margin-bottom: 20px; }
.about-content p { color: var(--gray); margin-bottom: 20px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.feature-item i { color: var(--primary); font-size: 1.2rem; }

/* ===== PRODUCTS ===== */
.products-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-btn { padding: 8px 22px; border: 2px solid var(--border); border-radius: 30px; cursor: pointer; font-weight: 500; transition: var(--transition); background: white; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.product-img { height: 220px; overflow: hidden; background: var(--light); display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img .no-img { font-size: 4rem; color: var(--border); }
.product-body { padding: 20px; }
.product-cat { font-size: 0.8rem; color: var(--primary); text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }
.product-body h3 { font-size: 1.1rem; margin: 8px 0; color: var(--dark); }
.product-body p { color: var(--gray); font-size: 0.9rem; margin-bottom: 15px; }
.product-meta { display: flex; gap: 15px; font-size: 0.85rem; color: var(--gray); margin-bottom: 15px; }
.product-meta span i { margin-right: 4px; color: var(--primary); }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(200,57,43,0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.gallery-overlay i { color: white; font-size: 2rem; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== WHY CHOOSE US ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { text-align: center; padding: 40px 30px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.feature-icon i { font-size: 2rem; color: white; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--dark); }
.feature-card p { color: var(--gray); font-size: 0.95rem; }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; text-align: center; padding: 80px 0; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; align-items: start; }
.contact-info h3 { font-size: 1.6rem; margin-bottom: 12px; color: var(--dark); }
.contact-info > p { color: var(--gray); margin-bottom: 30px; line-height: 1.8; }
.contact-item { display: flex; gap: 18px; margin-bottom: 28px; align-items: flex-start; }
.contact-icon { width: 52px; height: 52px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon i { color: white; font-size: 1.1rem; }
.contact-item h4 { font-size: 0.78rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--dark); font-weight: 500; font-size: 0.95rem; }
.contact-item a:hover { color: var(--primary); }
.social-links { display: flex; gap: 10px; margin-top: 25px; }
.social-link { width: 42px; height: 42px; border-radius: 50%; background: var(--light); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--dark); transition: var(--transition); font-size: 0.9rem; }
.social-link:hover { background: var(--primary); color: white; border-color: var(--primary); }
.contact-map { margin-top: 30px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { width: 100%; height: 220px; border: none; display: block; }

/* Contact Form */
.contact-form-wrap { background: white; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); overflow: hidden; }
.contact-form-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 22px 30px; }
.contact-form-header h3 { color: white; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.contact-form-body { padding: 30px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--dark); margin-bottom: 7px; }
.contact-form .req { color: var(--primary); }
.contact-form .form-input { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; color: var(--dark); background: var(--light); transition: var(--transition); outline: none; }
.contact-form .form-input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(200,57,43,0.08); }
.contact-form .form-input::placeholder { color: #aaa; }
.contact-form .form-textarea { height: 140px; resize: vertical; }
.contact-submit { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; border-radius: var(--radius); margin-top: 5px; }

/* ===== PAGE BANNER ===== */
.page-banner { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); color: white; padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="30" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>'); }
.page-banner h1 { font-size: 2.8rem; position: relative; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; margin-top: 15px; font-size: 0.9rem; opacity: 0.8; position: relative; }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb span::before { content: '/'; margin-right: 10px; }

/* ===== DOWNLOADS ===== */
.downloads-list { display: flex; flex-direction: column; gap: 15px; }
.download-item { display: flex; align-items: center; gap: 20px; background: white; padding: 20px 25px; border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); }
.download-item:hover { transform: translateX(5px); border-left: 4px solid var(--primary); }
.download-icon { width: 55px; height: 55px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.download-icon i { color: white; font-size: 1.5rem; }
.download-info { flex: 1; }
.download-info h4 { color: var(--dark); margin-bottom: 4px; }
.download-info p { color: var(--gray); font-size: 0.85rem; }
.download-meta { display: flex; gap: 15px; font-size: 0.8rem; color: var(--gray); margin-top: 5px; }
.download-btn { flex-shrink: 0; }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-brand .logo-text h1 { color: white; font-size: 1.4rem; }
.footer-brand p { margin: 15px 0 20px; font-size: 0.9rem; line-height: 1.8; }
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact li i { color: var(--secondary); margin-top: 3px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }
.footer-bottom a { color: var(--secondary); }

/* ===== ALERTS ===== */
.alert { padding: 15px 20px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error, .alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

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

/* ===== LIGHTBOX ===== */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 2rem; cursor: pointer; }

/* ===== PRODUCT DETAIL ===== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-detail-img img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }
.product-detail-info h1 { font-size: 2rem; color: var(--dark); margin-bottom: 15px; }
.product-detail-info .category-badge { display: inline-block; background: var(--primary); color: white; padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; margin-bottom: 15px; }
.product-specs { background: var(--light); padding: 20px; border-radius: var(--radius); margin: 20px 0; }
.product-specs table { width: 100%; }
.product-specs td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.product-specs td:first-child { font-weight: 600; color: var(--dark); width: 40%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; box-shadow: var(--shadow); padding: 10px 0; z-index: 999; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav ul li a { display: flex; padding: 12px 20px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .has-dropdown > a .nav-arrow { margin-left: auto; }
  .dropdown { display: none; position: static; box-shadow: none; border: none; border-top: none; padding: 0; background: var(--light); }
  .dropdown.open { display: block; }
  .dropdown li a { padding: 10px 20px 10px 40px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
  .slide { height: 450px; }
  .slide-content h2 { font-size: 2rem; }
  .about-grid, .contact-grid, .product-detail-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .about-badge { position: static; margin-top: 20px; display: inline-block; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.8rem; }
  .page-banner h1 { font-size: 2rem; }
  .top-bar .container { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-section h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .slide { height: 380px; }
  .slide-content h2 { font-size: 1.6rem; }
  .slide-btns { flex-direction: column; }
  .slider-arrow { display: none; }
}
