/* ═══════════════════════════════════════════════════════════
   KNOW YOUR GUJARAT — "HOW IT WORKS" MASTER STYLESHEET
   Aesthetic: White + Deep Navy + Pale Blue + Saffron Accents
   Editorial Architectural Illustration & Civic Blueprint Style
   ═══════════════════════════════════════════════════════════ */

:root {
  --hiw-bg: #FFFFFF;
  --hiw-navy: #0A1C3E;
  --hiw-navy-deep: #061126;
  --hiw-blue-accent: #0A4FCD;
  --hiw-blue-bright: #2563EB;
  --hiw-blue-soft: #3B82F6;
  --hiw-blue-pale: #F0F6FE;
  --hiw-blue-line: #BFDBFE;
  --hiw-slate: #475569;
  --hiw-slate-light: #64748B;
  --hiw-slate-pale: #94A3B8;
  --hiw-border: #E2E8F0;
  --hiw-border-subtle: #F1F5F9;
  --hiw-orange: #FF7A00;
  --hiw-orange-deep: #EA580C;
  --hiw-max-w: 1240px;
}

/* Base Body Styles */
body.hiw-page {
  margin: 0;
  padding: 0;
  background-color: var(--hiw-bg);
  color: var(--hiw-slate);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  overflow-x: hidden;
}

.hiw-container {
  max-width: var(--hiw-max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Editorial Serif Headings */
.editorial-serif {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--hiw-navy);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 700;
}

.editorial-dot {
  color: var(--hiw-orange);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

/* Eyebrow Label with Rule */
.hiw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hiw-navy);
  margin-bottom: 20px;
}

.hiw-eyebrow-line {
  width: 44px;
  height: 1.5px;
  background-color: var(--hiw-blue-line);
  display: inline-block;
}

/* Handwritten script annotation */
.hiw-handwritten {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  line-height: 1.25;
  color: #2563EB;
  font-weight: 600;
  display: inline-block;
  transform: rotate(-3deg);
  letter-spacing: 0.01em;
  user-select: none;
}

/* Primary Navy Button */
.hiw-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--hiw-navy);
  color: #FFFFFF !important;
  padding: 13px 28px;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(10, 28, 62, 0.12);
}

.hiw-btn-primary:hover {
  background-color: var(--hiw-blue-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 79, 205, 0.25);
}

.hiw-btn-primary .arrow {
  transition: transform 0.2s ease;
  font-size: 16px;
  line-height: 1;
}

.hiw-btn-primary:hover .arrow {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   §1 HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hiw-hero {
  position: relative;
  padding: 110px 0 70px;
  background: #FFFFFF;
  overflow: hidden;
}

.hiw-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.22fr;
  gap: 48px;
  align-items: center;
}

.hiw-hero__left {
  max-width: 500px;
}

.hiw-hero__title {
  font-size: clamp(38px, 4.4vw, 56px);
  margin: 0 0 24px 0;
  color: var(--hiw-navy);
}

.hiw-hero__desc {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--hiw-slate);
  margin-bottom: 34px;
}

.hiw-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hero Right Artwork Stage */
.hiw-hero__right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hiw-hero__top-note {
  position: absolute;
  top: -24px;
  right: 18px;
  text-align: right;
  z-index: 2;
}

.hiw-hero__art-wrap {
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
}

.hiw-hero__art-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  filter: contrast(1.02);
}

/* Flow Labels under the hero graphic */
.hiw-hero__flow-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 82%;
  margin: 12px auto 0 auto;
  padding: 0 10px;
}

.hiw-hero__flow-step {
  text-align: center;
  max-width: 130px;
}

.hiw-hero__flow-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--hiw-blue-line);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px auto;
  color: var(--hiw-blue-accent);
  box-shadow: 0 2px 6px rgba(10, 79, 205, 0.06);
}

.hiw-hero__flow-text {
  font-size: 12px;
  color: var(--hiw-slate-light);
  line-height: 1.35;
  font-weight: 500;
}

