/**
 * Art of Ayurveda (AOA) — Muddy Earth Vedic Footer Stylesheet
 * Warm organic muddy background with high-contrast Vedic forest green (#1b4332),
 * warm charcoal (#1c1917), ochre/saffron gold (#b45309), and authentic typography.
 */

:root {
  /* Muddy Earth Color Palette */
  --aoa-footer-bg: #ede4d6;             /* Authentic warm muddy earth */
  --aoa-footer-bg-subtle: #f6efe6;      /* Soft warm parchment */
  --aoa-footer-bg-card: #ffffff;        /* Crisp elevated white card for newsletter */
  --aoa-footer-bg-trust: #e3d8c6;       /* Warm grounding muddy band for trust seals */
  --aoa-footer-bg-colophon: #dbceb9;    /* Stately deeper muddy tone for bottom bar */
  
  --aoa-footer-border: #ded2be;         /* Delicate organic earth border */
  --aoa-footer-border-dark: #c9bca6;    /* Contrast border */
  --aoa-footer-border-gold: rgba(180, 83, 9, 0.3);
  
  /* Primary Brand Accents */
  --aoa-footer-primary: #1b4332;        /* Deep Vedic Forest Green */
  --aoa-footer-primary-dark: #0f291e;   /* Dark forest */
  --aoa-footer-primary-light: #2d6a4f;  /* Medium forest */
  --aoa-footer-teal: #0f766e;           /* Vedic Sage / Teal */
  --aoa-footer-gold: #b45309;           /* Warm Ochre / Saffron */
  --aoa-footer-gold-bright: #d97706;    /* Amber */
  --aoa-footer-gold-light: #fef3c7;     /* Soft gold highlight */
  
  /* High Contrast Typography Palette */
  --aoa-footer-heading: #1b4332;        /* Deep Forest Green for titles */
  --aoa-footer-text-dark: #1c1917;      /* Deep warm charcoal */
  --aoa-footer-text: #292524;           /* High-contrast dark stone for links */
  --aoa-footer-text-muted: #57534e;     /* Medium stone for descriptions */
  --aoa-footer-text-dim: #78716c;       /* Muted stone for captions & legal */
  
  --aoa-font-serif: 'Cormorant Garamond', Georgia, serif;
  --aoa-font-devanagari: 'Noto Serif Devanagari', 'Martel', serif;
  --aoa-font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================
   1. FOOTER WRAPPER & RESET
   ========================================================== */
#colophon.aoa-footer-section {
  background: linear-gradient(180deg, #f5efe6 0%, var(--aoa-footer-bg) 180px, #e9dfd0 100%);
  color: var(--aoa-footer-text);
  font-family: var(--aoa-font-sans);
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--aoa-footer-border-dark);
  padding: 0;
  margin-top: 0;
  clear: both;
}

