/* ===============================
   MMGlobal – Confident Green Theme
================================= */

:root {
  --primary: #1f7a5a;
  --primary-dark: #145c43;
  --primary-light: #e8f5ef;
  --accent: #34a67c;
  --text-dark: #111;
  --text-muted: #5f6b66;
  --border: #d9e6df;
  --bg: #f6fbf8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===============================
   TOP NAV
================================= */

/* ===============================
   PREMIUM HEADER (Responsive)
================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31,122,90,0.12);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-dark);
}

.logo {
  height: 80px;
  object-fit: contain;
}

.brand-text { line-height: 1.05; }

.brand-name {
  font-weight: 800;
  font-size: 18px;
  color: var(--primary-dark);
  letter-spacing: 0.2px;
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  transition: 0.18s ease;
}

.nav-link:hover {
  background: rgba(31,122,90,0.08);
  color: var(--primary-dark);
}

/* Home icon button */
.nav-home-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* CTA button in nav */
.nav-cta {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31,122,90,0.18);
}
.nav-cta:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(31,122,90,0.18);
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary-dark);
  margin: 6px 0;
  border-radius: 10px;
  transition: 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu dropdown */
.nav-mobile {
  border-top: 1px solid rgba(31,122,90,0.10);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
}

.nav-mobile-inner {
  padding: 10px 0 14px;
  display: grid;
  gap: 8px;
}

.nav-desktop { display: flex; }

/* Responsive break */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .logo { height: 42px; }
  .brand-name { font-size: 16px; }
}



/* ===============================
   HERO SECTION
================================= */

.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #e9f7f0 0%, #f6fbf8 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===============================
   BUTTONS
================================= */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn {
  background: var(--primary);
  color: #fff;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===============================
   SECTIONS
================================= */

.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--white);
}

h2 {
  font-size: 30px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.muted {
  color: var(--text-muted);
  font-size: 16px;
}

.section-head {
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.section-alt .card {
  position: relative;
  z-index: 1;
}

/* ===============================
   CARDS
================================= */

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  transition: 0.2s ease;
}

.card:hover {
  transform: scale(1.01);
  box-shadow: 0 16px 30px rgba(0,0,0,0.08);
}

.card-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

/* ===============================
   GRID
================================= */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===============================
   PRODUCT CARD
================================= */

.product-card {
  position: relative;
}

.product-main {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.product-thumb {
  width: 90px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f3faf6;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  transition: 0.2s ease;
}

.icon-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ===============================
   FOOTER
================================= */

.footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 8px;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 900px) {
  .hero-inner,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }
}



/* Premium typography */
.hero h1 { letter-spacing: -0.6px; }
h2 { letter-spacing: -0.3px; }

/* Softer section spacing on small screens */
@media (max-width: 900px) {
  .hero { padding: 54px 0; }
  .section { padding: 50px 0; }
}


/* ===============================
   ABOUT PAGE STYLING
================================= */

.about-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.about-highlight {
  background: var(--primary-light);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.about-highlight-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.about-highlight ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.about-vision {
  margin-bottom: 40px;
}

.about-cta {
  text-align: center;
  margin-top: 40px;
}

.about-cta h2 {
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero h1 {
    font-size: 32px;
  }
}




/* ===============================
   ADMIN FORM FIX (Overrides)
   Paste at the very bottom of style.css
================================= */

/* Give admin pages a consistent readable form layout */
.form {
  display: grid;
  gap: 14px;
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-width: 0;              /* important: prevents grid overflow squeeze */
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  outline: none;
}

.form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.35;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: rgba(31,122,90,0.45);
  box-shadow: 0 0 0 4px rgba(31,122,90,0.10);
}

/* Make file inputs look clean */
.form input[type="file"] {
  padding: 10px;
  background: #fff;
}

/* Checkbox alignment fix */
.form label {
  user-select: none;
}