.hiw-hero__map-whisper {
  position: absolute;
  right: 50px;
  bottom: 85px;
  font-size: 19px;
  color: #2563EB;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   §2 SECTION DIVIDERS & SIGNATURE CONNECTING LINE
   ═══════════════════════════════════════════════════════════ */
.hiw-connector-divider {
  width: 100%;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hiw-connector-line {
  width: 100%;
  max-width: var(--hiw-max-w);
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(191, 219, 254, 0) 0%, 
    rgba(191, 219, 254, 0.8) 20%, 
    rgba(10, 79, 205, 0.4) 50%, 
    rgba(191, 219, 254, 0.8) 80%, 
    rgba(191, 219, 254, 0) 100%
  );
  margin: 0 28px;
}

/* ═══════════════════════════════════════════════════════════
   §3 THE PROCESS SECTION
   ═══════════════════════════════════════════════════════════ */
.hiw-process {
  padding: 60px 0 80px;
  background: #FFFFFF;
}

.hiw-split-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 60px;
}

.hiw-section-title {
  font-size: clamp(32px, 3.2vw, 44px);
  margin: 0;
  color: var(--hiw-navy);
}

.hiw-section-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--hiw-slate);
  margin: 0;
  max-width: 520px;
}

/* 5-Step Horizontal Process Row */
.hiw-process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.hiw-step-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

.hiw-step-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--hiw-blue-line);
  background: #FFFFFF;
  color: var(--hiw-blue-accent);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 2px 6px rgba(10, 79, 205, 0.06);
  transition: all 0.25s ease;
}

.hiw-step-col:hover .hiw-step-badge {
  border-color: var(--hiw-orange);
  color: var(--hiw-orange-deep);
  transform: scale(1.08);
}

.hiw-step-icon {
  width: 44px;
  height: 44px;
  color: var(--hiw-navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.hiw-step-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--hiw-navy);
}

.hiw-step-col:hover .hiw-step-icon svg {
  stroke: var(--hiw-blue-accent);
  transform: translateY(-2px);
}

.hiw-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--hiw-navy);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.hiw-step-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--hiw-slate);
  margin: 0;
}

/* Connecting Arrow between steps (placed beside badges or icons) */
.hiw-step-arrow {
  position: absolute;
  top: 72px;
  right: -16px;
  color: var(--hiw-blue-line);
  display: flex;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}

.hiw-step-arrow svg {
  width: 22px;
  height: 14px;
  stroke: var(--hiw-blue-line);
  stroke-width: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   §4 WHAT YOU CAN CONTRIBUTE SECTION
   ═══════════════════════════════════════════════════════════ */
.hiw-categories {
  padding: 60px 0 80px;
  background: #FFFFFF;
  border-top: 1px solid var(--hiw-border);
}

.hiw-categories__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 50px;
  align-items: stretch;
}

.hiw-cat-item {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--hiw-border);
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.hiw-cat-item:first-child {
  border-left: 1px solid var(--hiw-border);
}

.hiw-cat-item:hover {
  background: var(--hiw-blue-pale);
  transform: translateY(-3px);
}

.hiw-cat-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hiw-navy);
}

.hiw-cat-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--hiw-navy);
  transition: all 0.25s ease;
}

.hiw-cat-item:hover .hiw-cat-icon svg {
  stroke: var(--hiw-blue-accent);
  transform: scale(1.1);
}

.hiw-cat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hiw-navy);
  line-height: 1.35;
}

/* The 7th Special Link Item */
.hiw-cat-item.special-more {
  justify-content: center;
}

.hiw-cat-item.special-more .hiw-cat-label {
  font-size: 13px;
  color: var(--hiw-slate);
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}

.hiw-cat-item.special-more .more-underline {
  display: block;
  width: 60px;
  height: 1.5px;
  background: var(--hiw-navy);
  margin: 8px auto 0 auto;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════
   §5 WHO CAN CONTRIBUTE / WHY IT MATTERS (2-COLUMN)
   ═══════════════════════════════════════════════════════════ */
.hiw-split {
  padding: 70px 0 80px;
  background: #FFFFFF;
  border-top: 1px solid var(--hiw-border);
}

.hiw-split__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 50px;
  align-items: start;
}

.hiw-split__divider {
  width: 1px;
  height: 100%;
  min-height: 200px;
  background-color: var(--hiw-border);
}

.hiw-split__col {
  padding: 0 10px;
}

.hiw-sub-title {
  font-size: clamp(30px, 3.2vw, 42px);
  margin: 0 0 20px 0;
  color: var(--hiw-navy);
}

.hiw-split__desc {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--hiw-slate);
  margin: 0;
  max-width: 500px;
}

/* ═══════════════════════════════════════════════════════════
   §6 FINAL CTA & PANORAMIC CIVIC LANDSCAPE
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   §6 FINAL CTA & PANORAMIC CIVIC LANDSCAPE
   ═══════════════════════════════════════════════════════════ */
