/*
Theme Name: AVIO Smart Market Stack
Theme URI: https://aviosmartmarket.com
Author: AVIO Smart Market Stack Limited
Author URI: https://aviosmartmarket.com
Description: Official WordPress theme for AVIO Smart Market Stack Limited — powering India's rural transformation through financial inclusion, agritech, and health-tech.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
License URI: https://aviosmartmarket.com
Text Domain: avio-theme
Tags: business, custom-menu, full-width-template, responsive-layout
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; -webkit-font-smoothing: antialiased; }
body { font-family: 'Hanken Grotesk', Helvetica, sans-serif; background: #fff; color: #314035; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── TOKENS ── */
:root {
  --green:        #1a7635;
  --green-dark:   #155c2a;
  --green-mid:    #1a2e1f;
  --green-light:  #7ed99a;
  --green-bg:     #e8f5ec;
  --green-bright: #22b24c;
  --text-body:    #4a5e4f;
  --text-dark:    #314035;
  --divider:      #e2e8e4;
  --nav-bg:       #383531;
  --section-bg:   #f2f5eb;
  --card-bg:      #f6f6f6;
  --radius:       5px;
  --radius-lg:    10px;
  --px-desktop:   130px;
  --px-tablet:    32px;
  --px-mobile:    16px;
}

/* ── LAYOUT HELPERS ── */
.avio-container {
  width: 100%;
  padding-left: var(--px-desktop);
  padding-right: var(--px-desktop);
}
@media (max-width: 1024px) {
  .avio-container { padding-left: var(--px-tablet); padding-right: var(--px-tablet); }
}
@media (max-width: 640px) {
  .avio-container { padding-left: var(--px-mobile); padding-right: var(--px-mobile); }
}

/* ════════════════════════════════════════
   TOP NAV
════════════════════════════════════════ */
#top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 83px;
}
.nav-logo { width: 167px; height: auto; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 50px;
}
.nav-links a {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.36px;
  color: #393939;
  white-space: nowrap;
  transition: color .2s;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.32px;
  white-space: nowrap;
  transition: background .2s;
}
.nav-cta:hover { background: var(--green-dark); }
.nav-cta img { width: 12px; height: 12px; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #393939;
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-weight: 500;
  font-size: 16px;
  color: #393939;
  padding: 4px 0;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--green); }
