/* ============================================================
   Innovea Mark — components.css
   Loader, Nav, Footer, and shared components
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   PAGE LOADER
══════════════════════════════════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: loaderPulse 1.8s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.loader-brand {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.loader-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.loader-bar-wrap {
  width: 200px;
  height: 1px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: var(--grad-gold);
  border-radius: 1px;
  width: 0%;
  animation: loaderFill 1.8s var(--ease) forwards;
}

@keyframes loaderFill {
  0%   { width: 0%; }
  60%  { width: 80%; }
  100% { width: 100%; }
}

.loader-dots {
  display: flex;
  gap: 0.5rem;
}

.loader-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.3;
  animation: loaderDot 1.2s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderDot {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.4); }
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease),
              box-shadow 0.4s var(--ease),
              padding 0.3s var(--ease);
}

#nav.scrolled {
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: padding-block 0.3s var(--ease);
}

#nav.scrolled .nav-inner {
  padding-block: 0.875rem;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.01em;
}

.nav-logo-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: var(--gold-dim);
}

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.nav-hamburger:hover { border-color: var(--gold); }

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s, background 0.2s;
}

.nav-hamburger:hover span { background: var(--gold); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(8, 11, 18, 0.98);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--gutter);
  gap: 0.25rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-mobile a:last-of-type { border-bottom: none; }

.nav-mobile a:hover,
.nav-mobile a.active { color: var(--gold); }

.nav-mobile .btn { margin-top: 1rem; }

/* ── Nav responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links a { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-right .btn:not(.nav-hamburger) { display: none; }
  .nav-hamburger { display: flex; }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-block: clamp(3.5rem, 6vw, 5rem);
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.375rem;
}

.footer-brand-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.625rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--text-primary);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom a {
  color: var(--gold);
  transition: opacity 0.2s;
}

.footer-bottom a:hover { opacity: 0.8; }

/* ── Footer responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   SERVICE ICON BOX
══════════════════════════════════════════════════════════════ */
.svc-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}

.card:hover .svc-icon-box {
  background: rgba(212,175,55,0.2);
  box-shadow: 0 0 20px rgba(212,175,55,0.2);
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIAL CARD
══════════════════════════════════════════════════════════════ */
.testi-card { padding: clamp(1.5rem, 3vw, 2rem); }

.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.testi-stars span {
  color: var(--gold);
  font-size: 0.875rem;
}

.testi-quote {
  font-size: clamp(0.875rem, 1.8vw, 0.9375rem);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0D0A00;
  flex-shrink: 0;
}

.testi-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.testi-role { font-size: 0.75rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   PROCESS STEP
══════════════════════════════════════════════════════════════ */
.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur), box-shadow var(--dur);
}

.process-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 32px rgba(212,175,55,0.08);
}

.process-num {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.process-card h4 { color: var(--text-primary); margin-bottom: 0.6rem; }
.process-card p  { font-size: 0.875rem; }

/* ══════════════════════════════════════════════════════════════
   RESULT / METRIC CARD
══════════════════════════════════════════════════════════════ */
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.metric-card .metric-val {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
}

.metric-card .metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════
   GOLD SEPARATOR
══════════════════════════════════════════════════════════════ */
.gold-sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  border: none;
  margin-block: 0;
}
