/* ================================
   AMW Grinders - Main Stylesheet
   ================================ */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #1e293b;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-gray: #f9fafb;
    --bg-blue-light: #eff6ff;
    --border-gray: #e5e7eb;
    --success-color: #10b981;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-gray);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-primary-inverse {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-primary-inverse:hover {
    background-color: var(--bg-blue-light);
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary-outline:hover {
    background-color: var(--bg-blue-light);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    display: block;
    margin-bottom: 12px;
}

/* ================================
   Navigation
   ================================ */
.amw-navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand a {
    display: block;
    text-decoration: none;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.nav-brand p {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: var(--bg-blue-light);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    z-index: 999;
    padding: 20px;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 16px;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--border-gray);
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: var(--white);
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #bfdbfe;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.125rem;
    margin-bottom: 40px;
    color: #e0e7ff;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   Features Section
   ================================ */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-gray);
    margin: 0;
}

/* ================================
   Product Categories
   ================================ */
.product-categories-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.category-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.category-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* ================================
   CTA Section
   ================================ */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
}

/* ================================
   Page Hero
   ================================ */
.page-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: var(--white);
    padding: 100px 0 60px;
    margin-top: 70px;
}

.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.25rem;
    color: #bfdbfe;
}

.back-link {
    color: #bfdbfe;
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.back-link:hover {
    color: var(--white);
}

.product-category-label {
    font-size: 0.875rem;
    color: #bfdbfe;
    margin-bottom: 12px;
}

/* ================================
   About Page
   ================================ */
.about-section {
    padding: 80px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.company-info-card {
    background-color: var(--bg-blue-light);
    padding: 40px;
    border-radius: 12px;
}

.company-info-card h3 {
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-gray);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--text-dark);
}

.info-item span {
    color: var(--text-gray);
    text-align: right;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.value-item {
    text-align: center;
    padding: 30px;
}

.value-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.value-item h3 {
    margin-bottom: 12px;
}

.value-item p {
    color: var(--text-gray);
}

/* Why Choose Us */
.why-choose-section {
    padding: 80px 0;
    background-color: var(--white);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.check-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.why-item h4 {
    margin-bottom: 8px;
}

.why-item p {
    color: var(--text-gray);
    margin: 0;
}

/* ================================
   Products Page
   ================================ */
.products-section {
    padding: 80px 0;
    background-color: var(--white);
}

.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background-color: #e5e7eb;
    color: var(--text-dark);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: #d1d5db;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.product-card.hidden {
    display: none;
}

.product-image {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    color: var(--white);
}

.product-info {
    padding: 24px;
}

.product-category {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.product-short-desc {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ================================
   Product Detail Page
   ================================ */
.product-detail-section {
    padding: 60px 0;
    background-color: var(--bg-gray);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.product-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-detail-image {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image-large {
    color: var(--white);
}

.content-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.product-description {
    color: var(--text-gray);
    line-height: 1.8;
}

.features-list,
.benefits-list,
.usecases-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    list-style: none;
}

.features-list li,
.benefits-list li,
.usecases-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.features-list .check-icon {
    color: var(--primary-color);
}

.benefits-list .bullet {
    color: var(--success-color);
}

.usecases-list .arrow {
    color: var(--primary-color);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tbody tr {
    border-bottom: 1px solid var(--border-gray);
}

.specs-table tbody tr.even {
    background-color: var(--bg-gray);
}

.specs-table td {
    padding: 16px;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.specs-table td:last-child {
    color: var(--text-gray);
}

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Product Sidebar */
.product-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background-color: var(--bg-blue-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.product-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.sidebar-section {
    border-top: 1px solid var(--border-gray);
    padding-top: 24px;
    margin-top: 24px;
}

.sidebar-section h3,
.sidebar-section h4 {
    margin-bottom: 16px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
}

.contact-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.quick-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-info-list li {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* ================================
   Contact Page
   ================================ */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 16px;
    display: none;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

.info-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.info-section {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-icon {
    flex-shrink: 0;
}

.info-icon svg {
    color: var(--primary-color);
}

.info-section strong {
    display: block;
    margin-bottom: 4px;
}

.info-section p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.875rem;
}

.hours-card {
    background-color: var(--bg-blue-light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.hours-card h3 {
    margin-bottom: 20px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    color: var(--text-dark);
}

.hours-item strong {
    font-weight: 600;
}

.map-placeholder {
    background-color: #e5e7eb;
    border-radius: 12px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.map-placeholder svg {
    margin-bottom: 12px;
}

.map-placeholder small {
    font-size: 0.875rem;
}

/* ================================
   Footer
   ================================ */
.amw-footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-gst {
    font-size: 0.75rem;
    margin-top: 12px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li {
    font-size: 0.875rem;
}

.footer-col a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin: 0;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .product-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .two-col-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .amw-container {
        padding: 0 16px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.875rem;
    }
}

/* ================================
   Utility Classes
   ================================ */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }