/* =========================================================
   M&P ASSOCIATES — token system
   sky  #2F86C9  (logo house body)
   sky-dark #123A5C (ink / structural blue)
   gerua #D9622B (logo roof, saffron accent)
   ========================================================= */
:root{
  --sky: #2F86C9;
  --sky-light: #E7F2FA;
  --sky-dark: #123A5C;
  --gerua: #D9622B;
  --gerua-light: #F2A15C;
  --white: #FFFFFF;
  --bg-soft: #F3F8FB;
  --ink: #1C2B36;
  --line: #CFE1EC;

  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  overflow-x:hidden;
}
a{text-decoration:none;color:inherit;}
ul{list-style:none;margin:0;padding:0;}
img{max-width:100%;display:block;}

/* ---------- Blueprint grid texture ---------- */
.mp-blueprint-grid{
  position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(0deg, rgba(18,58,92,.06) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(18,58,92,.06) 0 1px, transparent 1px 40px);
  pointer-events:none;
  z-index:0;
}
.mp-blueprint-grid-dark{
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px);
}

/* ---------- Type helpers ---------- */
.mp-eyebrow{
  font-family:var(--font-mono);
  font-size:.75rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gerua-light);
  margin-bottom:.9rem;
}
.mp-eyebrow-dark{color:var(--gerua);}
.mp-h2{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.8rem,3.2vw,2.6rem);
  line-height:1.15;
  color:var(--sky-dark);
  margin-bottom:1rem;
  max-width:640px;
}
.mp-body-text{
  font-size:1.02rem;
  line-height:1.75;
  color:#3C4B57;
  margin-bottom:1.1rem;
}
.mp-section-head{margin-bottom:2.8rem;}

.mp-svg-label{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.08em;
  fill:var(--sky-dark);
}
.mp-svg-label.sm{font-size:11px;}

