/*
Theme Name: Eminent Supreme Council
Theme URI: https://eminentsupremecouncil.com
Author: OpenAI
Description: A premium, responsive WordPress theme for the Eminent Supreme Council.
Version: 3.0.0
Text Domain: eminent-supreme-council
*/

:root {
  --esc-bg: #07050b;
  --esc-bg-soft: #0d0716;
  --esc-panel: #12091e;
  --esc-panel-2: #1a0d28;
  --esc-purple: #341052;
  --esc-purple-bright: #6f2b9e;
  --esc-gold: #d7a928;
  --esc-gold-light: #f4d266;
  --esc-cream: #f6f0df;
  --esc-text: #f7f3eb;
  --esc-muted: #c7bdcf;
  --esc-line: rgba(215, 169, 40, .36);
  --esc-shadow: 0 24px 70px rgba(0,0,0,.45);
  --esc-radius: 22px;
  --esc-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--esc-text);
  background:
    radial-gradient(circle at 20% 0%, rgba(111,43,158,.13), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(215,169,40,.06), transparent 25%),
    var(--esc-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
img { display:block; max-width:100%; height:auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width:min(calc(100% - 40px), var(--esc-max)); margin-inline:auto; }
.section { padding: 96px 0; position:relative; }
.section-kicker {
  display:inline-flex; align-items:center; gap:10px; margin-bottom:12px;
  color:var(--esc-gold-light); font-size:.78rem; font-weight:800; letter-spacing:.18em; text-transform:uppercase;
}
.section-kicker::before { content:""; width:36px; height:1px; background:var(--esc-gold); }
.section-title {
  margin:0 0 18px; color:var(--esc-cream); font-family: Georgia, "Times New Roman", serif;
  font-size:clamp(2.1rem, 4.5vw, 4.2rem); line-height:1.05; letter-spacing:-.02em;
}
.section-copy { max-width:680px; color:var(--esc-muted); font-size:1.05rem; }
.gold { color:var(--esc-gold-light); }

/* Header */
.site-header {
  position:sticky; top:0; z-index:999; border-bottom:1px solid rgba(215,169,40,.3);
  background:rgba(7,5,11,.86); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
}
.header-inner { height:88px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; gap:12px; min-width:0; }
.brand img { width:68px; height:68px; object-fit:contain; filter:drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
.brand-text { line-height:1.08; }
.brand-title { display:block; font-family:Georgia,serif; font-size:1rem; letter-spacing:.06em; text-transform:uppercase; }
.brand-sub { display:block; margin-top:4px; color:var(--esc-gold-light); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; }
.primary-nav ul { display:flex; align-items:center; gap:28px; list-style:none; margin:0; padding:0; }
.primary-nav a { position:relative; color:#f4edf8; font-size:.83rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.primary-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-9px; height:2px; background:var(--esc-gold); transition:.25s ease; }
.primary-nav a:hover::after, .primary-nav .current-menu-item a::after { right:0; }
.nav-cta { padding:12px 18px; border:1px solid var(--esc-gold); border-radius:999px; color:var(--esc-gold-light)!important; }
.nav-cta::after { display:none!important; }
.menu-toggle { display:none; width:48px; height:48px; border:1px solid var(--esc-line); border-radius:14px; color:var(--esc-gold-light); background:transparent; cursor:pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content:""; display:block; width:22px; height:2px; margin:5px auto; background:currentColor; transition:.25s ease; }
.menu-toggle.is-open span { opacity:0; }
.menu-toggle.is-open::before { transform:translateY(7px) rotate(45deg); }
.menu-toggle.is-open::after { transform:translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position:relative; min-height:760px; display:grid; align-items:center; overflow:hidden; border-bottom:1px solid var(--esc-line); }
.hero::before {
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(7,5,11,.2), rgba(7,5,11,.7)),
    repeating-linear-gradient(90deg, transparent 0 13%, rgba(255,255,255,.012) 13.1% 13.25%),
    radial-gradient(circle at 24% 45%, rgba(94,27,139,.45), transparent 35%),
    linear-gradient(135deg, #170824, #08050d 72%);
}
.hero::after { content:""; position:absolute; width:620px; height:620px; left:-180px; bottom:-280px; border:1px solid rgba(215,169,40,.13); border-radius:50%; box-shadow:0 0 0 70px rgba(215,169,40,.03),0 0 0 140px rgba(215,169,40,.02); }
.hero-grid { position:relative; z-index:2; display:grid; grid-template-columns:minmax(320px,.88fr) minmax(430px,1.12fr); align-items:center; gap:clamp(40px,7vw,96px); padding:88px 0; }
.hero-emblem-wrap { position:relative; display:grid; place-items:center; }
.hero-emblem-wrap::before { content:""; position:absolute; width:78%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle, rgba(215,169,40,.18), transparent 65%); filter:blur(10px); }
.hero-emblem { width:min(100%,540px); position:relative; filter:drop-shadow(0 30px 34px rgba(0,0,0,.58)); }
.hero-content { max-width:670px; }
.hero-eyebrow { margin:0 0 14px; color:var(--esc-gold-light); font-weight:800; letter-spacing:.22em; text-transform:uppercase; font-size:.82rem; }
.hero-title { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:clamp(4rem,7vw,7rem); line-height:.88; letter-spacing:-.045em; text-transform:uppercase; }
.hero-title .small { display:block; color:var(--esc-cream); font-size:.56em; letter-spacing:.06em; }
.hero-title .large { display:block; color:var(--esc-gold-light); text-shadow:0 5px 30px rgba(215,169,40,.12); }
.hero-tagline { max-width:650px; margin:30px 0 0; color:#ede5f0; font-family:Georgia,serif; font-size:clamp(1.15rem,2vw,1.55rem); line-height:1.5; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:54px; padding:0 25px; border-radius:999px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; transition:.25s ease; border:1px solid transparent; }
.btn-primary { color:#130b17; background:linear-gradient(135deg,var(--esc-gold-light),var(--esc-gold)); box-shadow:0 14px 35px rgba(215,169,40,.18); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 18px 40px rgba(215,169,40,.28); }
.btn-secondary { border-color:var(--esc-gold); color:var(--esc-gold-light); background:rgba(16,7,25,.45); }
.btn-secondary:hover { background:rgba(215,169,40,.1); transform:translateY(-2px); }
.hero-proof { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:44px; }
.proof-item { padding:15px 12px; border-top:1px solid var(--esc-line); color:var(--esc-muted); font-size:.85rem; }
.proof-item strong { display:block; color:var(--esc-gold-light); font-family:Georgia,serif; font-size:1.22rem; }

/* About */
.about-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:72px; align-items:center; }
.about-card { position:relative; min-height:520px; border:1px solid var(--esc-line); border-radius:var(--esc-radius); overflow:hidden; background:linear-gradient(145deg,#1c0b2a,#09060e); box-shadow:var(--esc-shadow); }
.about-card::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 50% 30%,rgba(215,169,40,.12),transparent 42%),linear-gradient(180deg,transparent,rgba(0,0,0,.45)); }
.about-card img { width:100%; height:100%; min-height:520px; object-fit:contain; padding:42px; position:relative; z-index:1; }
.about-badge { position:absolute; z-index:2; left:24px; right:24px; bottom:24px; padding:18px 22px; border:1px solid var(--esc-line); border-radius:16px; background:rgba(7,5,11,.78); backdrop-filter:blur(12px); }
.about-badge strong { color:var(--esc-gold-light); font-family:Georgia,serif; font-size:1.2rem; }
.values-list { display:grid; gap:14px; margin-top:28px; }
.value-row { display:flex; align-items:flex-start; gap:14px; padding:16px 18px; border:1px solid rgba(215,169,40,.16); border-radius:14px; background:rgba(255,255,255,.018); }
.value-icon { width:38px; height:38px; flex:0 0 38px; border-radius:50%; display:grid; place-items:center; color:#100916; background:linear-gradient(145deg,var(--esc-gold-light),var(--esc-gold)); font-weight:900; }
.value-row strong { display:block; margin-bottom:2px; color:var(--esc-cream); }
.value-row span { color:var(--esc-muted); font-size:.93rem; }

/* Pillars */
.pillars-section { background:linear-gradient(180deg,rgba(25,9,38,.4),transparent); border-block:1px solid rgba(215,169,40,.14); }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:42px; }
.pillars-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.pillar-card { min-height:300px; padding:30px 22px; border:1px solid rgba(215,169,40,.22); border-radius:18px; background:linear-gradient(155deg,rgba(36,13,52,.82),rgba(8,5,12,.9)); transition:.3s ease; }
.pillar-card:hover { transform:translateY(-8px); border-color:var(--esc-gold); box-shadow:0 24px 50px rgba(0,0,0,.3); }
.pillar-icon { width:66px; height:66px; display:grid; place-items:center; margin-bottom:25px; border-radius:18px; color:var(--esc-gold-light); border:1px solid var(--esc-gold); background:rgba(215,169,40,.05); }
.pillar-icon svg { width:34px; height:34px; stroke:currentColor; fill:none; stroke-width:1.6; }
.pillar-card h3 { margin:0 0 12px; color:var(--esc-gold-light); font-family:Georgia,serif; font-size:1.35rem; }
.pillar-card p { margin:0; color:var(--esc-muted); font-size:.94rem; }

/* Mission */
.mission-panel { display:grid; grid-template-columns:1.15fr .85fr; gap:20px; padding:clamp(32px,6vw,72px); border:1px solid var(--esc-line); border-radius:28px; background:linear-gradient(120deg,rgba(68,18,98,.86),rgba(12,7,17,.94)); box-shadow:var(--esc-shadow); overflow:hidden; position:relative; }
.mission-panel::after { content:""; position:absolute; width:420px; height:420px; right:-100px; top:-180px; border-radius:50%; background:radial-gradient(circle,rgba(215,169,40,.18),transparent 65%); }
.mission-panel > * { position:relative; z-index:1; }
.mission-panel blockquote { margin:0; font-family:Georgia,serif; font-size:clamp(1.7rem,3vw,3.1rem); line-height:1.18; }
.mission-side { align-self:end; }
.mission-side p { color:var(--esc-muted); }

/* Gallery */
.gallery-grid { display:grid; grid-template-columns:1.2fr .8fr .8fr; grid-auto-rows:250px; gap:16px; }
.gallery-tile { position:relative; overflow:hidden; border:1px solid var(--esc-line); border-radius:18px; background:linear-gradient(135deg,#210c32,#08050d); }
.gallery-tile:first-child { grid-row:span 2; }
.gallery-tile img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.gallery-tile:first-child img { object-fit:contain; padding:32px; }
.gallery-tile:hover img { transform:scale(1.035); }
.gallery-placeholder { height:100%; display:grid; place-items:center; padding:26px; text-align:center; color:var(--esc-muted); background:radial-gradient(circle at center,rgba(215,169,40,.08),transparent 55%); }
.gallery-placeholder strong { display:block; color:var(--esc-gold-light); font-family:Georgia,serif; font-size:1.25rem; }

/* Contact */
.contact-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:54px; align-items:start; }
.contact-list { display:grid; gap:14px; margin-top:30px; }
.contact-item { padding:18px 20px; border:1px solid rgba(215,169,40,.18); border-radius:14px; background:rgba(255,255,255,.018); }
.contact-item small { display:block; color:var(--esc-gold-light); font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.contact-item span, .contact-item a { color:var(--esc-cream); }
.contact-form { padding:30px; border:1px solid var(--esc-line); border-radius:22px; background:linear-gradient(150deg,rgba(29,10,43,.82),rgba(9,6,13,.96)); box-shadow:var(--esc-shadow); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-field { display:grid; gap:7px; }
.form-field.full { grid-column:1/-1; }
.form-field label { color:var(--esc-gold-light); font-size:.78rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.form-field input, .form-field textarea { width:100%; border:1px solid rgba(215,169,40,.25); border-radius:12px; padding:13px 14px; color:var(--esc-text); background:#09060e; outline:none; }
.form-field input:focus, .form-field textarea:focus { border-color:var(--esc-gold); box-shadow:0 0 0 3px rgba(215,169,40,.1); }
.form-field textarea { min-height:140px; resize:vertical; }
.form-message { padding:12px 14px; margin-bottom:16px; border-radius:12px; }
.form-message.success { background:rgba(49,156,89,.15); border:1px solid rgba(85,205,126,.4); }
.form-message.error { background:rgba(186,55,55,.15); border:1px solid rgba(229,92,92,.4); }
.honeypot { position:absolute!important; left:-9999px!important; }

/* Footer */
.site-footer { border-top:1px solid var(--esc-line); background:#040306; }
.footer-grid { display:grid; grid-template-columns:1.25fr .75fr .9fr; gap:50px; padding:58px 0 38px; }
.footer-brand { display:flex; gap:18px; align-items:flex-start; }
.footer-brand img { width:92px; }
.footer-brand h3 { margin:8px 0 8px; font-family:Georgia,serif; font-size:1.4rem; }
.footer-brand p, .footer-col p, .footer-col a { color:var(--esc-muted); }
.footer-col h4 { margin:0 0 16px; color:var(--esc-gold-light); font-size:.82rem; letter-spacing:.13em; text-transform:uppercase; }
.footer-links { display:grid; gap:8px; }
.socials { display:flex; gap:10px; margin-top:18px; }
.socials a { width:42px; height:42px; display:grid; place-items:center; border:1px solid var(--esc-line); border-radius:50%; color:var(--esc-gold-light); font-weight:800; }
.copyright { padding:18px 0 24px; border-top:1px solid rgba(255,255,255,.06); color:#9f96a4; text-align:center; font-size:.85rem; }

/* Content */
.content-wrap { width:min(calc(100% - 40px),900px); margin:0 auto; padding:80px 0; }
.entry-title { font-family:Georgia,serif; font-size:clamp(2.2rem,5vw,4rem); color:var(--esc-gold-light); }
.entry-content { color:var(--esc-muted); }

/* Animations */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .75s ease,transform .75s ease; }
.reveal.is-visible { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) { html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.pillar-card,.btn,.gallery-tile img{transition:none} }

/* Tablet */
@media (max-width: 1020px) {
  .primary-nav ul { gap:17px; }
  .primary-nav a { font-size:.75rem; }
  .brand-text { display:none; }
  .hero { min-height:auto; }
  .hero-grid { grid-template-columns:.8fr 1.2fr; gap:35px; }
  .hero-title { font-size:clamp(3.6rem,8vw,5.4rem); }
  .pillars-grid { grid-template-columns:repeat(3,1fr); }
  .pillar-card:nth-child(4), .pillar-card:nth-child(5) { grid-column:span 1; }
  .gallery-grid { grid-template-columns:1fr 1fr; }
  .gallery-tile:first-child { grid-column:1/-1; grid-row:auto; height:420px; }
}

/* Mobile */
@media (max-width: 780px) {
  body.admin-bar .site-header { top:46px; }
  .container { width:min(calc(100% - 28px), var(--esc-max)); }
  .section { padding:70px 0; }
  .header-inner { height:76px; }
  .brand img { width:56px; height:56px; }
  .menu-toggle { display:block; }
  .primary-nav { position:absolute; top:calc(100% + 1px); left:0; right:0; max-height:0; overflow:hidden; background:rgba(7,5,11,.98); border-bottom:1px solid transparent; transition:max-height .35s ease,border-color .35s ease; }
  .primary-nav.is-open { max-height:520px; border-color:var(--esc-line); }
  .primary-nav ul { display:grid; gap:0; padding:12px 18px 22px; }
  .primary-nav li { border-bottom:1px solid rgba(255,255,255,.06); }
  .primary-nav a { display:block; padding:14px 8px; font-size:.88rem; }
  .primary-nav a::after { display:none; }
  .nav-cta { margin-top:10px; text-align:center; }

  .hero-grid { display:flex; flex-direction:column; gap:12px; padding:54px 0 64px; text-align:center; }
  .hero-emblem-wrap { order:1; width:100%; }
  .hero-emblem { width:min(88vw,390px); max-height:none; object-fit:contain; }
  .hero-content { order:2; width:100%; }
  .hero-eyebrow { font-size:.68rem; letter-spacing:.15em; margin-top:18px; }
  .hero-title { font-size:clamp(2.65rem,13.2vw,4.15rem); line-height:.94; letter-spacing:-.035em; overflow-wrap:anywhere; }
  .hero-title .small { font-size:.62em; }
  .hero-tagline { margin-top:22px; font-size:1.08rem; line-height:1.5; }
  .hero-actions { display:grid; grid-template-columns:1fr; gap:12px; margin-top:26px; }
  .btn { width:100%; min-height:55px; }
  .hero-proof { grid-template-columns:1fr; gap:0; margin-top:28px; }
  .proof-item { padding:10px; }

  .about-grid, .contact-grid, .mission-panel { grid-template-columns:1fr; gap:34px; }
  .about-card { min-height:auto; }
  .about-card img { min-height:auto; padding:24px; }
  .about-badge { position:static; margin:0 18px 18px; }
  .section-head { display:block; }
  .pillars-grid { grid-template-columns:1fr; }
  .pillar-card { min-height:auto; }
  .mission-panel { padding:34px 24px; }
  .gallery-grid { grid-template-columns:1fr; grid-auto-rows:260px; }
  .gallery-tile:first-child { grid-column:auto; height:auto; }
  .form-grid { grid-template-columns:1fr; }
  .form-field.full { grid-column:auto; }
  .contact-form { padding:22px 18px; }
  .footer-grid { grid-template-columns:1fr; gap:30px; }
}

@media (max-width: 390px) {
  .hero-title { font-size:clamp(2.35rem,12.4vw,3.2rem); }
  .hero-emblem { width:min(92vw,340px); }
  .section-title { font-size:2.05rem; }
}
