/* ================================================================
   BLOOMSTARZ — Shared Styles
   Variables · Reset · Nav · Footer · Buttons · Utilities
   ================================================================ */

/* ── CSS Variables ── */
:root {
  --bs-dark:         #07001A;
  --bs-dark-2:       #110335;
  --bs-purple:       #6D28D9;
  --bs-purple-mid:   #7C3AED;
  --bs-purple-pale:  #EDE9FE;
  --bs-gold:         #F59E0B;
  --bs-gold-light:   #FDE68A;
  --bs-white:        #FFFFFF;
  --bs-bg:           #FAFAF9;
  --bs-surface:      #F5F3FF;
  --bs-text:         #1C1433;
  --bs-muted:        #6E6A80;
  --bs-border:       #E4E0F5;

  --font-head:  'Plus Jakarta Sans', sans-serif;
  --font-body:  'Inter', sans-serif;

  --section-py:    96px;
  --container:     1200px;

  --radius-s:  8px;
  --radius-m:  16px;
  --radius-l:  24px;
  --radius-xl: 40px;

  --shadow-s:      0 1px 4px rgba(0,0,0,0.06);
  --shadow-m:      0 4px 20px rgba(0,0,0,0.09);
  --shadow-l:      0 8px 40px rgba(0,0,0,0.13);
  --shadow-purple: 0 8px 32px rgba(54,238,224,0.22);

  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --trans: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--bs-text);
  background: var(--bs-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; border: none; outline: none; background: none; }

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

/* ── Buttons ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bs-gold);
  color: var(--bs-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-xl);
  transition: var(--trans);
  white-space: nowrap;
}
.btn-gold:hover {
  background: var(--bs-gold-light);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--bs-white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-xl);
  transition: var(--trans);
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07);
}

.btn-purple {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bs-purple);
  color: var(--bs-white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-xl);
  transition: var(--trans);
  white-space: nowrap;
}
.btn-purple:hover {
  background: var(--bs-purple-mid);
  transform: translateY(-2px);
}

/* ── Section Typography ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bs-purple-pale);
  color: var(--bs-purple);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  color: var(--bs-text);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.section-title--white { color: var(--bs-white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--bs-muted);
  max-width: 580px;
  margin-top: 14px;
  line-height: 1.75;
}
.section-desc--white { color: rgba(255,255,255,0.62); }

.section-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Fade-in Animation (JS-driven) ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background var(--trans), box-shadow var(--trans);
}
.nav-wrapper--scrolled {
  background: rgba(7, 0, 26, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--bs-purple);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--bs-white);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  padding: 8px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-s);
  transition: color var(--trans), background var(--trans);
}
.nav-link:hover,
.nav-link--active {
  color: var(--bs-white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  padding: 10px 22px;
  background: var(--bs-gold);
  color: var(--bs-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-xl);
  transition: var(--trans);
}
.nav-cta:hover {
  background: var(--bs-gold-light);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--bs-white);
  border-radius: 2px;
  transition: var(--trans);
  display: block;
}
.nav-hamburger--open .nav-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger--open .nav-hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger--open .nav-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(7, 0, 26, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 199;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile--open { display: flex; }
.nav-mobile-link {
  padding: 14px 16px;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-s);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--trans), background var(--trans);
}
.nav-mobile-link:last-of-type { border-bottom: none; }
.nav-mobile-link:hover { color: var(--bs-white); background: rgba(255,255,255,0.06); }
.nav-mobile-cta {
  margin-top: 12px;
  padding: 14px;
  background: var(--bs-gold);
  color: var(--bs-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-m);
  text-align: center;
  transition: var(--trans);
}
.nav-mobile-cta:hover { background: var(--bs-gold-light); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer-wrapper {
  background: var(--bs-dark);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 0;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--bs-purple);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-brand-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.footer-brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--bs-white);
}
.footer-brand-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 270px;
}
.footer-brand-contact {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-brand-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--bs-gold);
  transition: opacity var(--trans);
}
.footer-brand-email:hover { opacity: 0.75; }

.footer-col-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--bs-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--trans);
}
.footer-col-link:hover { color: var(--bs-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-legal-link {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--trans);
}
.footer-legal-link:hover { color: rgba(255,255,255,0.65); }

/* ── Icon System (Lucide) ── */
i[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
i[data-lucide] svg { display: block; }
.nav-logo-icon i[data-lucide] svg,
.footer-brand-icon i[data-lucide] svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; }
.footer-brand-email i[data-lucide] svg { width: 14px; height: 14px; stroke: currentColor; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal-links { gap: 16px; }
}
