/* ============================================================
   assets/css/components.css  —  Reusable UI Components
   Curve Matrix LLP
   ============================================================ */

/* ══ CUSTOM CURSOR ════════════════════════════════════════════ */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
#cursor-dot {
  width: 8px; height: 8px;
  background: var(--acid);
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--acid);
  background: transparent;
  transition: width var(--t-base), height var(--t-base), background var(--t-base);
}
body.cursor-hover #cursor-ring {
  width: 58px; height: 58px;
  background: var(--acid-dim);
}

/* ══ BUTTONS ══════════════════════════════════════════════════ */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--r);
  text-decoration: none;
  border: none;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base),
              background var(--t-base),
              color var(--t-base),
              border-color var(--t-base);
  position: relative;
  overflow: hidden;
  cursor: none;
  white-space: nowrap;
}

/* Shimmer layer */
.btn-primary::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-115%) skewX(-15deg);
  transition: transform 0.5s var(--ease-out);
}
.btn-primary:hover::before,
.btn-secondary:hover::before {
  transform: translateX(115%) skewX(-15deg);
}

.btn-primary {
  background: var(--acid);
  color: var(--black);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px var(--acid-glow);
  color: var(--black);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--grey-500);
}
.btn-secondary:hover {
  border-color: var(--acid);
  color: var(--acid);
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: var(--acid);
  border: 1.5px solid rgba(200, 255, 0, 0.3);
  font-size: 0.82rem;
  padding: 0.6rem 1.4rem;
}
.btn-ghost:hover {
  background: var(--acid-dim);
  border-color: var(--acid);
}

/* ══ NAV ══════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
#main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-inline: clamp(1.25rem, 5%, 5rem);
  border-bottom: 1px solid transparent;
  transition: background var(--t-slow),
              border-color var(--t-slow),
              backdrop-filter var(--t-slow);
}
#main-nav.scrolled {
  background: rgba(0, 0, 0, 0.88);
  border-color: rgba(200, 255, 0, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-nav);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  border: 2px solid var(--acid);
  border-radius: 50% 0 50% 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-logo-mark::before {
  content: '';
  width: 11px; height: 11px;
  background: var(--acid);
  border-radius: 50% 0 50% 0;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--white);
}
.logo-text em {
  font-style: normal;
  color: var(--acid);
}
.logo-text small {
  font-size: 0.72rem;
  color: var(--grey-200);
  font-weight: 400;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey-200);
  text-decoration: none;
  position: relative;
  transition: color var(--t-base);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--acid);
  transition: width var(--t-slow) var(--ease-out);
}
.nav-links a:hover          { color: var(--white); }
.nav-links a:hover::after   { width: 100%; }

.nav-cta { font-size: 0.78rem; padding: 0.55rem 1.3rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base), background var(--t-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  display: flex;
}
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.5rem;
  color: var(--grey-200);
  background: none;
  border: none;
  cursor: none;
  transition: color var(--t-fast);
}
.mobile-close:hover { color: var(--acid); }
.mobile-menu ul { list-style: none; text-align: center; }
.mob-link {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color var(--t-fast);
  display: block;
  padding: 0.4rem 0;
}
.mob-link:hover { color: var(--acid); }
.mob-cta        { color: var(--acid) !important; }
.mob-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--sp-6);
}
.mob-contact a {
  font-size: 0.9rem;
  color: var(--grey-200);
  transition: color var(--t-fast);
}
.mob-contact a:hover { color: var(--acid); }

/* ══ BADGE ════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 255, 0, 0.08);
  border: 1px solid rgba(200, 255, 0, 0.28);
  padding: 0.4rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acid);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--acid);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

/* ══ CARDS ════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: background var(--t-slow),
              border-color var(--t-slow),
              transform var(--t-base) var(--ease-out);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

/* ══ FOOTER ══════════════════════════════════════════════════ */
#site-footer {
  background: var(--grey-900);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5%, 5rem) clamp(2rem, 5vw, 3rem);
}
.footer-about {
  font-size: 0.88rem;
  color: var(--grey-200);
  line-height: 1.7;
  margin: var(--sp-5) 0 var(--sp-6);
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.social-btn {
  width: 38px; height: 38px;
  border: 1.5px solid var(--grey-500);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--grey-200);
  text-decoration: none;
  transition: border-color var(--t-base),
              color var(--t-base),
              background var(--t-base);
}
.social-btn:hover {
  border-color: var(--acid);
  color: var(--acid);
  background: var(--acid-dim);
}
.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a {
  font-size: 0.88rem;
  color: var(--grey-200);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-base), gap var(--t-base);
}
.footer-col a::before {
  content: '–';
  opacity: 0;
  font-size: 0.75rem;
  transition: opacity var(--t-base);
}
.footer-col a:hover        { color: var(--acid); gap: 10px; }
.footer-col a:hover::before{ opacity: 1; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--grey-200);
  line-height: 1.5;
}
.fc-icon {
  color: var(--acid);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-5);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25D366;
  padding: 0.55rem 1.2rem;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--t-base), border-color var(--t-base);
}
.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.2);
  color: #25D366;
}
.footer-bar {
  border-top: 1px solid var(--border);
  padding: var(--sp-5) clamp(1.25rem, 5%, 5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 0.78rem;
  color: var(--grey-200);
}
.footer-bar a { color: var(--grey-200); }
.footer-bar a:hover { color: var(--acid); }

/* ══ FLOATING WHATSAPP ════════════════════════════════════════ */
.float-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform var(--t-base) var(--ease-spring),
              box-shadow var(--t-base);
}
.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.7);
  color: #fff;
}
.float-wa svg { color: #fff; }
