/* ==========================================================================
   ARTIFEX FOOTER - STYLES
   Editorial 4-Column Layout with Subtle Vertical Dividers,
   Compact Vertical Spacing, and Oversized "Artifex." Wordmark
   ========================================================================== */

:root {
  --footer-bg: #06070a;
  --footer-card-bg: rgba(255, 255, 255, 0.02);
  --footer-cyan: #00d2ff;
  --footer-cyan-bright: #38e1ff;
  --footer-cyan-glow: rgba(0, 210, 255, 0.18);
  --footer-cyan-bg: rgba(0, 210, 255, 0.08);
  --footer-text-primary: #ffffff;
  --footer-text-secondary: #94a3b8;
  --footer-text-muted: #64748b;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-border-subtle: rgba(255, 255, 255, 0.05);
  --footer-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --footer-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   MAIN FOOTER CONTAINER & LAYOUT
   ========================================================================== */
.site-footer {
  width: 100%;
  background-color: var(--footer-bg);
  font-family: var(--footer-font-family);
  color: var(--footer-text-primary);
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
  padding-top: 60px;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

/* 4-Column Desktop Grid with Vertical Dividers */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.05fr 1fr 1.55fr;
  gap: 0;
  padding-bottom: 36px;
  align-items: start;
}

/* Column Base Styling with Subtle Vertical Dividers */
.footer-col {
  display: flex;
  flex-direction: column;
  padding: 0 34px;
  border-right: 1px solid var(--footer-border);
}

.footer-col:first-child {
  padding-left: 0;
}

.footer-col:last-child {
  border-right: none;
  padding-right: 0;
}

/* Column Titles with Accent Bullet */
.footer-col-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--footer-text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.title-bullet {
  color: var(--footer-cyan);
  font-size: 1.15rem;
  line-height: 1;
  text-shadow: 0 0 8px var(--footer-cyan-glow);
}

/* ==========================================================================
   COLUMN 1: LET'S CONNECT & SOCIAL
   ========================================================================== */
.footer-cta-heading {
  font-size: clamp(2.35rem, 3.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--footer-text-primary);
  margin: 0 0 16px 0;
}

.cta-dot {
  color: var(--footer-cyan);
  text-shadow: 0 0 18px var(--footer-cyan-glow);
}

.footer-brand-desc {
  color: var(--footer-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

/* Social Media Section in Column 1 */
.footer-social-wrap {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--footer-card-bg);
  border: 1px solid var(--footer-border);
  color: var(--footer-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--footer-transition);
}

.footer-social-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

.footer-social-btn:hover,
.footer-social-btn:focus-visible {
  background-color: var(--footer-cyan-bg);
  border-color: var(--footer-cyan);
  color: var(--footer-cyan-bright);
  transform: translateY(-3px);
  box-shadow: 0 4px 18px var(--footer-cyan-glow);
}

.footer-social-btn:hover svg {
  transform: scale(1.1);
}

.footer-social-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--footer-text-muted);
}

/* ==========================================================================
   COLUMNS 2 & 3: SERVICES & QUICK LINKS
   ========================================================================== */
.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-link-item {
  line-height: 1.3;
}

.footer-link {
  color: var(--footer-text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  transition: var(--footer-transition);
  position: relative;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--footer-cyan);
  transform: translateX(4px);
}

/* ==========================================================================
   COLUMN 4: OUR LOCATIONS (UAE & INDIA)
   ========================================================================== */
.footer-office-block {
  margin-bottom: 14px;
}

.footer-office-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--footer-cyan);
  margin-bottom: 3px;
}

.footer-office-entity {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--footer-text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--footer-cyan);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

.footer-contact-address {
  display: flex;
  flex-direction: column;
}

.footer-contact-text,
.footer-contact-link {
  color: var(--footer-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-decoration: none;
  transition: var(--footer-transition);
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: var(--footer-cyan);
}

.footer-service-tag {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--footer-cyan);
  font-weight: 500;
  margin-top: 2px;
}

.footer-office-divider {
  width: 100%;
  height: 1px;
  background: var(--footer-border);
  border: none;
  margin: 12px 0 14px 0;
}

.footer-market-note {
  font-size: 0.8125rem;
  color: var(--footer-text-secondary);
  padding: 7px 11px;
  background: rgba(0, 210, 255, 0.04);
  border-left: 2px solid var(--footer-cyan);
  border-radius: 0 6px 6px 0;
  margin-top: 12px;
  line-height: 1.4;
}

/* ==========================================================================
   DIVIDERS
   ========================================================================== */
.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.09) 20%,
    rgba(255, 255, 255, 0.09) 80%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: none;
  margin: 0;
}

/* ==========================================================================
   OVERSIZED WORDMARK: "Artifex."
   Cinematic Scroll-Triggered "Rise + Light Sweep" Animation
   ========================================================================== */
.footer-wordmark-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 0 18px 0;
  overflow: hidden;
  user-select: none;
}