.form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Better spacing for checkbox rows */
.form .row[style*="align-items:center"] {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* If you wrap file inputs in <div> inside .row, make them behave nicely */
.form .row > div {
  min-width: 0;
}

/* Admin tables readability (optional improvement) */
table th, table td {
  vertical-align: top;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .form .row {
    grid-template-columns: 1fr;
  }
}


/* Product detail helpers */
.badge{
  display:inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(31,122,90,0.10);
  border: 1px solid rgba(31,122,90,0.18);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
}

.product-long{
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15.5px;
}



/* Remove underline only inside product cards */
.product-card a {
  text-decoration: none;
  color: inherit;
}

.product-card a:hover {
  text-decoration: none;
}

/* Optional: keep subtle hover effect instead */
.product-card a:hover .card-title {
  color: var(--primary-dark);
}

.product-card .card-title {
  position: relative;
}

.product-card .card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.25s ease;
}

.product-card:hover .card-title::after {
  width: 100%;
}



/* add below to fix viewall to lagacy */

.section-head .link {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary-dark);
  position: relative;
  padding-right: 22px;
  transition: 0.25s ease;
}

/* arrow animation */
.section-head .link::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.25s ease;
}

/* underline animation */
.section-head .link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.25s ease;
}

.section-head .link:hover {
  color: var(--primary);
}

.section-head .link:hover::before {
  width: 100%;
}

.section-head .link:hover::after {
  transform: translateX(4px);
}

.link-modern {
  font-size: 15px;
  letter-spacing: 0.2px;
}

/* update footer page/look */

/* ===============================
   PREMIUM FOOTER
================================= */

.footer {
  background: linear-gradient(180deg, #1b644a 0%, #15513c 100%);
  color: rgba(255,255,255,0.92);
  padding: 50px 0;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 520px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.footer-right {
  text-align: right;
}

.footer-copy {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* subtle divider effect */
.footer::before {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-right {
    text-align: left;
  }
}


/* ===============================
   Products: Category-first UI
================================= */

.category-card {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 10px;
  padding: 22px;
}

.category-title {
  font-weight: 800;
  font-size: 18px;
  color: var(--primary-dark);
  letter-spacing: -0.2px;
}

.category-cta {
  margin-top: 6px;
  font-weight: 700;
  color: var(--primary);
}

.products-filterbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31,122,90,0.18);
  background: rgba(31,122,90,0.08);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
}

.chip:hover {
  background: rgba(31,122,90,0.14);
}

.chip-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}


/* Category cards with images */
.category-card-img{
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* ===============================
   CATEGORY IMAGE FIX
================================= */

.category-media {
  height: 130px;
  padding: 20px;
  background: linear-gradient(
    180deg,
    rgba(31,122,90,0.05),
    rgba(31,122,90,0.02)
  );
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-media img {
  max-height: 70px;       /* control logo size */
  max-width: 100%;
  object-fit: contain;    /* important: do NOT crop logos */
  transition: 0.3s ease;
}
.category-body{
  padding: 18px 20px 20px;
  display: grid;
  gap: 8px;
}

/* ===============================
   Premium Hover Effects
================================= */

.category-card {
  transition: 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

/* Image zoom */
.category-media {
  overflow: hidden;
}

.category-media img {
  transition: 0.4s ease;
}

.category-card:hover .category-media img {
  transform: scale(1.06);
}

.product-card {
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* Product image zoom */
.product-thumb {
  overflow: hidden;
  border-radius: 12px;
}

.product-thumb img {
  transition: 0.4s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-main {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover .card-title {
  color: var(--primary-dark);
}

.section-head {
  position: relative;
  z-index: 2;
}

.card {
  position: relative;
  z-index: 1;
}

/* ===============================
   CAPTCHA LAYOUT FIX
================================= */

.captcha-row{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.captcha-left{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.captcha-img{
  height: 46px;
  width: 140px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: block;
}

.captcha-input{
  width: 100%;
  min-width: 0;
}

/* Mobile */
@media (max-width: 900px){
  .captcha-row{
    grid-template-columns: 1fr;
  }
  .captcha-left{
    justify-content: flex-start;
  }
}

/* ===============================
   Notice / Alert UI
================================= */

.notice{
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  margin: 12px 0 16px;
}

.notice.success{
  background: rgba(31,122,90,0.10);
  border-color: rgba(31,122,90,0.28);
  color: #0f3f2f;
}

.notice.error{
  background: rgba(220,53,69,0.10);
  border-color: rgba(220,53,69,0.28);
  color: #7a1120;
}

/* Fix anchor scrolling under sticky header */
#inquiry {
  scroll-margin-top: 110px; /* adjust if your header height changes */
}