/* ============================================================
   APSA - Asia-Pacific Strategic Assessment
   Shared stylesheet (classic think-tank style)
   ============================================================ */

/* ============ Reset & Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #1b3a5c;        /* primary navy */
  --navy-dark: #12293f;   /* darker shade for footer */
  --slate: #3d4a56;       /* body text */
  --light-slate: #6b7885; /* muted text */
  --line: #d8dee4;        /* hairlines */
  --bg-soft: #f4f6f8;     /* soft section background */
  --accent: #9a7b3f;      /* restrained bronze accent */
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--slate); line-height: 1.7; background: #fff; font-size: 16px; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ============ Utility Bar ============ */
.topbar { background: var(--navy-dark); color: #c9d4de; font-size: 12.5px; letter-spacing: 0.08em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topbar span { text-transform: uppercase; }

/* ============ Masthead ============ */
header.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 16px; }
.logo { display: block; width: 48px; height: 48px; }
.brand-name { font-family: var(--serif); color: var(--navy); }
.brand-name .abbr { font-size: 26px; font-weight: 700; letter-spacing: 0.05em; display: block; line-height: 1.2; }
.brand-name .full { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--light-slate); display: block; }

nav.mainnav ul { list-style: none; display: flex; gap: 34px; }
nav.mainnav a { font-size: 14.5px; letter-spacing: 0.04em; color: var(--slate); text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
nav.mainnav a:hover, nav.mainnav a.active { color: var(--navy); border-bottom-color: var(--accent); text-decoration: none; }

/* ============ Home hero ============ */
.hero { background: linear-gradient(180deg, #f7f9fb 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 84px 0 76px; }
.hero .kicker { font-size: 13px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-size: 42px; line-height: 1.22; color: var(--navy); max-width: 780px; font-weight: 700; }
.hero p.lede { font-size: 19px; color: var(--slate); max-width: 720px; margin-top: 22px; }
.hero .actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ Subpage header ============ */
.page-head { background: linear-gradient(180deg, #f7f9fb 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.page-head .kicker { font-size: 13px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.page-head h1 { font-family: var(--serif); font-size: 36px; line-height: 1.25; color: var(--navy); font-weight: 700; max-width: 760px; }
.page-head p.lede { font-size: 18px; color: var(--slate); max-width: 700px; margin-top: 18px; }

/* ============ Buttons ============ */
.btn { display: inline-block; padding: 12px 28px; font-size: 14.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.btn-primary { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-primary:hover { background: var(--navy-dark); text-decoration: none; }
.btn-ghost { border: 1px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ============ Sections ============ */
section { padding: 68px 0; }
section.tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); font-weight: 600; }
.section-head h2 { font-family: var(--serif); font-size: 32px; color: var(--navy); margin-top: 10px; line-height: 1.25; }
.section-head p { margin-top: 14px; color: var(--light-slate); font-size: 16.5px; }

/* Left-aligned section header (subpages) */
.section-head.left { text-align: left; margin: 0 0 40px; }
.section-head.left h2 { font-size: 28px; }

/* ============ Prose blocks ============ */
.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; font-size: 16.5px; }
.prose p:last-child { margin-bottom: 0; }

/* ============ Home: pillar cards ============ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 34px 28px; background: #fff; }
.pillar .num { font-family: var(--serif); font-size: 14px; color: var(--accent); letter-spacing: 0.12em; }
.pillar h3 { font-family: var(--serif); font-size: 21px; color: var(--navy); margin: 10px 0 12px; line-height: 1.3; }
.pillar p { font-size: 15px; color: var(--slate); }
.pillar a.more { display: inline-block; margin-top: 16px; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ============ Home: mission strip ============ */
.mission { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mission-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.mission h2 { font-family: var(--serif); font-size: 28px; color: var(--navy); line-height: 1.3; margin-bottom: 18px; }
.mission p { margin-bottom: 14px; font-size: 16px; }
.mission ul { list-style: none; }
.mission li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: 15.5px; }
.mission li:first-child { border-top: 1px solid var(--line); }
.mission li::before { content: ""; position: absolute; left: 0; top: 22px; width: 14px; height: 2px; background: var(--accent); }

/* ============ Numbered research areas (About page) ============ */
.area-list { max-width: 860px; }
.area { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.area:first-child { border-top: 1px solid var(--line); }
.area .num { font-family: var(--serif); font-size: 24px; color: var(--accent); line-height: 1.2; }
.area h3 { font-family: var(--serif); font-size: 21px; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.area p { font-size: 15.5px; }

/* ============ Principles list ============ */
.principles { list-style: none; }
.principles li { padding: 16px 0 16px 32px; border-bottom: 1px solid var(--line); position: relative; font-size: 15.5px; }
.principles li:first-child { border-top: 1px solid var(--line); }
.principles li::before { content: ""; position: absolute; left: 0; top: 25px; width: 14px; height: 2px; background: var(--accent); }

/* ============ Feature cards (Network / Contact pages) ============ */
.cards { display: grid; gap: 28px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 32px 28px; background: #fff; }
.card h3 { font-family: var(--serif); font-size: 20px; color: var(--navy); margin-bottom: 12px; line-height: 1.3; }
.card p { font-size: 15px; }
.card .card-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); font-weight: 600; display: block; margin-bottom: 10px; }
.card a.mail { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; word-break: break-all; }

/* ============ Soft band ============ */
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ============ CTA band ============ */
.cta-band { background: var(--navy); color: #e8edf2; text-align: center; }
.cta-band h2 { font-family: var(--serif); font-size: 32px; color: #fff; line-height: 1.25; }
.cta-band p { max-width: 660px; margin: 18px auto 30px; font-size: 17px; color: #c3cedb; }
.cta-band .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.cta-band .btn-primary:hover { background: #e8edf2; }

/* ============ Footer ============ */
footer { background: var(--navy-dark); color: #9fb0bf; padding: 56px 0 36px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { font-family: var(--serif); color: #d7e0e8; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a { color: #9fb0bf; }
footer a:hover { color: #fff; }
.footer-brand .logo { width: 42px; height: 42px; margin-bottom: 14px; }
.footer-brand p { max-width: 340px; line-height: 1.8; }
.footer-note { font-size: 13px; line-height: 1.8; color: #7d8fa0; }
.footer-bottom { border-top: 1px solid #24425f; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #7d8fa0; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .pillars, .mission-grid, .footer-grid, .band-grid, .cards.two, .cards.three { grid-template-columns: 1fr; }
  .masthead-inner { flex-direction: column; gap: 18px; }
  nav.mainnav ul { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .hero h1 { font-size: 32px; }
  .page-head h1 { font-size: 28px; }
  .area { grid-template-columns: 1fr; gap: 4px; }
  .topbar .container { justify-content: center; }
}
