/* ============================================================
   THE POLICY CORNER — Main Stylesheet
   Design system derived from the approved index.html mockup
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --navy:          #1a2e44;
  --navy-deep:     #0f1d2e;
  --navy-light:    #2a4562;
  --slate:         #64748b;
  --slate-light:   #94a3b8;
  --stone:         #f1f0ec;
  --stone-dark:    #e2e0da;
  --cream:         #faf9f6;
  --white:         #ffffff;
  --accent-blue:   #2563eb;
  --accent-teal:   #0d9488;
  --accent-purple: #7c3aed;
  --accent-amber:  #b45309;
  --accent-rose:   #be123c;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --max-width: 1200px;
  --gutter: 2rem;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utility ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeUp 0.55s var(--ease-out) forwards;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--stone-dark);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(26,46,68,0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 15px;
  letter-spacing: -0.5px;
  line-height: 1;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.primary-nav a {
  font-size: 13px;
  font-weight: 450;
  color: var(--slate);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.primary-nav a:hover,
.primary-nav .current-menu-item a { color: var(--navy); }
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--navy);
  transition: width 0.3s var(--ease-out);
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after { width: 100%; }

.lang-switch {
  font-size: 12px;
  color: var(--slate-light);
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--stone-dark);
}
.lang-switch a { color: var(--slate-light); transition: color 0.2s; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch .active { color: var(--navy); font-weight: 600; }

/* ============ HERO ============ */
.hero-section {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2.5rem var(--gutter) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 20px;
  min-height: 420px;
}

/* Hero main (featured) */
.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  background: var(--navy-deep);
}
.hero-main-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}
.hero-main-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,29,46,0) 30%, rgba(15,29,46,0.85) 75%, rgba(15,29,46,0.96) 100%);
}
.hero-main:hover .hero-main-bg { transform: scale(1.03); }
.hero-main-content {
  position: relative;
  z-index: 2;
  padding: 2rem 2.25rem;
}

/* Hero side cards */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.25s var(--ease-out);
}
.hero-card:hover {
  border-color: var(--slate-light);
  transform: translateY(-2px);
}

/* Shared hero typography */
.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}
.hero-card .hero-tag {
  color: var(--accent-blue);
  font-size: 10px;
  margin-bottom: 8px;
}
.hero-card:nth-child(2) .hero-tag { color: var(--accent-teal); }
.hero-card:nth-child(3) .hero-tag { color: var(--accent-purple); }

.hero-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 12px;
  max-width: 520px;
}
.hero-card .hero-title {
  font-size: 18px;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 6px;
  max-width: none;
}
.hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}
.hero-card .hero-meta {
  font-size: 12px;
  color: var(--slate-light);
}
.read-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.hero-main:hover .read-indicator { color: rgba(255,255,255,0.9); }
.read-indicator svg { transition: transform 0.3s var(--ease-out); }
.hero-main:hover .read-indicator svg { transform: translateX(3px); }

/* ============ IDENTITY BAR ============ */
.identity-bar {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2rem var(--gutter);
}
.identity-bar-inner {
  border-top: 1px solid var(--stone-dark);
  border-bottom: 1px solid var(--stone-dark);
  padding: 1.25rem 0;
  text-align: center;
}
.identity-bar-inner p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--slate);
  letter-spacing: 0.01em;
}

/* ============ SECTION HEADERS ============ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue);
  transition: gap 0.2s;
}
.section-link:hover { gap: 7px; }

/* ============ CATEGORY PILLS ============ */
.categories-section {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0.5rem var(--gutter) 0;
}
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--stone-dark);
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 450;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.pill:hover {
  border-color: var(--slate-light);
  color: var(--navy);
}
.pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ============ PUBLICATIONS GRID ============ */
.publications-section {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2rem var(--gutter);
}
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pub-card {
  background: var(--white);
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.pub-card:hover {
  border-color: var(--slate-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,46,68,0.07);
}
.pub-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
}
/* Category accent colours */
.pub-cat.intl    { background: #dbeafe; color: var(--accent-blue); }
.pub-cat.eu      { background: #d1fae5; color: #065f46; }
.pub-cat.trade   { background: #fef3c7; color: var(--accent-amber); }
.pub-cat.tech    { background: #ede9fe; color: var(--accent-purple); }
.pub-cat.defence { background: #fee2e2; color: var(--accent-rose); }

.pub-title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.35;
  color: var(--navy);
  flex: 1;
}
.pub-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.pub-author { font-size: 12px; color: var(--slate); font-weight: 450; }
.pub-date   { font-size: 12px; color: var(--slate-light); }

/* ============ REGIONS ============ */
.regions-section {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 var(--gutter) 2.5rem;
}
.region-grid {
  display: flex;
  gap: 12px;
}
.region-item {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
  min-width: 100px;
}
.region-item:hover {
  border-color: var(--slate-light);
  transform: translateY(-2px);
}
.region-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.05em;
}
.region-name  { font-size: 13px; font-weight: 500; color: var(--navy); }
.region-count { font-size: 11px; color: var(--slate-light); }

/* ============ NEWSLETTER ============ */
.newsletter-section {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 var(--gutter) 3rem;
}
.newsletter-inner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.newsletter-text h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 6px;
}
.newsletter-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  max-width: 360px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.newsletter-form input {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  width: 240px;
  transition: border-color 0.2s;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.4); }
.newsletter-form button {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.newsletter-form button:hover { opacity: 0.9; }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--stone-dark);
  padding: 1.5rem var(--gutter);
}
.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--slate-light); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: var(--slate-light);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--navy); }

/* ============ SINGLE ARTICLE ============ */
.article-header {
  max-width: 760px;
  margin-inline: auto;
  padding: 3rem var(--gutter) 2rem;
}
.article-header .article-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
}
.article-header h1 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 16px;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--slate);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stone-dark);
}
.article-content {
  max-width: 760px;
  margin-inline: auto;
  padding: 2rem var(--gutter) 4rem;
}
.article-content p  { margin-bottom: 1.4rem; font-size: 17px; line-height: 1.75; color: var(--navy); }
.article-content h2 { font-family: var(--font-display); font-size: 26px; margin: 2rem 0 0.75rem; }
.article-content h3 { font-family: var(--font-display); font-size: 21px; margin: 1.75rem 0 0.5rem; }
.article-content blockquote {
  border-left: 3px solid var(--navy);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--slate);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-main { min-height: 280px; }
  .hero-side { flex-direction: row; }
  .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-grid { flex-wrap: wrap; }
  .region-item { min-width: 140px; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-text p { max-width: 100%; }
}
@media (max-width: 600px) {
  :root { --gutter: 1.25rem; }
  .primary-nav { gap: 16px; }
  .hero-side { flex-direction: column; }
  .hero-title { font-size: 24px !important; }
  .pub-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  .footer-inner { flex-direction: column; gap: 12px; }
}


/* ── Page Hero (About Us, Contact) ─────────────────────────── */
.page-hero {
  background: none;
}
.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
}
.page-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--tpc-navy, #1a2340);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.page-hero-desc {
  color: #6b7280;
  font-size: 1.05rem;
  margin: 0;
}

/* ── About Us body ──────────────────────────────────────────── */
.about-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.about-body p,
.about-body h2,
.about-body h3 {
  max-width: 820px;
}

/* ── Contact page ───────────────────────────────────────────── */
.contact-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.contact-info-box {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.contact-info-box p { margin: 0; }
.contact-intro {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