/* Subtle organic warm glow */
#colophon.aoa-footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1300px;
  height: 480px;
  background: radial-gradient(circle at 50% 0%, rgba(27, 67, 50, 0.04) 0%, rgba(180, 83, 9, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.aoa-footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ==========================================================
   2. PRE-FOOTER: RITUCHARYA NEWSLETTER CARD
   ========================================================== */
.aoa-footer-newsletter-wrap {
  padding: 55px 0 40px 0;
  border-bottom: 1px solid var(--aoa-footer-border);
}

.aoa-footer-newsletter-card {
  background: var(--aoa-footer-bg-card);
  border: 1.5px solid var(--aoa-footer-border-gold);
  border-radius: 20px;
  padding: 38px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 10px 30px rgba(78, 62, 45, 0.07), 0 2px 6px rgba(0, 0, 0, 0.02);
  position: relative;
}

.aoa-newsletter-left {
  max-width: 580px;
}

.aoa-newsletter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aoa-footer-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.aoa-newsletter-title {
  font-family: var(--aoa-font-serif);
  font-size: 29px;
  font-weight: 700;
  color: var(--aoa-footer-primary-dark);
  line-height: 1.25;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.aoa-newsletter-title span {
  color: var(--aoa-footer-gold);
  font-family: var(--aoa-font-devanagari);
  font-size: 24px;
  font-weight: 600;
}

.aoa-newsletter-desc {
  font-size: 14.5px;
  color: var(--aoa-footer-text-muted);
  line-height: 1.6;
  margin: 0;
}

.aoa-newsletter-form {
  flex: 1;
  max-width: 470px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aoa-newsletter-input-group {
  display: flex;
  background: #faf7f2;
  border: 1.5px solid #d5c8b7;
  border-radius: 50px;
  padding: 4px 4px 4px 20px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(78, 62, 45, 0.05);
}

.aoa-newsletter-input-group:focus-within {
  background: #ffffff;
  border-color: var(--aoa-footer-primary);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.aoa-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--aoa-footer-text-dark);
  font-size: 14.5px;
  font-family: var(--aoa-font-sans);
  outline: none;
  min-width: 0;
}

.aoa-newsletter-input::placeholder {
  color: #8c8275;
}

.aoa-newsletter-submit-btn {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #ffffff !important;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
}

.aoa-newsletter-submit-btn:hover {
  background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.35);
}

.aoa-newsletter-privacy {
  font-size: 11.5px;
  color: var(--aoa-footer-text-dim);
  padding-left: 12px;
  margin: 0;
}

.aoa-newsletter-msg {
  display: none;
  font-size: 13px;
  color: var(--aoa-footer-primary);
  padding: 10px 16px;
  background: rgba(27, 67, 50, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(27, 67, 50, 0.2);
}

/* ==========================================================
   3. MAIN FOOTER MULTI-COLUMN DIRECTORY
   ========================================================== */
.aoa-footer-main {
  padding: 60px 0 48px 0;
}

.aoa-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.15fr 1fr 1.2fr;
  gap: 40px;
}

/* Column 1: Brand Colophon */
.aoa-footer-brand {
  display: flex;
  flex-direction: column;
}

.aoa-footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}

.aoa-footer-logo-img {
  max-width: 200px;
  height: auto;
  display: block;
}

.aoa-footer-tagline {
  font-family: var(--aoa-font-devanagari);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--aoa-footer-gold);
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
}

.aoa-footer-bio {
  font-size: 13.5px;
  color: var(--aoa-footer-text-muted);
  line-height: 1.68;
  margin: 0 0 18px 0;
}

.aoa-footer-mantra-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5ede2;
  border: 1px solid #d8cbba;
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--aoa-font-devanagari);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--aoa-footer-primary);
  margin-bottom: 22px;
  width: fit-content;
}

/* Social links */
.aoa-footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aoa-footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5eee4;
  border: 1px solid #d8ccbb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #44403c;
  text-decoration: none;
  transition: all 0.25s ease;
}

.aoa-footer-social-btn:hover {
  background: var(--aoa-footer-primary);
  border-color: var(--aoa-footer-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
}

.aoa-footer-social-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}

/* Navigation Columns */
.aoa-footer-col-title {
  font-family: var(--aoa-font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--aoa-footer-primary-dark);
  margin: 0 0 18px 0;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.2px;
}

.aoa-footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: var(--aoa-footer-gold);
  border-radius: 2px;
}

.aoa-footer-col-title-hi {
  font-family: var(--aoa-font-devanagari);
  font-size: 15px;
  font-weight: 600;
  color: var(--aoa-footer-gold);
  margin-left: 4px;
}

.aoa-footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10.5px;
}

.aoa-footer-link {
  color: var(--aoa-footer-text);
  font-size: 14px;
  font-weight: 450;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  transition: all 0.2s ease;
  line-height: 1.45;
}

.aoa-footer-link-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--aoa-footer-gold);
  transform: rotate(45deg);
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
  vertical-align: middle;
}

.aoa-footer-link:hover {
  color: var(--aoa-footer-primary);
  padding-left: 5px;
  font-weight: 600;
}

.aoa-footer-link:hover .aoa-footer-link-dot {
  transform: rotate(45deg) scale(1.3);
  background-color: var(--aoa-footer-primary);
}

