/* =========================================================
   Ekasila Chemicals: shared fixes loaded last on every page
   (brand font, mobile layout, menu, enquiry form)
   ========================================================= */

:root {
  --eka-green: #1F9D3C;
  --eka-bright: #43C05A;
  --eka-deep: #0C6A2A;
  --eka-charcoal: #15181B;
  --eka-forest: #0F1A14;
  --eka-offwhite: #F5F7F4;
}

html, body {
  width: auto !important;
  min-width: 0 !important;
  overflow-x: hidden;
}

body {
  font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

img { max-width: 100%; height: auto; }

/* ---------- Logo ---------- */
.navbar .logo img {
  height: 46px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
}

/* ---------- Mobile menu button ---------- */
.eka-menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--eka-charcoal);
  cursor: pointer;
  padding: 6px 8px;
}

@media (max-width: 900px) {
  .navbar {
    padding: 10px 18px !important;
    flex-wrap: wrap;
    height: auto !important;
  }
  .navbar .logo img { height: 38px !important; }
  .eka-menu-btn { display: block; }

  .navbar .nav-links {
    display: none !important;
    position: static !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 8px 0 4px !important;
    padding: 0 !important;
    gap: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .navbar.eka-open .nav-links { display: flex !important; }
  .navbar .nav-links > li {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #eef0ee;
    text-align: left !important;
  }
  .navbar .nav-links > li > a {
    display: block !important;
    padding: 13px 4px !important;
    font-size: 16px !important;
  }
  .navbar .dropdown-content { display: none !important; }

  /* floating social bar hides on small screens: WhatsApp sits in the form instead */
  .social-icons-homepage, .social-hero-icons { display: none !important; }
}

/* ---------- Small screens: stop fixed widths overflowing ---------- */
@media (max-width: 600px) {
  body * { min-width: 0 !important; }
  section, footer, .hero { background-attachment: scroll !important; }
  h1 { font-size: 2rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.5rem !important; }
  .hero-content, .hero-overlay { padding-left: 18px !important; padding-right: 18px !important; }
  [style*="padding: 60px 20px"] { padding: 40px 18px !important; }
  table { display: block; overflow-x: auto; }
}

/* ---------- Enquiry button and form ---------- */
.eka-enquire-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--eka-green);
  color: #fff;
  border: 0;
  border-radius: 30px;
  padding: 13px 20px;
  font: 600 15px/1 "Inter", system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(12, 106, 42, 0.35);
  cursor: pointer;
}
.eka-enquire-btn:hover { background: var(--eka-deep); }
.eka-enquire-btn.eka-hidden { display: none; }

.eka-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  padding: 22px 22px 18px;
  display: none;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--eka-charcoal);
}
.eka-panel.eka-active { display: block; }
.eka-panel h2 {
  font-size: 20px !important;
  margin: 0 0 4px;
  color: var(--eka-charcoal);
}
.eka-panel .eka-sub { font-size: 13px; color: #5b625e; margin: 0 0 14px; }
.eka-panel label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.eka-panel input, .eka-panel select, .eka-panel textarea {
  width: 100%;
  border: 1px solid #cfd6d1;
  border-radius: 8px;
  padding: 10px 11px;
  font: 15px "Inter", system-ui, sans-serif;
  background: #fff;
  color: var(--eka-charcoal);
}
.eka-panel input:focus, .eka-panel select:focus, .eka-panel textarea:focus {
  outline: 2px solid var(--eka-bright);
  border-color: var(--eka-green);
}
.eka-panel .eka-submit {
  width: 100%;
  margin-top: 14px;
  background: var(--eka-green);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font: 600 15px "Inter", system-ui, sans-serif;
  cursor: pointer;
}
.eka-panel .eka-submit:disabled { opacity: 0.6; cursor: wait; }
.eka-panel .eka-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: #6b736e;
  cursor: pointer;
}
.eka-panel .eka-status { font-size: 14px; margin-top: 12px; }
.eka-panel .eka-status.ok { color: var(--eka-deep); font-weight: 600; }
.eka-panel .eka-status.err { color: #b3261e; }
.eka-panel .eka-wa {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--eka-deep);
  text-decoration: none;
}
.eka-hp { position: absolute; left: -9999px; }

@media (max-width: 600px) {
  .eka-enquire-btn { right: 14px; bottom: 14px; padding: 12px 16px; }
  .eka-panel { right: 12px; bottom: 12px; }
}

