/*
Theme Name: Meydan AI Law & Policy
Theme URI: https://www.meydanailaw.com
Author: Meydan AI Law & Policy
Description: A premium, responsive WordPress theme for an international AI law, technology policy and digital regulation platform.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: meydan-ai-law
Tags: one-column, custom-logo, custom-menu, featured-images, accessibility-ready, responsive-layout
*/

:root {
  --navy-950: #04111f;
  --navy-900: #071a2e;
  --navy-800: #0c2741;
  --navy-700: #153a5d;
  --gold-500: #c7a462;
  --gold-400: #d8bd83;
  --gold-200: #eee0bd;
  --ivory: #f7f5ef;
  --paper: #fffdfa;
  --ink: #0c1b2a;
  --muted: #667383;
  --line: rgba(12, 27, 42, 0.12);
  --shadow: 0 24px 70px rgba(4, 17, 31, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-500); }
button, input, textarea { font: inherit; }
::selection { background: var(--gold-200); color: var(--navy-950); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.site-shell { min-height: 100vh; overflow: hidden; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-500);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title {
  margin: 18px 0 0;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 4.45rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 500;
}
.section-copy { max-width: 690px; color: var(--muted); font-size: 1.08rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 250, .88);
  border-bottom: 1px solid rgba(12, 27, 42, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 210px;
}
.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 164, 98, .55);
  background: linear-gradient(145deg, #0a2440, #04111f);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(4,17,31,.18);
}
.brand-mark::after {
  content: "AI";
  position: absolute;
  bottom: 5px;
  font-size: 7px;
  letter-spacing: .13em;
  color: var(--gold-400);
  font-weight: 800;
}
.brand-mark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 1;
  transform: translateY(-3px);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-name { color: var(--navy-950); font-family: Georgia, "Times New Roman", serif; font-size: 1.06rem; font-weight: 600; }
.brand-sub { margin-top: 6px; color: var(--muted); font-size: .64rem; font-weight: 720; letter-spacing: .14em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 27px; }
.primary-nav .menu { display: flex; align-items: center; gap: 27px; list-style: none; padding: 0; margin: 0; }
.primary-nav a { font-size: .91rem; font-weight: 650; color: var(--navy-900); }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--gold-500); }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 19px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--navy-900);
  font-size: .85rem !important;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease;
}
.header-cta:hover { background: var(--navy-700); transform: translateY(-1px); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-900);
  border-radius: 50%;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.is-open span { opacity: 0; }
.menu-toggle.is-open::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open::after { transform: translateY(-6px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(199,164,98,.20), transparent 27%),
    radial-gradient(circle at 12% 90%, rgba(21,58,93,.75), transparent 32%),
    linear-gradient(125deg, #04111f 0%, #071a2e 50%, #0d2d4c 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 88%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -170px;
  top: 100px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(216,189,131,.26);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(216,189,131,.035), 0 0 0 140px rgba(216,189,131,.025);
}
.hero-inner { position: relative; z-index: 2; padding: 118px 0 100px; display: grid; grid-template-columns: 1.2fr .62fr; gap: 86px; align-items: end; }
.hero h1 {
  margin: 22px 0 26px;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 7.1rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 500;
}
.hero h1 em { color: var(--gold-400); font-style: normal; }
.hero-lead { max-width: 720px; color: rgba(255,255,255,.73); font-size: clamp(1.05rem, 1.5vw, 1.27rem); }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 730;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-400); color: var(--navy-950); }
.btn-ghost { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }
.hero-panel {
  align-self: end;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.065);
  backdrop-filter: blur(16px);
}
.hero-panel-label { color: var(--gold-400); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 760; }
.hero-panel strong { display: block; margin-top: 15px; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; line-height: 1.25; }
.hero-panel p { margin: 14px 0 0; color: rgba(255,255,255,.66); font-size: .92rem; }
.hero-statline { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; gap: 14px; color: rgba(255,255,255,.6); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

.trust-strip { background: var(--ivory); border-bottom: 1px solid var(--line); }
.trust-inner { min-height: 96px; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); align-items: center; gap: 24px; }
.trust-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; color: var(--navy-900); }
.trust-item { padding-left: 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 116px 0; }
.section-alt { background: var(--ivory); }
.section-dark { color: #fff; background: var(--navy-950); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 44px; margin-bottom: 56px; }
.section-head .section-copy { margin: 0; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.expertise-card {
  min-height: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.76);
  box-shadow: 0 12px 35px rgba(4,17,31,.035);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.expertise-card:hover { transform: translateY(-6px); border-color: rgba(199,164,98,.65); box-shadow: var(--shadow); }
.card-number { color: var(--gold-500); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.expertise-card h3 { margin: 52px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.15; font-weight: 500; }
.expertise-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card-link { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; color: var(--navy-900); font-weight: 750; font-size: .85rem; }
.card-link::after { content: "→"; color: var(--gold-500); transition: transform .2s ease; }
.card-link:hover::after { transform: translateX(4px); }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 92px; align-items: center; }
.statement-box {
  position: relative;
  min-height: 520px;
  padding: 52px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(199,164,98,.26), transparent 27%),
    linear-gradient(145deg, #102f4d, #04111f 72%);
}
.statement-box::before {
  content: "§";
  position: absolute;
  right: 36px;
  top: -48px;
  color: rgba(255,255,255,.06);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20rem;
  line-height: 1;
}
.statement-box blockquote { position: relative; z-index: 2; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.2vw, 3.7rem); line-height: 1.08; letter-spacing: -.03em; }
.statement-box blockquote span { color: var(--gold-400); }
.pillars { display: grid; gap: 28px; margin-top: 34px; }
.pillar { display: grid; grid-template-columns: 42px 1fr; gap: 18px; align-items: start; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.pillar:last-child { border-bottom: 0; padding-bottom: 0; }
.pillar-index { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gold-200); border-radius: 50%; color: var(--gold-500); font-size: .76rem; font-weight: 800; }
.pillar h3 { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 500; }
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }

.insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.insight-card { border-top: 1px solid rgba(255,255,255,.16); padding-top: 24px; }
.insight-meta { color: var(--gold-400); font-size: .72rem; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.insight-card h3 { margin: 20px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; line-height: 1.18; font-weight: 500; }
.insight-card p { color: rgba(255,255,255,.62); font-size: .92rem; }
.insight-card a { color: #fff; }
.insight-card a:hover { color: var(--gold-400); }
.insight-link { display: inline-flex; gap: 8px; align-items: center; color: var(--gold-400) !important; font-weight: 720; font-size: .84rem; }
.insight-link::after { content: "↗"; }
.empty-insights { grid-column: 1 / -1; padding: 36px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); color: rgba(255,255,255,.66); }

.cta-band { padding: 90px 0; background: var(--gold-500); color: var(--navy-950); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.cta-inner h2 { margin: 0; max-width: 830px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4.6vw, 5rem); line-height: 1.02; font-weight: 500; letter-spacing: -.04em; }
.cta-inner .btn { flex: none; background: var(--navy-950); color: #fff; }

.page-hero { padding: 120px 0 78px; color: #fff; background: linear-gradient(125deg, #04111f, #0c2a48); }
.page-hero h1 { margin: 18px 0 0; max-width: 930px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 6rem); line-height: .98; font-weight: 500; letter-spacing: -.045em; }
.page-content { padding: 84px 0 116px; }
.page-copy { max-width: 880px; }
.page-copy > *:first-child { margin-top: 0; }
.page-copy h2 { margin: 2.2em 0 .55em; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.1; font-weight: 500; }
.page-copy h3 { margin-top: 2em; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; }
.page-copy p, .page-copy li { color: #435164; }
.page-copy a { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold-400); text-underline-offset: 4px; }
.practice-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding: 0; list-style: none; }
.practice-list li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ivory); }
.practice-list strong { display: block; margin-bottom: 6px; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; font-weight: 500; }

.post-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.post-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.post-card h2 { margin: 14px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.2; font-weight: 500; }
.post-meta { color: var(--gold-500); font-size: .75rem; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.pagination { margin-top: 48px; }
.single-article { max-width: 820px; }
.single-article .entry-content { font-family: Georgia, "Times New Roman", serif; font-size: 1.14rem; }
.single-article .entry-content p { color: #344356; }

.contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.contact-card { padding: 32px; color: #fff; border-radius: var(--radius-lg); background: var(--navy-900); }
.contact-card h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; }
.contact-card p { color: rgba(255,255,255,.66); }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.contact-form label { display: grid; gap: 8px; color: var(--navy-900); font-size: .84rem; font-weight: 740; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 15px 16px;
  color: var(--ink);
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(199,164,98,.14); }
.contact-form textarea { min-height: 180px; resize: vertical; }
.form-status { padding: 14px 16px; border-radius: 10px; font-size: .9rem; }
.form-status.success { background: #edf8f0; color: #20613a; border: 1px solid #b9e1c4; }
.form-status.error { background: #fff0ef; color: #8a2f29; border: 1px solid #efc0bc; }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 72px 0 32px; color: rgba(255,255,255,.67); background: #020b14; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 64px; }
.footer-brand .brand-name { color: #fff; font-size: 1.45rem; }
.footer-brand p { max-width: 520px; color: rgba(255,255,255,.55); }
.footer-title { color: var(--gold-400); font-size: .74rem; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.68); font-size: .9rem; }
.footer-bottom { margin-top: 58px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 30px; font-size: .76rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 1020px) {
  .primary-nav { position: fixed; inset: 84px 20px auto; display: none; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav .menu li { border-bottom: 1px solid var(--line); }
  .primary-nav .menu li:last-child { border-bottom: 0; }
  .primary-nav .menu a { display: block; padding: 14px 4px; }
  .header-cta { margin-top: 14px; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-panel { max-width: 560px; }
  .trust-inner { grid-template-columns: 1fr 1fr; padding: 24px 0; }
  .trust-title { grid-column: 1 / -1; }
  .expertise-grid, .insights-grid, .post-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .statement-box { min-height: 430px; }
  .footer-grid { grid-template-columns: 1.3fr .7fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 74px; }
  .brand-sub { display: none; }
  .brand { min-width: 0; }
  .brand-name { font-size: .95rem; }
  .primary-nav { inset: 74px 14px auto; }
  .hero { min-height: auto; }
  .hero-inner { padding: 92px 0 72px; }
  .hero h1 { font-size: clamp(3.15rem, 16vw, 4.8rem); }
  .hero::after { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-panel { padding: 24px; }
  .trust-inner, .expertise-grid, .insights-grid, .post-list, .practice-list, .form-row { grid-template-columns: 1fr; }
  .trust-title { grid-column: auto; }
  .trust-item { border-left: 0; padding: 10px 0; border-top: 1px solid var(--line); }
  .section { padding: 82px 0; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 38px; }
  .section-title { font-size: 2.65rem; }
  .expertise-card { min-height: 250px; }
  .statement-box { min-height: 400px; padding: 34px; }
  .cta-inner { align-items: stretch; flex-direction: column; }
  .cta-inner .btn { width: 100%; }
  .page-hero { padding: 90px 0 62px; }
  .page-content { padding: 62px 0 86px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
