/* ==========================================================================
   Maimoon Nexus — one stylesheet shared by every page.
   Colours come straight from the logo. To re-theme the whole site,
   change the values in :root below and nothing else.
   ========================================================================== */

:root {
  --green:        #007a3f;  /* logo "M" fill */
  --green-deep:   #003d1f;  /* logo "M" outline */
  --violet:       #b174e7;  /* logo "N" fill */
  --violet-deep:  #3e0074;  /* logo "N" outline */
  --violet-ink:   #2b0050;  /* text that sits on the violet fill */
  --violet-text:  #6a2fb0;  /* violet dark enough to read on white */
  --ink:          #26292b;  /* body text */
  --muted:        #565d63;  /* secondary text */
  --line:         #d9e0dc;  /* hairlines and borders */
  --tint:         #f2f6f3;  /* pale green-grey section background */
  --radius:       4px;      /* matches the squared-off letterforms of the logo */
  --wrap:         72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--violet-text); outline-offset: 3px; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--ink); text-decoration: none;
  font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand img { height: 1.9rem; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  color: var(--ink); font-size: 0.95rem; font-weight: 700; text-decoration: none;
  padding: 0.25rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--green); }
.site-nav .nav-cta {
  padding: 0.5rem 1.1rem; background: var(--green); color: #fff;
  border: 2px solid var(--green-deep); border-radius: var(--radius);
}
.site-nav .nav-cta:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem;
  background: var(--green); color: #fff;
  border: 2px solid var(--green-deep); border-radius: var(--radius);
  font: inherit; font-weight: 900; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--green-deep); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn--violet { background: var(--violet); border-color: var(--violet-deep); color: var(--violet-ink); }
.btn--violet:hover { background: #c797ef; color: var(--violet-ink); }
.text-link { font-weight: 700; }

/* ---------- Home hero: two divisions, overlapped like the M and N ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); margin-bottom: 1.25rem; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 0; }

.divisions { --overlap: 3rem; display: grid; }
.division {
  position: relative; display: block; width: 88%;
  padding: 2rem 2rem 2.25rem;
  border: 4px solid; border-radius: var(--radius);
  text-decoration: none;
}
.division h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.division p { margin-bottom: 1.1rem; }
.division .go { font-weight: 900; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.division:hover .go { text-decoration-thickness: 4px; }

.division--trade { z-index: 2; background: var(--green); border-color: var(--green-deep); color: #fff; }
.division--trade:hover { color: #fff; }
.division--events {
  margin: calc(var(--overlap) * -1) 0 0 auto;
  padding-top: calc(2rem + var(--overlap));
  background: var(--violet); border-color: var(--violet-deep); color: var(--violet-ink);
  animation: join 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}
.division--events:hover { color: var(--violet-ink); }

@keyframes join {
  from { transform: translate(2.5rem, -2rem); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ---------- Supplier strip (home) ---------- */
.supplier { background: var(--tint); border-block: 1px solid var(--line); }
.supplier .wrap {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 2rem; align-items: center; padding-block: 2.25rem;
}
.supplier img { width: 11rem; }
.supplier h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.supplier p { margin: 0; color: var(--muted); }

/* ---------- Inner-page heading band ---------- */
.page-head {
  background: var(--tint); border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.page-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); max-width: 18ch; margin-bottom: 1rem; }
.page-head p { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.page-head .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 1.75rem; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.25rem 2.5rem;
}
.service-list li { border-top: 4px solid var(--green); padding-top: 1.1rem; }
.service-list h3 { font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.service-list p { margin: 0; color: var(--muted); }

/* ---------- Mala's ---------- */
.malas {
  display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.malas-aside { position: sticky; top: 6rem; }
.logo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; margin-bottom: 2rem; text-align: center;
}
.logo-card img { width: 100%; max-width: 15rem; margin: 0 auto 1rem; }
.logo-card a { font-weight: 700; font-size: 0.95rem; }
.aside-title { font-size: 1.1rem; margin-bottom: 1rem; }
.milestones { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--violet); }
.milestones li { padding: 0 0 1.25rem 1.1rem; color: var(--muted); line-height: 1.5; }
.milestones li:last-child { padding-bottom: 0; }
.milestones b {
  display: block; margin-bottom: 0.15rem;
  font-size: 1.5rem; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; color: var(--violet-text);
}

.badge {
  display: inline-block; margin-bottom: 1rem; padding: 0.3rem 0.85rem;
  background: var(--violet); color: var(--violet-ink);
  border: 2px solid var(--violet-deep); border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 900;
}
.malas-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.malas-text h3 { font-size: 1.3rem; margin: 2.25rem 0 0.75rem; }
.malas-text p { max-width: 42rem; }
.malas-text .lead-in { font-size: 1.25rem; font-weight: 700; }
.why { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.9rem; max-width: 42rem; }
.why li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.why li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 0.7rem; height: 0.7rem;
  background: var(--green); border-radius: 1px;
}
.why strong { color: var(--ink); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tags li {
  padding: 0.35rem 0.9rem; background: #fff;
  border: 2px solid var(--green-deep); border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700;
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); }
.about h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.about p { max-width: 38rem; color: var(--muted); }
.about p:first-child { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }

/* ---------- Call-to-action band ---------- */
.cta { background: var(--green-deep); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0.5rem; }
.cta p { margin: 0; color: #cfe3d7; max-width: 32rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.form {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form .hint { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: 0.4rem; font-weight: 700; }
.field input,
.field textarea {
  width: 100%; padding: 0.8rem 0.9rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #7d8a84; border-radius: var(--radius);
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 122, 63, 0.25); }
.field textarea { min-height: 9rem; resize: vertical; }
.captcha { margin-bottom: 1.25rem; min-height: 65px; }
.form .btn { width: 100%; font-size: 1.05rem; }

.notice { margin-bottom: 1.25rem; padding: 0.9rem 1.1rem; border: 2px solid; border-radius: var(--radius); font-weight: 700; }
.notice[hidden] { display: none; }
.notice--ok  { background: #e9f6ee; color: #0b4a27; border-color: var(--green); }
.notice--err { background: #fdeeee; color: #7a1414; border-color: #b42318; }

.contact-aside h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.contact-aside p { color: var(--muted); }
.contact-aside a { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 2rem; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.site-footer img { width: 11rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.footer-links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.site-footer .legal { width: 100%; margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.875rem; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero .wrap, .malas, .about, .contact-grid { grid-template-columns: 1fr; }
  .malas-aside { position: static; }
}
@media (max-width: 560px) {
  .site-nav { gap: 1.1rem; }
  .row { grid-template-columns: 1fr; }
  .supplier .wrap { grid-template-columns: 1fr; gap: 1.25rem; }
  .division { width: 94%; padding-inline: 1.4rem; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