.mobile-menu .nav-cta { justify-content: center; margin-top: 8px; }

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
  width: 100%;
  min-height: 695px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://c.animaapp.com/YULGIiNX/img/hero-banner-container.png') center/cover no-repeat;
  padding: 64px 16px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  max-width: 862px;
  width: 100%;
  padding: 0 50px;
}
.hero-inner h1 {
  font-weight: 700;
  font-size: 45px;
  color: var(--text-dark);
  line-height: 50px;
  letter-spacing: 0;
}
.hero-inner p {
  font-weight: 300;
  font-size: 20px;
  color: #000;
  line-height: 1.7;
  max-width: 700px;
}
.hero-btns {
  display: flex;
  align-items: center;
  gap: 35px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.36px;
  white-space: nowrap;
  transition: background .2s;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary img { width: 12px; height: 12px; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #2c4834;
  border: 1.5px solid #2c4834;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.36px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: #2c4834; color: #fff; }

@media (max-width: 1024px) {
  #hero { min-height: 420px; }
  .hero-inner h1 { font-size: 32px; line-height: 1.2; }
  .hero-inner p { font-size: 16px; }
  .hero-inner { padding: 0 32px; }
}
@media (max-width: 640px) {
  #hero { min-height: 340px; padding: 48px 16px; }
  .hero-inner h1 { font-size: 26px; }
  .hero-inner p { font-size: 14px; }
  .hero-inner { padding: 0 16px; gap: 24px; }
  .hero-btns { flex-direction: column; gap: 12px; width: 100%; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════
   VALUE PROPOSITION (Stats)
════════════════════════════════════════ */
#value-prop {
  background: var(--section-bg);
  padding: 64px 0;
}
.vp-top {
  display: flex;
  align-items: center;
  gap: 220px;
  margin-bottom: 40px;
}
.vp-top img {  max-width: 100%; height: auto; border-radius: var(--radius-lg); aspect-ratio: 1.35; object-fit: cover; flex-shrink: 0; }
.vp-text { display: flex; flex-direction: column; gap: 32px; max-width: 822px; }
.vp-text p { font-weight: 600; font-size: 30px; color: var(--text-dark); line-height: 1.4; }
.vp-text .btn-primary { font-size: 16px; padding: 12px 24px; width: fit-content; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 150px;
  display: flex;
  align-items: flex-end;
}
.stat-card .stat-bg {
  position: absolute;
  top: 0; right: 0;
  height: 100%; width: 112px;
  object-fit: cover;
  opacity: .8;
  pointer-events: none;
}
.stat-info { position: relative; z-index: 1; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-weight: 400; font-size: 15px; color: var(--text-dark); line-height: 1.4; }
.stat-value { font-weight: 700; font-size: 40px; color: var(--green-bright); line-height: 1; }

@media (max-width: 1024px) {
  .vp-top { flex-direction: column; gap: 32px; }
  .vp-top img { width: 100%; aspect-ratio: 1.35; }
  .vp-text p { font-size: 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  #value-prop { padding: 40px 0; }
  .vp-text p { font-size: 18px; }
  .stat-value { font-size: 32px; }
  .stat-card { height: 130px; }
}

/* ════════════════════════════════════════
   IMPACT METRICS (Financial Inclusion)
════════════════════════════════════════ */
#impact {
  background: #fff;
  padding: 97px 0;
}
.impact-inner {
  display: flex;
  align-items: flex-start;
  gap: 100px;
}
.sectors-list {
  display: flex;
  flex-direction: column;
  width: 600px;
  flex-shrink: 0;
}
.sector-divider { width: 100%; height: 1px; background: var(--divider); }
.sector-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0;
}
.sector-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sector-title-row h3 {
  font-weight: 600;
  font-size: 26px;
  color: var(--green-mid);
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.sector-title-row img { width: 16px; height: 12px; opacity: .7; flex-shrink: 0; }
.sector-item p { font-weight: 400; font-size: 15px; color: var(--text-body); line-height: 1.75; }
.impact-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}
.impact-images img:first-child { grid-row: span 2; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.impact-images img:not(:first-child) { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-lg); }

@media (max-width: 1200px) {
  .sectors-list { width: 100%; }
  .sector-title-row h3 { font-size: 22px; }
}
@media (max-width: 1024px) {
  #impact { padding: 60px 0; }
  .impact-inner { flex-direction: column; gap: 40px; }
  .sectors-list { width: 100%; }
}
@media (max-width: 640px) {
  #impact { padding: 40px 0; }
  .sector-title-row h3 { font-size: 20px; }
  .impact-images { grid-template-columns: 1fr; }
  .impact-images img:first-child { grid-row: span 1; height: 200px; }
}

/* ════════════════════════════════════════
   PROGRAM HIGHLIGHTS (Who We Are + Vision/Mission)
════════════════════════════════════════ */
#program {
  background: var(--green);
}
.program-inner {
  display: flex;
  align-items: stretch;
}
.rural-images {
  display: flex;
  overflow: hidden;
  width: 50%;
  flex-shrink: 0;
  max-height: 760px;
}
.rural-images img { flex: 1; width: 0; height: 100%; object-fit: cover; }
.program-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 64px 80px 64px 72px;
  width: 100%;
}
.who-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-light);
}
.who-heading {
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 16px 0 0;
}
.who-rule {
  width: 40px;
  height: 3px;
  background: var(--green-light);
  border-radius: 2px;
  margin: 12px 0;
}
.who-body {
  font-weight: 400;
  font-size: 15px;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  margin-bottom: 4px;
}
.vm-block { display: flex; flex-direction: column; gap: 16px; }
.vm-tabs {
  display: flex;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.vm-tab {
  padding: 10px 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: rgba(255,255,255,.7);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: 'Hanken Grotesk', Helvetica, sans-serif;
  outline: none;
}
.vm-tab:hover { color: #fff; background: rgba(255,255,255,.1); }
.vm-tab.active { background: #fff; color: var(--green); }
.vm-tab:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: -2px; }
.vm-panel {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.85);
  line-height: 1.8;
  transition: opacity .25s;
}
.vm-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.2);
  margin-top: 8px;
}
@media (max-width: 1024px) {
  .program-inner { flex-direction: column; }
  .rural-images { width: 100%; max-height: 320px; }
  .program-content { padding: 40px 32px; gap: 32px; }
  .who-heading { font-size: 28px; }
  .vm-tabs { width: 100%; }
  .vm-tab { flex: 1; text-align: center; padding: 10px 16px; }
}
@media (max-width: 640px) {
  .rural-images { max-height: 220px; }
  .program-content { padding: 32px 16px; }
  .who-heading { font-size: 24px; }
  .who-label { font-size: 10px; }
  .vm-tab { font-size: 14px; }
  .vm-panel { font-size: 14px; }
}

