/* =========================================================
   SCIRIDGE TECHNOLOGIES
   PREMIUM MASTER FOOTER
   FINAL EDITORIAL VERSION
   ---------------------------------------------------------
   Structure:
   01. Footer Base
   02. Premium CTA Statement
   03. White Four-Column Main Footer
   04. Social Media
   05. Brand Signature Watermark
   06. Compact Legal Bar
   07. WhatsApp Float
   08. Back To Top
   09. Responsive Breakpoints
   10. Reduced Motion
========================================================= */

/* =========================================================
   01. FOOTER BASE
========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  background: var(--color-primary, #0b0f19);
  color: var(--color-white, #ffffff);
  border-top: 1px solid rgba(220, 38, 38, 0.25);
}

/* Premium transition overlay */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: -6;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035),
    transparent
  );
  pointer-events: none;
}

/* Ambient technical grid */
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.75;
  pointer-events: none;
}

/* =========================================================
   02. PREMIUM FOOTER CLOSING STATEMENT
========================================================= */

.footer-statement {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 6vw, 84px) 0;
  background: linear-gradient(
    115deg,
    var(--color-primary-light, #161e2e) 0%,
    var(--color-primary, #0b0f19) 58%,
    var(--color-bg-darker, #030712) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Soft atmospheric radial glow */
.footer-statement::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -300px;
  top: -330px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(220, 38, 38, 0.14) 0%,
    rgba(220, 38, 38, 0.04) 35%,
    transparent 70%
  );
  pointer-events: none;
}

/* Fine architectural highlight line */
.footer-statement::after {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(220, 38, 38, 0.55),
    transparent
  );
  opacity: 0.85;
  pointer-events: none;
}

.footer-statement-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 48px);
}

.footer-statement-content {
  position: relative;
  max-width: 880px;
}

.footer-statement-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-4, 16px);
  color: var(--color-accent, #dc2626);
  font-size: 0.75rem;
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-label-dot {
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--color-accent, #dc2626);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.16);
}

.footer-statement h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display, var(--font-primary, inherit));
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: var(--weight-bold, 700);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.footer-statement h2 span {
  display: inline;
  color: var(--color-accent, #dc2626);
  font-weight: var(--weight-bold, 700);
}

/* CTA Pill Button */
.footer-statement-action {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
}

.footer-action-text {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold, 600);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer-action-circle {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.3s ease;
}

.footer-action-circle > span {
  font-size: 1.125rem;
  font-weight: var(--weight-bold, 700);
  line-height: 1;
  transition: transform 0.3s ease;
}

.footer-statement-action:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11, 15, 25, 0.35);
}

