/**
 * Ashray Ayurveda - Global Dynamic Footer Styles
 * Brand Palette Strict Enforcement:
 * - Deep Forest Green: #1F4210 (Footer Base Background, Headings elsewhere)
 * - Natural Leaf Green: #2F521E (Hover states, Social Badges, Supporting Elements)
 * - Warm Ayurvedic Gold: #D7AE5D (Accents, Dividers, Eyebrows, Bullet Dots, Highlights)
 * - Warm Ivory: #FEF7ED (Soft Backgrounds)
 * - White: #FFFFFF (Footer Headings, High Contrast Highlights)
 * - Sage Cream / Light Sage: #DCE5D7 (Footer Links, Body & Secondary Text on Dark Green)
 * - Muted Sage Gray-Green: #A3B59E (Sub-footer Copyright, Credits)
 * - Deep Anchor Green: #16300C (Sub-footer Bottom Bar Background)
 */

:root {
  --ashray-deep-forest: #1F4210;
  --ashray-natural-leaf: #2F521E;
  --ashray-warm-gold: #D7AE5D;
  --ashray-warm-gold-hover: #C4922F;
  --ashray-warm-ivory: #FEF7ED;
  --ashray-white: #FFFFFF;
  --ashray-dark-charcoal: #263126;
  --ashray-muted-sage: #667064;
  --ashray-soft-sand: #E8CF96;
  --ashray-border-subtle: rgba(255, 255, 255, 0.12);

  /* Footer Theme Green System */
  --ashray-footer-bg: #002E27;
  --ashray-footer-bottom-bg: #00221D;
  --ashray-footer-text-primary: #FFFFFF;
  --ashray-footer-text-secondary: #DCE5D7;
  --ashray-footer-text-muted: #A3B59E;
  --ashray-footer-accent: #D7AE5D;
}

/* Base Footer Container */
.ashray-site-footer {
  background-color: var(--ashray-footer-bg);
  background: linear-gradient(180deg, #002E27 0%, #00221D 100%);
  color: var(--ashray-footer-text-secondary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border-top: 3px solid var(--ashray-warm-gold);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.ashray-footer-gold-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ashray-warm-gold) 50%, transparent 100%);
  opacity: 0.95;
}

/* Main Footer Inner Grid */
.ashray-footer-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 60px 24px 45px 24px;
}

.ashray-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr 1.35fr;
  gap: 36px;
  align-items: start;
}

/* Column 1: Brand Info */
.ashray-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ashray-footer-logo-wrap {
  display: inline-block;
  line-height: 1;
}

.ashray-footer-logo {
  max-width: 190px;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.ashray-footer-logo:hover {
  transform: translateY(-2px);
}

.ashray-footer-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ashray-footer-text-secondary);
  margin: 0;
  max-width: 295px;
}

/* Social Media Badges */
.ashray-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.ashray-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--ashray-natural-leaf);
  color: var(--ashray-white);
  border: 1px solid rgba(215, 174, 93, 0.35);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ashray-social-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.ashray-social-btn:hover {
  background-color: var(--ashray-warm-gold);
  color: var(--ashray-deep-forest);
  border-color: var(--ashray-warm-gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(215, 174, 93, 0.35);
}

.ashray-social-btn:hover svg {
  transform: scale(1.1);
}

/* Footer Headings */
.ashray-footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--ashray-footer-text-primary);
  margin: 0 0 20px 0;
  position: relative;
  display: inline-block;
}

.ashray-footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 26px;
  height: 2px;
  background-color: var(--ashray-warm-gold);
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(215, 174, 93, 0.3);
}

/* Navigation Lists (Cols 2, 3, 4) */
.ashray-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ashray-footer-menu li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  line-height: 1.4;
}

.ashray-footer-menu li a {
  color: var(--ashray-footer-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Bullet indicator */
.ashray-footer-menu li a::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--ashray-warm-gold);
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ashray-footer-menu li a:hover {
  color: var(--ashray-warm-gold);
  transform: translateX(4px);
}

.ashray-footer-menu li a:hover::before {
  color: var(--ashray-white);
}

/* Column 5: Contact Info */
.ashray-footer-col-contact {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 32px;
}

.ashray-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ashray-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 14px;
  color: var(--ashray-footer-text-secondary);
  line-height: 1.6;
}

.ashray-contact-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--ashray-warm-gold);
  margin-top: 2px;
}

.ashray-contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.ashray-contact-text {
  color: var(--ashray-footer-text-secondary);
}

.ashray-contact-text a {
  color: var(--ashray-footer-text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.ashray-contact-text a:hover {
  color: var(--ashray-warm-gold);
  text-decoration: underline;
}

/* Sub-Footer / Bottom Bar */
.ashray-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: var(--ashray-footer-bottom-bg);
  padding: 20px 24px;
}

.ashray-footer-bottom-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--ashray-footer-text-muted);
}

.ashray-copyright {
  margin: 0;
  color: var(--ashray-footer-text-muted);
}

.ashray-credit {
  margin: 0;
  color: var(--ashray-footer-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ashray-credit a {
  color: var(--ashray-warm-gold);
  text-decoration: none;
}

.ashray-credit .ashray-heart {
  color: #E05D5D;
  font-size: 13px;
  animation: ashrayHeartPulse 2s infinite ease-in-out;
  display: inline-block;
}

@keyframes ashrayHeartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Responsive Design */
@media (max-width: 1080px) {
  .ashray-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
  }
  .ashray-footer-col-contact {
    grid-column: span 3;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 0;
    padding-top: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
  }
  .ashray-footer-col-contact .ashray-contact-list {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .ashray-footer-container {
    padding: 45px 20px 35px 20px;
  }
  .ashray-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .ashray-footer-col-brand {
    grid-column: span 2;
  }
  .ashray-footer-col-contact {
    grid-column: span 2;
    display: block;
    padding-top: 24px;
  }
  .ashray-footer-col-contact .ashray-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .ashray-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .ashray-footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .ashray-footer-col-brand {
    grid-column: span 1;
  }
  .ashray-footer-col-contact {
    grid-column: span 1;
  }
}