.footer-wordmark {
  font-family: var(--footer-font-family);
  font-size: clamp(3.2rem, 13.6vw, 12rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  text-align: center;
  cursor: default;
  display: inline-block;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity, filter;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Initial state before entering viewport:
   translateY(70px), opacity: 0.15, filter: blur(5px) */
.footer-wordmark-wrap.js-reveal-ready:not(.is-revealed) .footer-wordmark {
  transform: translateY(70px);
  opacity: 0.15;
  filter: blur(5px);
}

/* Revealed state:
   translateY(0), opacity: 1, filter: blur(0) */
.footer-wordmark-wrap.is-revealed .footer-wordmark {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

/* Wordmark Colors (strictly preserved) */
.wordmark-white {
  color: var(--footer-text-primary);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.wordmark-cyan {
  color: var(--footer-cyan);
  text-shadow: 0 0 35px var(--footer-cyan-glow);
}

/* Individual letter element for scroll-up horizontal separation */
.wordmark-letter {
  display: inline-block;
  will-change: transform;
}

/* Soft Cyan Light Sweep moving Left -> Right across entire "Artifex." wordmark */
.footer-wordmark::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 0;
  width: 45%;
  height: 140%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(0, 210, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.25) 70%,
    transparent 100%
  );
  filter: blur(6px);
  transform: translateX(-180%) skewX(-22deg);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Light sweep runs ONCE while wordmark is rising, then stops permanently */
.footer-wordmark-wrap.is-revealed .footer-wordmark::after {
  animation: cinematicLightSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.08s 1 normal forwards;
}

@keyframes cinematicLightSweep {
  0% {
    transform: translateX(-180%) skewX(-22deg);
    opacity: 0;
  }
  20% {
    opacity: 0.85;
  }
  75% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(360%) skewX(-22deg);
    opacity: 0;
  }
}

/* Mobile translate distance tuning */
@media (max-width: 768px) {
  .footer-wordmark-wrap.js-reveal-ready:not(.is-revealed) .footer-wordmark {
    transform: translateY(45px);
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .footer-wordmark-wrap.js-reveal-ready:not(.is-revealed) .footer-wordmark,
  .footer-wordmark {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }

  .footer-wordmark::after {
    display: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   BOTTOM BAR: COPYRIGHT & ATTRIBUTION
   ========================================================================== */
.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 28px 0;
  font-size: 0.875rem;
  color: var(--footer-text-secondary);
  gap: 20px;
}

.footer-copyright {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.footer-credit {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
  flex-shrink: 0;
}

.footer-credit-brand {
  color: var(--footer-cyan);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   TABLET RESPONSIVE (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-container {
    padding: 0 32px;
  }

  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 0;
    padding-bottom: 32px;
  }

  .footer-col {
    padding: 0 28px;
  }

  .footer-col:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .footer-col:nth-child(2n+1) {
    padding-left: 0;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE (max-width: 768px)
   Stack vertically with clean dividers, zero horizontal scroll
   1. Let's Connect
   2. Services
   3. Quick Links
   4. Our Locations
   5. Large Artifex. Wordmark
   6. Copyright & Attribution
   ========================================================================== */
@media (max-width: 768px) {
  .site-footer {
    padding-top: 48px;
  }

  .footer-container {
    padding: 0 24px;
  }

  .footer-main-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 26px;
  }

  .footer-col {
    padding: 0 0 28px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .footer-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-cta-heading {
    font-size: 2.35rem;
    margin-bottom: 12px;
  }

  .footer-col-title {
    margin-bottom: 16px;
    font-size: 1.0625rem;
  }

  .footer-links-list {
    gap: 12px;
  }

  .footer-link,
  .footer-contact-text,
  .footer-contact-link,
  .footer-brand-desc {
    font-size: 0.9375rem;
  }

  .footer-wordmark-wrap {
    padding: 16px 0 14px 0;
  }

  .footer-wordmark {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
    letter-spacing: -0.035em;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0 26px 0;
  }

  .footer-credit {
    text-align: left;
  }
}

/* ==========================================================================
   COMPACT MOBILE FINE-TUNING (320px - 430px)
   ========================================================================== */
@media (max-width: 480px) {
  .footer-container {
    padding: 0 20px;
  }

  .footer-cta-heading {
    font-size: 2.05rem;
  }

  .footer-social-btn {
    width: 38px;
    height: 38px;
  }

  .footer-social-btn svg {
    width: 16px;
    height: 16px;
  }

  .footer-wordmark-wrap {
    padding: 14px 0 12px 0;
  }

  .footer-wordmark {
    font-size: clamp(2.35rem, 14vw, 3.8rem);
    letter-spacing: -0.03em;
  }

  .footer-bottom-bar {
    font-size: 0.8125rem;
  }
}

@media (max-width: 340px) {
  .footer-container {
    padding: 0 16px;
  }

  .footer-cta-heading {
    font-size: 1.85rem;
  }

  .footer-wordmark {
    font-size: 2.15rem;
  }
}