.footer-statement-action:hover .footer-action-circle {
  background: var(--color-accent, #dc2626);
  border-color: var(--color-accent, #dc2626);
  transform: scale(1.06);
}

.footer-statement-action:hover .footer-action-circle > span {
  transform: translate(2px, -2px);
}

/* =========================================================
   03. WHITE MAIN FOOTER
========================================================= */

.footer-main {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(64px, 6vw, 92px) 0 clamp(44px, 4.5vw, 60px);
  background: var(--color-white, #ffffff);
  color: var(--color-text, #1e293b);
}

.footer-main-container {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr 1.2fr;
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}

/* Brand Column */
.footer-company {
  max-width: 410px;
}

.footer-logo {
  display: inline-flex;
  text-decoration: none;
}

.footer-logo-image {
  display: block;
  width: 175px;
  height: auto;
  max-height: 55px;
  object-fit: contain;
}

.footer-description {
  max-width: 380px;
  margin: 20px 0;
  color: #334155;
  font-size: 0.95rem;
  font-weight: var(--weight-medium, 500);
  line-height: 1.7;
}

.footer-company-meta {
  display: flex;
  align-items: center;
  color: #475569;
  font-size: 0.75rem;
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-company-meta::before {
  content: "";
  width: 28px;
  height: 2px;
  margin-right: 12px;
  background: var(--color-accent, #dc2626);
}

/* Column Headings */
.footer-column h3,
.footer-contact h3 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 12px;
  color: var(--color-text-dark, #0f172a);
  font-size: 0.8125rem;
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--color-accent, #dc2626);
}

/* Navigation Lists */
.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li {
  margin: 0 0 12px;
}

.footer-column a {
  display: inline-flex;
  align-items: center;
  color: #334155;
  font-size: 0.875rem;
  font-weight: var(--weight-semibold, 600);
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a::before {
  content: "";
  width: 0;
  height: 2px;
  margin-right: 0;
  background: var(--color-accent, #dc2626);
  transition: width 0.2s ease, margin-right 0.2s ease;
}

.footer-column a:hover {
  color: var(--color-accent, #dc2626);
  transform: translateX(3px);
}

.footer-column a:hover::before {
  width: 12px;
  margin-right: 8px;
}

/* Contact Details */
.footer-contact {
  position: relative;
  max-width: 320px;
}

.footer-contact::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0;
  width: 2px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    var(--color-accent, #dc2626),
    transparent
  );
}

.footer-contact p {
  margin: 0 0 16px;
}

.footer-contact strong {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-contact a,
.footer-contact p > span {
  color: var(--color-text-dark, #0f172a);
  font-size: 0.9rem;
  font-weight: var(--weight-semibold, 600);
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--color-accent, #dc2626);
}

/* =========================================================
   04. SOCIAL MEDIA
========================================================= */

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--color-border, #cbd5e1);
  color: #334155;
  border-radius: 50%;
  text-decoration: none;
  transition: color 0.2s ease,
              background 0.2s ease,
              border-color 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}

.footer-social svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.footer-social .social-instagram svg rect,
.footer-social .social-instagram svg circle {
  fill: none;
}

.footer-social .social-linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(10, 102, 194, 0.25);
}

.footer-social .social-instagram:hover {
  background: linear-gradient(135deg, #833AB4, #E1306C, #FCAF45);
  border-color: #E1306C;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(225, 48, 108, 0.25);
}

.footer-social .social-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.25);
}

.footer-social .social-x:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   05. BRAND SIGNATURE WATERMARK
========================================================= */

.footer-watermark {
  position: relative;
  width: 100%;
  margin-top: clamp(40px, 4.5vw, 68px);
  overflow: hidden;
  text-align: center;
  pointer-events: none;
  user-select: none;
  line-height: 0;
}

.footer-watermark span {
  display: block;
  color: var(--color-primary, #0f172a);
  font-family: var(--font-display, var(--font-primary, inherit));
  font-size: clamp(85px, 17vw, 245px);
  font-weight: var(--weight-bold, 800);
  line-height: 0.7;
  letter-spacing: -0.075em;
  white-space: nowrap;
  opacity: 0.04;
}

/* =========================================================
   06. DIVIDER
========================================================= */

.footer-divider {
  position: relative;
  height: 1px;
  background: var(--color-border, #e2e8f0);
}

/* =========================================================
   07. COMPACT LEGAL BAR
========================================================= */

.footer-bottom {
  position: relative;
  z-index: 3;
  background: var(--color-bg-darker, #030712);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-container {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.footer-bottom p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: var(--weight-medium, 500);
  line-height: 1.5;
}

.footer-bottom p span {
  color: #cbd5e1;
  font-weight: var(--weight-semibold, 600);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-legal a {
  position: relative;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold, 600);
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--color-accent, #dc2626);
  transition: width 0.2s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

.footer-legal a:hover::after {
  width: 100%;
}

/* =========================================================
   08. WHATSAPP FLOAT
========================================================= */

.whatsapp-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  z-index: var(--z-modal, 999);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-button::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid rgba(37, 211, 102, 0.4);
  border-radius: inherit;
  animation: whatsappPulse 2.4s ease-out infinite;
}

.whatsapp-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.45);
}

.whatsapp-button svg {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

@keyframes whatsappPulse {
  0% { opacity: 0.8; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.25); }
}

/* =========================================================
   09. BACK TO TOP
========================================================= */

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 92px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--color-primary, #0f172a);
  border: 1.5px solid var(--color-border, #cbd5e1);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  z-index: var(--z-modal, 999);
  transition: opacity 0.3s ease,
              visibility 0.3s ease,
              transform 0.3s ease,
              background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent, #dc2626);
  border-color: var(--color-accent, #dc2626);
  color: #ffffff;
  transform: translateY(-3px);
}

.back-to-top span {
  font-size: 1.125rem;
  font-weight: var(--weight-bold, 700);
  line-height: 1;
  transition: transform 0.2s ease;
}

.back-to-top:hover span {
  transform: translateY(-2px);
}

/* =========================================================
   10. RESPONSIVE BREAKPOINTS
========================================================= */

@media (max-width: 1100px) {
  .footer-main-container {
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 32px;
  }

  .footer-contact::before {
    left: -16px;
  }
}

@media (max-width: 900px) {
  .footer-statement-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .footer-main-container {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
    max-width: 500px;
    padding-top: 16px;
  }

  .footer-contact::before {
    left: 0;
    top: 0;
    width: 36px;
    height: 2px;
    background: linear-gradient(
      to right,
      var(--color-accent, #dc2626),
      transparent
    );
  }
}

@media (max-width: 768px) {
  .footer-statement {
    padding: 48px 0;
  }

  .footer-statement h2 {
    font-size: clamp(30px, 7.5vw, 42px);
  }

  .footer-statement-action {
    width: fit-content;
  }

  .footer-main {
    padding: 56px 0 44px;
  }

  .footer-main-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .footer-company,
  .footer-contact {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-bottom-container {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .whatsapp-button {
    right: 18px;
    bottom: 18px;
    width: 50px;
    height: 50px;
  }

  .back-to-top {
    right: 20px;
    bottom: 80px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 520px) {
  .footer-main-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-company,
  .footer-column,
  .footer-contact {
    grid-column: auto;
  }

  .footer-statement-action {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================================
   11. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .whatsapp-button::before {
    animation: none;
  }

  .footer-statement-action,
  .footer-action-circle,
  .footer-action-circle > span,
  .footer-column a,
  .footer-social a,
  .back-to-top {
    transition: none !important;
  }

  .footer-statement-action:hover,
  .back-to-top:hover {
    transform: none !important;
  }
}