/**
 * Pecodex Footer Styles for WordPress Theme
 * 
 * Exact replication of example footer design
 * Requirements: 10.3
 */

/* CSS Custom Properties */
:root {
  --footer-bg: #227A38;
  --text-light: #ffffff;
  --primary-color: #a3c152;
  --footer-bottom-bg: #11421E;
}

/* Main Wrapper */
.pecodex-footer-wrapper {
  background-color: var(--footer-bg);
  color: var(--text-light);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

/* BACKGROUND PATTERN */
.pecodex-footer-wrapper::before {
  position: absolute;
  content: "";
  width: 150%;
  height: 150%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-size: 60px 60px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  z-index: 0;
  pointer-events: none;
}

/* Main Content Container */
.pecodex-footer-main-content {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 40px;
}

/* Logo */
.pecodex-footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.pecodex-footer-logo svg {
  color: var(--primary-color);
}

/* Typography & Links within wrapper */
.pecodex-footer-wrapper h5 {
  font-weight: 700;
  margin-bottom: 25px;
  color: white;
  letter-spacing: 0.5px;
  font-size: 1.25rem;
}

.pecodex-footer-wrapper ul {
  padding-left: 0;
  list-style: none;
}

.pecodex-footer-wrapper ul li {
  margin-bottom: 12px;
}

.pecodex-footer-wrapper a {
  color: #a8d5ba;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pecodex-footer-wrapper a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* Social Icons */
.pecodex-footer-social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 50%;
  margin-right: 10px;
  color: var(--primary-color) !important;
  transition: 0.3s;
  border: 1px solid white;
  text-decoration: none;
  padding-left: 0;
}

.pecodex-footer-social-icons a:hover {
  background: var(--primary-color);
  color: white !important;
  transform: translateY(-3px);
  border-color: var(--primary-color);
  padding-left: 0;
}

/* Bottom Copyright Section */
.pecodex-footer-bottom-bar {
  background-color: var(--footer-bottom-bg);
  position: relative;
  z-index: 2;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pecodex-footer-bottom-bar p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #8fa69a;
}

.pecodex-footer-bottom-links a {
  color: #8fa69a;
  font-size: 0.9rem;
  margin-left: 20px;
  transition: 0.3s;
  display: inline-block;
}

.pecodex-footer-bottom-links a:hover {
  color: var(--primary-color);
  padding-left: 0;
}

/* GRASS DECORATION WITH DUAL LAYERING */
.pecodex-footer-grass-decoration {
  width: 100%;
  height: 98px;
  position: relative;
  z-index: 3;
  pointer-events: none;
  margin-top: -60px;
  margin-bottom: -1px;
}

/* Layer 1: Background Grass */
.pecodex-footer-grass-decoration::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 98px;
  background-color: var(--footer-bottom-bg);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: bottom center;
  mask-position: bottom center;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  z-index: 1;
}

/* Layer 2: Foreground Grass Base */
.pecodex-footer-grass-decoration::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: var(--footer-bottom-bg);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: bottom center;
  mask-position: bottom center;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  z-index: 2;
}

/* Responsive */
@media (max-width: 767px) {
  .pecodex-footer-main-content {
    padding-top: 40px;
    padding-bottom: 30px;
  }
}
