/* ============================================================
   NAS View Developers — Components & Sections
   ============================================================ */

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0);
  transition: background .45s var(--ease), border-color .45s var(--ease), height .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.header.is-solid {
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  height: 66px;
}
/* On dark hero, header text is light until scrolled */
.header.is-light:not(.is-solid) { color: var(--white); }
.header.is-light:not(.is-solid) .wordmark { color: var(--white); }
.header.is-light:not(.is-solid) .nav__item > a,
.header.is-light:not(.is-solid) .nav__trigger { color: rgba(255,255,255,0.84); }
.header.is-light:not(.is-solid) .nav__item > a:hover,
.header.is-light:not(.is-solid) .nav__trigger:hover { color: var(--white); }
.header.is-light:not(.is-solid) .header__cta { background: var(--white); color: var(--ink); border-color: var(--white); }
.header.is-light:not(.is-solid) .header__cta:hover { background: rgba(255,255,255,0.84); border-color: rgba(255,255,255,0.84); }
.header.is-light:not(.is-solid) .burger span { background: var(--white); }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  transition: color .45s var(--ease);
  justify-self: start;
}
.wordmark__mark {
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.02em;
}
.wordmark__sub {
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey);
  transition: color .45s var(--ease);
}
.header.is-light:not(.is-solid) .wordmark__sub { color: rgba(255,255,255,0.6); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  justify-self: center;
}
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item--has::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }
.nav a,
.nav__trigger {
  text-decoration: none;
  color: var(--ink-90);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  position: relative;
  padding-block: 6px;
  transition: color .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav a::after,
.nav__trigger::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .4s var(--ease);
}
.nav a::after,
.nav__trigger::after { background: var(--royal); height: 2px; }
.nav a:hover,
.nav__trigger:hover { color: var(--royal); }
.nav a:hover::after,
.nav__trigger:hover::after,
.nav__trigger.is-active::after { width: 100%; }
.header.is-light:not(.is-solid) .nav a::after,
.header.is-light:not(.is-solid) .nav__trigger::after { background: var(--white); }
.nav__trigger .caret { transition: transform .3s var(--ease); opacity: 0.7; }
.nav__item--has:hover .caret,
.nav__item--has.is-open .caret { transform: rotate(180deg); }

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 216px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(0,0,0,0.10);
  padding: 8px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  z-index: 120;
}
.nav__item--has:hover .dropdown,
.nav__item--has:focus-within .dropdown,
.nav__item--has.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink-90);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dropdown a {
  border-left: 2px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), padding-left .2s var(--ease);
}
.dropdown a:hover,
.dropdown a[aria-current="page"] { background: var(--royal-tint); color: var(--royal); border-left-color: var(--royal); padding-left: 18px; }

.header__right { justify-self: end; display: flex; align-items: center; gap: 14px; }
.header__cta {
  text-decoration: none;
  border: 1px solid var(--royal);
  color: var(--white);
  background: var(--royal);
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
  white-space: nowrap;
}
.header__cta:hover { background: var(--royal-deep); border-color: var(--royal-deep); transform: translateY(-1px); box-shadow: 0 8px 22px var(--royal-glow); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none; border: none; cursor: pointer;
  padding: 6px 0;
}
.burger span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform .4s var(--ease), opacity .3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--white);
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.mobile-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu > a {
  text-decoration: none;
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mm-group { padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.mm-label {
  display: block;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey); font-weight: 600; margin-bottom: 6px;
}
.mm-sub {
  display: block; text-decoration: none; color: var(--ink);
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em; padding: 10px 0;
}
.mobile-menu .mm-cta { margin-top: 28px; justify-content: center; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media image-slot { width: 100%; height: 100%; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,16,16,0.42) 0%, rgba(16,16,16,0.12) 38%, rgba(16,16,16,0.62) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--gutter);
  padding-bottom: clamp(56px, 8vh, 96px);
}
.hero .eyebrow { color: rgba(255,255,255,0.74); }
.hero .eyebrow::before { background: rgba(255,255,255,0.5); }
.hero__title { max-width: 16ch; margin-top: 26px; color: #fff; }
.hero__sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: var(--fs-lead);
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute;
  right: var(--gutter); bottom: clamp(56px, 8vh, 96px);
  z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  writing-mode: vertical-rl;
}
.hero__scroll-line { width: 1px; height: 54px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--royal-soft); animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse { 0% { top: -100%; } 60%,100% { top: 100%; } }

