/*
Theme Name: Transform Asia Editorial
Theme URI: https://transformasia.org
Author: Transform Asia
Description: Editorial WordPress theme for a regional labor, gender justice, and policy institute.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: transform-asia
*/

:root {
  --ivory: #f7f5ef;
  --paper: #ffffff;
  --blue: #12658a;
  --blue-dark: #0d4e6b;
  --green: #314f3b;
  --green-light: #ecf5f0;
  --brown: #75503c;
  --brown-light: #fbf6f3;
  --ink: #24313a;
  --muted: #5d6a70;
  --line: #e2dfd7;
  --shadow: 0 4px 16px -2px rgba(36, 49, 58, .06), 0 1px 3px rgba(36, 49, 58, .04);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Public Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(100% - 3rem, 1088px); margin-inline: auto; }
.wide-container { width: min(100% - 3rem, 1344px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand .custom-logo-link { display: inline-flex; align-items: center; }
.brand .custom-logo { width: auto; max-width: 180px; max-height: 52px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 50%; font: 600 1.25rem var(--serif); }
.brand-name { font: 600 1.18rem var(--serif); letter-spacing: .01em; }
.brand-tagline { display: block; color: var(--muted); font: 700 .63rem var(--sans); letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.main-nav ul { display: flex; align-items: center; gap: 1.35rem; list-style: none; padding: 0; margin: 0; }
.main-nav a { color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--blue); }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; padding: .55rem .75rem; color: var(--ink); }

.hero { background: var(--blue); color: white; padding: 6.25rem 0 5.75rem; position: relative; overflow: hidden; }
.hero:after { content: ""; position: absolute; width: 32rem; height: 32rem; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; right: -10rem; bottom: -18rem; }
.hero .container { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 1rem; font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: #b9e4f7; }
.hero h1 { max-width: 800px; margin: 0 0 1.25rem; font: 400 clamp(2.6rem, 6vw, 4.65rem)/1.08 var(--serif); letter-spacing: -.025em; }
.hero p { max-width: 650px; margin: 0 0 2rem; color: #e4f4fb; font-size: 1.12rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: 4px; padding: .65rem 1.15rem; font-size: .82rem; font-weight: 700; text-decoration: none; transition: .2s ease; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: #243b2d; color: white; }
.button-light { background: white; color: var(--blue-dark); }
.button-light:hover { background: #eaf5ff; color: var(--blue-dark); }
.button-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.button-outline:hover { background: var(--blue); color: white; }

.section { padding: 4.5rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; }
.section-header h2 { margin: 0; font: 500 2.25rem/1.2 var(--serif); }
.section-header p { max-width: 560px; margin: .5rem 0 0; color: var(--muted); }
.section-header .eyebrow { color: var(--green); margin-bottom: .45rem; }
.page-title { margin: .25rem 0 1rem; font: 500 clamp(2.4rem, 5vw, 4rem)/1.1 var(--serif); }
.lead { max-width: 680px; color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.content-narrow { max-width: 760px; }
.content-narrow > img { margin: 1.5rem 0 2rem; }
.content-narrow h2, .content-narrow h3 { font-family: var(--serif); }
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brown); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.ta-contact-form { background: var(--paper); border: 1px solid var(--line); padding: 1.5rem; }
.ta-contact-form label { display: block; color: var(--ink); font-weight: 700; font-size: .85rem; }
.ta-contact-form input, .ta-contact-form select, .ta-contact-form textarea { display: block; width: 100%; margin-top: .4rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: .7rem .8rem; font: inherit; color: var(--ink); }
.ta-contact-form input:focus, .ta-contact-form select:focus, .ta-contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.ta-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.program-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; border-block: 1px solid var(--line); padding: 1rem 0; }
.program-meta p { margin: 0; color: var(--muted); font-size: .9rem; }
.program-meta strong { color: var(--ink); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 1.5rem 1.25rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-number { display: block; color: var(--blue); font: 500 2.35rem var(--serif); }
.stat-label { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: var(--paper); border: 1px solid var(--line); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin: .45rem 0 .55rem; font: 500 1.45rem/1.25 var(--serif); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.card p { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.card .eyebrow { margin: 0; color: var(--brown); }
.meta { color: var(--muted); font-size: .75rem; }
.feature-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.feature-copy h2 { margin: .4rem 0 1rem; font: 500 clamp(2rem, 4vw, 3.1rem)/1.15 var(--serif); }
.feature-copy p { color: var(--muted); }
.feature-panel { background: var(--green); color: white; padding: 2.5rem; min-height: 290px; display: flex; flex-direction: column; justify-content: end; }
.feature-panel .eyebrow { color: #c8ebd0; }
.feature-panel h3 { margin: .5rem 0 0; font: 400 2rem/1.15 var(--serif); }
.quote { margin: 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--brown); background: var(--brown-light); font: italic 1.5rem/1.35 var(--serif); }
.quote cite { display: block; margin-top: .75rem; color: var(--muted); font: 700 .72rem var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.cta-band { background: var(--green); color: white; padding: 3.25rem 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { margin: 0; font: 500 2.15rem var(--serif); }
.cta-band p { max-width: 580px; margin: .4rem 0 0; color: #d9eee0; }
.site-footer { background: var(--ink); color: #d6e4e9; padding: 3.5rem 0 1.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2, .site-footer h3 { color: white; font-family: var(--serif); }
.site-footer h2 { margin: 0 0 .65rem; font-size: 1.7rem; }
.site-footer h3 { margin: 0 0 .65rem; font-size: 1.05rem; }
.site-footer p { color: #b6c6cc; font-size: .88rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .4rem 0; }
.site-footer a { color: #d6e4e9; font-size: .85rem; }
.footer-bottom { border-top: 1px solid #45545b; margin-top: 2.5rem; padding-top: 1.2rem; color: #9cafb7; font-size: .75rem; }
.entry-header { background: var(--green); color: white; padding: 4.5rem 0; }
.entry-header h1 { max-width: 800px; margin: .35rem 0 0; font: 400 clamp(2.25rem, 5vw, 4rem)/1.1 var(--serif); }
.entry-content { max-width: 720px; padding: 3rem 0 5rem; font-size: 1.05rem; }
.entry-content h2, .entry-content h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; }
.entry-content img { margin: 2rem 0; }
.archive-intro { padding: 4rem 0 2rem; }
.archive-intro h1 { margin: .3rem 0; font: 500 3rem var(--serif); }
.pagination { margin-top: 2rem; }

@media (max-width: 800px) {
  .container, .wide-container { width: min(100% - 2rem, 680px); }
  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; inset: 68px 0 auto; padding: 1rem; background: white; border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { padding: .55rem 0; }
  .stats, .card-grid, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .hero { padding: 4.5rem 0; }
  .section { padding: 3.25rem 0; }
  .section-header, .cta-band-inner { display: block; }
  .section-header .button { margin-top: 1rem; }
  .cta-band .button { margin-top: 1.25rem; }
}
