@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Devanagari:wght@400;500;700&display=swap');

/* ==========================================================================
   HAYAGRIVA Shared 40% : 20% : 40% Dark Footer Stylesheet
   ========================================================================== */

.compact-footer {
  background-color: #0F172A;
  border-top: 3px solid #1E6C93;
  padding: 26px 36px 16px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  margin-top: 0;
}

.footer-single-row-grid {
  display: grid;
  grid-template-columns: 38% 62%; /* 38% Sacred : 62% Nav Hub */
  gap: 24px;
  align-items: stretch;
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Section 1 (38%): Sacred Hayagriva Card
   ========================================================================== */
.footer-col-sacred {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.sacred-emblem-wrap {
  flex-shrink: 0;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  width: 100%;
  max-width: 140px;
  max-height: 155px;
  object-fit: contain;
  display: block;
  opacity: 0.65;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
  opacity: 0.88;
}

.sacred-shloka-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.shloka-devanagari-banner {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.6;
  letter-spacing: 0.3px;
  margin: 0 0 10px 0;
  white-space: normal;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.shloka-meaning-banner {
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Inter", sans-serif);
  font-size: 0.84rem;
  font-weight: 400;
  color: #CBD5E1;
  line-height: 1.55;
  font-style: italic;
  margin: 0;
}

/* ==========================================================================
   Section 2 (20%): Contact Us / Chambers Enquiry Form
   ========================================================================== */
.footer-col-contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.footer-form-title {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
}

.footer-contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.contact-field-group {
  width: 100%;
}

.contact-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  color: #FFFFFF;
  font-size: 0.76rem;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: inherit;
}

.contact-textarea {
  resize: none;
  height: 48px;
}

.contact-input:focus {
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.contact-input::placeholder {
  color: #94A3B8;
  font-size: 0.74rem;
}

.contact-submit-btn {
  background: #0284c7;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 2px;
}

.contact-submit-btn:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.contact-status-msg {
  display: none;
  font-size: 0.72rem;
  margin-top: 4px;
  padding: 4px;
  border-radius: 4px;
  text-align: center;
}

.contact-status-msg.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ==========================================================================
   Section 2 (62%): Spacious L-Tree Site Navigation Hub
   ========================================================================== */
.footer-col-nav-hub {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px 24px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.footer-tree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  width: 100%;
}

.footer-tree-col {
  display: flex;
  flex-direction: column;
}

.tree-root-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tree-root-badge {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  flex-shrink: 0;
}

.badge-harness {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-agents {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-turbine {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-network {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tree-root-name {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.footer-tree-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.tree-item {
  position: relative;
  padding-left: 18px;
  line-height: 1.35;
  margin-bottom: 6px;
}

/* Branch L-Line Connector */
.tree-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: -5px;
  height: 14px;
  width: 9px;
  border-left: 1.5px solid rgba(148, 163, 184, 0.3);
  border-bottom: 1.5px solid rgba(148, 163, 184, 0.3);
}

/* Continuous vertical guide line for non-last items */
.tree-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  bottom: -6px;
  width: 1.5px;
  border-left: 1.5px solid rgba(148, 163, 184, 0.3);
}

/* First item connector adjustment */
.tree-item:first-child::before {
  top: 0px;
  height: 9px;
}

.tree-item a {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-item a:hover {
  color: #38bdf8;
  transform: translateX(2px);
}

.footer-ext-icon {
  font-size: 0.66rem;
  color: #64748b;
  margin-left: 4px;
}

.tree-item a:hover .footer-ext-icon {
  color: #38bdf8;
}

.promo-mini-badge {
  background: #16a34a;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
}

/* ==========================================================================
   Footer Bottom Strip
   ========================================================================== */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
  padding-top: 8px;
  font-size: 0.70rem;
  color: #94A3B8;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-bottom-divider {
  color: rgba(255, 255, 255, 0.2);
}

.footer-legal-link {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: #38BDF8;
}

.footer-bottom-right {
  color: #64748B;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1250px) {
  .footer-tree-grid {
    gap: 16px;
  }
}

@media (max-width: 1100px) {
  .shloka-devanagari-banner {
    white-space: normal;
  }
  .footer-single-row-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-col-sacred,
  .footer-col-nav-hub {
    grid-column: 1 / -1;
  }
  .footer-tree-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .footer-tree-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 580px) {
  .compact-footer {
    padding: 20px 16px 12px;
  }
  .footer-col-sacred {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 18px 16px;
  }
  .sacred-emblem-wrap {
    width: 110px;
  }
  .footer-tree-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tree-item a {
    white-space: normal;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