/* ---------- Verticals ---------- */
.verticals { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.vcard {
  position: relative;
  background: var(--white);
  padding: clamp(30px, 3.4vw, 52px);
  display: flex;
  flex-direction: column;
  min-height: 460px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.vcard::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--royal); transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease);
}
.vcard:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px var(--royal-glow); }
.vcard:hover::after { transform: scaleY(1); }
.vcard:hover h3 { color: var(--royal); }
.vcard h3 { transition: color .4s var(--ease); }
.vcard__media { position: relative; height: 240px; margin: 0 calc(-1 * clamp(30px, 3.4vw, 52px)) clamp(26px, 3vw, 40px); }
.vcard__media image-slot { width: 100%; height: 100%; }
.vcard__index { font-size: 13px; font-weight: 600; color: var(--grey); letter-spacing: 0.04em; }
.vcard h3 { margin-top: 14px; font-size: var(--fs-h3); }
.vcard p { margin-top: 14px; color: var(--grey); max-width: 38ch; }
.vcard .link { margin-top: auto; padding-top: 28px; }
.vcard__media image-slot::part(image) { transition: transform 1.2s var(--ease); }
.vcard:hover .vcard__media image-slot::part(image) { transform: scale(1.05); }

/* ---------- Projects ---------- */
.projects__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  appearance: none; background: var(--neu-bg); border: 1px solid transparent;
  color: var(--grey); font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 18px; cursor: pointer; border-radius: 999px;
  box-shadow: var(--neu-out);
  transition: color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), transform .2s var(--ease);
}
.filter:hover { color: var(--royal); transform: translateY(-1px); }
.filter:active { box-shadow: var(--neu-in); transform: translateY(0); }
.filter.is-active { background: var(--royal); color: var(--white); border-color: var(--royal); box-shadow: 0 8px 18px var(--royal-glow), var(--neu-in); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 40px) clamp(20px, 2.4vw, 36px);
}
.project-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .project-grid--three { grid-template-columns: repeat(2, 1fr); } }
.pcard {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.pcard.is-hidden { display: none; }
.pcard.is-anim { opacity: 0; transform: translateY(14px); }
.pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--offwhite);
}
.pcard__media image-slot { width: 100%; height: 100%; }
.pcard__media image-slot::part(image) { transition: transform 1.1s var(--ease); }
.pcard:hover .pcard__media image-slot::part(image) { transform: scale(1.06); }
.pcard__status {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  background: rgba(255,255,255,0.92); color: var(--ink);
  padding: 7px 12px;
}
.pcard__status[data-s="Ongoing"] { background: var(--royal); color: #fff; }
.pcard__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.pcard h3 { font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; }
.pcard__loc { font-size: 13.5px; color: var(--grey); font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.pcard p { margin-top: 8px; color: var(--grey); font-size: 14.5px; max-width: 44ch; }
.pcard__view {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pcard:hover .pcard__view { opacity: 1; transform: none; color: var(--royal); }
.pcard h3 { transition: color .35s var(--ease); }
.pcard:hover h3 { color: var(--royal); }

/* ---------- Why / value props ---------- */
.why { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.value-list { border-top: 1px solid var(--line); }
.value-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.value-item__num { font-size: 13px; font-weight: 600; color: var(--grey); padding-top: 5px; letter-spacing: 0.04em; }
.value-item h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; }
.value-item p { margin-top: 9px; color: var(--grey); font-size: 15px; max-width: 52ch; }

/* ---------- Investment / partner CTA ---------- */
.invest { position: relative; overflow: hidden; }
.invest__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.invest__media { position: relative; aspect-ratio: 5 / 6; }
.invest__media image-slot { width: 100%; height: 100%; }
.invest .eyebrow { color: rgba(255,255,255,0.6); }
.invest .eyebrow::before { background: rgba(255,255,255,0.4); }
.invest h2 { color: #fff; margin-top: 24px; max-width: 14ch; }
.invest p { margin-top: 24px; color: rgba(255,255,255,0.72); max-width: 46ch; font-size: var(--fs-lead); }
.invest__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.stat {
  background: var(--neu-bg); border-radius: 18px;
  padding: clamp(28px, 3.6vw, 50px) clamp(20px, 2vw, 30px); text-align: left;
  box-shadow: var(--neu-out-lg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: 12px 14px 30px var(--neu-shadow-d), -10px -10px 24px var(--neu-light); }
.stat__num { font-size: clamp(38px, 5vw, 68px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--royal); }
.stat__num sup { font-size: 0.42em; vertical-align: super; font-weight: 500; margin-left: 2px; color: var(--royal-soft); }
.stat__label { margin-top: 14px; font-size: 13.5px; color: var(--grey); letter-spacing: 0.02em; }

/* ---------- Partner form ---------- */
.partner { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.partner__intro p { color: var(--grey); margin-top: 22px; max-width: 40ch; }
.partner__models { margin-top: 38px; display: flex; flex-direction: column; }
.pmodel { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.pmodel:last-child { border-bottom: 1px solid var(--line); }
.pmodel span { font-size: 12px; color: var(--grey); font-weight: 600; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); transition: color .3s var(--ease); }
.field:focus-within label { color: var(--royal); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px;
  border: none; border-bottom: 1.5px solid var(--line-strong);
  background: transparent; padding: 11px 2px; color: var(--ink);
  border-radius: 0; transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.field textarea { resize: vertical; min-height: 86px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--royal); box-shadow: 0 1.5px 0 0 var(--royal); }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-soft); }
.field select { appearance: none; cursor: pointer; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23777' stroke-width='1.3' fill='none'/%3E%3C/svg%3E") no-repeat right 2px center; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: #B3261E; }
.field__err { font-size: 12px; color: #B3261E; min-height: 0; opacity: 0; transition: opacity .3s; text-transform: none; letter-spacing: 0; }
.field.has-error .field__err { opacity: 1; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--grey); max-width: 38ch; }
.form__success {
  grid-column: 1 / -1;
  display: none;
  padding: 22px 24px;
  border: 1px solid var(--royal);
  border-left-width: 3px;
  background: var(--royal-tint);
  font-size: 15px;
}
.form.is-sent .form__success { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding-block: clamp(60px, 7vw, 100px) 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .wordmark__mark { color: #fff; }
.footer .wordmark__sub { color: rgba(255,255,255,0.5); }
.footer__tag { margin-top: 22px; color: rgba(255,255,255,0.64); max-width: 32ch; font-size: 15px; }
.footer__col h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: rgba(255,255,255,0.78); text-decoration: none; font-size: 14.5px; margin-bottom: 12px; transition: color .3s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: clamp(50px, 6vw, 80px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.52); }
.footer__bottom a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color .3s var(--ease); }
.footer__bottom a:hover { color: var(--royal-soft); }
.footer__col a:hover { color: var(--royal-soft); }

/* WhatsApp float */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--royal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px var(--royal-glow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  text-decoration: none;
}
.wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--royal); animation: waPulse 2.6s var(--ease) infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
.wa:hover { transform: scale(1.08); box-shadow: 0 14px 34px var(--royal-glow); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .header__right .header__cta { display: none; }
  .burger { display: flex; }
  .header__inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .verticals { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .invest__grid { grid-template-columns: 1fr; }
  .invest__media { aspect-ratio: 16 / 10; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .partner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1; justify-content: center; }
}
