/**
 * Footer specific styles for petfoodsstore theme
 */

/* Footer Specific Styles */
.site-footer {
  position: relative;
  background-color: var(--forest-green);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  margin-top: var(--spacing-xxl);
  overflow: hidden;
}

/* Honeycomb pattern background */
.site-footer:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="100" viewBox="0 0 56 100"><path d="M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100" fill="none" stroke="%23FFFFFF" stroke-width="1" /></svg>');
  background-size: 56px 100px;
  opacity: 0.03;
  z-index: 0;
}

/* Honeycomb drip from top */
.site-footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    transparent 10%, 
    var(--honey-gold) 10%, 
    var(--honey-gold) 15%, 
    transparent 15%,
    transparent 30%,
    var(--honey-gold) 30%,
    var(--honey-gold) 40%,
    transparent 40%,
    transparent 60%,
    var(--honey-gold) 60%,
    var(--honey-gold) 65%,
    transparent 65%,
    transparent 80%,
    var(--honey-gold) 80%,
    var(--honey-gold) 85%,
    transparent 85%
  );
}

/* Footer content container */
.footer-content {
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-xl);
}

/* Footer grid layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

/* Footer widget styling */
.footer-widget {
  margin-bottom: var(--spacing-lg);
}

.footer-widget-title {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  color: white;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-widget-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--honey-gold);
}

/* Footer links styling */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  margin-bottom: var(--spacing-xs);
}

.footer-link a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.footer-link a:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--honey-gold);
  margin-right: var(--spacing-xs);
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.footer-link a:hover {
  color: var(--honey-gold);
  transform: translateX(5px);
}

.footer-link a:hover:before {
  transform: scale(1.3);
  opacity: 1;
}

/* Contact info styling */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  color: var(--honey-gold);
  font-size: 1rem;
  margin-right: var(--spacing-sm);
  margin-top: 5px;
}

.contact-text {
  line-height: 1.6;
}

.contact-text a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: var(--honey-gold);
}

/* Newsletter form styling */
.newsletter-form {
  margin-top: var(--spacing-md);
  position: relative;
}

.newsletter-form .form-group {
  position: relative;
  margin-bottom: var(--spacing-sm);
}

.newsletter-input {
  width: 100%;
  padding: 14px var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Newsletter submit button */
.newsletter-submit {
  height: 48px;
  padding: 0 var(--spacing-md);
  border: none;
  background-color: var(--honey-gold);
  color: var(--text-brown);
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: var(--spacing-xs);
  width: 100%;
}

.newsletter-submit:hover {
  background-color: var(--hunny-pot);
  color: white;
  transform: translateY(-2px);
}

/* Honey drip from submit button */
.newsletter-submit:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 15px;
  background-color: var(--honey-gold);
  border-radius: 0 0 5px 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.newsletter-submit:hover:after {
  opacity: 0.7;
}

/* Social media icons */
.social-icons {
  display: flex;
  margin-top: var(--spacing-md);
  gap: var(--spacing-sm);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--honey-gold);
  color: var(--text-brown);
  transform: translateY(-3px);
}

/* Bottom footer */
.bottom-footer {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.bottom-footer p {
  margin: var(--spacing-xs) 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom-links {
  margin-top: var(--spacing-sm);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0 var(--spacing-sm);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--honey-gold);
}

/* Logo in footer */
.footer-logo {
  margin-bottom: var(--spacing-md);
}

.footer-logo img {
  height: 60px;
}

.footer-about-text {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

/* Established since styling */
.footer-est {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  margin-top: var(--spacing-sm);
  position: relative;
}

.est-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-right: var(--spacing-xs);
}

.est-year {
  color: var(--honey-gold);
  font-weight: 700;
}

/* Back to top button */
.back-to-top {
  position: absolute;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: var(--honey-gold);
  color: var(--text-brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  z-index: 10;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
}

.back-to-top:hover {
  background-color: var(--hunny-pot);
  color: white;
  transform: translateY(-5px);
}

/* Payment icons */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.payment-method {
  width: 40px;
  height: 25px;
  background-color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #333;
}

/* Widget styling for WordPress footer widgets */
.site-footer .widget {
  margin-bottom: var(--spacing-lg);
}

.site-footer .widget-title {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  color: white;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.site-footer .widget-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--honey-gold);
}

.site-footer .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .widget li {
  margin-bottom: var(--spacing-xs);
}

.site-footer .widget a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.site-footer .widget a:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--honey-gold);
  margin-right: var(--spacing-xs);
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.site-footer .widget a:hover {
  color: var(--honey-gold);
  transform: translateX(5px);
}

.site-footer .widget a:hover:before {
  transform: scale(1.3);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-widget {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-widget {
    grid-column: span 1;
  }
  
  .site-footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
  }
}
