/* ============================================================
   MBL Group Holdings Inc. — corporate stylesheet
   Palette: deep navy / white / steel gray / discreet gold
   ============================================================ */

:root {
  --navy-950: #04070F;
  --navy-900: #060B18;
  --navy-800: #0A1226;
  --navy-700: #101B36;
  --steel-400: #8C95A8;
  --steel-300: #AEB6C6;
  --white: #F7F8FB;
  --gold: #C3A45E;
  --gold-soft: rgba(195, 164, 94, 0.35);
  --line: rgba(140, 149, 168, 0.16);
  --font-sans: 'Libre Franklin', system-ui, -apple-system, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--navy-900);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* ---------- typography ---------- */

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.eyebrow.centered-text { text-align: center; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(4, 7, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #F3EFE6;
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  padding: 4px;
}

.brand-text {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-inc { color: var(--steel-400); font-weight: 500; }

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-300);
  transition: color 0.2s ease;
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--white); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.language-switch button {
  background: transparent;
  border: 0;
  color: var(--steel-400);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 7px 12px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.language-switch button.is-active {
  color: var(--navy-950);
  background: var(--gold);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  padding: 0 9px;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 140px 24px 100px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(195, 164, 94, 0.07), transparent 65%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(16, 27, 54, 0.9), transparent 70%),
    var(--navy-900);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.hero-inner { max-width: 780px; }

.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 40px;
}

.hero-rule {
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}

.hero-rule:last-child {
  background: linear-gradient(270deg, transparent, var(--gold-soft));
}

.hero-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg, #FAF8F2, #EEE9DD);
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 0 6px rgba(255, 255, 255, 0.5),
    inset 0 0 0 7px rgba(195, 164, 94, 0.28);
}

.hero-logo {
  width: clamp(120px, 16vw, 175px);
  height: auto;
}

.hero-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--steel-300);
  max-width: 640px;
  margin: 22px auto 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 44px;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 3px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-950);
}

.btn-primary:hover { background: #D4B674; transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--white);
}

.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold); }

/* ---------- sections ---------- */

.section { padding: 110px 0; }

.section-head { max-width: 620px; }
.section-head.centered { margin: 0 auto; text-align: center; }
.section-head h2 { margin-bottom: 0; }

/* ---------- about ---------- */

.about { border-top: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-body {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  color: var(--steel-300);
  border-left: 2px solid var(--gold);
  padding-left: 32px;
}

/* ---------- sectors ---------- */

.sectors { background: var(--navy-950); border-top: 1px solid var(--line); }

.sector-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.sector-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 32px;
  position: relative;
  transition: background 0.3s ease;
}

.sector-card:hover { background: rgba(195, 164, 94, 0.04); }

.sector-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 18px;
}

.sector-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.sector-card p {
  font-size: 0.92rem;
  color: var(--steel-400);
}

/* ---------- portfolio ---------- */

.portfolio { border-top: 1px solid var(--line); }

.portfolio-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.portfolio-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900) 70%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s ease, transform 0.25s ease;
}

.portfolio-card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-3px);
}

.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.status-active { color: var(--gold); border: 1px solid var(--gold-soft); }
.status-featured { color: var(--navy-950); background: var(--gold); }
.status-development { color: var(--steel-300); border: 1px solid var(--line); }
.status-capability,
.status-strategic { color: var(--steel-300); border: 1px solid var(--line); }

.portfolio-category {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-400);
  text-align: right;
}

.portfolio-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.portfolio-card p {
  font-size: 0.92rem;
  color: var(--steel-400);
}

/* ---------- featured ---------- */

.featured { background: var(--navy-950); border-top: 1px solid var(--line); }

.featured-card {
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(195, 164, 94, 0.06), transparent 60%),
    var(--navy-900);
}

.featured-location {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin: 10px 0 20px;
}

.featured-body {
  color: var(--steel-300);
  font-size: 1.08rem;
}

.featured-points {
  align-self: center;
  display: flex;
  flex-direction: column;
}

.featured-points li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--steel-300);
  display: flex;
  align-items: center;
  gap: 14px;
}

.featured-points li:first-child { border-top: 1px solid var(--line); }

.featured-points li::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- founder ---------- */

.founder { border-top: 1px solid var(--line); }

.founder-inner {
  max-width: 680px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder-name { margin-top: 4px; }

.founder-role {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel-400);
}

.founder-rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 30px 0;
}

.founder-body {
  font-size: 1.15rem;
  color: var(--steel-300);
}

/* ---------- contact ---------- */

.contact { background: var(--navy-950); border-top: 1px solid var(--line); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.contact-block { margin-top: 36px; }

.contact-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 8px;
}

.contact-email {
  font-size: 1.05rem;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-email:hover { border-bottom-color: var(--gold); }

address {
  font-style: normal;
  color: var(--steel-300);
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-400);
}

.contact-form input,
.contact-form textarea {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 13px 15px;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
}

.contact-form .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: var(--navy-950);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #F3EFE6;
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  padding: 5px;
}

.footer-brand strong { font-size: 0.95rem; }
.footer-brand p { font-size: 0.8rem; color: var(--steel-400); }

.footer-text {
  font-size: 0.85rem;
  color: var(--steel-400);
  max-width: 340px;
}

.footer-email {
  font-size: 0.85rem;
  color: var(--steel-300);
  transition: color 0.2s;
}

.footer-email:hover { color: var(--gold); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- focus visibility ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .featured-card { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 820px) {
  .site-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(4, 7, 15, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
  }

  .site-nav a:last-child { border-bottom: 0; }

  .menu-toggle { display: flex; }

  .brand-text { font-size: 0.85rem; }
  .section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .brand-inc { display: none; }
  .hero-rule { max-width: 60px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .sector-card, .portfolio-card { padding: 28px 22px; }
}
