/* ===================================
   FIRED UP BBQ - Footer Styles
   =================================== */

/* Main Footer */
.main-footer {
  background: linear-gradient(180deg, var(--charcoal-black) 0%, #0f0f0f 100%);
  color: var(--white);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ember-orange) 20%,
    var(--flame-red) 50%,
    var(--ember-orange) 80%,
    transparent
  );
  opacity: 0.8;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-cta-column {
    grid-column: 1 / -1;
  }
}

/* Footer Columns */
.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h4 {
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--ember-orange);
}

@media (max-width: 576px) {
  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Footer Brand Column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  .footer-logo {
    justify-content: center;
  }
}

.footer-logo .logo-icon {
  font-size: 2.5rem;
  color: var(--ember-orange);
}

.footer-logo .logo-text {
  font-family: var(--heading-font);
  font-size: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

@media (max-width: 576px) {
  .footer-social {
    justify-content: center;
  }
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-base);
  font-size: 1.125rem;
}

.footer-social a:hover {
  background: var(--ember-orange);
  border-color: var(--ember-orange);
  transform: translateY(-5px) rotate(360deg);
  color: var(--white);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-base);
  position: relative;
  display: inline-block;
  padding-left: 0;
}

.footer-links a::before {
  content: '▸';
  position: absolute;
  left: -15px;
  color: var(--ember-orange);
  opacity: 0;
  transform: translateX(-5px);
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--ember-orange);
  padding-left: 15px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 576px) {
  .footer-links a::before {
    display: none;
  }

  .footer-links a:hover {
    padding-left: 0;
  }
}

/* Footer CTA Column */
.footer-cta-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-phone {
  margin-bottom: 1rem;
}

.footer-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ember-orange);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--heading-font);
  transition: var(--transition-base);
  letter-spacing: 1px;
}

.footer-phone-link:hover {
  color: var(--flame-red);
  transform: scale(1.05);
}

.footer-phone-link .phone-icon {
  font-size: 1.25rem;
  animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
  0%,
  100% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(-25deg);
  }
  20% {
    transform: rotate(25deg);
  }
  30% {
    transform: rotate(-25deg);
  }
  40% {
    transform: rotate(25deg);
  }
  50% {
    transform: rotate(0deg);
  }
}

.footer-email {
  margin-bottom: 1.5rem;
}

.footer-email a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-base);
  word-break: break-all;
}

.footer-email a:hover {
  color: var(--ember-orange);
  text-decoration: underline;
}

.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom a {
  color: var(--ember-orange);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-bottom a:hover {
  color: var(--flame-red);
  text-decoration: underline;
}

/* Footer Background Pattern */
.main-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(214, 105, 30, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Footer Newsletter Signup (for future use) */
.footer-newsletter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-base);
  padding: 1.5rem;
  margin-top: 2rem;
}

.footer-newsletter h5 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 576px) {
  .footer-newsletter-form {
    flex-direction: column;
  }
}

.footer-newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-base);
  color: var(--white);
  font-size: 1rem;
}

.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--ember-orange);
}

.footer-newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--ember-orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.footer-newsletter-form button:hover {
  background: var(--flame-red);
  transform: scale(1.05);
}

/* Footer Quick Contact Bar */
.footer-contact-bar {
  background: var(--ember-orange);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--white);
  margin-bottom: -2rem;
  margin-top: 4rem;
}

.footer-contact-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer-contact-bar-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-bar-item i {
  font-size: 1.25rem;
}

.contact-bar-item strong {
  font-weight: 700;
}

/* Sticky Footer Support */
html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Hover Effects */
@media (hover: hover) {
  .footer-column {
    position: relative;
  }

  .footer-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 2px;
    height: 0;
    background: var(--ember-orange);
    transition: height 0.3s ease;
  }

  .footer-column:hover::before {
    height: 100%;
  }
}

/* Print Styles */
@media print {
  .main-footer {
    background: none !important;
    color: #000 !important;
    border-top: 1px solid #000;
    padding: 2rem 0;
  }

  .footer-social,
  .footer-newsletter,
  .footer-contact-bar,
  .footer-buttons {
    display: none !important;
  }

  .footer-links a,
  .footer-bottom p,
  .footer-tagline {
    color: #000 !important;
  }
}
