/* AWHO — Official Portal
   Light-green on white theme, mobile-first, accessible. */

:root {
  --green-900: #0E5E3A;
  --green-800: #14733F;
  --green-700: #1B8A4A;
  --green-500: #2E8B57;
  --green-200: #CDEBD6;
  --green-100: #E3F3E8;
  --green-050: #F1F8F3;

  --ink-900:   #1C2A22;
  --ink-700:   #3A4A41;
  --ink-500:   #5A6B61;
  --ink-300:   #8A9A90;
  --line:      #DDE6DF;

  --white:     #FFFFFF;
  --bg:        #FFFFFF;

  --radius:    10px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(14, 94, 58, 0.06);
  --shadow-md: 0 6px 18px rgba(14, 94, 58, 0.08);

  --maxw:      1200px;
  --gap:       1.25rem;

  --font-ui:   "Segoe UI", Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --font-hi:   "Nirmala UI", "Mangal", "Noto Sans Devanagari", var(--font-ui);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--green-800);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--green-900); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--maxw);
  padding: 0 1.25rem;
  margin: 0 auto;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-900);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ==== Header ==== */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topstripe {
  height: 8px;
  background: linear-gradient(to right, var(--green-700), var(--green-900));
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
}
.brand img {
  width: 72px;
  height: auto;
  flex: 0 0 auto;
}
.brand-text { line-height: 1.2; }
.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: .2px;
}
.brand-hindi {
  font-family: var(--font-hi);
  font-size: .95rem;
  color: var(--ink-700);
  margin-top: 2px;
}
.brand-ministry {
  font-size: .72rem;
  color: var(--ink-500);
  margin-top: 4px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
}
.header-right {
  text-align: right;
  font-size: .78rem;
  color: var(--ink-700);
  flex: 0 0 auto;
  border-left: 3px solid var(--green-700);
  padding-left: 1rem;
  line-height: 1.35;
}
.portal-line-1 {
  font-weight: 700;
  color: var(--ink-900);
  font-size: .9rem;
  letter-spacing: .3px;
}
.portal-line-2 { color: var(--ink-500); margin-top: 2px; }

/* ==== Hero photo carousel ==== */

.hero {
  position: relative;
  width: 100%;
  height: clamp(420px, 62vh, 620px);
  overflow: hidden;
  background: #0B2A1A;
  isolation: isolate;
}

.hero-track,
.hero-track .slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-track .slide {
  opacity: 0;
  transition: opacity 1400ms ease-in-out, transform 8000ms ease-out;
  transform: scale(1.02);
  z-index: 1;
  margin: 0;
}
.hero-track .slide.is-active {
  opacity: 1;
  transform: scale(1.07);           /* subtle Ken Burns */
  transition: opacity 1400ms ease-in-out, transform 8000ms ease-out;
}
.hero-track .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

/* Dark gradient overlay — heavier on the left so headline reads cleanly */
.hero-overlay {
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(5, 28, 18, 0.88) 0%,
      rgba(5, 28, 18, 0.70) 30%,
      rgba(5, 28, 18, 0.45) 55%,
      rgba(5, 28, 18, 0.25) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0)   25%,
      rgba(0, 0, 0, 0)   70%,
      rgba(0, 0, 0, 0.35) 100%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-content .container {
  max-width: var(--maxw);
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #E6A23C;                      /* warm amber accent */
  color: #2A1C00;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .45rem .9rem;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.hero-star { font-size: .9rem; line-height: 1; color: #2A1C00; }

.hero-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
  max-width: 760px;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(.98rem, 1.2vw, 1.1rem);
  line-height: 1.55;
  max-width: 620px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, width .2s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.45); }
.hero-dot.is-active {
  background: #fff;
  width: 28px;
  border-radius: 6px;
}

/* ==== Upgrade notice strip ==== */

.notice-strip {
  background: #FFF8E6;
  border-top: 1px solid #F2E4B5;
  border-bottom: 1px solid #F2E4B5;
  color: #5C4A12;
}
.notice-strip-inner {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.25rem;
}
.notice-strip svg { color: #B08717; flex: 0 0 auto; }
.notice-strip p { margin: 0; font-size: .95rem; line-height: 1.5; }
.notice-strip a { color: var(--green-800); font-weight: 600; }

/* ==== About ==== */

.about { padding: 2rem 0 3.5rem; }
.about h2 {
  color: var(--green-900);
  font-size: 1.35rem;
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green-200);
  display: inline-block;
}
.about p { color: var(--ink-700); max-width: 75ch; }

/* ==== Buttons ==== */

.btn {
  display: inline-block;
  padding: .7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, transform .08s ease;
  cursor: pointer;
  font-size: .95rem;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green-800);
  color: #fff;
  border-color: var(--green-800);
}
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-outline:hover { background: var(--green-050); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.85);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.95);
  color: var(--green-900);
  border-color: #fff;
}

