/* ==========================================================================
   Kasb-e-Kamaal - Exact 3-Tier Footer (Mockup Matched & Elementor Friendly)
   ========================================================================== */

:root {
  --footer-dark-bg: #073822;
  --footer-border-subtle: rgba(255, 255, 255, 0.18);
  --footer-text-white: #ffffff;
  --footer-text-muted: #cfe1d7;
  --footer-cream-bg: #fbfaf6;
  --footer-font-script: 'Caveat', 'Alex Brush', cursive;
  --footer-font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --footer-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.site-footer-wrapper {
  width: 100%;
  font-family: var(--footer-font-sans);
  background-color: var(--footer-dark-bg);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   TIER 1: Top Stats & Motto Bar
   ========================================================================== */
.footer-tier-stats {
  background-color: var(--footer-dark-bg);
  color: var(--footer-text-white);
  padding: 18px 0;
  border-bottom: 1px solid var(--footer-border-subtle);
  position: relative;
  background-image: 
    radial-gradient(ellipse at right top, rgba(34, 94, 62, 0.45) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg width='160' height='100' viewBox='0 0 160 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M120 15 Q145 40 155 70 Q135 80 115 50 Q118 25 120 15 Z' fill='%23226342' opacity='0.35'/%3E%3Cpath d='M135 30 Q155 55 160 85 Q140 90 128 65 Z' fill='%231b5336' opacity='0.3'/%3E%3C/svg%3E");
  background-position: right center;
  background-repeat: no-repeat;
}

.footer-tier-stats .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

/* Left Motto Block */
.stats-motto-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1.25;
}

.stats-motto-leaf {
  font-size: 26px;
  line-height: 1;
  color: #72b28f;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.stats-motto-text {
  font-size: 13.5px;
  line-height: 1.4;
  color: #f1f8f4;
  font-weight: 500;
  letter-spacing: 0.15px;
}

/* Vertical Thin Divider */
.footer-v-divider {
  width: 1px;
  height: 42px;
  background-color: var(--footer-border-subtle);
  flex-shrink: 0;
}

/* Right Stats Row */
.stats-items-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 2;
  gap: 14px;
}

.stat-single-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.stat-circle-icon {
  width: 44px;
  height: 44px;
  background-color: #f6f3ea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #073822;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.stat-circle-icon svg {
  width: 22px;
  height: 22px;
  fill: #073822;
}

.stat-info-text {
  display: flex;
  flex-direction: column;
}

.stat-info-number {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  font-family: var(--footer-font-sans);
}

.stat-info-label {
  font-size: 11.5px;
  color: var(--footer-text-muted);
  line-height: 1.2;
  font-weight: 400;
}

/* ==========================================================================
   TIER 2: Middle Info & Contact Bar
   ========================================================================== */
.footer-tier-contact {
  background-color: var(--footer-dark-bg);
  color: var(--footer-text-white);
  padding: 16px 0;
  position: relative;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='140' height='80' viewBox='0 0 140 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M95 10 Q125 35 135 65 Q115 75 90 45 Z' fill='%231b5336' opacity='0.35'/%3E%3C/svg%3E");
  background-position: right bottom;
  background-repeat: no-repeat;
}

.footer-tier-contact .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

/* Left Brand Logo */
.footer-brand-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-brand-logo {
  height: 48px;
  width: auto;
  max-width: 240px;
  display: block;
}

/* Location Item */
.contact-item-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #e5f0ea;
}

/* Phone Item */
.contact-item-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #e5f0ea;
}

.contact-item-phone a {
  color: #e5f0ea;
  text-decoration: none;
}

.contact-item-phone a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Email Item */
.contact-item-email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #e5f0ea;
}

.contact-item-email a {
  color: #e5f0ea;
  text-decoration: none;
}

.contact-item-email a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.contact-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-svg svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 1.8;
  fill: none;
}

/* Right Cursive Script Motto */
.footer-tagline-script {
  font-family: var(--footer-font-script);
  font-size: 21px;
  color: #e5f5ed;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ==========================================================================
   TIER 3: Bottom Sub-Footer Bar
   ========================================================================== */
.footer-tier-copyright {
  background-color: var(--footer-cream-bg);
  border-top: 1px solid #e7e2d6;
  padding: 12px 0;
  font-size: 12.5px;
  color: #444444;
}

.footer-tier-copyright .footer-container {
  display: flex;
  align-items: center;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.footer-copyright-links a {
  color: #444444;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-copyright-links a:hover {
  color: var(--footer-dark-bg);
  text-decoration: underline;
}

.footer-copyright-links .sep {
  color: #999999;
  margin: 0 4px;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS (Elementor & Device Friendly)
   ========================================================================== */
@media (max-width: 1200px) {
  .footer-tier-stats .footer-container,
  .footer-tier-contact .footer-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .stats-items-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .footer-v-divider {
    display: none;
  }
  .stats-motto-block {
    flex: none;
    text-align: center;
    justify-content: center;
    margin-bottom: 8px;
  }
}

@media (max-width: 860px) {
  .footer-tier-contact .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .contact-item-location,
  .contact-item-phone,
  .contact-item-email {
    justify-content: center;
  }
  .footer-tier-copyright .footer-container {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .stats-items-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stat-single-item {
    justify-content: center;
  }
}