.aoa-footer-link-hi {
  font-family: var(--aoa-font-devanagari);
  font-size: 13px;
  color: var(--aoa-footer-teal);
  font-weight: 500;
}

/* Contact Column */
.aoa-footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.aoa-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--aoa-footer-text-muted);
  line-height: 1.5;
}

.aoa-footer-contact-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d8cbba;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--aoa-footer-primary);
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 4px rgba(78, 62, 45, 0.04);
}

.aoa-footer-contact-icon svg {
  width: 14px;
  height: 14px;
}

.aoa-footer-contact-text a {
  color: var(--aoa-footer-text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.aoa-footer-contact-text a:hover {
  color: var(--aoa-footer-primary);
}

.aoa-footer-contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--aoa-footer-text-dim);
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

.aoa-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.2);
}

.aoa-footer-cta-btn:hover {
  background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 67, 50, 0.3);
  color: #ffffff !important;
}

/* ==========================================================
   4. TRUST SEALS & QUALITY COMMITMENTS BAR
   ========================================================== */
.aoa-footer-trust-bar {
  background: var(--aoa-footer-bg-trust);
  border-top: 1px solid var(--aoa-footer-border-dark);
  border-bottom: 1px solid var(--aoa-footer-border-dark);
  padding: 26px 0;
}

.aoa-footer-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.aoa-footer-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.aoa-footer-trust-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #d5c7b3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aoa-footer-gold);
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(78, 62, 45, 0.05);
}

.aoa-footer-trust-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--aoa-footer-text-dark);
  margin: 0 0 2px 0;
}

.aoa-footer-trust-sub {
  font-size: 12px;
  color: var(--aoa-footer-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================
   5. BOTTOM COLOPHON & COPYRIGHT
   ========================================================== */
.aoa-footer-colophon {
  background: var(--aoa-footer-bg-colophon);
  padding: 24px 0;
  font-size: 13px;
  color: var(--aoa-footer-text-muted);
}

.aoa-footer-colophon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.aoa-footer-copy {
  margin: 0;
  color: var(--aoa-footer-text-muted);
}

.aoa-footer-copy strong {
  color: var(--aoa-footer-text-dark);
  font-weight: 600;
}

.aoa-footer-shanti-mantra {
  font-family: var(--aoa-font-devanagari);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--aoa-footer-primary);
  letter-spacing: 0.6px;
  text-align: center;
}

.aoa-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.aoa-footer-legal-link {
  color: var(--aoa-footer-text-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.aoa-footer-legal-link:hover {
  color: var(--aoa-footer-primary);
}

.aoa-footer-legal-sep {
  color: #c4b5a0;
}

/* ==========================================================
   6. SCROLL TO TOP FLOATING BUTTON
   ========================================================== */
.aoa-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--aoa-footer-primary);
  border: 1.5px solid var(--aoa-footer-gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.3);
}

.aoa-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aoa-back-to-top:hover {
  background: var(--aoa-footer-primary-light);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.4);
}

/* ==========================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================== */
@media (max-width: 1200px) {
  .aoa-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
  .aoa-footer-grid > .aoa-footer-col:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 1024px) {
  .aoa-footer-newsletter-card {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 28px;
  }
  .aoa-newsletter-left {
    max-width: 100%;
  }
  .aoa-newsletter-form {
    max-width: 100%;
  }
  .aoa-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .aoa-footer-brand {
    grid-column: 1 / -1;
  }
  .aoa-footer-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .aoa-footer-container {
    padding: 0 20px;
  }
  .aoa-footer-newsletter-card {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .aoa-newsletter-title {
    font-size: 23px;
  }
  .aoa-newsletter-input-group {
    flex-direction: column;
    padding: 6px;
    border-radius: 16px;
  }
  .aoa-newsletter-input {
    padding: 10px 14px;
  }
  .aoa-newsletter-submit-btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }
  .aoa-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .aoa-footer-trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .aoa-footer-colophon-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .aoa-footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .aoa-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}
