/* ======================================================
   PREMIUM FOOTER - PRODUCTION READY
   UI/UX DESIGNED, CREATIVE ORGANIC, CLIENT IMPRESSIVE
   ====================================================== */

:root {
  --footer-gradient-start: var(--color-dark);
  --footer-gradient-end: #0a1f14;
  --footer-accent: var(--color-bamboo);
  --footer-text-primary: rgba(255, 255, 255, 0.95);
  --footer-text-secondary: rgba(255, 255, 255, 0.75);
  --footer-text-muted: rgba(255, 255, 255, 0.6);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ======================================================
   BASE FOOTER STRUCTURE
   ====================================================== */

.premium-footer {
  background: linear-gradient(135deg, var(--footer-gradient-start) 0%, var(--footer-gradient-end) 100%);
  color: var(--footer-text-primary);
  position: relative;
  overflow: hidden;
}

/* Organic Wave Top */
.footer-top-wave {
  display: none;
}

/* Organic Wave Bottom */
.footer-bottom-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 30"><path d="M0,15 Q300,5 600,15 T1200,15 L1200,30 L0,30 Z" fill="%23CFAF6B" opacity="0.08"/></svg>') repeat-x;
  background-size: 600px 30px;
  animation: waveFloat 20s linear infinite reverse;
}

@keyframes waveFloat {
  0% { background-position: 0 0; }
  100% { background-position: 600px 0; }
}

/* Premium Gradient Overlay - Organic Depth */
.premium-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 40%, rgba(207, 175, 107, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(44, 110, 73, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* ======================================================
   FOOTER CONTAINER & CONTENT
   ====================================================== */

.footer-container {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1.1fr 1.2fr;
  gap: 40px;
  padding: 40px 60px 12px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ======================================================
   FOOTER SECTIONS - GENERAL STYLES
   ====================================================== */

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-section-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--footer-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  transition: var(--transition-smooth);
}

.title-icon {
  font-size: 18px;
}

/* ======================================================
   BRAND SECTION - HERO OF FOOTER
   ====================================================== */

.footer-brand {
  gap: 18px;
  position: relative;
}

.footer-brand-logo-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: rgba(207, 175, 107, 0.05);
  border-radius: 12px;
  border-left: 3px solid var(--footer-accent);
  transition: var(--transition-smooth);
}

.footer-brand-logo-wrapper:hover {
  background: rgba(207, 175, 107, 0.1);
  border-left-color: white;
  transform: translateX(6px);
}

.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: inline-block;
}

.footer-icon {
  display: none;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.brand-text-group {
  flex: 1;
}

.footer-brand-name {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-brand-tagline {
  font-size: 11px;
  color: var(--footer-accent);
  margin: 2px 0 0 0;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-sline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 6px 0 0 0;
  font-style: italic;
  font-weight: 500;
}

.footer-brand-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--footer-text-secondary);
  margin: 0;
}

/* Company Features - Premium Vertical Stack */
.company-features {
  display: flex;
  flex-direction: row;
  gap: 4px;
  margin-top: 4px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  padding-right: 10px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(207, 175, 107, 0.3);
  border-radius: 0;
  transition: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.feature-item:last-child {
  border-right: none;
}

.feature-item::before {
  display: none;
}

.feature-item:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.feature-item:hover::before {
  display: none;
}

.feature-icon-img {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.2);
  transition: none;
}

.feature-item:hover .feature-icon-img {
  transform: none;
  filter: brightness(1.2);
}

.feature-icon {
  font-size: 16px;
  min-width: 20px;
  color: var(--footer-accent);
  font-weight: bold;
}

.feature-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0px;
  line-height: 1.2;
}

/* Certification Badge */
.certification-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(207, 175, 107, 0.2) 0%, rgba(44, 110, 73, 0.1) 100%);
  border: 1px solid var(--footer-accent);
  border-radius: 8px;
  transition: var(--transition-smooth);
  align-self: fit-content;
}

.certification-badge:hover {
  box-shadow: 0 8px 24px rgba(207, 175, 107, 0.2);
  border-color: white;
}

.badge-icon {
  font-size: 20px;
}

.badge-text {
  font-size: 12px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}

/* ======================================================
   NAVIGATION LINKS - STYLED
   ====================================================== */

.footer-links-group {
  position: relative;
}

.footer-links-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--footer-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
  padding: 8px 0;
  position: relative;
  padding-left: 12px;
}

.link-bullet {
  color: var(--footer-accent);
  font-weight: bold;
  font-size: 16px;
  transition: var(--transition-smooth);
  display: inline-block;
  margin-left: -12px;
}

.footer-link:hover {
  color: white;
  padding-left: 16px;
}

.footer-link:hover .link-bullet {
  transform: translateX(4px);
  color: white;
}

/* ======================================================
   SUPPORT & CONTACT SECTION
   ====================================================== */

.footer-support {
  position: relative;
}

