/*
Theme Name: Iran China Desk
Theme URI: https://example.com/iran-china-desk
Author: Iran China Desk
Author URI: https://example.com
Description: A one-page business theme for the Iran China Desk private platform — Iran-China economic cooperation in energy, oil, gas, petrochemicals and infrastructure.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: iran-china-desk
*/

/* ============================================================
   DESIGN TOKENS
   Palette:
     --ink        #0E1A1F  deep petrol/oil-black  (primary background, energy sector)
     --paper      #F2EFE9  warm off-white          (primary text on dark, light bg)
     --gold       #C9A227  brass/gold accent        (formality, energy, the corridor)
     --crimson    #8C1D18  muted vermilion accent   (a quiet nod to both flags' red)
     --jade       #2F5233  muted jade green accent  (a quiet nod to Iran's green)
     --line       #3A3F42  hairline / border grey
     --muted      #8B9296  secondary text on dark
   Type:
     Display: Georgia / "Noto Serif" — gravitas, works across Latin/Persian contexts
     Body:    "Inter", system-ui — clean, legible, wide language support
     Utility: "IBM Plex Mono" — data, labels, figures
   Signature element: the "corridor" — a thin gold-to-crimson gradient line with two
   nodes (Tehran / Beijing) that recurs as a section divider, echoing the literal
   trade corridor the platform is built to open.
   ============================================================ */

:root {
  --ink: #0E1A1F;
  --ink-2: #142329;
  --paper: #F2EFE9;
  --gold: #C9A227;
  --crimson: #8C1D18;
  --jade: #2F5233;
  --line: #3A3F42;
  --muted: #8B9296;
  --max: 1120px;
  --radius: 4px;
}

@font-face {
  font-family: 'Noto Serif Fallback';
  src: local('Georgia');
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: inherit;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 14px;
}

/* ---------- corridor divider (signature element) ---------- */
.corridor {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--jade), var(--gold) 50%, var(--crimson));
  border: 0;
  margin: 0;
  position: relative;
}
.corridor.with-nodes { height: 40px; background: none; }
.corridor.with-nodes::before,
.corridor.with-nodes::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
}
.corridor.with-nodes::before { left: 0; background: var(--jade); }
.corridor.with-nodes::after  { right: 0; background: var(--crimson); }
.corridor.with-nodes {
  border-top: 2px solid transparent;
  background-image: linear-gradient(90deg, var(--jade), var(--gold) 50%, var(--crimson));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 2px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--ink);
  color: var(--paper);
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 82px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand img { height: 52px; width: auto; }
.brand-text { font-family: 'Noto Serif', Georgia, serif; font-size: 19px; letter-spacing: 0.3px; }
.main-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none; color: var(--muted); font-size: 14.5px;
  letter-spacing: 0.3px; transition: color .15s ease;
}
.main-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--paper); padding: 8px 12px; border-radius: var(--radius); font-size: 20px; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px 6px 8px; margin-bottom: 28px;
}
.hero-badge img { height: 22px; width: auto; }
.hero-badge span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  max-width: 15ch;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead {
  max-width: 62ch; color: var(--muted); font-size: 19px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius);
  text-decoration: none; font-size: 14.5px; letter-spacing: 0.4px; font-weight: 600;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--paper); }

.hero-map {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px;
}
.hero-map .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.hero-map .dot.jade { background: var(--jade); }
.hero-map .dot.crimson { background: var(--crimson); }
.hero-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--jade), var(--gold), var(--crimson)); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: #4B5054; font-size: 17.5px; }

.alt { background: #EAE6DC; }
.dark { background: var(--ink); color: var(--paper); }
.dark .section-head p { color: var(--muted); }
.dark .eyebrow { color: var(--gold); }

.prose p { color: #33383B; max-width: 74ch; }
.dark .prose p { color: #C7CCCE; }

/* two-column */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* cards */
.card {
  background: var(--paper); border: 1px solid #DAD5C8; border-radius: var(--radius);
  padding: 28px 26px;
}
.dark .card { background: var(--ink-2); border-color: var(--line); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 15.3px; color: #52585B; margin: 0; }
.dark .card p { color: var(--muted); }
.card .num {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--gold);
  letter-spacing: 1px; margin-bottom: 12px; display: block;
}

/* services list */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.service-list li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px; font-size: 15.5px; color: var(--muted);
}
.service-list li::before { content: "—"; color: var(--gold); }

/* engagement models (accordion-ish static list) */
.model-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.model-row h4 { font-size: 16.5px; margin: 0; }
.model-row .tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--gold);
  letter-spacing: 1px; text-transform: uppercase;
}
.model-row p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

