/* ===================================
   FOOTER STYLES
   Footer styles for the dsite theme
   =================================== */

.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

/* ===================================
   FOOTER WIDGETS SECTION
   =================================== */

.footer-widgets {
  display: grid;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Four Column Layout */
.footer-four-column .footer-widgets {
  grid-template-columns: repeat(3, 1fr) 0.8fr;
}

/* Three Column Layout */
.footer-three-column .footer-widgets {
  grid-template-columns: 0.8fr repeat(2, 1fr);
}

/* Two Column Layout */
.footer-two-column .footer-widgets {
  grid-template-columns: 0.8fr 1fr 1fr;
}

/* Minimal Layout */
.footer-minimal .footer-widgets {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Footer Widget Areas */
.footer-widget-area,
.footer-logo-col,
.footer-minimal-content {
  color: rgba(255, 255, 255, 0.7);
}

.footer-widget-area h2,
.footer-widget-area h3,
.footer-widget-area h4,
.footer-logo-col h3,
.footer-minimal-content h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: -0.025em;
}

.footer-widget-area p,
.footer-logo-col p,
.footer-minimal-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

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

.footer-widget-area ul li {
  margin-bottom: 0.875rem;
}

.footer-widget-area ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-widget-area ul li a:hover {
  color: var(--white);
}

/* Social links with icons and text */
.footer-widget-area a svg {
  transition: transform 0.2s ease;
}

.footer-widget-area a:hover svg {
  transform: translateX(2px);
}

/* Footer Logo */
.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: auto;
  max-width: 100%;
  display: block;
}

/* Social Icons in Footer */
.footer-widgets .social-icons,
.footer-logo-col .social-icons,
.footer-minimal-content .social-icons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0;
}

.footer-minimal .social-icons {
  justify-content: center;
}

.footer-widgets .social-icons a,
.footer-logo-col .social-icons a,
.footer-minimal-content .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-widgets .social-icons a:hover,
.footer-logo-col .social-icons a:hover,
.footer-minimal-content .social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-widgets .social-icons svg,
.footer-logo-col .social-icons svg,
.footer-minimal-content .social-icons svg {
  width: 18px;
  height: 18px;
}

/* ===================================
   FOOTER BOTTOM SECTION
   =================================== */

.footer-bottom {
  padding: 2rem 0;
  background-color: transparent;
}

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

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.footer-copyright a:hover {
  color: var(--white);
}

.footer-credit-sep {
  margin: 0 0.5rem;
  opacity: 0.6;
}

/* Social Icons in Footer Bottom */
.footer-bottom .social-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.footer-bottom .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom .social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-bottom .social-icons svg {
  width: 18px;
  height: 18px;
}

/* ===================================
   FOOTER WIDGETS - ADDITIONAL STYLES
   =================================== */

/* Widget titles with icons */
.footer-widget-area .widget-title {
  position: relative;
  padding-left: 0;
}

/* Text widget paragraphs */
.footer-widget-area .widget_text p:last-child {
  margin-bottom: 0;
}

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

.footer-widget-area .contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-widget-area .contact-info li svg,
.footer-widget-area .contact-info li i {
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Form elements in footer */
.footer-widget-area input[type="text"],
.footer-widget-area input[type="email"],
.footer-widget-area input[type="tel"],
.footer-widget-area input[type="url"],
.footer-widget-area textarea,
.footer-widget-area select {
  width: 100%;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.footer-widget-area input[type="text"]:focus,
.footer-widget-area input[type="email"]:focus,
.footer-widget-area input[type="tel"]:focus,
.footer-widget-area input[type="url"]:focus,
.footer-widget-area textarea:focus,
.footer-widget-area select:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.footer-widget-area input::placeholder,
.footer-widget-area textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-widget-area button,
.footer-widget-area input[type="submit"],
.footer-widget-area .wp-block-button__link {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-widget-area button:hover,
.footer-widget-area input[type="submit"]:hover,
.footer-widget-area .wp-block-button__link:hover {
  background-color: var(--primary-dark);
}

/* Recent posts widget in footer */
.footer-widget-area .widget_recent_entries ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-area .widget_recent_entries ul li:last-child {
  border-bottom: none;
}

.footer-widget-area .widget_recent_entries ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.footer-widget-area .widget_recent_entries .post-date {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}