/* ---------- Hero second button ---------- */
.hero .btn.eka-btn-outline {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff;
  margin-left: 10px;
}
.hero .btn.eka-btn-outline:hover { background: rgba(255,255,255,0.15) !important; }
@media (max-width: 600px) {
  .hero .btn { display: inline-block; margin: 6px 4px !important; }
}

/* Hero subtitle: readable on the photo */
.hero .hero-content h2 { color: #9be3a8 !important; }

/* Products and long text on phones */
@media (max-width: 768px) {
  .product-box { flex-direction: column !important; gap: 18px !important; padding: 22px 18px !important; }
  .product-info, .product-image { width: 100% !important; flex: none !important; max-width: 100% !important; }
  .product-image { text-align: center; }
  .company-overview p, .transport p, .ceo-details p, .about-content p, .founder-details p { text-align: left !important; }
}

/* About page readability */
.company-overview p, .transport p { font-size: 16px !important; line-height: 1.7 !important; }
.about-hero h1 { display: inline-block; background: rgba(255,255,255,0.85); padding: 10px 22px; border-radius: 10px; }

/* Applications cards and footer on phones */
@media (max-width: 768px) {
  .application-box, .application-box.reverse { flex-direction: column !important; text-align: center; }
  .application-box img { width: 100% !important; max-width: 100% !important; height: auto !important; }
  .application-box .app-content { width: 100% !important; flex: none !important; }
  .footer-container { flex-direction: column !important; gap: 24px; padding: 0 22px 32px !important; }
  .footer-left, .footer-right { width: 100% !important; flex: none !important; }
  footer a, footer p { overflow-wrap: anywhere; }
}

/* Certifications (About page) */
.eka-cert-intro { max-width: 900px; margin: 0 auto 10px; font-size: 16px; line-height: 1.6; color: #444; text-align: center; }
.eka-cert-unit { margin: 28px 0 12px; font-size: 20px; color: var(--eka-charcoal); text-align: left; }
.eka-cert-unit span { font-weight: 500; font-size: 15px; color: #5b625e; margin-left: 8px; }
.eka-cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.eka-cert-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #dfe6e1; border-left: 4px solid var(--eka-green);
  border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--eka-charcoal); text-align: left; transition: box-shadow .2s, transform .2s; }
.eka-cert-card:hover { box-shadow: 0 6px 18px rgba(12,106,42,.15); transform: translateY(-2px); }
.eka-cert-card i { color: #c0392b; font-size: 20px; }
.eka-cert-card strong { font-size: 18px; }
.eka-cert-card span { font-size: 14px; color: #444; }
.eka-cert-card small { font-size: 13px; color: #6b736e; line-height: 1.5; margin-top: 4px; }

/* Products page main heading (was an h2) */
.products-section h1.eka-page-title { text-align: center; font-size: 32px; color: #0F1A14; margin: 40px 0 30px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Site wide: dark poster style navbar with white logo ---------- */
.navbar { background: rgba(15,26,20,.96) !important; box-shadow: 0 1px 0 rgba(245,247,244,.08) !important; }
.navbar .nav-links > li > a { color: #F5F7F4 !important; font-family: "Inter", system-ui, sans-serif; font-weight: 600; }
.navbar .nav-links > li > a:hover { color: #43C05A !important; }
.eka-menu-btn { color: #F5F7F4; }
.navbar .dropdown-content { background: #15181B !important; border-top: 3px solid #1F9D3C; }
.navbar .dropdown-content a { color: #F5F7F4 !important; }
.navbar .dropdown-content a:hover { background: rgba(67,192,90,.12) !important; color: #43C05A !important; }
@media (max-width: 900px) {
  .navbar .nav-links { background: transparent !important; }
  .navbar .nav-links > li { border-top-color: rgba(245,247,244,.1) !important; }
}
/* inner page footers pick up the poster footer look */
footer#contact:not(.h-foot) { background: #15181B !important; border-top: 6px solid #1F9D3C; }
.navbar .nav-links > li > a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1200px) {
  .navbar .nav-links { gap: 16px !important; }
  .navbar .nav-links > li { margin: 0 !important; padding: 0 !important; }
  .navbar .nav-links > li > a { font-size: 14px !important; padding: 8px 2px !important; }
  .navbar .logo img { height: 40px !important; }
}
