/*
Theme Name: ILS 2027
Theme URI: https://iskconleaders.org
Author: ILS Executive Committee
Description: A responsive event website theme for ISKCON Leadership Sanga 2027.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: ils2027
*/

:root {
  --saffron: #e69b16;
  --gold: #f5bf24;
  --deep-gold: #b66b0c;
  --ink: #28211c;
  --blue: #1154ad;
  --cream: #fffaf0;
  --soft: #f7efe1;
  --white: #ffffff;
  --muted: #6d6257;
  --border: rgba(65, 43, 20, .15);
  --shadow: 0 20px 60px rgba(61, 40, 16, .13);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,250,240,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 240px; display: block; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: .95rem; }
.site-nav a:hover { color: var(--deep-gold); }
.menu-toggle { display:none; border:0; background:transparent; font-size:1.7rem; }

.button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 800; border: 1px solid transparent; transition: .2s ease;
}
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { transform: translateY(-2px); background: #000; }
.button-secondary { border-color: var(--ink); background: transparent; }
.button-secondary:hover { background: var(--ink); color: var(--white); }
.button-disabled { background: #dfd8ce; color: #756e66; cursor:not-allowed; }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.5), transparent 30%),
    linear-gradient(125deg, #f8c523 0%, #efa714 48%, #d9860e 100%);
  padding: 82px 0 70px;
}
.hero:before, .hero:after { content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.11); }
.hero:before { width:420px; height:420px; right:-100px; top:-150px; }
.hero:after { width:280px; height:280px; left:-100px; bottom:-170px; }
.hero-grid { position:relative; z-index:2; display:grid; grid-template-columns: 1.1fr .9fr; gap:60px; align-items:center; }
.kicker { text-transform:uppercase; letter-spacing:.18em; font-size:.8rem; font-weight:900; }
.hero h1 { margin:.2em 0 .25em; font-size:clamp(3.2rem,8vw,7rem); line-height:.88; letter-spacing:-.065em; }
.hero h1 span { display:block; color:var(--white); font-size:.38em; letter-spacing:-.02em; margin-top:.38em; }
.hero-theme { font-size:clamp(1.2rem,2.2vw,1.75rem); font-family: Georgia, serif; max-width:780px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.hero-card { background:rgba(255,255,255,.94); border:1px solid rgba(255,255,255,.7); border-radius:32px; padding:34px; box-shadow:var(--shadow); }
.hero-card img { display:block; margin:auto; max-height:250px; object-fit:contain; }
.event-meta { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:24px; }
.meta-box { background:var(--soft); border-radius:18px; padding:18px; }
.meta-box strong { display:block; font-size:1.05rem; }
.meta-box span { color:var(--muted); font-size:.9rem; }

section { padding: 86px 0; }
.section-head { max-width:800px; margin-bottom:38px; }
.section-head h2 { font-family:Georgia,serif; font-size:clamp(2.2rem,4vw,4rem); line-height:1.05; margin:.1em 0 .3em; }
.section-head p { color:var(--muted); font-size:1.1rem; }
.eyebrow { color:var(--deep-gold); text-transform:uppercase; letter-spacing:.15em; font-weight:900; font-size:.78rem; }

.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:46px; align-items:start; }
.lead { font-size:1.24rem; font-family:Georgia,serif; }
.quote-card { background:var(--ink); color:var(--white); padding:38px; border-radius:var(--radius); box-shadow:var(--shadow); }
.quote-card p { font-size:1.35rem; font-family:Georgia,serif; margin:0; }
.quote-card small { display:block; margin-top:18px; color:#ead8c2; }

.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:42px; }
.stat { background:var(--white); border:1px solid var(--border); border-radius:20px; padding:24px; }
.stat strong { font-size:2rem; display:block; }

.eligibility { background:var(--soft); }
.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.role-card { background:var(--white); border:1px solid var(--border); border-radius:20px; padding:24px; box-shadow:0 8px 30px rgba(62,45,25,.06); }
.role-card h3 { margin:8px 0; font-size:1.15rem; }
.role-card p { color:var(--muted); margin:0; font-size:.95rem; }
.role-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:14px; background:#fff1c6; font-weight:900; color:var(--deep-gold); }

.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.info-panel { border-radius:var(--radius); padding:36px; background:var(--white); border:1px solid var(--border); }
.info-panel.highlight { background:var(--blue); color:var(--white); border-color:transparent; }
.info-panel h3 { font-family:Georgia,serif; font-size:2rem; margin:.2em 0; }
.info-panel ul { padding-left:20px; }
.notice { display:inline-block; font-size:.8rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; background:rgba(255,255,255,.2); padding:7px 11px; border-radius:999px; }

.cta { padding-top:20px; }
.cta-box { background:linear-gradient(135deg, var(--ink), #503214); color:var(--white); border-radius:32px; padding:54px; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.cta-box h2 { font-family:Georgia,serif; font-size:clamp(2rem,4vw,3.6rem); margin:0; }
.cta-box p { color:#eadfce; max-width:680px; }

.site-footer { background:#1e1915; color:#eee4d7; padding:56px 0 30px; margin-top:80px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; }
.site-footer h3 { color:white; }
.site-footer a { color:#eee4d7; text-decoration:none; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding-top:22px; margin-top:40px; color:#bfb2a5; font-size:.9rem; }

.content-page { padding:70px 0; }
.content-page article { max-width:860px; margin:auto; background:white; padding:48px; border-radius:24px; border:1px solid var(--border); }

@media (max-width: 900px) {
  .hero-grid, .about-grid, .info-grid { grid-template-columns:1fr; }
  .card-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .site-nav { display:none; position:absolute; top:84px; left:0; right:0; background:var(--cream); padding:24px; border-bottom:1px solid var(--border); }
  .site-nav.open { display:block; }
  .site-nav ul { flex-direction:column; align-items:flex-start; }
  .menu-toggle { display:block; }
}
@media (max-width: 620px) {
  .container { width:min(100% - 26px,1180px); }
  .hero { padding-top:50px; }
  .hero h1 { font-size:4rem; }
  .hero-card { padding:22px; }
  .event-meta, .stats, .card-grid, .footer-grid { grid-template-columns:1fr; }
  .cta-box { padding:34px 24px; align-items:flex-start; flex-direction:column; }
  .brand img { width:180px; }
  .content-page article { padding:26px; }
}

/* ===== ILS 2027 registration form (added for iskconleader registration) ===== */
.form-page { padding: 60px 0 80px; }
.form-page article { max-width: 760px; margin: auto; background: var(--white); padding: 44px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 8px 30px rgba(62,45,25,.06); }
.form-page h1 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 6px; }
.form-sub { color: var(--muted); margin: 0 0 30px; }

.field { margin-bottom: 20px; flex: 1; }
.field-row { display: flex; gap: 20px; flex-wrap: wrap; }
.field-row .field { min-width: 240px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.req { color: #b3261e; }

.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit; color: var(--ink);
  border: 1px solid var(--border); border-radius: 14px; background: var(--cream);
}
.field input:focus, .field select:focus { outline: 2px solid var(--saffron); outline-offset: 1px; border-color: var(--saffron); }
.field input[type="file"] { font-size: .95rem; }

.hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.field-error { color: #b3261e; font-size: .85rem; margin-top: 5px; font-weight: 600; }

.alert { border-radius: 18px; padding: 18px 22px; margin-bottom: 20px; }
.alert-error { background: #fdecea; border: 1px solid #f2b8b5; color: #b3261e; }
.alert-notice { background: #fff1c6; border: 1px solid var(--gold); }
.alert-notice p { margin: 0 0 10px; font-size: .95rem; }
.alert-notice p:last-child { margin-bottom: 0; }
.recommenders strong { color: var(--deep-gold); }

.letter-block { border-left: 4px solid var(--saffron); padding-left: 16px; margin: 26px 0; }
.button-form { width: 100%; border: 0; font-size: 1.05rem; cursor: pointer; font-family: inherit; }
.button-form[disabled] { opacity: .6; cursor: wait; }

.success-card { max-width: 620px; margin: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 40px; text-align: center; box-shadow: 0 8px 30px rgba(62,45,25,.06); }
.success-card h1 { font-family: Georgia, serif; font-size: 1.9rem; margin: 0 0 14px; }
.success-card p { margin: 0 0 14px; }
.success-mark { display: grid; place-items: center; margin: 0 auto 18px; width: 58px; height: 58px; border-radius: 50%; background: #e6f4ea; color: #1e7e34; font-size: 1.7rem; font-weight: 800; }

/* ===== Payment options ===== */
.payment-field { background: var(--soft); border-radius: 18px; padding: 20px; }
.radio-option { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin: 10px 0 0; cursor: pointer; }
.radio-option input { margin-top: 5px; accent-color: var(--deep-gold); }
.link-button { border: 0; background: none; color: var(--deep-gold); text-decoration: underline; cursor: pointer; font-size: .9rem; font-family: inherit; padding: 0; }

/* ===== Admin console ===== */
.admin-page { padding: 50px 0 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-family: Georgia, serif; font-size: 2.4rem; margin: 0; }
.admin-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-filters input, .admin-filters select {
  padding: 10px 14px; font-size: .95rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: 12px; background: var(--white);
}
.admin-filters input { min-width: 240px; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: 18px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { background: var(--soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: 0; }
.muted-small { color: var(--muted); font-size: .82rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-paid { background: #e6f4ea; color: #1e7e34; }
.badge-pending { background: #fff1c6; color: var(--deep-gold); }

/* ===== Country combobox ===== */
.combobox { position: relative; }
.combo-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(62,45,25,.14);
  max-height: 260px; overflow-y: auto;
}
.combo-list li { padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: .95rem; }
.combo-list li:hover, .combo-list li.active { background: var(--soft); color: var(--deep-gold); }

/* Disabled payment option (India: online payment only) */
.radio-option.disabled { opacity: .45; cursor: not-allowed; }
.radio-option.disabled input { cursor: not-allowed; }

/* Incomplete (unpaid online) registrations in the admin table */
.badge-incomplete { background: #eee7dc; color: #756e66; }

.reg-no { font-size: 1.15rem; background: var(--soft); border-radius: 12px; padding: 10px 16px; display: inline-block; letter-spacing: 1px; }

.action-cell { white-space: nowrap; }
.action-cell a, .action-cell .link-button { display: block; margin-bottom: 4px; font-size: .85rem; color: var(--deep-gold); }

.admin-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.field textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit; color: var(--ink);
  border: 1px solid var(--border); border-radius: 14px; background: var(--cream); resize: vertical;
}
.field textarea:focus { outline: 2px solid var(--saffron); outline-offset: 1px; border-color: var(--saffron); }
