/* =========================================
   ATIK AUTO RICE MILLS - MASTER CSS
   ========================================= */
:root {
    --brand-green: #2e7d32;
    --brand-red: #e53935;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --text-dark: #333;
    --bg-light: #f8f9fa;
}

* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background: var(--bg-light); padding-bottom: 70px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-green { color: var(--brand-green); }
.text-red { color: var(--brand-red); }

/* --- HEADER & TOP BAR --- */
.top-bar { background: var(--brand-green); color: var(--white); padding: 8px 0; font-size: 13px; }
.top-bar .container { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; padding: 0 20px; }
.top-social a { color: white; text-decoration: none; margin-left: 15px; }

.main-header { background: var(--white); padding: 10px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.main-header .container { max-width: 1300px; margin: 0 auto; display: flex; align-items: center; padding: 0 15px; gap: 20px; }
.logo-brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.logo-box img { height: 45px; width: auto; }
.brand-info { display: flex; flex-direction: column; }
.main-title { font-size: 16px; font-weight: 800; margin: 0; line-height: 1.1; white-space: nowrap; }
.highlight-red { color: var(--brand-red); }
.highlight-green { color: var(--brand-green); }
.sub-title { font-size: 8px; color: #777; font-weight: 700; text-transform: uppercase; margin-top: 2px; }

.desktop-search { flex: 1; max-width: 400px; margin-left: 20px; }
.search-form { display: flex; background: #eee; border-radius: 25px; padding: 5px 15px; align-items: center; }
.search-form input { border: none; background: transparent; outline: none; width: 100%; padding: 6px; font-size: 14px; }
.search-form button { border: none; background: transparent; color: var(--brand-green); cursor: pointer; font-size: 16px; }

.nav-links { list-style: none; display: flex; margin: 0; margin-left: auto; padding: 0; gap: 25px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--text-dark); white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { color: var(--text-dark); text-decoration: none; font-size: 20px; position: relative; }
.badge { position: absolute; top: -8px; right: -10px; background: var(--brand-green); color: white; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

.mobile-menu-trigger { display: none; font-size: 22px; cursor: pointer; color: var(--text-dark); }
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: white; display: none; grid-template-columns: repeat(5, 1fr); padding: 10px 0; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1001; border-top: 1px solid #eee; }
.bottom-nav-item { text-decoration: none; color: #555; display: flex; flex-direction: column; align-items: center; font-size: 10px; font-weight: 500; gap: 4px; position: relative; cursor: pointer; }
.bottom-nav-item i { font-size: 18px; }
.bottom-nav-item.active { color: var(--brand-green); }

.search-overlay { position: fixed; top: -100%; left: 0; width: 100%; height: 120px; background: white; z-index: 2001; transition: 0.3s; padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; align-items: center; }
.search-overlay.is-open { top: 0; }
.search-overlay .search-form { width: 100%; border: 1px solid #ddd; }

.mobile-overlay { position: fixed; top: 0; left: -100%; width: 80%; height: 100%; background: white; z-index: 2000; transition: 0.3s; padding: 25px 20px; box-shadow: 5px 0 15px rgba(0,0,0,0.1); }
.mobile-overlay.is-open { left: 0; }
.menu-header-wrapper { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 2px solid #f5f5f5; margin-bottom: 10px; }
.menu-header-title { font-size: 16px; font-weight: 700; color: #222; margin: 0; }
.close-menu { font-size: 20px; cursor: pointer; color: #555; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f5f5f5; }

/* --- HERO SECTION --- */
.atik-hero { background: linear-gradient(to right, #ffffff, #f1f8e9); padding: 80px 0; overflow: hidden; }
.hero-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 50px; padding: 0 20px; }
.hero-content { flex: 1.2; }
.hero-image { flex: 0.8; text-align: center; }
.hero-badge { background: rgba(46, 125, 50, 0.1); color: var(--brand-green); padding: 6px 15px; border-radius: 50px; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.1; margin: 20px 0; color: #222; }
.hero-subtitle { font-size: 18px; color: #555; line-height: 1.6; margin-bottom: 35px; }
.btn-primary { background: var(--brand-green); color: white; padding: 15px 35px; border-radius: 5px; text-decoration: none; font-weight: 700; display: inline-block; transition: 0.3s; box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2); border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-3px); background: #1b5e20; }
.btn-secondary { margin-left: 20px; color: #333; font-weight: 700; text-decoration: none; }
.hero-image img { max-width: 100%; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); }
.floating { animation: float 4s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

/* --- CUSTOM PRODUCT GRID (For Database) --- */
.products-section { padding: 60px 0; background: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; margin-top: 30px; }
.product-card { background: white; padding: 20px; border-radius: 15px; border: 1px solid #eee; text-align: center; transition: 0.4s; }
.product-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: var(--brand-green); }
.product-card img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 15px; }
.product-card h3 { font-size: 20px; color: #333; margin-bottom: 10px; }
.product-card p { font-size: 18px; color: var(--brand-red); font-weight: bold; margin-bottom: 15px; }

/* --- FEATURES SECTION --- */
.features-section { padding: 100px 0; background: white; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 36px; font-weight: 800; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { padding: 40px; background: white; border-radius: 15px; border: 1px solid #eee; transition: 0.4s; text-align: center; }
.feature-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: var(--brand-green); }
.feature-card.active { background: var(--brand-green); color: white; }
.feature-card.active p { color: #e8f5e9; }
.feature-icon { font-size: 40px; color: var(--brand-red); margin-bottom: 20px; }
.feature-card.active .feature-icon { color: white; }

/* --- RICE PROCESS TIMELINE --- */
.rice-process { padding: 100px 0; background: #fdfdfd; position: relative; }
.process-tag { color: var(--brand-red); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 2px; }
.section-subtitle { max-width: 700px; margin: 15px auto 60px; color: #666; font-size: 18px; }
.process-timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.process-timeline::before { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 100%; background: rgba(46, 125, 50, 0.1); transform: translateX(-50%); }
.process-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 80px; width: 100%; }
.process-item.reverse { flex-direction: row-reverse; }
.process-content { width: 45%; padding: 30px; background: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-bottom: 4px solid var(--brand-green); transition: 0.3s; }
.process-item.reverse .process-content { border-bottom-color: var(--brand-red); }
.process-content:hover { transform: translateY(-5px); }
.process-content h3 { margin: 0 0 15px; font-size: 24px; color: #333; }
.process-content p { margin: 0; color: #666; line-height: 1.7; font-size: 15px; }
.process-icon-box { width: 80px; height: 80px; background: white; border: 5px solid #f1f8e9; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--brand-green); position: relative; z-index: 2; }
.process-item.reverse .process-icon-box { color: var(--brand-red); border-color: #ffebee; }
.step-number { position: absolute; top: -10px; right: -10px; background: #333; color: white; width: 30px; height: 30px; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* --- CTA SECTION --- */
.simple-cta { background: var(--brand-red); padding: 60px 0; color: white; text-align: center; }
.simple-cta h2 { font-size: 32px; margin-bottom: 10px; }
.btn-white { background: white; color: var(--brand-red); padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: 800; display: inline-block; margin-top: 20px; }

/* --- FOOTER --- */
.atik-unique-footer { position: relative; background: linear-gradient(135deg,#0a2a0c,#1b5e20,#2e7d32); color: #eee; padding: 10px 0 0; font-family: 'Inter', sans-serif; overflow: hidden; }
.footer-overlay { position: absolute; top: -50px; right: -50px; width: 250px; height: 250px; background: radial-gradient(circle, rgba(229,57,53,0.3), transparent 70%); filter: blur(60px); }
.footer-container { position: relative; max-width: 1200px; margin: auto; display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr 1fr; gap: 80px; padding: 0 0px 10px; }
.footer-title { font-size: 25px; font-weight: 700; margin-bottom: 25px; position: relative; color: #fff; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 45px; height: 3px; background: #ff3d3d; border-radius: 5px; }
.footer-logo img { height: 65px; width: auto; background: transparent !important; padding: 0 !important; margin-bottom: 20px; display: block; }
.footer-desc { font-size: 18px; line-height: 1.6; color: #eee; }
.footer-links, .contact-info, .opening-hours { list-style: none; padding: 0; }
.footer-links li, .contact-info li { margin-bottom: 12px; font-size: 18px; font-family: Roboto; }
.footer-links a { color: #ffff; text-decoration: none; transition: 0.3s; font-family: Roboto; }
.footer-links a:hover { color: #ff3d3d; padding-left: 8px; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; }
.contact-info li i { color: #ff3d3d; margin-top: 3px; }
.opening-hours li { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; font-family: Roboto; }
.closed { color: #ff3d3d; font-weight: bold; }
.emergency { background: #e53935; text-align: center; padding: 10px; border-radius: 6px; margin-top: 15px; font-size: 13px; font-weight: bold; color: white; }
.footer-social { margin-top: 20px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: 10px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; transition: 0.4s; text-decoration: none; }
.footer-social a:hover { background: #ff3d3d; transform: translateY(-4px); }
.copyright-bar { background: rgba(0,0,0,0.3); text-align: center; padding: 3px 0; font-size: 16px; color: #eee; }

/* --- RESPONSIVE FIXES --- */
@media (max-width: 992px) {
    .top-bar, .nav-links, .desktop-search { display: none; }
    .mobile-menu-trigger { display: block; flex: 1; }
    .bottom-nav { display: grid; }
    .main-header .container { display: grid; grid-template-columns: 1fr auto 1fr; }
    .logo-brand-link { justify-content: center; }
    .header-actions { justify-content: flex-end; flex: 1; }
    .brand-info { display: none; } 
    .hero-container { flex-direction: column; text-align: center; }
    .hero-title { font-size: 36px; }
    .features-grid { grid-template-columns: 1fr; }
    .btn-secondary { display: block; margin: 20px 0 0; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 20px 20px; }
}

@media (max-width: 768px) {
    .process-timeline::before { left: 40px; }
    .process-item, .process-item.reverse { flex-direction: row; align-items: flex-start; gap: 20px; }
    .process-content { width: calc(100% - 100px); text-align: left; }
    .process-icon-box { width: 60px; height: 60px; font-size: 20px; min-width: 60px; }
}

@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; gap: 30px; padding: 0 15px 30px; }
    .footer-column { display: flex; flex-direction: column; align-items: flex-start; text-align: left; max-width: 310px; margin: 0 auto; width: 100%; margin-bottom: 5px; }
    .footer-title { margin-bottom: 15px; font-size: 22px; width: 100%; }
    .footer-title::after { left: 0 !important; transform: none !important; }
    .footer-logo img { margin-left: 0 !important; margin-right: auto !important; }
    .footer-links, .contact-info, .opening-hours { width: 100%; }
    .contact-info li { justify-content: flex-start !important; }
    .footer-social { display: flex; justify-content: flex-start !important; }
}