.contact-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
  padding-left: 12px;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--footer-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
  padding: 5px;
  background: rgba(207, 175, 107, 0.6);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-link {
  font-size: 14px;
  color: white;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.contact-link:hover {
  color: var(--footer-accent);
  text-decoration: underline;
}

/* Social Connection */
.social-connection {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(207, 175, 107, 0.3);
}

.social-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--footer-text-secondary);
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.social-links-premium {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link-premium {
  width: 40px;
  height: 40px;
  border: 2px solid var(--footer-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-accent);
  text-decoration: none;
  transition: var(--transition-bounce);
  font-size: 16px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.social-link-premium::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--footer-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: -1;
}

.social-link-premium:hover::before {
  width: 100%;
  height: 100%;
}

.social-icon {
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

.social-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

.social-link-premium:hover {
  color: var(--color-dark);
  border-color: white;
  transform: translateY(-4px);
}

/* ======================================================
   CTA & NEWSLETTER SECTION - ENGAGEMENT
   ====================================================== */

.footer-cta-section {
  background: linear-gradient(90deg, 
    rgba(207, 175, 107, 0.15) 0%, 
    rgba(44, 110, 73, 0.08) 50%, 
    rgba(207, 175, 107, 0.08) 100%);
  border-top: 1px solid rgba(207, 175, 107, 0.25);
  border-bottom: 1px solid rgba(207, 175, 107, 0.25);
  padding: 30px 60px;
  margin: 20px 0 0 0;
  position: relative;
  z-index: 2;
}

.cta-content-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: center;
}

.cta-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-title {
  font-size: 26px;
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.cta-description {
  font-size: 14px;
  color: var(--footer-text-secondary);
  margin: 0;
  line-height: 1.6;
  max-width: 400px;
}

/* Premium Newsletter Form */
.newsletter-form-premium {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input-wrapper {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--footer-accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition-smooth);
}

.newsletter-input::placeholder {
  color: #999;
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(207, 175, 107, 0.2);
  border-color: white;
}

.newsletter-button {
  padding: 14px 32px;
  background: var(--footer-accent);
  color: var(--color-dark);
  border: 2px solid var(--footer-accent);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 14px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  position: relative;
  overflow: hidden;
}

.newsletter-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--footer-accent);
  transition: all 0.4s ease;
  z-index: -1;
}

.newsletter-button:hover::before {
  left: 0;
}

.newsletter-button:hover {
  transform: translateX(2px);
  color: white;
}

.button-arrow {
  transition: var(--transition-smooth);
}

.newsletter-button:hover .button-arrow {
  transform: translateX(3px);
}

.form-helper-text {
  font-size: 11px;
  color: var(--footer-text-muted);
  margin: 0;
  letter-spacing: 0.3px;
}

/* ======================================================
   FOOTER BOTTOM - LEGAL & COPYRIGHT
   ====================================================== */

.footer-bottom-section {
  padding: 20px 60px;
  position: relative;
  z-index: 2;
}

.footer-bottom-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right */
  align-items: center;
}

.footer-legal-nav {
  justify-self: start;
}
.legal-link {
  font-size: 12px;
  color: var(--footer-text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  padding: 4px 10px;
}

.legal-link:hover {
  color: var(--footer-accent);
}

.divider {
  color: var(--footer-text-muted);
  margin: 0 4px;
}

.copyright-group {
  justify-self: center;
  text-align: center;
}

.copyright-text {
  font-size: 12px;
  color: var(--footer-text-muted);
  margin: 0;
}

.made-with {
  font-size: 12px;
  color: var(--footer-text-secondary);
  margin: 0;
  font-weight: 500;
}

.heart-icon {
  display: inline-block;
  animation: heartbeat 1.8s ease-in-out infinite;
}

.footer-dev {
  justify-self: end;
  font-size: 12px;
  color: var(--footer-text-secondary);
  }

.dev-name{
  color: var(--footer-text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.dev-name::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--footer-accent);
  transition: 0.3s;
}

.dev-name:hover::after{
  width: 100%;
}

@keyframes heartbeat {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* ======================================================
   RESPONSIVE DESIGN - TABLET
   ====================================================== */

@media (max-width: 1024px) {
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 40px 20px;
  }

  .company-features {
    grid-template-columns: 1fr;
  }

  .cta-content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-wrapper {
    flex-direction: column;
    text-align: center;
  }

.copyright-group {
  width: 100%; /* ensures full row */
  text-align: center;
  align-items: center;
}

  .footer-legal-nav {
    justify-content: center;
  }
}

/* ======================================================
   RESPONSIVE DESIGN - MOBILE
   ====================================================== */

@media (max-width: 768px) {
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px 15px;
  }

  .footer-cta-section {
    padding: 40px 20px;
  }

  .cta-content-wrapper {
    gap: 20px;
  }

  .cta-title {
    font-size: 20px;
  }

  .form-input-wrapper {
    flex-direction: column;
  }

  .newsletter-button {
    min-width: 100%;
  }

  .footer-bottom-section {
    padding: 20px;
  }

  .footer-bottom-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand-logo-wrapper {
    flex-direction: row;
  }

  .footer-brand-name {
    font-size: 24px;
  }

  .social-links-premium {
    justify-content: center;
  }

  .footer-legal-nav {
    justify-content: center;
    gap: 8px;
  }
}

/* ======================================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ====================================================== */

@media (max-width: 480px) {
  
  .footer-icon {
    font-size: 32px;
  }

  .footer-brand-name {
    font-size: 20px;
  }

  .footer-section-title {
    font-size: 13px;
  }

  .footer-link {
    font-size: 13px;
  }

  .cta-title {
    font-size: 18px;
  }

  .cta-description {
    font-size: 13px;
  }

  .newsletter-input {
    font-size: 13px;
    padding: 12px 14px;
  }

  .newsletter-button {
    font-size: 13px;
    padding: 12px 20px;
  }

  .company-features {
    gap: 8px;
  }

  .feature-item {
    padding: 8px 10px;
    font-size: 11px;
  }

}