/*
Theme Name: Matrix Design Group 2026 v3
Theme URI: https://matrixdesigngroupllc.com
Author: Matrix Design Group LLC
Description: Custom commercial architectural film and wallcovering theme for Matrix Design Group LLC.
Version: 1.4.0
Text Domain: matrixdesign2026
*/

:root{
  --ink:#101820;
  --green:#123f39;
  --green2:#1e5d55;
  --accent:#d9a441;
  --paper:#f7f7f5;
  --muted:#667078;
  --line:#d9dedc;
  --white:#fff;
  --max:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--max),calc(100% - 36px));margin:auto}
.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 0 9px}
.brand{font-weight:900;letter-spacing:.08em;font-size:clamp(26px,4vw,44px);line-height:.95}
.brand small{display:block;font-size:9px;letter-spacing:.24em;margin-top:7px;font-weight:700}
.contact-mini{display:flex;align-items:center;gap:20px;font-size:14px;font-weight:700}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;border-radius:2px;font-size:13px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border:1px solid transparent}
.btn-primary{background:var(--green);color:#fff}
.btn-outline{border-color:#fff;color:#fff}
.main-nav{display:flex;gap:26px;align-items:center;padding:8px 0 13px;font-size:14px}
.menu-toggle{display:none;background:none;border:0;font-size:28px}
.hero{min-height:560px;display:flex;align-items:center;color:#fff;background-color:#243735;background-position:center;background-size:cover;background-repeat:no-repeat;position:relative}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,20,23,.86),rgba(8,20,23,.42) 55%,rgba(8,20,23,.18))}.hero-inner{position:relative;z-index:2}
.hero-inner{padding:78px 0;max-width:720px}
.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:13px;font-weight:800}
.hero h1{font-size:clamp(48px,6vw,78px);line-height:.98;margin:14px 0 22px;letter-spacing:-.04em}
.hero p{font-size:clamp(18px,2vw,24px);max-width:650px;color:#eef2ef}
.trust-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-bottom:1px solid var(--line);background:#fff}
.trust-item{padding:23px;border-right:1px solid var(--line)}
.trust-item:last-child{border-right:0}
.trust-item strong{display:block;font-size:13px;text-transform:uppercase}
.trust-item span{font-size:13px;color:var(--muted)}
.section{padding:76px 0}
.section.alt{background:var(--paper)}
.section.dark{background:var(--green);color:#fff}
.section-head{text-align:center;max-width:760px;margin:0 auto 36px}
.section-head h2{font-size:clamp(32px,4vw,48px);line-height:1.05;margin:0 0 12px}
.section-head p{color:var(--muted)}
.dark .section-head p{color:#dce5e2}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{background:#fff;border:1px solid var(--line);overflow:hidden}
.card-visual{height:210px;background:
linear-gradient(145deg,#a79986 0 18%,#776d63 18% 34%,#c8c0b8 34% 58%,#91867b 58% 78%,#d8d3cd 78%)}
.card:nth-child(2) .card-visual{background:linear-gradient(130deg,#685a4b,#aa9170 28%,#534945 46%,#b59f80 70%,#6e6257)}
.card:nth-child(3) .card-visual{background:linear-gradient(135deg,#d3d5d7 0 22%,#899ba7 22% 41%,#283c51 41% 59%,#b5b1a5 59% 77%,#566c80 77%)}
.card:nth-child(4) .card-visual{background:linear-gradient(150deg,#0f433a,#397266 40%,#d7d2c2 40% 70%,#8aa099 70%)}
.card-body{padding:21px}
.card h3{margin:0 0 8px;font-size:20px}
.card p{margin:0 0 16px;color:var(--muted);font-size:14px}
.text-link{font-size:13px;font-weight:800;text-transform:uppercase}
.brands{display:flex;flex-wrap:wrap;justify-content:center;gap:34px 56px;font-weight:800;font-size:21px;align-items:center}
.projects{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.project{height:190px;background:linear-gradient(135deg,#806b58,#c1b7a9);border:1px solid rgba(255,255,255,.15)}
.project:nth-child(2){background:linear-gradient(135deg,#453a33,#d0c6b5,#6d533e)}
.project:nth-child(3){background:linear-gradient(135deg,#214c73,#80a0bf,#d6d4ca)}
.project:nth-child(4){background:linear-gradient(135deg,#6b5746,#a98d6f)}
.project:nth-child(5){background:linear-gradient(135deg,#647d67,#c4c6b4,#8f876e)}
.cta{display:grid;grid-template-columns:1fr auto;gap:35px;align-items:center}
.cta h2{font-size:clamp(34px,5vw,60px);line-height:1;margin:7px 0 15px}
.site-footer{background:#0e181b;color:#cfd7d5;padding:45px 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
.footer-title{font-weight:800;color:#fff;margin-bottom:10px}
.page-hero{padding:90px 0 65px;background:linear-gradient(135deg,#173a35,#0d2522);color:#fff}
.page-hero h1{font-size:clamp(42px,6vw,70px);margin:0 0 14px;line-height:1}
.content{max-width:900px;margin:auto}
.content h2{margin-top:38px;font-size:30px}
.content p,.content li{font-size:18px;color:#3f4b50}
.quote-box{border:1px solid var(--line);padding:28px;background:var(--paper);margin-top:35px}
@media(max-width:900px){
  .contact-mini{display:none}
  .menu-toggle{display:block}
  .main-nav{display:none;flex-direction:column;align-items:flex-start;padding:12px 0 18px}
  .main-nav.open{display:flex}
  .trust-strip{grid-template-columns:1fr 1fr}
  .cards{grid-template-columns:1fr 1fr}
  .projects{grid-template-columns:1fr 1fr}
  .cta{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .container{width:min(var(--max),calc(100% - 26px))}
  .hero{min-height:500px}
  .hero h1{font-size:46px}
  .trust-strip,.cards,.projects{grid-template-columns:1fr}
  .trust-item{border-right:0;border-bottom:1px solid var(--line)}
  .project{height:150px}
}

.project-photo,.card-photo{width:100%;height:100%;object-fit:cover;display:block}
.card-visual{overflow:hidden}
.project{overflow:hidden;position:relative}
.service-area{font-size:14px;color:#d6dfdc;margin-top:8px}
.contact-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}
.contact-panel a,.contact-panel div{border:1px solid var(--line);padding:20px;background:#fff}
.contact-panel strong{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--green);margin-bottom:6px}
@media(max-width:700px){.contact-panel{grid-template-columns:1fr}}

/* v1.2 homepage motion */
.hero-slider{overflow:hidden;isolation:isolate;background:#1a2c2a}
.hero-slides,.hero-slide,.hero-shade{position:absolute;inset:0}
.hero-slides{z-index:0}
.hero-slide{background-size:cover;background-position:center;opacity:0;transform:scale(1.035);transition:opacity 1.25s ease,transform 7s ease;will-change:opacity,transform}
.hero-slide.is-active{opacity:1;transform:scale(1.0)}
.hero-placeholder{background:linear-gradient(125deg,#172d2a 0%,#31544f 45%,#7a8279 100%)}
.hero-shade{z-index:1;background:linear-gradient(90deg,rgba(7,18,20,.9) 0%,rgba(7,18,20,.66) 45%,rgba(7,18,20,.24) 75%,rgba(7,18,20,.12) 100%)}
.hero-inner{position:relative;z-index:3}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.btn-glass{color:#fff;border-color:rgba(255,255,255,.48);background:rgba(255,255,255,.10);backdrop-filter:blur(5px)}
.btn-glass:hover,.btn-outline:hover{background:#fff;color:var(--green)}
.hero-dots{position:absolute;z-index:4;left:50%;bottom:25px;transform:translateX(-50%);display:flex;gap:10px}
.hero-dot{width:36px;height:3px;padding:0;border:0;background:rgba(255,255,255,.4);cursor:pointer;transition:.25s}
.hero-dot.is-active{background:#fff;width:52px}
.dark-eye{color:var(--green2)}
.project-motion{padding-left:0;padding-right:0;overflow:hidden;background:#fff}
.motion-heading{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:35px;margin-bottom:30px}
.motion-heading h2{font-size:clamp(38px,5vw,66px);line-height:.98;margin:8px 0 0}
.motion-heading p{font-size:18px;color:var(--muted);max-width:580px;margin:0}
.motion-window{overflow:hidden;width:100%}
.motion-track{display:flex;width:max-content;gap:16px;padding:4px 8px 16px;animation:matrixMarquee 42s linear infinite}
.motion-window:hover .motion-track{animation-play-state:paused}
.motion-card{width:clamp(280px,35vw,520px);height:clamp(220px,30vw,390px);margin:0;overflow:hidden;background:#d7d8d4;flex:none}
.motion-card img{width:100%;height:100%;object-fit:cover;transition:transform .7s ease}
.motion-card:hover img{transform:scale(1.035)}
.placeholder-card:nth-child(3n+1){background:linear-gradient(135deg,#183d37,#72877e)}
.placeholder-card:nth-child(3n+2){background:linear-gradient(135deg,#afa18f,#65584d)}
.placeholder-card:nth-child(3n){background:linear-gradient(135deg,#394c5c,#a8b2b5)}
@keyframes matrixMarquee{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 8px))}}
.reveal-on-scroll{opacity:0;transform:translateY(22px);transition:opacity .75s ease,transform .75s ease}
.reveal-on-scroll.is-visible{opacity:1;transform:none}
.card{transition:transform .35s ease,box-shadow .35s ease}
.card:hover{transform:translateY(-5px);box-shadow:0 18px 45px rgba(16,24,32,.10)}
.project-photo{transition:transform .6s ease}
.project:hover .project-photo{transform:scale(1.045)}
@media(max-width:900px){.motion-heading{grid-template-columns:1fr}.hero-shade{background:linear-gradient(90deg,rgba(7,18,20,.9),rgba(7,18,20,.48))}}
@media(max-width:560px){.hero-actions{gap:9px}.hero-actions .btn{width:100%}.hero-dots{bottom:17px}.motion-card{width:78vw;height:56vw}.motion-track{animation-duration:34s}.motion-heading p{font-size:16px}}
@media(prefers-reduced-motion:reduce){.hero-slide,.reveal-on-scroll,.card,.project-photo,.motion-card img{transition:none}.motion-track{animation:none}.hero-slide{transform:none}.reveal-on-scroll{opacity:1;transform:none}}


/* v3.1 mobile refinements */
@media(max-width:560px){
  .hero-inner{padding:58px 0 42px}
  .hero p{font-size:19px;line-height:1.45}
  .btn{min-height:54px}
  .section{padding:60px 0}
  .brands{gap:26px 34px;font-size:18px}
  .trust-item{padding:22px 38px}
}

/* DreamScape IPN credential and service section */
.credential-link{transition:transform .25s ease,box-shadow .25s ease}
.credential-link:hover{transform:translateY(-3px);box-shadow:0 14px 35px rgba(16,24,32,.10)}
.credential-logo img[alt*="DreamScape"]{max-width:230px}
.dreamscape-feature{display:grid;grid-template-columns:250px 1fr;gap:38px;align-items:center;margin:10px 0 24px}
.dreamscape-badge-link{display:block}
.dreamscape-badge-link img{width:100%;height:auto;display:block}
.dreamscape-feature h2{margin-top:0}
@media(max-width:700px){.dreamscape-feature{grid-template-columns:1fr;gap:24px}.dreamscape-badge-link{max-width:220px;margin:0 auto}.dreamscape-feature{text-align:left}}

/* Credential logo sizing refinement */
.credentials-grid{gap:18px;align-items:center}
.credential-card{min-height:145px;padding:20px 24px}
.credential-logo img{width:auto;max-width:220px;max-height:105px;margin:0 auto;object-fit:contain}
.credential-card:nth-child(2) img{max-width:150px;max-height:150px}
@media(max-width:800px){
  .credential-card{min-height:120px;padding:18px 20px}
  .credential-logo img{max-width:190px;max-height:90px}
  .credential-card:nth-child(2) img{max-width:135px;max-height:135px}
}


/* credential logo size hard-fix */
.credentials-section .credential-card{min-height:115px!important;padding:18px!important}
.credentials-section .credential-logo img{width:auto!important;height:auto!important;object-fit:contain!important;margin:0 auto!important}
.credentials-section img[alt*="3M Endorsed"]{max-width:145px!important;max-height:72px!important}
.credentials-section img[alt*="DreamScape"]{max-width:120px!important;max-height:92px!important}
.credentials-section img[alt*="TIPS Awarded"]{max-width:185px!important;max-height:72px!important}
@media(max-width:800px){
 .credentials-section .credential-card{min-height:100px!important;padding:14px!important}
 .credentials-section img[alt*="3M Endorsed"]{max-width:125px!important;max-height:62px!important}
 .credentials-section img[alt*="DreamScape"]{max-width:100px!important;max-height:78px!important}
 .credentials-section img[alt*="TIPS Awarded"]{max-width:160px!important;max-height:62px!important}
}

/* credential logo size final tweak */
.credentials-section img[alt*="3M Endorsed"]{max-width:165px!important;max-height:82px!important}
.credentials-section img[alt*="DreamScape"]{max-width:138px!important;max-height:102px!important}
.credentials-section img[alt*="TIPS Awarded"]{max-width:205px!important;max-height:82px!important}
@media(max-width:800px){
 .credentials-section img[alt*="3M Endorsed"]{max-width:145px!important;max-height:70px!important}
 .credentials-section img[alt*="DreamScape"]{max-width:118px!important;max-height:88px!important}
 .credentials-section img[alt*="TIPS Awarded"]{max-width:180px!important;max-height:70px!important}
}

/* v1.2.2 social media links */
.header-actions{display:flex;align-items:center;gap:14px;margin-left:auto}
.social-links{display:flex;align-items:center;gap:9px}
.social-icon{width:36px;height:36px;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:var(--green);background:#fff;transition:transform .2s ease,background .2s ease,color .2s ease,border-color .2s ease}
.social-icon:hover{transform:translateY(-2px);background:var(--green);color:#fff;border-color:var(--green)}
.social-icon svg{width:19px;height:19px;fill:currentColor;stroke:currentColor;stroke-width:1.7}
.social-icon svg rect,.social-icon svg circle{fill:none}
.social-icon svg .ig-dot{fill:currentColor;stroke:none}
.footer-social{margin-top:14px}
.footer-social .social-icon{background:transparent;border-color:rgba(255,255,255,.28);color:#fff}
.footer-social .social-icon:hover{background:#fff;color:var(--green);border-color:#fff}
@media(max-width:900px){
  .topbar{gap:12px}
  .header-actions{gap:10px}
  .contact-mini{display:none}
  .header-social{display:flex}
  .menu-toggle{display:block}
}
@media(max-width:560px){
  .brand{font-size:clamp(22px,8vw,34px)}
  .brand small{font-size:7px;letter-spacing:.16em}
  .social-icon{width:34px;height:34px}
  .social-icon svg{width:18px;height:18px}
}
