/*
 * Malkant Group — Parent Site CSS
 * Brand: Navy #001753 · Green #066a4c · Gold #e8b84b · White
 * Font: Quicksand (Google Fonts)
 */

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Override site.css font vars so Quicksand applies everywhere */
  --font-body:    'Quicksand', system-ui, sans-serif;
  --font-display: 'Quicksand', system-ui, sans-serif;
  --navy:       #001753;
  --navy-deep:  #000f36;
  --navy-mid:   #002580;
  --green:      #066a4c;
  --green-lgt:  #07845f;
  --gold:       #e8b84b;
  --gold-lgt:   #f5d07a;
  --white:      #ffffff;
  --off:        #f7f8fc;
  --light:      #eef0f6;
  --mid:        #c5cad9;
  --text:       #1a1f36;
  --muted:      #5a6080;
  --font:       'Quicksand', system-ui, sans-serif;
  --maxw:       1100px;
  --ease:       cubic-bezier(.4,0,.2,1);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-lgt); }
img { max-width: 100%; display: block; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.mg-wrap    { max-width: var(--maxw); margin: 0 auto; padding: 0 56px; }
.mg-section { padding: 96px 0; }
.mg-section-alt { background: var(--off); }
.mg-section-navy { background: var(--navy); }

.mg-animate { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.mg-animate.in-view { opacity: 1; transform: none; }

.mg-label { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.mg-label-gold { color: var(--gold); }
.mg-h2 { font-size: clamp(24px,3.5vw,40px); font-weight: 700; line-height: 1.15; color: var(--navy); margin-bottom: 14px; }
.mg-h2 .accent { color: var(--green); }
.mg-h2-white { color: #fff; }
.mg-h2-white .accent { color: var(--gold); }
.mg-sub { font-size: 15px; color: var(--muted); max-width: 600px; line-height: 1.85; margin-bottom: 40px; }
.mg-sub-white { color: rgba(255,255,255,.65); }
.mg-body { font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 16px; }

/* ── Topbar ───────────────────────────────────────────────────────────────── */
.mg-topbar { background: var(--navy-deep); color: rgba(255,255,255,.5); text-align: center; padding: 10px 24px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.mg-topbar span { color: rgba(255,255,255,.75); }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.mg-nav { background: var(--navy); display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 56px; position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 20px rgba(0,23,83,.35); }
.mg-nav-logo { font-size: 17px; font-weight: 700; color: #fff; text-decoration: none; }
.mg-nav-logo span { color: var(--gold); }
.mg-nav-links { display: flex; list-style: none; gap: 2px; }
.mg-nav-links li a { color: rgba(255,255,255,.68); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border-radius: 4px; text-decoration: none; transition: color .18s, background .18s; }
.mg-nav-links li a:hover,
.mg-nav-links li a.active { color: #fff; background: rgba(255,255,255,.08); }
.mg-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mg-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .25s; }
.mg-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mg-hamburger.open span:nth-child(2) { opacity: 0; }
.mg-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mg-overlay { display: none; position: fixed; inset: 0; background: rgba(0,15,54,.5); z-index: 300; }
.mg-overlay.open { display: block; }
.mg-drawer { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--navy-deep); z-index: 400; transition: right .3s var(--ease); overflow-y: auto; }
.mg-drawer.open { right: 0; }
.mg-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mg-drawer-logo { font-size: 16px; font-weight: 700; color: #fff; text-decoration: none; }
.mg-drawer-logo span { color: var(--gold); }
.mg-drawer-close { background: none; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 13px; }
.mg-drawer-nav { padding: 16px 0 32px; display: flex; flex-direction: column; }
.mg-drawer-link { color: rgba(255,255,255,.68); text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 22px; transition: background .15s, color .15s; }
.mg-drawer-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.mg-drawer-divider { height: 1px; background: rgba(255,255,255,.08); margin: 10px 0; }

/* ── Hero with CSS slideshow ───────────────────────────────────────────────── */
.mg-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

/* Slideshow — three panels that crossfade */
.mg-hero-slides { position: absolute; inset: 0; z-index: 0; }
.mg-hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: mg-slide-fade 18s infinite;
}
.mg-hero-slide:nth-child(1) { animation-delay: 0s;   background: linear-gradient(135deg, #001753 0%, #002580 50%, #001a44 100%); }
.mg-hero-slide:nth-child(2) { animation-delay: 6s;   background: linear-gradient(135deg, #000f36 0%, #003060 50%, #002040 100%); }
.mg-hero-slide:nth-child(3) { animation-delay: 12s;  background: linear-gradient(135deg, #001444 0%, #001d5a 50%, #000f36 100%); }

@keyframes mg-slide-fade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  33%  { opacity: 1; }
  42%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Grid texture overlay */
.mg-hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cdefs%3E%3Cpattern id='g' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M20 0L0 0 0 20' fill='none' stroke='white' stroke-width='0.25' opacity='0.04'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='60' height='60' fill='url(%23g)'/%3E%3C/svg%3E");
}

/* Glow accents */
.mg-hero::before {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  top: -120px; right: -80px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,106,76,.12) 0%, transparent 65%);
}
.mg-hero::after {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  bottom: -80px; left: -60px; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,75,.06) 0%, transparent 65%);
}

.mg-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 0 56px;
  width: 100%;
}
.mg-hero-inner > * { animation: mg-fade-up .7s var(--ease) both; }
.mg-hero-inner > *:nth-child(1) { animation-delay: .1s; }
.mg-hero-inner > *:nth-child(2) { animation-delay: .2s; }
.mg-hero-inner > *:nth-child(3) { animation-delay: .3s; }
.mg-hero-inner > *:nth-child(4) { animation-delay: .4s; }
@keyframes mg-fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.mg-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(232,184,75,.12); border: 1px solid rgba(232,184,75,.3);
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 100px; margin-bottom: 28px;
}
.mg-hero h1 {
  font-size: clamp(32px, 5vw, 62px); font-weight: 700; line-height: 1.08;
  color: #fff; letter-spacing: -.01em; margin-bottom: 22px; max-width: 800px;
}
.mg-hero h1 .accent { color: var(--gold); }
.mg-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px); color: rgba(255,255,255,.62);
  max-width: 580px; line-height: 1.85; margin-bottom: 40px;
}
.mg-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Compact hero for inner pages */
.mg-hero-compact { min-height: 36vh; }
.mg-hero-compact h1 { font-size: clamp(26px, 4vw, 48px); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.mg-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 13px 24px; border-radius: 4px; text-decoration: none; border: none; cursor: pointer; transition: all .2s; }
.mg-btn-green  { background: var(--green); color: #fff; }
.mg-btn-green:hover { background: var(--green-lgt); transform: translateY(-1px); color: #fff; }
.mg-btn-gold   { background: var(--gold); color: var(--navy); }
.mg-btn-gold:hover { background: var(--gold-lgt); transform: translateY(-1px); }
.mg-btn-ghost  { background: transparent; color: rgba(255,255,255,.8); border: 1.5px solid rgba(255,255,255,.3); }
.mg-btn-ghost:hover { border-color: rgba(255,255,255,.7); color: #fff; }
.mg-btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.mg-btn-outline:hover { background: var(--navy); color: #fff; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.mg-card { background: #fff; border: 1.5px solid var(--light); border-radius: 10px; padding: 28px; }
.mg-card-navy { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 24px; }

/* ── Two-col grids ─────────────────────────────────────────────────────────── */
.mg-two-col        { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.mg-two-col-center { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ── Section components ────────────────────────────────────────────────────── */
/* Pill items — small labelled facts */
.mg-pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.mg-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.72); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 100px; }

/* Stat row */
.mg-stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 36px; }
.mg-stat { border-left: 3px solid rgba(232,184,75,.5); padding-left: 16px; }
.mg-stat-num   { font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1; }
.mg-stat-label { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 3px; line-height: 1.4; }

/* Section intro block */
.mg-section-intro { max-width: 700px; margin-bottom: 56px; }

/* Three-col content grid */
.mg-three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Separator list (how-steps style) */
.mg-sep-list { display: flex; flex-direction: column; }
.mg-sep-item { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--light); align-items: start; }
.mg-sep-item:first-child { padding-top: 0; }
.mg-sep-item:last-child  { border-bottom: none; }
.mg-sep-num  { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mg-sep-item h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; line-height: 1.3; }
.mg-sep-item p  { font-size: 14px; color: var(--muted); line-height: 1.75; }
.mg-sep-tag     { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }

/* Bullet list */
.mg-bullet-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mg-bullet-list li { display: flex; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.mg-bullet-list li::before { content: '→'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.mg-bullet-list-white li { color: rgba(255,255,255,.65); }
.mg-bullet-list-white li::before { color: #4dd4a0; }

/* "Not for us" list */
.mg-not-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mg-not-list li { display: flex; gap: 12px; font-size: 14px; color: var(--muted); }
.mg-not-list li::before { content: '✕'; color: var(--mid); font-weight: 700; flex-shrink: 0; }

/* CTA band */
.mg-cta-band { background: var(--green); padding: 80px 0; }
.mg-cta-inner { display: flex; gap: 48px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mg-cta-inner h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 700; color: #fff; max-width: 480px; margin-bottom: 8px; }
.mg-cta-inner p  { font-size: 15px; color: rgba(255,255,255,.72); }

/* Contact section */
.mg-contact-box { background: var(--navy); border-radius: 14px; overflow: hidden; }
.mg-contact-box-head { padding: 28px 32px 24px; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; }
.mg-contact-box-head::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--gold)); }
.mg-contact-box-body { padding: 24px 32px; }

/* Form elements */
.mg-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mg-field label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.mg-input, .mg-textarea, .mg-select {
  padding: 11px 14px; border: 1.5px solid rgba(255,255,255,.12); border-radius: 6px;
  background: rgba(255,255,255,.06); color: #fff; font-family: var(--font); font-size: 14px;
  outline: none; transition: border-color .2s; width: 100%;
}
.mg-input::placeholder, .mg-textarea::placeholder { color: rgba(255,255,255,.25); }
.mg-input:focus, .mg-textarea:focus { border-color: rgba(255,255,255,.4); }
.mg-textarea { min-height: 100px; resize: vertical; }
.mg-submit { width: 100%; padding: 14px; background: var(--gold); color: var(--navy); font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: none; border-radius: 6px; cursor: pointer; transition: background .2s; }
.mg-submit:hover { background: var(--gold-lgt); }

/* Notice / callout box */
.mg-notice { background: rgba(232,184,75,.1); border: 1px solid rgba(232,184,75,.25); border-radius: 8px; padding: 16px 20px; margin-bottom: 32px; }
.mg-notice p { font-size: 14px; color: var(--text); line-height: 1.65; margin: 0; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.mg-footer { background: var(--navy-deep); padding: 64px 0 36px; }
.mg-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 28px; }
.mg-footer-logo { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.mg-footer-logo span { color: var(--gold); }
.mg-footer-desc { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.7; max-width: 240px; }
.mg-footer-col h5 { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 14px; }
.mg-footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mg-footer-links a { font-size: 13px; color: rgba(255,255,255,.45); text-decoration: none; font-weight: 500; transition: color .2s; }
.mg-footer-links a:hover { color: #fff; }
.mg-footer-bottom { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.2); flex-wrap: wrap; gap: 8px; }

/* ── Blog grid ─────────────────────────────────────────────────────────────── */
.mg-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mg-blog-card { border: 1.5px solid var(--light); border-radius: 10px; overflow: hidden; text-decoration: none; display: block; transition: box-shadow .2s, transform .2s; background: #fff; }
.mg-blog-card:hover { box-shadow: 0 6px 24px rgba(0,23,83,.1); transform: translateY(-2px); }
.mg-blog-card-img { height: 160px; background: var(--off); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.mg-blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mg-blog-card-body { padding: 20px; }
.mg-blog-card-cat  { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 7px; }
.mg-blog-card-title { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 7px; }
.mg-blog-card-date  { font-size: 11px; color: var(--muted); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .mg-nav-links  { display: none; }
  .mg-hamburger  { display: flex; }
  .mg-two-col, .mg-two-col-center, .mg-three-col, .mg-blog-grid { grid-template-columns: 1fr; gap: 28px; }
  .mg-footer-grid { grid-template-columns: 1fr 1fr; }
  .mg-cta-inner { flex-direction: column; gap: 24px; }
}
@media (max-width: 600px) {
  .mg-nav, .mg-wrap, .mg-hero-inner { padding-left: 22px; padding-right: 22px; }
  .mg-section { padding: 64px 0; }
  .mg-hero { min-height: 70vh; }
  .mg-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mg-sep-item { grid-template-columns: 1fr; gap: 8px; }
}