/* structure diagram */
.org {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 20px;
}
.org .node {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; font-size: 14px; color: var(--paper); background: var(--ink-2);
  text-align: center;
}
.org .holding {
  grid-column: 1 / -1; background: var(--gold); color: var(--ink);
  text-align: center; padding: 16px; border-radius: var(--radius); font-weight: 700;
  letter-spacing: 0.4px; margin-bottom: 4px;
}

/* principles */
.principle-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.principle-list li {
  counter-increment: p; padding: 18px 0 18px 46px; position: relative;
  border-bottom: 1px solid #DAD5C8; font-size: 15.5px; color: #33383B;
}
.principle-list li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute; left: 0; top: 16px;
  font-family: 'IBM Plex Mono', monospace; color: var(--gold); font-size: 13px;
}

/* CTA */
.cta {
  background: var(--ink); color: var(--paper); border-radius: 6px;
  padding: 64px 56px; text-align: center;
}
.cta h2 { font-size: clamp(26px, 3vw, 34px); max-width: 30ch; margin: 0 auto 16px; }
.cta p { color: var(--muted); max-width: 56ch; margin: 0 auto 32px; }

/* footer */
.site-footer { background: var(--ink); color: var(--muted); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h5 { color: var(--paper); font-family: 'Noto Serif', serif; font-size: 15px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a { text-decoration: none; color: var(--muted); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; font-size: 12.5px; color: #5B6266;
  flex-wrap: wrap; gap: 10px;
}

/* responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .org { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .model-row { grid-template-columns: 1fr; gap: 6px; }
  .cta { padding: 40px 24px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}


/* Wikimedia-powered Iran–China visual identity */
.brand-logo { display:block; width: 208px; height: auto !important; }
.flag-badge { gap: 12px; padding: 8px 14px; }
.flag-badge img { width: 70px; height: 42px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.flag-badge .flag-connector { color: var(--paper); font-family: 'IBM Plex Mono', monospace; letter-spacing: 1.4px; }
.flag-badge .flag-connector b { color: var(--gold); padding: 0 7px; }
.hero-image { isolation: isolate; min-height: 620px; display:flex; align-items:center; }
.hero-photo {
  position:absolute; inset:0; z-index:0;
  background-image:
    linear-gradient(90deg, rgba(14,26,31,.98) 0%, rgba(14,26,31,.83) 38%, rgba(14,26,31,.43) 70%, rgba(14,26,31,.68) 100%),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Tehranoilrefinery.jpg");
  background-size: cover; background-position:center;
}
.image-corridor { background: var(--ink); color: var(--paper); padding: 0 0 88px; }
.corridor-grid { display:grid; grid-template-columns: 1fr .9fr 1fr; gap: 28px; align-items:center; }
.corridor-grid figure { margin:0; }
.corridor-grid img { width:100%; height:270px; object-fit:cover; border-radius:var(--radius); border:1px solid var(--line); }
.corridor-grid figcaption { font-size:12px; color:var(--muted); padding-top:9px; letter-spacing:.2px; }
.corridor-center h2 { color:var(--paper); font-size:clamp(25px,3vw,36px); }
.corridor-center p { color:var(--muted); }
.project-visuals { padding-top:88px; }
.visual-grid { display:grid; grid-template-columns: 1.35fr 1fr 1fr; gap:22px; }
.visual-card { margin:0; background:var(--paper); border:1px solid #DAD5C8; overflow:hidden; border-radius:var(--radius); }
.visual-card img { width:100%; height:250px; object-fit:cover; }
.visual-card-large img { height:330px; }
.visual-card figcaption { padding:13px 16px 15px; font-size:13px; color:#52585B; }
@media (max-width:900px) {
  .brand-logo { width:170px; }
  .hero-image { min-height: 680px; }
  .corridor-grid, .visual-grid { grid-template-columns:1fr; }
  .corridor-grid img, .visual-card img, .visual-card-large img { height:250px; }
  .flag-badge { flex-wrap:wrap; }
}
