/* =========================================================
   MASTER SOLUTIONS EXPERTS VENTURE
   Bespoke Architectural & Editorial Web System
   ========================================================= */
:root {
  --cobalt: #043fa1;
  --cobalt-dark: #032f7a;
  --cobalt-ink: #081e4a;
  --cobalt-tint: #eef3fb;

  --paper: #ffffff;
  --stone: #f5f6f8;
  --ink: #111827;
  --ink-2: #1f2937;
  --text: #4b5563;
  --muted: #6b7280;
  --line: #e2e6ed;
  --line-dark: #cbd2de;

  --whatsapp: #16a34a;
  --whatsapp-dark: #15803d;

  --radius: 6px;
  --radius-lg: 10px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* =========================================================
   TOP PROGRESS LINE
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 10001;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: var(--cobalt);
  pointer-events: none;
}

/* =========================================================
   HEADER — CLEAN ARCHITECTURAL BAR
   ========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  padding: 28px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active {
  font-weight: 600;
  color: var(--cobalt);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

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

.nav-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-phone:hover {
  color: var(--cobalt);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   TACTILE ARCHITECTURAL BUTTONS (CRISP CORNERS, NO AI GLOWS)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-nav {
  padding: 11px 18px;
  font-size: 13.5px;
}

.btn-accent {
  background: var(--cobalt);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--cobalt-dark);
}

.btn-white {
  background: #ffffff;
  color: var(--cobalt);
}

.btn-white:hover {
  background: #f0f4fc;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-dark);
}

.btn-outline:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

/* =========================================================
   EDITORIAL SECTION HEADERS (ASYMMETRIC 2-COLUMN, NO PILLS)
   ========================================================= */
.kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 14px;
}

.editorial-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 52px;
}

.editorial-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.editorial-head p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 440px;
  justify-self: end;
}

.editorial-head .head-link {
  justify-self: end;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.editorial-head .head-link:hover {
  color: var(--ink);
}

/* =========================================================
   FULL-WIDTH COBALT PAGE BANNER (INNER PAGES — NO IMAGE)
   ========================================================= */
.page-header {
  position: relative;
  width: 100%;
  background: var(--cobalt);
  color: #ffffff;
  padding: 84px 32px 76px;
  overflow: hidden;
}

/* Organic hand-drawn wave contour from the Master Solutions logo */
.banner-wave-art {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 560px;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}

.page-index {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 16px;
}

.page-header h1 {
  color: #ffffff;
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.page-header p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.65;
  max-width: 420px;
  justify-self: end;
}

/* =========================================================
   CLEAN EDITORIAL FOOTER
   ========================================================= */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 32px 36px;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 320px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 11px;
  font-size: 14.5px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  transition: transform 0.2s ease, background 0.2s ease;
}

.floating-wa:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

/* =========================================================
   SUBTLE FADE IN
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .nav-phone,
  .btn-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 32px 24px;
    display: none;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--stone);
  }

  .nav-link::after {
    display: none;
  }

  .editorial-head,
  .page-header-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .editorial-head p,
  .editorial-head .head-link,
  .page-header p {
    justify-self: start;
    max-width: 600px;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  nav,
  .wrap,
  .page-header,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .logo-img {
    height: 38px;
  }

  .page-header {
    padding-top: 60px;
    padding-bottom: 56px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
