/* ============================================================
   ELITE MARKETING — COMPONENTS CSS
   Navigation, Footer, and reusable UI components
   ============================================================ */

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--dur-slow) var(--ease-in-out),
              backdrop-filter var(--dur-slow) var(--ease-in-out),
              border-color var(--dur-slow) var(--ease-in-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(201, 168, 76, 0.08);
}

.nav__inner {
  width: 100%;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--grid-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  position: relative;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-white);
  line-height: 1;
}

.nav__logo-text span {
  color: var(--color-gold);
}

/* Nav Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-1);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color var(--dur-base) var(--ease-in-out);
  letter-spacing: 0.01em;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--dur-base) var(--ease-out-expo);
}

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

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

/* Nav CTA */
.nav__cta {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: var(--text-sm);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-white);
  transition: all var(--dur-base) var(--ease-out-expo);
  transform-origin: center;
}

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

/* Mobile overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-in-out);
}

.nav__overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav__overlay-link {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--dur-base) var(--ease-in-out);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo),
              color var(--dur-base) var(--ease-in-out);
}

.nav__overlay.open .nav__overlay-link {
  opacity: 1;
  transform: translateY(0);
}

.nav__overlay.open .nav__overlay-link:nth-child(1) { transition-delay: 50ms; }
.nav__overlay.open .nav__overlay-link:nth-child(2) { transition-delay: 100ms; }
.nav__overlay.open .nav__overlay-link:nth-child(3) { transition-delay: 150ms; }
.nav__overlay.open .nav__overlay-link:nth-child(4) { transition-delay: 200ms; }
.nav__overlay.open .nav__overlay-link:nth-child(5) { transition-delay: 250ms; }
.nav__overlay.open .nav__overlay-link:nth-child(6) { transition-delay: 300ms; }

.nav__overlay-link:hover {
  color: var(--color-gold);
}

.nav__overlay-cta {
  margin-top: var(--space-3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}

.nav__overlay.open .nav__overlay-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 350ms;
}

.nav__overlay-social {
  position: absolute;
  bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out-expo);
}

.nav__overlay.open .nav__overlay-social {
  opacity: 1;
  transition-delay: 400ms;
}

.nav__overlay-social a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-gray-2);
  transition: color var(--dur-base) var(--ease-in-out);
}

.nav__overlay-social a:hover {
  color: var(--color-gold);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--color-bg);
  border-top: var(--border-subtle);
  padding: var(--space-12) 0 var(--space-6);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: var(--border-subtle);
  margin-bottom: var(--space-6);
}

.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-3);
  text-decoration: none;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer__logo-text span {
  color: var(--color-gold);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-gray-2);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: var(--space-4);
}

.footer__social {
  display: flex;
  gap: var(--space-2);
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-2);
  transition: all var(--dur-base) var(--ease-out-expo);
}

.footer__social-link:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-glow);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-gray-2);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-in-out);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__link:hover {
  color: var(--color-gold);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-2);
  margin-bottom: var(--space-2);
  transition: color var(--dur-base) var(--ease-in-out);
}

.footer__contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-in-out);
}

.footer__contact-item:hover,
.footer__contact-item a:hover {
  color: var(--color-gold);
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 16px;
  margin-top: 2px;
  color: var(--color-gold-dim);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-gray-2);
}

.footer__legal {
  display: flex;
  gap: var(--space-4);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: var(--color-gray-2);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-in-out);
}

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

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-12);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center top,
    rgba(15, 32, 68, 0.5) 0%,
    transparent 70%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-3);
  max-width: 800px;
}

.page-hero__subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-gray-1);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── CTA STRIP ─── */
.cta-strip {
  background: var(--color-bg-2);
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
  padding: var(--space-12) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse,
    rgba(201, 168, 76, 0.06) 0%,
    transparent 70%);
  pointer-events: none;
}

.cta-strip__inner {
  position: relative;
  z-index: 1;
}

.cta-strip__title {
  font-size: var(--text-h2);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.cta-strip__subtitle {
  color: var(--color-gray-1);
  margin-bottom: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ─── STATS STRIP ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-default);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--color-bg-2);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-item__number .stat-suffix {
  color: var(--color-gold);
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--color-gray-2);
  letter-spacing: 0.02em;
}

/* ─── TESTIMONIAL CARD ─── */
.testimonial-card {
  background: var(--color-bg-2);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--dur-base) var(--ease-out-expo);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: var(--color-gold);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: var(--shadow-gold-hover);
  transform: translateY(-3px);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-3);
}

.testimonial-card__star {
  color: var(--color-gold);
  font-size: 0.875rem;
}

.testimonial-card__quote {
  font-size: var(--text-body-lg);
  color: var(--color-white);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  font-weight: 400;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
  border: 2px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-gold);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-gray-2);
  margin-top: 2px;
}

/* ─── PROJECT CARD ─── */
.project-card {
  background: var(--color-bg-2);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out-expo);
  position: relative;
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: var(--shadow-gold-hover);
  transform: translateY(-6px);
}

.project-card__image {
  aspect-ratio: 16 / 10;
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

.project-card__image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-card__image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--color-navy) 0%,
    var(--color-bg-2) 100%);
}

.project-card__image-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(201,168,76,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  transition: opacity var(--dur-slow) var(--ease-out-expo);
}

.project-card:hover .project-card__image-pattern {
  opacity: 0.3;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-expo);
}

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

.project-card__overlay-text {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.project-card__label {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: rgba(8, 12, 20, 0.8);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: var(--text-xs);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.project-card__body {
  padding: var(--space-4);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

.project-card__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-2);
  line-height: 1.6;
}

/* ─── ICON FEATURE ─── */
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-gold-glow);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
  flex-shrink: 0;
  transition: all var(--dur-base) var(--ease-out-expo);
}

.card:hover .feature-icon {
  background: rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.4);
}

/* ─── BADGE / TAG ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.badge--gold {
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--color-gold);
}

.badge--navy {
  background: rgba(15, 32, 68, 0.6);
  border: 1px solid rgba(26, 58, 107, 0.5);
  color: var(--color-gray-1);
}

/* ─── FAQ ACCORDION ─── */
.faq-item {
  border-bottom: var(--border-subtle);
}

.faq-item:first-child {
  border-top: var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  transition: color var(--dur-base) var(--ease-in-out);
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--color-gold);
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out-expo);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding-bottom: var(--space-4);
  color: var(--color-gray-1);
  line-height: 1.75;
}

/* ─── FORM ─── */
.form-group {
  margin-bottom: var(--space-3);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-1);
  margin-bottom: var(--space-1);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--color-bg-2);
  border: var(--border-default);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-body);
  transition: border-color var(--dur-base) var(--ease-in-out),
              box-shadow var(--dur-base) var(--ease-in-out);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-2);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
  outline: none;
}

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

.form-select {
  background-image: 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 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-select option {
  background: var(--color-bg-2);
  color: var(--color-white);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="150"] { transition-delay: 150ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="250"] { transition-delay: 250ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