/* ---------- Buttons ---------- */
.mp-btn-primary{
  background:var(--gerua);
  color:#fff;
  font-family:var(--font-display);
  font-weight:600;
  letter-spacing:.03em;
  padding:.75rem 1.6rem;
  border-radius:2px;
  border:1px solid var(--gerua);
  transition:background .2s ease, transform .2s ease;
}
.mp-btn-primary:hover{background:#c15420;color:#fff;transform:translateY(-2px);}
.mp-btn-ghost{
  background:transparent;
  color:var(--white);
  font-family:var(--font-display);
  font-weight:600;
  letter-spacing:.03em;
  padding:.75rem 1.6rem;
  border-radius:2px;
  border:1.5px solid rgba(255,255,255,.55);
  margin-left:.7rem;
  transition:border-color .2s ease, background .2s ease;
}
.mp-btn-ghost:hover{background:rgba(255,255,255,.12);color:#fff;border-color:#fff;}

/* =========================================================
   NAVBAR
   ========================================================= */
.mp-nav{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:1.1rem 0;
  transition:background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.mp-nav.mp-scrolled{
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(6px);
  box-shadow:0 4px 24px rgba(18,58,92,.08);
  padding:.65rem 0;
}
.mp-nav-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;}

.mp-logo{display:flex;align-items:center;gap:.6rem;}
.mp-logo-mark{display:flex;filter:drop-shadow(0 2px 3px rgba(0,0,0,.15));}
.mp-logo-text{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.15rem;
  letter-spacing:.03em;
  color:var(--sky-dark);
  transition:color .35s ease;
}
.mp-logo-text b{font-weight:700;}
.mp-nav:not(.mp-scrolled) .mp-logo-text{color:#fff;}
.mp-logo-text.light{color:#fff !important;}

.mp-menu{display:flex;align-items:center;gap:2.1rem;}
.mp-menu a{
  font-family:var(--font-display);
  font-weight:600;
  font-size:.98rem;
  letter-spacing:.02em;
  color:#fff;
  position:relative;
  padding:.2rem 0;
  transition:color .35s ease;
}
.mp-menu a::after{
  content:"";
  position:absolute;left:0;bottom:-4px;
  width:0;height:2px;background:var(--gerua);
  transition:width .25s ease;
}
.mp-menu a:hover::after,
.mp-menu a.active::after{width:100%;}
.mp-nav.mp-scrolled .mp-menu a{color:var(--sky-dark);}

.mp-nav-call{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--font-mono);
  font-size:.85rem;
  color:#fff;
  border:1.5px solid rgba(255,255,255,.55);
  padding:.5rem 1rem;
  border-radius:2px;
  transition:all .35s ease;
}
.mp-nav.mp-scrolled .mp-nav-call{color:var(--sky-dark);border-color:var(--sky-dark);}
.mp-nav.mp-scrolled .mp-nav-call:hover{background:var(--sky-dark);color:#fff;}

.mp-burger{
  display:none;background:none;border:0;width:32px;height:24px;
  position:relative;cursor:pointer;z-index:1100;
}
.mp-burger span{
  position:absolute;left:0;right:0;height:2px;background:#fff;
  transition:all .3s ease;
}
.mp-nav.mp-scrolled .mp-burger span{background:var(--sky-dark);}
.mp-burger span:nth-child(1){top:0;}
.mp-burger span:nth-child(2){top:11px;}
.mp-burger span:nth-child(3){top:22px;}
.mp-burger.open span:nth-child(1){transform:rotate(45deg);top:11px;}
.mp-burger.open span:nth-child(2){opacity:0;}
.mp-burger.open span:nth-child(3){transform:rotate(-45deg);top:11px;}

/* =========================================================
   HERO
   ========================================================= */
.mp-hero{
  position:relative;
  min-height:100vh;
  display:flex;align-items:center;
  background:linear-gradient(160deg,var(--sky-dark) 0%, #1c5480 55%, var(--sky) 100%);
  overflow:hidden;
}
.mp-hero-inner{
  position:relative;z-index:2;
  display:grid;grid-template-columns:1.05fr 1fr;
  gap:2rem;align-items:center;
  padding-top:6rem;padding-bottom:3rem;
}
.mp-hero-copy{color:#fff;}
.mp-hero-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2.4rem,4.8vw,3.6rem);
  line-height:1.1;
  margin-bottom:1.2rem;
}
.mp-hero-title span{color:var(--gerua-light);}
.mp-hero-sub{
  font-size:1.05rem;
  color:rgba(255,255,255,.85);
  max-width:520px;
  line-height:1.7;
  margin-bottom:2rem;
}
.mp-hero-cta{margin-bottom:2.8rem;display:flex;flex-wrap:wrap;gap:.6rem;}
.mp-hero-stats{display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap;}
.mp-hero-stats div{display:flex;flex-direction:column;gap:.15rem;}
.mp-hero-stats strong{font-family:var(--font-display);font-size:1.3rem;color:#fff;}
.mp-hero-stats strong i{color:var(--gerua-light);font-size:.9rem;margin-left:.2rem;}
.mp-hero-stats span{font-family:var(--font-mono);font-size:.72rem;letter-spacing:.06em;color:rgba(255,255,255,.7);text-transform:uppercase;}
.mp-stat-div{width:1px;height:32px;background:rgba(255,255,255,.25);}

/* ---- 3D House ---- */
.mp-hero-visual{position:relative;display:flex;justify-content:center;}
.mp-house-stage{
  position:relative;
  width:100%;max-width:420px;
  height:380px;
  perspective:1300px;
}
.mp-house3d{
  position:absolute;top:52%;left:50%;
  width:0;height:0;
  transform-style:preserve-3d;
  transform:translate(-50%,-50%) rotateX(-16deg) rotateY(0deg);
  animation:houseSpin 20s linear infinite;
}
@keyframes houseSpin{
  from{transform:translate(-50%,-50%) rotateX(-16deg) rotateY(0deg);}
  to{transform:translate(-50%,-50%) rotateX(-16deg) rotateY(360deg);}
}
.mp-face{position:absolute;}

/* cube body 160(w) x 160(d) x 140(h) centered at origin */
.mp-face-front{
  width:160px;height:140px;left:-80px;top:-70px;
  transform:translateZ(80px);
  background:linear-gradient(180deg,#EAF3FA,#D7E9F5);
  border:1.5px solid var(--sky-dark);
}
.mp-face-back{
  width:160px;height:140px;left:-80px;top:-70px;
  transform:rotateY(180deg) translateZ(80px);
  background:linear-gradient(180deg,#dbe9f3,#c7dcea);
  border:1.5px solid var(--sky-dark);
}
.mp-face-left{
  width:160px;height:140px;left:-80px;top:-70px;
  transform:rotateY(-90deg) translateZ(80px);
  background:linear-gradient(180deg,#cfe1ec,#b9d3e4);
  border:1.5px solid var(--sky-dark);
}
.mp-face-right{
  width:160px;height:140px;left:-80px;top:-70px;
  transform:rotateY(90deg) translateZ(80px);
  background:linear-gradient(180deg,#cfe1ec,#b9d3e4);
  border:1.5px solid var(--sky-dark);
}
.mp-face-base{display:none;}

/* roof front / back slopes */
.mp-face-roof-l{ /* front slope */
  width:180px;height:114px;left:-90px;top:-140px;
  transform-origin:50% 0%;
  transform:rotateX(52deg);
  background:linear-gradient(180deg,var(--gerua-light),var(--gerua));
  border:1.5px solid #a8471a;
}
.mp-face-roof-r{ /* back slope */
  width:180px;height:114px;left:-90px;top:-140px;
  transform-origin:50% 0%;
  transform:rotateX(-52deg);
  background:linear-gradient(180deg,#c2551f,var(--gerua));
  border:1.5px solid #a8471a;
}
/* gable triangles (left / right ends) */
.mp-face-roof-back-l{ /* left gable */
  width:160px;height:70px;left:-80px;top:-140px;
  transform:rotateY(-90deg) translateZ(80px);
  clip-path:polygon(50% 0%,0% 100%,100% 100%);
  background:#e9f2fa;
  border:1.5px solid var(--sky-dark);
}
.mp-face-roof-back-r{ /* right gable */
  width:160px;height:70px;left:-80px;top:-140px;
  transform:rotateY(90deg) translateZ(80px);
  clip-path:polygon(50% 0%,0% 100%,100% 100%);
  background:#dbe9f3;
  border:1.5px solid var(--sky-dark);
}

.mp-house-shadow{
  position:absolute;left:50%;bottom:18px;
  width:220px;height:26px;
  transform:translateX(-50%);
  background:radial-gradient(closest-side, rgba(0,0,0,.35), transparent 75%);
  filter:blur(2px);
}
.mp-dim-label{
  position:absolute;
  font-family:var(--font-mono);
  font-size:.7rem;letter-spacing:.1em;
  color:rgba(255,255,255,.55);
}
.mp-dim-1{top:6%;right:2%;}
.mp-dim-2{bottom:4%;left:2%;}

.mp-scroll-cue{
  position:absolute;left:50%;bottom:26px;transform:translateX(-50%);
  color:rgba(255,255,255,.75); font-size:1.3rem;
  animation:cueBounce 2.4s ease-in-out infinite;
  z-index:2;
}
@keyframes cueBounce{0%,100%{transform:translate(-50%,0);}50%{transform:translate(-50%,8px);}}

/* =========================================================
   SECTIONS
   ========================================================= */
.mp-section{padding:6.5rem 0;}
.mp-section-soft{background:var(--bg-soft);}

/* About */
.mp-about-card{max-width:420px;margin:0 auto;}
.mp-blueprint-portrait{width:100%;height:auto;}
.mp-cred-list{margin-top:1.4rem;}
.mp-cred-list li{
  display:flex;align-items:center;gap:.6rem;
  font-size:.95rem;color:var(--sky-dark);font-weight:600;
  padding:.4rem 0;border-bottom:1px dashed var(--line);
}
.mp-cred-list i{color:var(--gerua);}

/* Services */
.mp-service-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  padding:2rem 1.7rem;
  height:100%;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mp-service-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 32px rgba(18,58,92,.1);
  border-color:var(--sky);
}
.mp-service-card .mp-icon{
  width:46px;height:46px;color:var(--sky);margin-bottom:1.1rem;
}
.mp-service-card h3{
  font-family:var(--font-display);font-weight:700;font-size:1.2rem;
  color:var(--sky-dark);margin-bottom:.5rem;
}
.mp-service-card p{color:#4C5B66;font-size:.94rem;line-height:1.6;margin:0;}

/* Projects */
.mp-project-stack{display:flex;flex-direction:column;gap:1.1rem;}
.mp-project-card{
  display:flex;align-items:center;gap:1.2rem;
  background:#fff;border:1px solid var(--line);border-radius:4px;
  padding:1.1rem;transition:box-shadow .25s ease, transform .25s ease;
}
.mp-project-card:hover{box-shadow:0 12px 26px rgba(18,58,92,.08);transform:translateX(4px);}
.mp-project-svg{width:110px;flex:0 0 110px;height:auto;}
.mp-project-card h4{font-family:var(--font-display);font-weight:700;color:var(--sky-dark);font-size:1.05rem;margin-bottom:.25rem;}
.mp-project-card p{margin:0;font-size:.88rem;color:#5A6A75;}

/* Gallery */
.mp-gallery-tile{
  background:#fff;border:1px solid var(--line);border-radius:4px;overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
}
.mp-gallery-tile:hover{transform:scale(1.02);box-shadow:0 14px 28px rgba(18,58,92,.1);}
.mp-gallery-tile svg{width:100%;height:auto;display:block;}

/* Contact */
.mp-contact-info{display:flex;flex-direction:column;gap:1.6rem;}
.mp-contact-row{display:flex;gap:1rem;align-items:flex-start;}
.mp-contact-row i{color:var(--gerua);font-size:1.25rem;margin-top:.2rem;}
.mp-contact-row h5{font-family:var(--font-display);font-weight:700;color:var(--sky-dark);font-size:1.02rem;margin-bottom:.2rem;}
.mp-contact-row p{margin:0;color:#4C5B66;font-size:.94rem;}
.mp-contact-row a{color:var(--sky);font-weight:600;}
.mp-contact-row a:hover{text-decoration:underline;}

.mp-form{background:#fff;border:1px solid var(--line);border-radius:4px;padding:2rem;}
.mp-form label{font-family:var(--font-mono);font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--sky-dark);margin-bottom:.35rem;}
.mp-form .form-control{
  border-radius:2px;border:1px solid var(--line);padding:.65rem .8rem;font-size:.95rem;
}
.mp-form .form-control:focus{
  border-color:var(--sky);box-shadow:0 0 0 .18rem rgba(47,134,201,.15);
}
.mp-form-note{margin-top:.7rem;margin-bottom:0;font-size:.88rem;color:var(--sky-dark);font-weight:600;}

.mp-map-wrap{margin-top:3.2rem;border:1px solid var(--line);border-radius:4px;overflow:hidden;}
.mp-map-wrap iframe{width:100%;height:340px;border:0;display:block;filter:grayscale(.15);}

/* =========================================================
   FOOTER
   ========================================================= */
.mp-footer{
  position:relative;
  background:var(--sky-dark);
  color:rgba(255,255,255,.8);
  padding:4.5rem 0 1.8rem;
}
.mp-footer .container{position:relative;z-index:1;}
.mp-logo-footer{margin-bottom:1rem;}
.mp-footer-tag{font-size:.9rem;line-height:1.7;color:rgba(255,255,255,.6);margin-bottom:1.3rem;}
.mp-social{display:flex;gap:.7rem;}
.mp-social a{
  width:38px;height:38px;border:1px solid rgba(255,255,255,.25);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s ease, border-color .2s ease;
}
.mp-social a:hover{background:var(--gerua);border-color:var(--gerua);}
.mp-footer h6{
  font-family:var(--font-display);font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  font-size:.85rem;color:#fff;margin-bottom:1.1rem;
}
.mp-footer-links li{margin-bottom:.6rem;}
.mp-footer-links a{font-size:.92rem;color:rgba(255,255,255,.72);transition:color .2s ease;}
.mp-footer-links a:hover{color:var(--gerua-light);}
.mp-footer-addr{display:flex;gap:.6rem;font-size:.9rem;margin-bottom:.7rem;color:rgba(255,255,255,.72);}
.mp-footer-addr i{color:var(--gerua-light);margin-top:.15rem;}
.mp-footer hr{border-color:rgba(255,255,255,.15);margin:2.4rem 0 1.4rem;}
.mp-footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;font-size:.8rem;color:rgba(255,255,255,.5);}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:991.98px){
  .mp-hero-inner{grid-template-columns:1fr;text-align:center;}
  .mp-hero-copy{order:1;}
  .mp-hero-visual{order:0;margin-bottom:1rem;}
  .mp-hero-sub{margin-left:auto;margin-right:auto;}
  .mp-hero-cta,.mp-hero-stats{justify-content:center;}

  .mp-burger{display:block;}
  .mp-menu{
    position:fixed;top:0;right:0;height:100vh;width:78%;max-width:320px;
    background:#fff;flex-direction:column;justify-content:center;align-items:flex-start;
    gap:1.6rem;padding:2rem 2.4rem;
    transform:translateX(100%);transition:transform .35s ease;
    box-shadow:-8px 0 30px rgba(0,0,0,.15);
  }
  .mp-menu.open{transform:translateX(0);}
  .mp-menu a{color:var(--sky-dark) !important;font-size:1.1rem;}
}
@media (max-width:575.98px){
  .mp-section{padding:4.5rem 0;}
  .mp-form{padding:1.3rem;}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .mp-house3d{animation:none;}
  .mp-scroll-cue{animation:none;}
  html{scroll-behavior:auto;}
}