/* ════════════════════════════════════════
   ABOUT / HEALTH-TECH
════════════════════════════════════════ */
#about {
  background: #fff;
  padding: 100px 0;
}
.about-top {
  display: flex;
  align-items: center;
  gap: 160px;
  margin-bottom: 101px;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 680px;
  flex-shrink: 0;
}
.about-text h2 {
  font-weight: 600;
  font-size: 40px;
  color: var(--text-dark);
  letter-spacing: -0.8px;
  line-height: 1.2;
  max-width: 580px;
}
.about-text p {
  font-weight: 300;
  font-size: 20px;
  color: var(--text-dark);
  line-height: 1.7;
}
.about-top > img { width: 100%; max-width: 819px; height: auto; aspect-ratio: 1.69; object-fit: cover; border-radius: var(--radius-lg); }
.about-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
}
.about-bottom > img { width: 49%; max-height: 556px; object-fit: cover; border-radius: var(--radius-lg); flex-shrink: 0; }
.healthtech-card {
  width: 49%;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: stretch;
}
.ht-badge {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  background: var(--green-bg);
  padding: 4px 12px;
  border-radius: 999px;
}
.ht-heading {
  font-weight: 700;
  font-size: 32px;
  color: var(--green-mid);
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.ht-rule { width: 48px; height: 3px; background: var(--green); border-radius: 2px; }
.ht-body {
  font-weight: 400;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
}
.ht-body strong { font-weight: 600; color: var(--green-mid); }

@media (max-width: 1200px) {
  .about-top { gap: 64px; }
  .about-text { width: 100%; }
  .about-text h2 { font-size: 32px; }
  .about-text p { font-size: 17px; }
}
@media (max-width: 1024px) {
  #about { padding: 60px 0; }
  .about-top { flex-direction: column; gap: 32px; margin-bottom: 48px; }
  .about-text h2 { font-size: 28px; }
  .about-bottom { flex-direction: column; }
  .about-bottom > img { width: 100%; max-height: 360px; }
  .healthtech-card { width: 100%; padding: 32px; }
}
@media (max-width: 640px) {
  #about { padding: 40px 0; }
  .about-text h2 { font-size: 24px; }
  .about-text p { font-size: 15px; }
  .ht-heading { font-size: 26px; }
  .healthtech-card { padding: 24px; }
}

/* ════════════════════════════════════════
   PARTNER CALLOUT
════════════════════════════════════════ */
#partner {
  background: url('https://c.animaapp.com/YULGIiNX/img/banner-image.png') center/cover no-repeat;
  padding: 72px 0;
}
.partner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  max-width: 590px;
  margin: 0 auto;
}
.partner-inner h2 {
  font-weight: 600;
  font-size: 40px;
  color: var(--text-dark);
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.partner-inner p {
  font-weight: 400;
  font-size: 25px;
  color: var(--text-dark);
  line-height: 1.6;
  letter-spacing: -0.5px;
}
@media (max-width: 1024px) {
  #partner { padding: 56px 0; }
  .partner-inner h2 { font-size: 30px; }
  .partner-inner p { font-size: 18px; }
}
@media (max-width: 640px) {
  #partner { padding: 40px 0; }
  .partner-inner h2 { font-size: 24px; }
  .partner-inner p { font-size: 16px; }
  .partner-inner .btn-primary { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
#footer {
  background: var(--nav-bg);
  padding: 55px 0 27px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 47px;
}
.footer-logo { width: 204px; height: auto; object-fit: contain; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 50px;
}
.footer-nav a {
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.36px;
  white-space: nowrap;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--green-bright); }
.footer-social { width: 178px; height: auto; }
.footer-divider { width: 100%; max-width: 1660px; height: 1px; background: rgba(255,255,255,.2); }
.footer-bottom {
  width: 100%;
  max-width: 1666px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.3px;
  padding: 0 130px;
}
@media (max-width: 1024px) {
  .footer-bottom { padding: 0 32px; }
  .footer-nav a { font-size: 15px; }
}
@media (max-width: 640px) {
  #footer { padding: 40px 0 20px; gap: 32px; }
  .footer-logo { width: 150px; }
  .footer-nav { gap: 10px 24px; }
  .footer-nav a { font-size: 14px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 0 16px; font-size: 12px; }
}

/* ════════════════════════════════════════
   PAGE OFFSET + REVEAL ANIMATIONS
════════════════════════════════════════ */
#page-wrap { display: flex; flex-direction: column; min-height: 100vh; padding-top: 83px; }
main.site-main { flex: 1; display: flex; flex-direction: column; }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-children > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(n+5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
