/* ===== FOOTER STYLES - REDESIGNED ===== */

/* CSS Variables */
:root {
  --primary-red: #ff0040;
  --dark-red: #cc0033;
  --light-red: #ff3366;
  --electric-red: #ff0066;
  --dark-bg: #0a0a0a;
  --darker-bg: #000000;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --white: #ffffff;
  --text-light: #ffffff;
  --text-light-hover: #f8f9fa;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 70px 0 0;
  border-top: 3px solid var(--primary-red);
  margin-top: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2.5fr 3fr 2fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Company Section */
.footer-company {
  display: flex;
  flex-direction: column;
}

.company-header {
  margin-bottom: 25px;
}

.company-name {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 8px 0;
  transition: color 0.3s ease;
}

.company-name:hover {
  color: var(--light-red);
}

.company-tagline {
  font-size: 15px;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin: 0;
}

.company-description {
  margin-bottom: 25px;
}

.company-description p {
  font-size: 16px;
  line-height: 1.7;
  color: #b0b0b0;
  margin: 0;
}

.company-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-badge {
  background: rgba(255, 0, 64, 0.1);
  border: 1px solid rgba(255, 0, 64, 0.3);
  color: var(--primary-red);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cert-badge:hover {
  background: rgba(255, 0, 64, 0.2);
  border-color: var(--primary-red);
}

/* Navigation Section */
.footer-navigation {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.nav-section h4 {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.nav-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-section h4:hover::after {
  width: 50px;
}

.nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-section li {
  margin-bottom: 12px;
}

.nav-section a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
  line-height: 1.4;
  display: block;
  padding: 4px 0;
  position: relative;
}

.nav-section a:hover {
  color: #ffffff;
}

/* Arrow indicator - positioned absolutely to avoid layout shift */
.nav-section a::before {
  content: '→';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 14px;
  color: var(--primary-red);
  width: 16px;
  text-align: center;
}

.nav-section a:hover::before {
  opacity: 1;
  left: -25px;
}

/* Contact Section */
.footer-contact h4 {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.footer-contact h4:hover::after {
  width: 50px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-group h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.contact-label {
  font-size: 13px;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 15px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.4;
  display: block;
  padding: 4px 0;
  position: relative;
}

.contact-value:hover {
  color: var(--primary-red);
}

/* Arrow indicator for contact values */
.contact-value::before {
  content: '→';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 14px;
  color: var(--primary-red);
  width: 16px;
  text-align: center;
}

.contact-value:hover::before {
  opacity: 1;
  left: -25px;
}

/* Footer Bottom */
.footer-bottom {
  padding: 25px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright p {
  font-size: 14px;
  color: #888888;
  margin: 0;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.legal-links a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  padding: 4px 0;
  position: relative;
}

.legal-links a:hover {
  color: #ffffff;
}

/* Arrow indicator for legal links */
.legal-links a::before {
  content: '→';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 12px;
  color: var(--primary-red);
  width: 12px;
  text-align: center;
}

.legal-links a:hover::before {
  opacity: 1;
  left: -18px;
}

.separator {
  color: #666666;
  font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .footer {
    padding: 80px 0 0;
  }
  
  .footer-main {
    grid-template-columns: 2.8fr 3.2fr 2fr;
    gap: 60px;
    padding-bottom: 60px;
  }
  
  .footer-navigation {
    gap: 35px;
  }
  
  .company-name {
    font-size: 34px;
  }
  
  .company-description p {
    font-size: 17px;
  }
  
  .nav-section h4,
  .footer-contact h4 {
    font-size: 18px;
  }
  
  .nav-section a,
  .contact-value {
    font-size: 16px;
  }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
  .footer-main {
    grid-template-columns: 2.5fr 3fr 2fr;
    gap: 50px;
  }
  
  .footer-navigation {
    gap: 30px;
  }
}

/* Laptop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .footer {
    padding: 60px 0 0;
  }
  
  .footer-main {
    grid-template-columns: 1fr 2fr;
    gap: 45px;
    padding-bottom: 45px;
  }
  
  .footer-navigation {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .footer-contact {
    grid-column: 1 / -1;
    margin-top: 35px;
  }
  
  .company-name {
    font-size: 28px;
  }
  
  .nav-section h4,
  .footer-contact h4 {
    font-size: 16px;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .footer {
    padding: 50px 0 0;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
    padding-bottom: 40px;
  }
  
  .footer-navigation {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .footer-contact {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .company-name {
    font-size: 26px;
  }
  
  .company-description p {
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .company-certifications {
    justify-content: center;
  }
  
  .contact-details {
    gap: 20px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
  }
  
  /* Hide arrows on tablet and mobile */
  .nav-section a::before,
  .contact-value::before,
  .legal-links a::before {
    display: none;
  }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .footer {
    padding: 40px 0 0;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding-bottom: 35px;
  }
  
  .footer-navigation {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer-contact {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .company-header {
    margin-bottom: 20px;
  }
  
  .company-name {
    font-size: 24px;
  }
  
  .company-tagline {
    font-size: 14px;
  }
  
  .company-description {
    margin-bottom: 20px;
  }
  
  .company-description p {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .company-certifications {
    justify-content: center;
    gap: 8px;
  }
  
  .cert-badge {
    font-size: 10px;
    padding: 5px 10px;
  }
  
  .nav-section h4,
  .footer-contact h4 {
    font-size: 15px;
    margin-bottom: 15px;
  }
  
  .nav-section li {
    margin-bottom: 10px;
  }
  
  .nav-section a {
    font-size: 14px;
  }
  
  .contact-group h5 {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .contact-item {
    margin-bottom: 10px;
  }
  
  .contact-label {
    font-size: 12px;
  }
  
  .contact-value {
    font-size: 14px;
  }
  
  .footer-bottom {
    padding: 20px 0;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .copyright p {
    font-size: 13px;
  }
  
  .legal-links {
    justify-content: center;
    gap: 12px;
  }
  
  .legal-links a {
    font-size: 13px;
  }
  
  .separator {
    font-size: 13px;
  }
}

/* Mobile Small (320px - 575px) */
@media (max-width: 575px) {
  .footer {
    padding: 30px 0 0;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
    padding-bottom: 30px;
  }
  
  .footer-navigation {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .footer-contact {
    margin: 0 auto;
  }
  
  .company-header {
    margin-bottom: 18px;
  }
  
  .company-name {
    font-size: 22px;
    letter-spacing: 1.5px;
  }
  
  .company-tagline {
    font-size: 13px;
  }
  
  .company-description {
    margin-bottom: 18px;
  }
  
  .company-description p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .company-certifications {
    justify-content: center;
    gap: 6px;
  }
  
  .cert-badge {
    font-size: 9px;
    padding: 4px 8px;
  }
  
  .nav-section h4,
  .footer-contact h4 {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 6px;
  }
  
  .nav-section h4::after,
  .footer-contact h4::after {
    width: 25px;
    height: 1.5px;
  }
  
  .nav-section li {
    margin-bottom: 8px;
  }
  
  .nav-section a {
    font-size: 13px;
  }
  
  .contact-details {
    gap: 18px;
  }
  
  .contact-group h5 {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .contact-item {
    margin-bottom: 8px;
  }
  
  .contact-label {
    font-size: 11px;
  }
  
  .contact-value {
    font-size: 13px;
  }
  
  .footer-bottom {
    padding: 18px 0;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .copyright p {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .legal-links {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .legal-links a {
    font-size: 12px;
  }
  
  .separator {
    font-size: 12px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .nav-section a,
  .contact-value,
  .legal-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 0;
  }
  
  .cert-badge {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-section li,
  .contact-item {
    min-height: 44px;
  }
  
  /* Hide arrows on touch devices */
  .nav-section a::before,
  .contact-value::before,
  .legal-links a::before {
    display: none;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-section h4::after,
  .footer-contact h4::after {
    height: 1px;
  }
  
  .footer {
    border-top-width: 2px;
  }
}

/* Print styles */
@media print {
  .footer {
    background: #ffffff !important;
    color: #000000 !important;
    border-top: 2px solid #000000 !important;
    padding: 20px 0 !important;
  }
  
  .company-name {
    color: #000000 !important;
  }
  
  .nav-section h4,
  .footer-contact h4 {
    color: #000000 !important;
  }
  
  .nav-section h4::after,
  .footer-contact h4::after {
    background: #000000 !important;
  }
  
  .contact-value {
    color: #000000 !important;
  }
  
  .copyright p {
    color: #666666 !important;
  }
  
  .legal-links a {
    color: #666666 !important;
  }
  
  /* Hide arrows in print */
  .nav-section a::before,
  .contact-value::before,
  .legal-links a::before {
    display: none !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .nav-section h4::after,
  .footer-contact h4::after,
  .nav-section a::before,
  .contact-value::before,
  .legal-links a::before {
    transition: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .footer {
    background: #000000;
    border-top-color: var(--primary-red);
  }
  
  .company-name {
    color: var(--primary-red);
  }
  
  .company-tagline {
    color: #cccccc;
  }
  
  .company-description p {
    color: #b0b0b0;
  }
  
  .nav-section h4,
  .footer-contact h4 {
    color: #ffffff;
  }
  
  .nav-section a {
    color: #b0b0b0;
  }
  
  .nav-section a:hover {
    color: #ffffff;
  }
  
  .contact-value {
    color: #ffffff;
  }
  
  .contact-value:hover {
    color: var(--primary-red);
  }
}