/* public/css/footer.css */

:root {
  /* Define footer-specific variables if needed, */
  /* or rely on global variables from home.css/header.css */
  /* Example: */
  /* --footer-bg: var(--secondary-color); */
  /* --footer-text-color: rgba(255, 255, 255, 0.85); */
}

/* --- Footer Section --- */
.footer-section {
  background-color: var(--secondary-color); /* Use darker shade */
  color: rgba(255, 255, 255, 0.85); /* Slightly more opaque text */
  padding: 70px 0 30px 0;
  font-size: 0.9rem;
  margin-top: auto; /* Push footer to bottom if content is short */
}

html[data-theme="dark"] .footer-section {
    background-color: #0b1529; /* Even darker for contrast */
    color: var(--dark-text-secondary);
}

.footer-container {
   /* Uses global container class from home.css */
   width: 90%;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px 30px; /* Row and column gap */
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .footer-column--about {
      grid-column: span 2 / span 2;
      padding-right: 10%; /* Add padding to prevent text collision */
  }
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 15px;
    transition: transform var(--transition-speed) ease;
}
.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo {
  max-width: 180px;
  height: auto;
  opacity: 0.9;
  display: block; /* Ensure proper rendering */
}

.footer-brand-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}
html[data-theme="dark"] .footer-brand-title {
    color: var(--dark-text);
}

.footer-about__desc {
  line-height: 1.7;
  margin-bottom: 25px;
  opacity: 0.9;
}

.footer-socials {
    margin-top: 15px; /* Space above social icons */
}

.footer-socials a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.4rem; /* Larger icons */
  margin-right: 18px;
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
html[data-theme="dark"] .footer-socials a {
    color: var(--dark-text-secondary);
}

.footer-socials a:hover {
  color: #ffffff;
  transform: translateY(-3px) scale(1.1); /* Lift and scale */
}
html[data-theme="dark"] .footer-socials a:hover {
    color: var(--dark-text);
}

.footer-column__title {
  font-size: 1.15rem; /* Slightly larger */
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  text-transform: uppercase; /* Uppercase titles */
  letter-spacing: 0.5px;
}
html[data-theme="dark"] .footer-column__title {
    color: var(--dark-text);
}

.footer-column__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px; /* Longer underline */
  height: 3px; /* Thicker underline */
  background-color: var(--primary-accent); /* Use accent color */
  border-radius: 1px;
  transition: width 0.4s ease; /* Animate underline */
}
html[data-theme="dark"] .footer-column__title::after {
    background-color: var(--dark-primary-accent);
}
.footer-column:hover .footer-column__title::after {
    width: 60px; /* Extend underline on column hover */
}


.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 12px; /* More space */
}

.footer-links .footer-link, /* Target specific links */
.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
  position: relative; /* For hover effect */
  display: inline-block; /* Needed for padding effect */
  text-decoration: none;
}

html[data-theme="dark"] .footer-links .footer-link,
html[data-theme="dark"] .footer-contact a {
    color: var(--dark-text-secondary);
}


.footer-links .footer-link:hover,
.footer-contact a:hover {
  color: #ffffff;
  padding-left: 8px; /* Indent on hover */
}
html[data-theme="dark"] .footer-links .footer-link:hover,
html[data-theme="dark"] .footer-contact a:hover {
    color: var(--dark-text);
}

/* Footer Link Underline Effect */
.footer-links .footer-link span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    display: block;
    margin-top: 2px; /* Adjust spacing */
    right: 0;
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
    transition: width .4s ease, background-color .3s ease;
    -webkit-transition: width .4s ease, background-color .3s ease;
}
html[data-theme="dark"] .footer-links .footer-link span::after {
    background: var(--dark-text-secondary);
}

.footer-links .footer-link:hover span::after {
    width: 100%;
    left: 0;
    background-color: #ffffff; /* Solid white on hover */
}
html[data-theme="dark"] .footer-links .footer-link:hover span::after {
    background-color: var(--dark-text);
}


.footer-contact li {
  display: flex;
  align-items: flex-start; /* Align icon top */
}

.footer-contact i {
  margin-right: 12px;
  margin-top: 5px;
  width: 16px;
  text-align: center;
  color: var(--primary-accent); /* Use accent color for icons */
  flex-shrink: 0; /* Prevent icon shrinking */
  transition: transform 0.3s ease;
}
html[data-theme="dark"] .footer-contact i {
    color: var(--dark-primary-accent);
}
.footer-contact li:hover i {
    transform: scale(1.1); /* Scale icon on list item hover */
}

.footer-contact span {
    /* Styling for non-linked text like address */
    opacity: 0.9;
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
  margin-top: 20px; /* Space above bottom */
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
html[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: var(--dark-text-secondary);
    opacity: 0.8;
}

.footer-bottom a { /* For hidden admin link */
    color: inherit;
    text-decoration: none;
}