.hiw-cta {
  position: relative;
  background: #FFFFFF;
  border-top: 1px solid var(--hiw-border);
  text-align: center;
  overflow: hidden;
  padding: 0;
}

.hiw-cta__stage {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 480px;
}

/* Panoramic Landscape Artwork across CTA bottom */
.hiw-cta__panorama-wrap {
  width: 100%;
  position: relative;
  z-index: 1;
  display: block;
  line-height: 0;
  pointer-events: none;
  aspect-ratio: 1376 / 768;
}

.hiw-cta__panorama-img {
  width: 100%;
  max-width: 1400px;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* Foreground Floating Content inside the Panorama Sky */
.hiw-cta__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: 45px;
  text-align: center;
  z-index: 10;
  pointer-events: auto;
}

.hiw-cta__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.hiw-cta__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 12px;
}

.hiw-cta__title {
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 0 0 10px 0;
  color: var(--hiw-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 900px) {
  .hiw-cta__title {
    white-space: nowrap;
  }
}

.hiw-cta__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--hiw-slate);
  margin: 0 0 22px 0;
}

.hiw-cta__action {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Cursive handwritten annotation in the right sky above skyline */
.hiw-cta__hand-note {
  position: absolute;
  top: 30px;
  right: clamp(24px, 8vw, 130px);
  text-align: left;
  z-index: 12;
  pointer-events: none;
}

.hiw-handwritten-cta {
  font-family: 'Caveat', cursive;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.18;
  color: #2563EB;
  font-weight: 600;
  display: inline-block;
  transform: rotate(-10deg);
  letter-spacing: 0.01em;
  user-select: none;
}

.hiw-cta__hand-underline {
  display: block;
  width: 48px;
  height: 1.5px;
  background-color: #93C5FD;
  margin-top: 4px;
  border-radius: 1px;
  transform: rotate(-4deg);
}

/* ═══════════════════════════════════════════════════════════
   §7 RESPONSIVE BREAKPOINTS (320px, 375px, 768px, 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hiw-process__steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }
  .hiw-step-arrow {
    display: none;
  }
  .hiw-categories__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hiw-cat-item:nth-child(4) {
    border-right: none;
  }
  .hiw-cat-item:nth-child(5) {
    border-left: 1px solid var(--hiw-border);
    border-top: 1px solid var(--hiw-border);
  }
  .hiw-cat-item:nth-child(6), .hiw-cat-item:nth-child(7) {
    border-top: 1px solid var(--hiw-border);
  }
}

@media (max-width: 900px) {
  .hiw-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hiw-hero__left {
    max-width: 100%;
    margin: 0 auto;
  }
  .hiw-hero__actions {
    justify-content: center;
  }
  .hiw-hero__top-note {
    position: static;
    margin-bottom: 12px;
    text-align: center;
  }
  .hiw-hero__map-whisper {
    display: none;
  }
  .hiw-split-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hiw-split__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hiw-split__divider {
    display: none;
  }
  .hiw-cta__hand-note {
    right: 20px;
    top: 20px;
  }
}

@media (max-width: 768px) {
  .hiw-hero {
    padding: 90px 0 50px;
  }
  .hiw-hero__flow-labels {
    width: 100%;
  }
  .hiw-process__steps {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .hiw-step-col {
    padding: 20px;
    background: var(--hiw-blue-pale);
    border-radius: 12px;
    border: 1px solid var(--hiw-blue-line);
  }
  .hiw-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hiw-cat-item {
    border: 1px solid var(--hiw-border) !important;
    border-radius: 8px;
    margin: 4px;
  }
  .hiw-container {
    padding: 0 20px;
  }
  .hiw-cta__stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .hiw-cta__content {
    position: relative;
    padding-top: 50px;
    padding-bottom: 24px;
  }
  .hiw-cta__hand-note {
    position: static;
    margin-top: 18px;
    display: block;
    text-align: center;
  }
  .hiw-handwritten-cta {
    transform: rotate(-4deg);
    font-size: 24px;
  }
  .hiw-cta__panorama-wrap {
    margin-top: -15px;
  }
}

@media (max-width: 480px) {
  .hiw-hero__title {
    font-size: 32px;
  }
  .hiw-section-title, .hiw-sub-title, .hiw-cta__title {
    font-size: 26px;
  }
  .hiw-categories__grid {
    grid-template-columns: 1fr;
  }
  .hiw-hero__flow-labels {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .hiw-hero__flow-step {
    max-width: 100%;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
