/* Agentcities Heritage — Custom Styles */
/* Framework: Bulma CSS (CDN) — custom overrides only */

:root {
  --navy: #0d1b3e;
  --indigo: #1e3a8a;
  --indigo-light: #2563eb;
  --indigo-pale: #dbeafe;
  --cyan: #06b6d4;
  --cyan-pale: #cffafe;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #ffffff;
}
img { max-width: 100%; height: auto; }
a { color: var(--indigo-light); }
a:hover { color: var(--cyan); }

/* ── Navbar ── */
.navbar {
  background: var(--navy) !important;
  border-bottom: 3px solid var(--indigo-light);
  padding: 0.5rem 0;
}
.navbar-brand .navbar-item {
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff !important;
  letter-spacing: -0.02em;
}
.navbar-brand .navbar-item span {
  color: var(--cyan);
}
.navbar-menu .navbar-item {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar-menu .navbar-item:hover {
  color: var(--cyan) !important;
  background: transparent !important;
}
.navbar-burger span {
  background-color: #fff !important;
}

/* ── Hero ── */
.hero-main {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 60%, #1d4ed8 100%);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/hero-network.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.hero-main .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}
.hero-main h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-main .hero-lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 2rem;
}
.hero-badge {
  display: inline-block;
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); color: var(--navy); }
.btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: #fff; color: #fff; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--indigo) 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
}
.page-hero .page-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}
.breadcrumb-bar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumb-bar a { color: var(--indigo-light); text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }

/* ── Main content sections ── */
.section-main {
  padding: 4rem 1.5rem;
}
.section-alt {
  background: var(--gray-50);
  padding: 4rem 1.5rem;
}
.container-inner {
  max-width: 860px;
  margin: 0 auto;
}
.container-wide {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Typography ── */
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.8rem;
  letter-spacing: -0.02em;
  padding-top: 0.5rem;
  border-top: 2px solid var(--indigo-pale);
}
.prose h2:first-of-type { margin-top: 1rem; border-top: none; }
.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--indigo);
  margin: 1.5rem 0 0.5rem;
}
.prose p {
  line-height: 1.8;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}
.prose ul, .prose ol {
  margin: 0.8rem 0 1.2rem 1.5rem;
}
.prose li {
  line-height: 1.8;
  margin-bottom: 0.4rem;
}
.prose strong { color: var(--navy); }
.prose code {
  background: var(--indigo-pale);
  color: var(--indigo);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.prose a { color: var(--indigo-light); font-weight: 500; }
.prose a:hover { color: var(--cyan); }

/* ── Feature cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.15s;
}
.feature-card:hover {
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.1);
  transform: translateY(-2px);
}
.feature-card .card-icon {
  width: 44px;
  height: 44px;
  background: var(--indigo-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--indigo);
  font-size: 1.3rem;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}
.feature-card a {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--indigo-light);
  text-decoration: none;
}
.feature-card a:hover { color: var(--cyan); }

/* ── Stats band ── */
.stats-band {
  background: var(--indigo);
  color: #fff;
  padding: 3rem 1.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

/* ── Images within prose ── */
.prose-image {
  border-radius: 10px;
  overflow: hidden;
  margin: 1.8rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.prose-image img {
  display: block;
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}
.prose-image figcaption {
  background: var(--gray-100);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── WG list (working groups page) ── */
.wg-card {
  border-left: 4px solid var(--indigo-light);
  background: var(--gray-50);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.2rem;
}
.wg-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.4rem;
  border: none !important;
  padding: 0 !important;
}
.wg-card p { font-size: 0.95rem; color: var(--text-light); margin: 0; }

/* ── Event timeline ── */
.event-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.event-item:last-child { border-bottom: none; }
.event-year {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--indigo);
  padding-top: 0.1rem;
}
.event-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.3rem;
}
.event-body p { font-size: 0.93rem; margin: 0; }

/* ── Contact form ── */
.contact-form-wrapper {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}
.contact-form .form-group {
  margin-bottom: 1.2rem;
}
.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 3px var(--indigo-pale);
}
.btn-submit {
  background: var(--indigo);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--indigo-light); }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}
.footer-brand .brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
}
.footer-brand .brand-name span { color: var(--cyan); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin: 0; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.8rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-cta-row { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
  .event-item { grid-template-columns: 1fr; gap: 0.3rem; }
}
