/* ==========================================================================
   Mncvcdii Creative — Core Stylesheet
   ========================================================================== */

:root {
  /* Colour tokens */
  --navy: #0D192A;
  --navy-soft: #16233A;
  --navy-line: #24344E;
  --gold: #E3B123;
  --gold-soft: #F0CA5E;
  --white: #FFFFFF;
  --grey-bg: #F5F6F8;
  --grey-line: #E4E6EA;
  --ink: #0D192A;
  --ink-muted: #5B6472;

  /* Type */
  --font: 'Poppins', -apple-system, sans-serif;

  /* Scale */
  --fs-h1: clamp(2.4rem, 5vw, 4.2rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 2.8rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;

  /* Layout */
  --container: 1200px;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 84px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }
.bg-white { background: var(--white); }
.bg-grey { background: var(--grey-bg); }
.bg-navy { background: var(--navy); color: var(--white); }

.section-pad { padding: 96px 0; }
@media (max-width: 768px) { .section-pad { padding: 64px 0; } }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { color: var(--ink-muted); }
.bg-navy p { color: rgba(255,255,255,0.72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }

/* Animated underline heading accent */
.underline-draw {
  position: relative;
  display: inline-block;
}
.underline-draw::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.underline-draw.in-view::after { transform: scaleX(1); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(227,177,35,0.45); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-outline-navy {
  background: transparent;
  border: 1.5px solid var(--navy-line);
  color: var(--navy);
}
.btn-outline-navy:hover { border-color: var(--gold); background: var(--navy); color: var(--white); }
.btn-sm { padding: 11px 22px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: var(--navy);
  box-shadow: 0 4px 20px -14px rgba(0,0,0,0.5);
  transition: box-shadow var(--transition), height var(--transition);
}
.site-header.scrolled {
  height: 68px;
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { font-size: 1.3rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.logo span { color: var(--gold); }

.nav-desktop { display: flex; align-items: center; gap: 40px; }
.nav-desktop a {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--white); }
.nav-desktop a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width var(--transition);
}
.nav-desktop a:hover::after, .nav-desktop a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 24px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1100;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); transition: all var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--navy);
  z-index: 990;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 36px 24px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  box-shadow: 0 24px 40px -20px rgba(0,0,0,0.45);
  transform: translateY(-120%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a { color: var(--white); font-size: 1.15rem; font-weight: 600; }
.mobile-nav a:hover { color: var(--gold); }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.site-footer p { color: rgba(255,255,255,0.65); }
.footer-brand p { margin-top: 16px; max-width: 280px; font-size: 0.92rem; }
.footer-social { display: flex; gap: 14px; margin-top: 24px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; letter-spacing: 0.02em; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.92rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }

.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.footer-contact-list li i { color: var(--gold); width: 16px; flex-shrink: 0; margin-top: 3px; text-align: center; }
.footer-contact-list li a { color: rgba(255,255,255,0.65); }
.footer-contact-list li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0; font-size: 0.85rem; color: rgba(255,255,255,0.35);
}
.footer-bottom p { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom a.brand-link { color: var(--gold); }
.footer-bottom a.brand-link:hover { color: rgba(255,255,255,0.65); }

.scroll-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 46px; height: 46px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 900;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--gold-soft); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(13,25,42,0.16); border-color: transparent; }

/* Shared icon badge — used across service, MVV, and other feature cards */
.icon-badge {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 22px;
}

/* Signature corner-bracket frame on hover — used on service/portfolio cards */
.bracket-frame { position: relative; overflow: hidden; }
.bracket-frame::before, .bracket-frame::after,
.bracket-frame .bf-tr, .bracket-frame .bf-bl {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--gold);
  opacity: 0;
  transition: opacity var(--transition), width var(--transition), height var(--transition);
}
.bracket-frame::before { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.bracket-frame::after { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; }
.bracket-frame:hover::before, .bracket-frame:hover::after { opacity: 1; width: 30px; height: 30px; }

/* ---- Stats / counters ---- */
.stat { text-align: center; }
.stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { margin-top: 10px; font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ---- Forms ---- */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--grey-line);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-error { color: #C0392B; font-size: 0.8rem; margin-top: 6px; display: none; }
.form-group.error input, .form-group.error textarea, .form-group.error select { border-color: #C0392B; }
.form-group.error .form-error { display: block; }
.form-success {
  display: none;
  background: rgba(227,177,35,0.12);
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success.visible { display: block; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---- Utility grids ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
