/* M.N Plastic — dynamic website styles */

:root {
    --navy: #10233f;
    --navy-dark: #0a1830;
    --blue: #2f6fb0;
    --blue-light: #4f8fd4;
    --bg: #f5f7fa;
    --bg-alt: #eef2f7;
    --text: #29344a;
    --text-muted: #5b6883;
    --border: #e1e6ee;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 4px 18px rgba(16, 35, 63, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--navy); font-weight: 800; line-height: 1.25; margin: 0 0 14px; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 14px; color: var(--text-muted); }
a { color: var(--blue); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* Topbar */
.topbar { background: var(--navy-dark); color: #c7d3e6; font-size: 0.82rem; }
.topbar-inner { display: flex; gap: 24px; justify-content: flex-end; padding: 8px 24px; }
.topbar-est { color: var(--blue-light); font-weight: 600; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 12px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 1; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark {
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { color: #fff; font-weight: 800; font-size: 1.15rem; }
.brand-sub { color: #9fb0cc; font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; }
.brand-logo { max-height: 68px; max-width: 240px; width: auto; object-fit: contain; display: block; }
.brand-logo-footer { max-height: 72px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a { color: #d6dfec; font-weight: 500; font-size: 0.95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: var(--blue-light); }
.nav-cta { white-space: nowrap; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent; transition: all 0.2s ease; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-alt); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #17335c 100%); color: #fff; padding: 90px 0 70px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.eyebrow { color: var(--blue-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 3rem; max-width: 720px; }
.hero-sub { color: #cbd6e8; max-width: 620px; font-size: 1.1rem; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; justify-content: center; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-badges li { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 6px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }

/* Homepage image slider — upload pictures at 1920 x 700px for a crisp full-width fit */
.hero-slider { position: relative; width: 100%; height: 560px; overflow: hidden; background: var(--navy); }
.slider-track { position: relative; width: 100%; height: 100%; }
.slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.9s ease;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,24,48,0.8) 0%, rgba(10,24,48,0.45) 55%, rgba(10,24,48,0.15) 100%); }
.slide-content { position: relative; z-index: 2; color: #fff; max-width: 620px; }
.slide-content h2 { color: #fff; font-size: 2.5rem; margin-bottom: 12px; }
.slide-content p { color: #dbe4f2; font-size: 1.1rem; margin-bottom: 24px; }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); color: #fff;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer; z-index: 3;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    transition: background 0.2s ease;
}
.slider-arrow:hover { background: rgba(255,255,255,0.32); }
.slider-prev { left: 22px; }
.slider-next { right: 22px; }

.slider-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; cursor: pointer; padding: 0; }
.slider-dot.is-active { background: #fff; }

/* Certifications moving strip */
.cert-strip { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; overflow: hidden; }
.cert-track { display: flex; align-items: center; gap: 80px; width: max-content; animation: certScroll 28s linear infinite; }
.cert-strip:hover .cert-track { animation-play-state: paused; }
.cert-item { flex-shrink: 0; display: flex; align-items: center; justify-content: center; height: 120px; }
.cert-item img { max-height: 120px; max-width: 260px; width: auto; object-fit: contain; transition: transform 0.2s ease; }
.cert-item img:hover { transform: scale(1.07); }

@keyframes certScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #17335c 100%); color: #fff; padding: 64px 0; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero .hero-sub { max-width: 640px; margin: 0 auto; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-label { display: inline-block; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 10px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { margin-bottom: 0; }
.section-cta { text-align: center; margin-top: 36px; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }

/* Expertise box */
.expertise-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.check-list li { position: relative; padding: 8px 0 8px 30px; color: var(--text); font-weight: 500; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 8px; color: var(--blue); font-weight: 800; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.product-card { text-align: left; }
.product-icon { font-size: 2.2rem; margin-bottom: 10px; }
.product-image { margin: -28px -28px 16px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.product-image img { width: 100%; height: 170px; object-fit: cover; display: block; }
.product-code { display: block; color: var(--blue); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.why-card { border-top: 3px solid var(--blue); }
.why-card p { margin-bottom: 0; }

.values-grid { margin-top: 34px; }
.value-pill { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.value-pill h4 { font-size: 0.95rem; margin-bottom: 8px; }
.value-pill p { font-size: 0.85rem; margin: 0; }
.value-block p { font-size: 1.05rem; color: var(--text); }

/* Founder / custom block */
.founder-block, .custom-block { text-align: center; max-width: 720px; margin: 0 auto; }
.founder-block h2 { font-size: 1.7rem; }
.founder-photo {
    width: 180px; height: 180px; object-fit: cover; object-position: 50% 12%;
    border-radius: 50%;
    border: 4px solid #fff; box-shadow: var(--shadow); margin: 0 auto 18px;
    display: block;
}

/* CTA banner */
.cta-banner { background: var(--navy); color: #fff; padding: 60px 0; text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #c7d3e6; max-width: 520px; margin: 0 auto 24px; }
.cta-banner-inner { display: flex; flex-direction: column; align-items: center; }

.link-arrow { font-weight: 600; }

/* Contact page */
.contact-grid { align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.contact-label { display: block; color: var(--blue); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.contact-item p { margin: 0; color: var(--text); }

.contact-form-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
.form-row input, .form-row textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--bg);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue); background: #fff; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 0.9rem; }
.alert-success { background: #e5f6ec; color: #1c7a44; border: 1px solid #b9e6c9; }
.alert-error { background: #fdeaea; color: #b3261e; border: 1px solid #f6c6c4; }
.alert-error ul { list-style: disc; padding-left: 18px; }
.alert-error li { margin-bottom: 4px; }

.map-block iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b7c3da; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col p { color: #93a1bd; font-size: 0.9rem; }
.brand-footer .brand-name { color: #fff; }
.footer-est { color: var(--blue-light); font-weight: 600; }
.footer-links li, .footer-contact li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-links a { color: #b7c3da; }
.footer-links a:hover { color: #fff; }
.footer-contact li { color: #93a1bd; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: #7c8bab; }

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 100;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Admin */
.admin-body { background: var(--bg); }
.admin-wrap { max-width: 480px; margin: 90px auto; padding: 0 20px; }
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--navy-dark); color: #cdd7ea; flex-shrink: 0; padding: 26px 0; }
.admin-sidebar a { display: block; padding: 11px 24px; color: #cdd7ea; font-size: 0.92rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar .brand-name { color: #fff; }
.admin-main { flex: 1; padding: 32px 40px; max-width: 1100px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th, table.data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
table.data-table th { background: var(--bg); color: var(--navy); font-weight: 700; }
.table-actions a { margin-right: 12px; font-weight: 600; font-size: 0.85rem; }
.table-actions .danger { color: #b3261e; }
.admin-form-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; max-width: 640px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.badge-unread { background: #fdeaea; color: #b3261e; }
.badge-read { background: #eef2f7; color: #5b6883; }

/* Responsive */
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-5 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .hero-slider { height: 420px; }
    .slide-content h2 { font-size: 2rem; }
}

@media (max-width: 720px) {
    .topbar-inner { justify-content: center; flex-wrap: wrap; gap: 10px; text-align: center; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy); flex-direction: column; align-items: stretch;
        padding: 16px 24px 24px; gap: 16px;
        display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { display: block; padding: 10px 0; }
    .nav-cta { text-align: center; }
    .hero h1 { font-size: 2.1rem; }
    h2 { font-size: 1.5rem; }
    .grid-3, .grid-5 { grid-template-columns: 1fr; }
    .admin-main { padding: 24px 18px; }
    .hero-slider { height: 300px; }
    .slide-content { padding: 0 20px; max-width: 100%; }
    .slide-content h2 { font-size: 1.5rem; }
    .slide-content p { font-size: 0.9rem; margin-bottom: 16px; }
    .slider-arrow { width: 34px; height: 34px; font-size: 0.8rem; }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
    .brand-logo { max-height: 44px; max-width: 140px; }
    .brand-sub { display: none; }
    .container { padding: 0 16px; }
    .founder-photo { width: 140px; height: 140px; }
    .contact-form-box, .admin-form-box { padding: 20px; }
    .section { padding: 52px 0; }
    .card { padding: 22px; }
    .product-image { margin: -22px -22px 16px; }
    .cert-strip { padding: 26px 0; }
    .cert-track { gap: 48px; }
    .cert-item { height: 80px; }
    .cert-item img { max-height: 80px; max-width: 170px; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 1.7rem; }
    .hero { padding: 60px 0 50px; }
    .page-hero { padding: 44px 0; }
    .page-hero h1 { font-size: 1.6rem; }
    .brand-name { font-size: 1rem; }
    .brand-logo { max-height: 38px; max-width: 110px; }
    .topbar-item { font-size: 0.76rem; }
    .btn { padding: 11px 20px; font-size: 0.9rem; }
    .hero-slider { height: 240px; }
    .slide-content h2 { font-size: 1.25rem; }
    .slide-content p { font-size: 0.82rem; }
    table.data-table th, table.data-table td { padding: 10px; font-size: 0.82rem; }
    .admin-wrap { margin: 40px auto; }
    .admin-card { padding: 24px; }
    .whatsapp-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
}
