/* =========================================================
   CleanSpace Investment CC — Stylesheet
   Brand: Everything Done With Precision
   ========================================================= */

:root {
  --brand:        #e95127;
  --brand-dark:   #c63f1b;
  --brand-soft:   #fdece6;
  --ink:          #1d2329;
  --ink-soft:     #4b5560;
  --muted:        #7a8794;
  --line:         #e7eaee;
  --bg:           #ffffff;
  --bg-alt:       #f6f8fa;
  --bg-dark:      #14191e;
  --white:        #ffffff;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 10px 30px rgba(20, 25, 30, .08);
  --shadow-lg:    0 24px 60px rgba(20, 25, 30, .16);
  --maxw:         1180px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.3px; }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1.1em; color: var(--ink-soft); }

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

.section { padding: 86px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #cdd5dd; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 60px 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section-head { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-head p { font-size: 1.08rem; }

.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(233,81,39,.32); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: auto; }
.brand__txt { font-weight: 800; letter-spacing: .5px; font-size: 1.25rem; color: var(--ink); }
.brand__txt span { color: var(--brand); }

.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a {
  display: block; padding: 10px 16px; color: var(--ink); font-weight: 600; font-size: .95rem;
  border-radius: 8px;
}
.menu a:hover, .menu a.active { color: var(--brand); background: var(--brand-soft); }

.has-sub > a::after { content: " ▾"; font-size: .7em; color: var(--muted); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 8px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--ink); transition: .25s; position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: 86vh; min-height: 540px; max-height: 820px; overflow: hidden; background: #000; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,18,22,.82) 0%, rgba(15,18,22,.55) 45%, rgba(15,18,22,.2) 100%); }
.slide__inner { position: relative; z-index: 2; color: #fff; max-width: 680px; }
.slide__inner h1 { color: #fff; margin-bottom: 18px; }
.slide__inner p { color: rgba(255,255,255,.9); font-size: 1.18rem; margin-bottom: 28px; }
.slide__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .25s; }
.hero-dots button.active { background: var(--brand); width: 30px; border-radius: 6px; }

/* ---------- Welcome / intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.intro-grid .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.intro-grid .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pillars / cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .98rem; }

.value-card { background: #fff; border-radius: var(--radius); padding: 30px; border-top: 4px solid var(--brand); box-shadow: var(--shadow); }

/* numbered service cards */
.service { position: relative; overflow: hidden; }
.service .num { font-size: 3rem; font-weight: 800; color: var(--brand-soft); line-height: 1; margin-bottom: 6px; }

/* ---------- Split feature blocks ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.reverse .feature__media { order: 2; }
.feature__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3/2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
.client {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; text-align: center; transition: .2s;
}
.client:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.client img { height: 64px; width: auto; margin: 0 auto 10px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .25s; }
.client:hover img { filter: none; opacity: 1; }
.client span { font-size: .78rem; color: var(--muted); display: block; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.member__photo { aspect-ratio: 3/4; overflow: hidden; background: var(--bg-alt); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.member:hover .member__photo img { transform: scale(1.05); }
.member__body { padding: 22px 24px; }
.member__body h3 { margin-bottom: 2px; }
.member__role { color: var(--brand); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.member__body p { font-size: .95rem; margin: 0; }

.advisor { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.advisor img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.advisor h3 { margin-bottom: 6px; }
.advisor p { font-size: .92rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a::after { content: "⤢"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; background: rgba(233,81,39,.0); opacity: 0; transition: .25s; }
.gallery a:hover img { transform: scale(1.08); }
.gallery a:hover::after { background: rgba(233,81,39,.55); opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,12,15,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 1.4rem; transition: .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--brand); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 24px; }
.lightbox__nav.next { right: 24px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 110px 0 90px; color: #fff; background: var(--bg-dark); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 620px; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.info-item .ico { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.info-item h4 { margin: 0 0 2px; }
.info-item p { margin: 0; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-note { font-size: .85rem; color: var(--muted); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-status { padding: 12px 16px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; margin-top: 12px; display: none; }
.form-status.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: 20px; padding: 56px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #9aa6b2; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .5px; }
.site-footer a { color: #9aa6b2; }
.site-footer a:hover { color: var(--brand); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Music player ---------- */
.music-player {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: rgba(20,25,30,.9); color: #fff; backdrop-filter: blur(8px);
  padding: 10px 14px 10px 10px; border-radius: 50px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
}
.music-player button { background: var(--brand); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; transition: .2s; }
.music-player button:hover { background: var(--brand-dark); }
.music-player .mp-label { font-size: .78rem; letter-spacing: .5px; white-space: nowrap; }
.music-player .mp-bars { display: flex; gap: 2px; align-items: flex-end; height: 18px; }
.music-player .mp-bars i { width: 3px; background: var(--brand); height: 6px; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.music-player .mp-bars i:nth-child(2){ animation-delay:.2s } .music-player .mp-bars i:nth-child(3){ animation-delay:.4s } .music-player .mp-bars i:nth-child(4){ animation-delay:.6s }
.music-player.paused .mp-bars i { animation-play-state: paused; height: 6px; }
@keyframes eq { 0%,100%{height:5px} 50%{height:18px} }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .intro-grid, .feature, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature__media { order: 0; }
  .grid-3, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .menu {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease;
  }
  .menu.open { transform: translateY(0); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 14px; margin: 0; }
  .has-sub:hover .submenu { transform: none; }
  .nav-cta { margin: 8px 0 0; }
  .grid-2, .grid-3, .team-grid, .clients, .gallery { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { height: auto; min-height: 0; max-height: none; }
  .slide { position: relative; opacity: 1; display: none; min-height: 78vh; }
  .slide.active { display: flex; }
}
@media (max-width: 460px) {
  .clients, .gallery { grid-template-columns: 1fr 1fr; }
  .brand__txt { display: none; }
}
