/*
Theme Name: WHS Halal Congress
Theme URI: https://whshalalcongress.com
Author: KongreSoft
Description: Custom theme for the WHS Halal Congress — designed as an extension of the World Halal Summit visual identity (navy & gold).
Version: 1.0.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: whscongress
*/

:root {
  --navy-950: #061426;
  --navy-900: #081a33;
  --navy-800: #0c2347;
  --navy-700: #123059;
  --navy-100: #dce4f0;
  --gold: #c9a227;
  --gold-light: #e5c766;
  --gold-pale: #f6ecd2;
  --cream: #faf8f2;
  --ink: #1c2733;
  --ink-soft: #4a5768;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(8, 26, 51, 0.12);
  --font-display: "Marcellus", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; color: var(--navy-900); }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-950); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--gold-pale); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--navy-100);
  font-size: 13px;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 38px; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: var(--navy-100); }
.topbar a:hover { color: var(--gold-light); }
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar .whs-link { color: var(--gold-light); font-weight: 600; }
.lang-switcher { display: flex; gap: 10px; list-style: none; }
.lang-switcher a { text-transform: uppercase; letter-spacing: 0.08em; }
.lang-switcher .current-lang a { color: var(--gold-light); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-900);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 14px rgba(6, 20, 38, 0.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 24px;
}
.site-brand { display: flex; align-items: baseline; gap: 10px; }
.site-brand .brand-title {
  font-family: var(--font-display);
  font-size: 24px; color: var(--white); letter-spacing: 0.01em;
}
.site-brand .brand-title .gold { color: var(--gold-light); }
.site-brand .brand-tag { font-size: 11px; color: var(--navy-100); letter-spacing: 0.14em; text-transform: uppercase; }

.main-nav ul { display: flex; list-style: none; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 10px 14px; color: var(--white);
  font-size: 14.5px; font-weight: 500; border-radius: 6px;
}
.main-nav a:hover { color: var(--gold-light); background: rgba(255,255,255,0.06); }
.main-nav .current-menu-item > a { color: var(--gold-light); }
.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,0.4);
  color: var(--white); border-radius: 8px; padding: 8px 12px; font-size: 18px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201,162,39,0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  color: var(--white);
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 90px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero-kicker {
  display: inline-block; padding: 7px 18px; border: 1px solid rgba(229,199,102,0.55);
  border-radius: 999px; color: var(--gold-light);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 26px;
}
.hero h1 { color: var(--white); font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 18px; }
.hero h1 .gold { color: var(--gold-light); }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--navy-100); margin-bottom: 12px; }
.hero-meta {
  display: flex; gap: 26px; flex-wrap: wrap; margin: 26px 0 36px;
  color: var(--gold-pale); font-size: 16px; font-weight: 600;
}
.hero-meta span { display: flex; align-items: center; gap: 9px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Countdown ---------- */
.countdown-band { background: var(--navy-950); padding: 34px 0; border-top: 1px solid rgba(229,199,102,0.25); }
.countdown-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.countdown-label { color: var(--gold-light); font-family: var(--font-display); font-size: 20px; }
.countdown { display: flex; gap: 16px; }
.cd-box {
  min-width: 84px; text-align: center; padding: 14px 10px;
  border: 1px solid rgba(229,199,102,0.4); border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
}
.cd-box b { display: block; font-size: 30px; color: var(--white); font-family: var(--font-display); }
.cd-box span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-100); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--cream); }
.section-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: var(--navy-100); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-kicker {
  color: var(--gold); font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { color: var(--ink-soft); margin-top: 14px; }
.section-navy .section-head p { color: var(--navy-100); }

.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 18px; }
.about-grid p { color: var(--ink-soft); margin-bottom: 14px; }
.about-highlight {
  background: var(--navy-900); color: var(--gold-pale); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow);
}
.about-highlight h3 { color: var(--gold-light); font-size: 22px; margin-bottom: 12px; }
.about-highlight p { color: var(--navy-100); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid #e7e3d6; border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .card-num {
  font-family: var(--font-display); font-size: 15px; color: var(--gold);
  letter-spacing: 0.1em; display: block; margin-bottom: 12px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }

.section-navy .card { background: rgba(255,255,255,0.05); border-color: rgba(229,199,102,0.25); }
.section-navy .card h3 { color: var(--gold-light); }
.section-navy .card p { color: var(--navy-100); }

/* ---------- Important dates ---------- */
.dates-list { max-width: 760px; margin: 0 auto; list-style: none; }
.dates-list li {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid #e7e3d6; flex-wrap: wrap;
}
.dates-list li:last-child { border-bottom: none; }
.dates-list .d-label { font-weight: 600; color: var(--navy-800); }
.dates-list .d-value { color: var(--gold); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }

/* ---------- TBA / speakers ---------- */
.tba-box {
  max-width: 680px; margin: 0 auto; text-align: center;
  border: 2px dashed rgba(201,162,39,0.5); border-radius: var(--radius);
  padding: 48px 32px; color: var(--ink-soft);
}
.section-navy .tba-box { color: var(--navy-100); }
.tba-box h3 { font-size: 22px; margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 60px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--navy-950); font-size: clamp(24px, 3vw, 34px); }
.cta-inner p { color: var(--navy-800); margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 920px; margin: 0 auto; }
.contact-card { text-align: center; padding: 34px 24px; }
.contact-card .ico { font-size: 28px; margin-bottom: 12px; }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card a { font-weight: 600; }

/* ---------- Page (inner) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white); padding: 72px 0 56px; text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 44px); }
.page-hero .breadcrumb { color: var(--gold-light); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 12px; }
.page-content { padding: 64px 0; }
.page-content .entry { max-width: 860px; margin: 0 auto; }
.entry h2 { font-size: 28px; margin: 36px 0 14px; }
.entry h3 { font-size: 21px; margin: 28px 0 10px; }
.entry p, .entry li { color: var(--ink-soft); margin-bottom: 12px; }
.entry ul, .entry ol { padding-left: 24px; margin-bottom: 16px; }
.entry table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.entry th, .entry td { border: 1px solid #e7e3d6; padding: 12px 14px; text-align: left; font-size: 15px; }
.entry th { background: var(--navy-900); color: var(--gold-pale); font-weight: 600; }
.entry blockquote {
  border-left: 4px solid var(--gold); background: var(--cream);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--navy-100); padding: 64px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: var(--gold-light); font-size: 17px; margin-bottom: 16px; }
.site-footer a { color: var(--navy-100); }
.site-footer a:hover { color: var(--gold-light); }
.footer-menu { list-style: none; }
.footer-menu li { margin-bottom: 9px; }
.footer-brand-title { font-family: var(--font-display); font-size: 22px; color: var(--white); margin-bottom: 12px; }
.footer-brand-title .gold { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 0 18px; }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 64px; }
  .countdown { flex-wrap: wrap; justify-content: center; }
}
