/* ============================================================
   ZAMBOL CREATIVES — components.css
   Navbar, Footer, Buttons, Cards, Service Items, Labels
   ============================================================ */

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(22, 22, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.navbar__logo img {
  height: clamp(64px, 8vw, 110px);
  width: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__links a {
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--color-grey);
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--color-white);
  transition: width var(--transition-fast);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--color-white);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.navbar__cta:hover {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.navbar__cta svg {
  width: 12px; height: 12px;
  transition: transform var(--transition-fast);
}

.navbar__cta:hover svg {
  transform: translate(2px, -2px);
}

/* ── LIGHT SCROLLED NAVBAR (for legal/text pages) ────────── */
.navbar--light-scroll.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar--light-scroll.scrolled .navbar__logo img {
  filter: brightness(0);
}

.navbar--light-scroll.scrolled .navbar__links a {
  color: #555;
}

.navbar--light-scroll.scrolled .navbar__links a:hover,
.navbar--light-scroll.scrolled .navbar__links a.active {
  color: #111;
}

.navbar--light-scroll.scrolled .navbar__links a::after {
  background: #111;
}

.navbar--light-scroll.scrolled .navbar__cta {
  color: #111;
  border-color: rgba(0, 0, 0, 0.2);
}

.navbar--light-scroll.scrolled .navbar__cta:hover {
  background: #111;
  color: #fff;
}

.navbar--light-scroll.scrolled .navbar__burger span {
  background: #111;
}

/* Burger Menu */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  padding: 4px;
}

.navbar__burger span {
  display: block;
  height: 1.5px;
  background: var(--color-white);
  transition: all 0.35s var(--ease-out-expo);
  transform-origin: center;
}

.navbar__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-menu a {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.mobile-menu a:hover { color: var(--color-accent); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px var(--container-pad) 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
}

.footer__brand {}

.footer__logo {
  height: clamp(48px, 5vw, 72px);
  width: auto;
  margin-bottom: 24px;
}

.footer__brand p {
  font-size: var(--text-small);
  color: var(--color-grey);
  line-height: 1.7;
  max-width: 240px;
}

.footer__col-title {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

.footer__links a:hover { color: var(--color-white); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer__contact-item span {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.footer__contact-item a {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}
.footer__contact-item a:hover { color: var(--color-white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.3);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.3);
  transition: color var(--transition-fast);
}

.footer__legal a:hover { color: var(--color-grey); }

/* ── SECTION LABEL (icon-text) ───────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.section-label__square {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.section-label__text {
  font-size: var(--text-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-grey);
}

/* On white sections, label text inherits dark */
.section--white .section-label__text { color: #666; }

/* ── HYPERION BUTTON ─────────────────────────────────────── */
.btn-hyperion {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  border: 1px solid currentColor;
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color var(--transition-med);
  color: var(--color-white);
}

.btn-hyperion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--transition-med);
}

.btn-hyperion:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.btn-hyperion span,
.btn-hyperion svg {
  position: relative;
  z-index: 1;
}

/* Dark button variant (on white sections) */
.btn-hyperion--dark {
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn-hyperion--dark::before { background: var(--color-dark); }
.btn-hyperion--dark:hover { color: var(--color-white); }

/* ── GROWING-DIV SERVICE ITEM ────────────────────────────── */
.service-list { border-top: 1px solid var(--color-divider); }

.service-item {
  position: relative;
  border-bottom: 1px solid var(--color-divider);
  overflow: hidden;
}

.service-item__fill {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0%;
  background: var(--color-accent);
  transition: height 0.55s var(--ease-in-out-quart);
  z-index: 0;
}

.service-item:hover .service-item__fill { height: 100%; }

.service-item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
  color: var(--color-dark);
}

.service-item:hover .service-item__link { color: var(--color-white); }

.service-item__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.35s ease;
}

.service-item__arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.service-item:hover .service-item__arrow {
  transform: translate(4px, -4px);
}

/* ── GLASSMORPHISM CARD ──────────────────────────────────── */
.glass-card {
  background: rgba(22, 22, 22, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 40px;
}

/* ── STAT BLOCK ──────────────────────────────────────────── */
.stat-block {
  padding: 40px;
  background: var(--color-white);
  border-right: 1px solid var(--color-divider);
}

.stat-block:last-child { border-right: none; }

.stat-block__number {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.stat-block__number em {
  font-style: normal;
  color: var(--color-accent);
}

.stat-block__label {
  font-size: var(--text-small);
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ── PORTFOLIO CARD ──────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.portfolio-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #1a1a1a;
}

.portfolio-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.portfolio-card:hover img { transform: scale(1.05); }

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,22,22,0.92) 0%, rgba(22,22,22,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }

.portfolio-card__info { transform: translateY(16px); transition: transform 0.4s var(--ease-out-expo); }
.portfolio-card:hover .portfolio-card__info { transform: translateY(0); }

.portfolio-card__category {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.portfolio-card__title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ── ARTICLE CARD ────────────────────────────────────────── */
.article-card {
  border-top: 1px solid var(--color-divider);
  padding-top: 24px;
  padding-bottom: 24px;
}

.article-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.article-card__title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--color-dark);
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.article-card:hover .article-card__title { color: var(--color-accent); }

.article-card__excerpt {
  font-size: var(--text-small);
  color: var(--color-grey);
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-dark);
  transition: gap var(--transition-fast);
}

.article-card:hover .article-card__read { gap: 10px; }

/* ── FAQ ACCORDION ───────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--color-divider); }

.faq-item { border-bottom: 1px solid var(--color-divider); }

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-primary);
  gap: 20px;
}

.faq-item__question {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.section--white .faq-item__question { color: var(--color-dark); }
.faq-item__trigger:hover .faq-item__question { color: var(--color-accent); }

.faq-item__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s ease;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-dark);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.faq-item__icon::before { width: 10px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 10px; }

.faq-item.active .faq-item__icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.faq-item.active .faq-item__icon::before,
.faq-item.active .faq-item__icon::after { background: var(--color-white); }
.faq-item.active .faq-item__icon::after { transform: rotate(90deg); opacity: 0; }

.faq-item__answer {
  display: none;
  padding-bottom: 24px;
  font-size: var(--text-body);
  color: var(--color-grey);
  line-height: 1.75;
  max-width: 680px;
}

/* ── FILTER TABS ─────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 40px;
}

.filter-tab {
  padding: 14px 22px;
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-grey);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-primary);
}

.filter-tab:hover { color: var(--color-dark); }

.filter-tab.active {
  color: var(--color-dark);
  border-bottom-color: var(--color-accent);
}

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--container-pad);
  padding-top: 140px;
  padding-bottom: 64px;
  background: var(--color-dark);
}

.page-hero__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-hero__tag {
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: block;
}

.page-hero__title {
  font-size: var(--text-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--color-white);
  max-width: 800px;
}

.page-hero__sub {
  margin-top: 24px;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--color-grey);
  max-width: 520px;
  line-height: 1.6;
}

/* ── FORM STYLES ─────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-grey);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-divider);
  font-family: var(--font-primary);
  font-size: var(--text-body);
  color: var(--color-dark);
  outline: none;
  transition: border-color var(--transition-fast);
  border-radius: 0;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: #ccc; }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom-color: var(--color-accent);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  cursor: pointer;
}

/* ── PLUS/CROSS DIVIDER SVG ──────────────────────────────── */
.plus-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.plus-divider--dark svg path { fill: rgba(255,255,255,0.12); }
.plus-divider--light svg path { fill: var(--color-divider); }