.btn-lg {
  padding: .85rem 1.6rem;
  font-size: 1rem;
  border-radius: 4px;
  letter-spacing: .2px;
}

/* ==== Footer ==== */

.site-footer {
  background: var(--green-900);
  color: #E8F3EC;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.25rem;
  font-size: .9rem;
  line-height: 1.5;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--green-200); }
.footer-links { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

/* ==== Contact Page ==== */

.page-hero {
  background: var(--green-050);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0 1.75rem;
}
.crumbs {
  font-size: .82rem;
  color: var(--ink-500);
  margin-bottom: .4rem;
}
.crumbs a { color: var(--green-800); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 {
  margin: 0 0 .25rem;
  color: var(--green-900);
  font-size: 1.8rem;
}
.page-hero .lead { margin: 0; color: var(--ink-700); }

.contact-top { padding: 1.5rem 0 0; }
.contact-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-700);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.tile-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-500);
  font-weight: 700;
  margin-bottom: .4rem;
}
.tile-values {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1.05rem;
  color: var(--ink-900);
}
.tile-values a { color: var(--green-800); text-decoration: none; font-weight: 600; }
.tile-values a:hover { text-decoration: underline; }
.muted { color: var(--ink-500); font-size: .85rem; }

.sections { padding: 2.25rem 0 3.5rem; }
.sections h2 {
  color: var(--green-900);
  font-size: 1.35rem;
  margin: 0 0 .25rem;
}

.sec-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.sec-grid--single {
  grid-template-columns: minmax(0, 560px);
  justify-content: start;
}
.sec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sec-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}
.sec-card h3 {
  margin: 0 0 .6rem;
  color: var(--green-900);
  font-size: 1.1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--green-100);
}
.sec-meta {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: .3rem;
  column-gap: .8rem;
  margin: 0 0 .75rem;
  font-size: .92rem;
}
.sec-meta dt {
  color: var(--ink-500);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding-top: 3px;
}
.sec-meta dd { margin: 0; color: var(--ink-900); }
.sec-meta a { color: var(--green-800); text-decoration: none; }
.sec-meta a:hover { text-decoration: underline; }

.sec-queries {
  background: var(--green-050);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem .7rem 1rem;
}
.sec-queries-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--green-800);
  margin-bottom: .35rem;
}
.sec-queries ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-700);
  font-size: .9rem;
}
.sec-queries li { margin: .15rem 0; }

.note {
  margin-top: 1.5rem;
  padding: .8rem 1rem;
  background: #FFF8E6;
  border: 1px solid #F2E4B5;
  border-left: 4px solid #E0B94A;
  border-radius: var(--radius-sm);
  color: #5C4A12;
  font-size: .9rem;
}
.back { margin-top: 1.5rem; }

/* ==== Responsive ==== */

@media (max-width: 900px) {
  .contact-top-grid { grid-template-columns: 1fr 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .brand-title { font-size: 1.15rem; }

  .hero { height: clamp(420px, 60vh, 560px); }
  /* On narrower screens, darken the whole overlay so text reads over busy images */
  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(5, 28, 18, 0.82) 0%,
        rgba(5, 28, 18, 0.60) 60%,
        rgba(5, 28, 18, 0.45) 100%
      ),
      linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0) 30%, rgba(0,0,0,0.45));
  }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: .75rem; }
  .brand img { width: 56px; }
  .brand-title { font-size: 1rem; }
  .brand-hindi { font-size: .85rem; }
  .brand-ministry { font-size: .62rem; letter-spacing: .8px; }
  .header-right {
    flex: 1 1 100%;
    border-left: none;
    border-top: 1px solid var(--line);
    padding: .6rem 0 0;
    text-align: left;
    display: flex;
    gap: .5rem;
    align-items: baseline;
  }
  .portal-line-2 br { display: none; }
  .portal-line-2 { margin-top: 0; }

  .hero { height: clamp(440px, 72vh, 560px); }
  .hero-title { font-size: clamp(1.7rem, 7.5vw, 2.3rem); }
  .hero-lead  { font-size: .95rem; }
  .hero-ctas .btn { flex: 1 1 auto; text-align: center; }
  .hero-dots { bottom: 14px; }

  .notice-strip-inner { align-items: flex-start; }
  .notice-strip p { font-size: .88rem; }

  .contact-top-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.5rem; }
  .sec-meta { grid-template-columns: 1fr; row-gap: .1rem; }
  .sec-meta dt { padding-top: .4rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hero-track .slide.is-active { transform: none; }
}

/* ==== Print ==== */

@media print {
  .site-header, .site-footer, .hero, .notice-strip, .back { display: none; }
  body { color: #000; }
  .sec-card { break-inside: avoid; border: 1px solid #999; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
