/* =========================================================
   ASIFA Proposal — asifa.chptrs.tech
   Editorial proposal aesthetic. Typography-driven. Restrained.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,600&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* --- Tokens --- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F6F5F1;
  --color-bg-dark: #161616;
  --color-text: #1B1B1B;
  --color-text-muted: #727268;
  --color-accent: #2E3338;
  --color-accent-hover: #181C1F;
  --color-border: #DEDCD6;
  --color-highlight: #2C6E3F;
  --color-highlight-bg: #EDF6F0;
  --font-heading: 'Fraunces', 'Georgia', serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --measure: 820px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--color-text);
  background: var(--color-bg);
}

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

/* --- Utility --- */
.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-bg-dark);
  color: #E8E7E3;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  color: var(--color-text);
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.28;
  margin-bottom: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.35rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* --- Links --- */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* --- Lists --- */
ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1.35rem;
}

li + li {
  margin-top: 0.45rem;
}

ol li {
  padding-left: 0.2rem;
}

/* --- Dividers --- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  max-width: 72px;
  margin: 2.5rem 0;
}

.divider--wide {
  max-width: 100%;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
}

.hero__wordmark {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 3.5rem;
}

.hero__wordmark-x {
  display: inline-block;
  margin: 0 0.35em;
  font-weight: 300;
  opacity: 0.4;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  max-width: 720px;
  margin-bottom: 0.6rem;
}

.hero__headline-secondary {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hero__subhead {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 560px;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--color-border);
  border-bottom: 1.5px solid var(--color-border);
  transform: translateX(-50%) rotate(45deg);
  animation: scroll-hint 2.4s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes scroll-hint {
  0%, 100% { bottom: 2.5rem; opacity: 0.35; }
  50% { bottom: 2rem; opacity: 0.7; }
}

/* =========================================================
   CASE FOR CHANGE
   ========================================================= */
.case-headline {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.35;
  max-width: 700px;
}

.case-headline em {
  font-style: italic;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 640px;
}

.problem-block {
  margin-top: 3rem;
}

.problem-block h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sub-problem {
  margin-top: 2rem;
}

.sub-problem h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

/* --- Callout --- */
.callout {
  border-left: 3px solid var(--color-highlight);
  background: var(--color-highlight-bg);
  padding: 1.25rem 1.5rem;
  border-radius: 0 5px 5px 0;
  margin: 1.5rem 0;
  font-size: 1rem;
  line-height: 1.65;
}

.callout p {
  margin-bottom: 0;
}

/* --- Expandable --- */
details {
  margin-top: 3rem;
}

details summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

details summary:hover {
  color: var(--color-text);
}

details summary::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

details[open] summary::before {
  transform: rotate(45deg);
}

details summary::-webkit-details-marker {
  display: none;
}

details .details-content {
  padding: 1.5rem 0 0.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =========================================================
   WHO WE ARE
   ========================================================= */
.bio-block {
  margin-bottom: 3.5rem;
}

.bio-block:last-of-type {
  margin-bottom: 0;
}

.bio-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.bio-role {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.bio-block .stat {
  font-weight: 600;
  color: var(--color-accent);
}

/* --- Closing line --- */
.closing-line {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 400;
  text-align: center;
  color: var(--color-text-muted);
  margin-top: 4rem;
  line-height: 1.55;
}

.closing-line strong {
  color: var(--color-text);
  font-weight: 600;
  font-style: italic;
}

/* =========================================================
   WHAT WE'LL DO — TIMELINE
   ========================================================= */
.phase-block {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 3rem;
  border-left: 2px solid var(--color-border);
}

.phase-block:last-of-type {
  border-left-color: transparent;
  padding-bottom: 0;
}

.phase-block::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: 2px solid var(--color-bg);
  outline: 2px solid var(--color-border);
}

.phase-block h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.phase-block p.phase-emphasis {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

.phase-block ul {
  margin-top: 0.75rem;
}

/* =========================================================
   THE ASK — FINANCIALS
   ========================================================= */
.financials {
  margin: 3rem 0;
  text-align: center;
}

.financials-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.financial-item {
  text-align: center;
}

.financial-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.financial-value {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-muted);
}

.financial-value--current {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--color-border);
  color: var(--color-text-muted);
  opacity: 0.7;
}

.financial-value--proposed {
  color: var(--color-highlight);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}

.financial-savings {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-highlight);
  margin-top: 0.5rem;
}

.financial-savings span {
  font-weight: 400;
  opacity: 0.8;
}

.reasons {
  max-width: 620px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.reasons ol {
  padding-left: 1.25rem;
}

.reasons li + li {
  margin-top: 0.65rem;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: var(--color-bg-dark);
  color: #E8E7E3;
}

.cta h2 {
  color: #FFFFFF;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
}

.cta-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  padding: 0.85rem 2.5rem;
  transition: background 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.01em;
}

.cta-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  text-decoration: none;
  color: #FFFFFF;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--color-bg-dark);
  color: #706F6A;
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  font-size: 0.8125rem;
  border-top: 1px solid #2A2A2A;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: 85vh;
    padding: 2.5rem 1.25rem;
  }

  .hero__wordmark {
    margin-bottom: 2.5rem;
  }

  .financials-row {
    gap: 2rem;
  }

  .phase-block {
    padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
  }

  .financials-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .container {
    padding: 0 1.25rem;
  }
}
