/*
Theme Name: Innovators Campus
Theme URI: https://innovators-campus.com
Author: Innovators Campus
Author URI: https://innovators-campus.com
Description: Custom theme for Innovators Campus – the cross-border startup community connecting founders across Australia and Japan.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: ic-theme
*/

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */

:root {
  --bg: #0a0d12;
  --surface: #111520;
  --surface2: #161b26;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e8eaf0;
  --muted: #7a8294;
  --accent: #2eb8f0;
  --accent2: #1a9fd8;
  --gold: #e8c76a;
  --gold2: #c9a83c;
  --white: #ffffff;
  --radius: 12px;
  --nav-height: 68px;
  --admin-bar: 0px;
  --container: 1120px;
}

/* WP admin bar is 32px desktop, 46px on narrow screens */
.admin-bar { --admin-bar: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar { --admin-bar: 46px; }
}

/* ── EMOJI SIZE RESET ─────────────────────────────────
   WP / system fonts blow emoji up to ~28px by default.
   Cap them to 1em wherever they appear as decorators.
   ─────────────────────────────────────────────────── */
img.emoji {
  height: 1em !important;
  width: 1em !important;
  vertical-align: -0.1em;
  display: inline;
}

.event-card-meta span,
.event-meta span,
.upcoming-meta span,
.nl-post-date {
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Contain any raw emoji inside small-text contexts */
.event-card-meta,
.event-meta,
.upcoming-meta,
.nl-post-date,
.founding-badge,
.founding-tag,
.hero-eyebrow,
.upcoming-label,
.stat-label,
.nl-perk-icon {
  font-size: inherit;
}

/* =====================================================
   RESET & BASE
   ===================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Geist', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Geist heading optimisation - tight tracking at display sizes */
h1 { letter-spacing: -0.03em; }
h2 { letter-spacing: -0.025em; }
h3 { letter-spacing: -0.015em; }
h4 { letter-spacing: -0.01em; }

/* Geist looks best at slightly tighter line-height for headings */
h1, h2, h3, h4 {
  font-family: 'Geist', sans-serif;
  line-height: 1.15;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* WordPress alignment classes */
.alignleft  { float: left;  margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin: 0 auto; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */

.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  padding: 96px 24px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.site-header {
  position: fixed;
  top: var(--admin-bar);
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(10, 13, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.site-header.scrolled {
  background: rgba(10, 13, 18, 0.97);
}

/* Left cluster: logo + nav + social icons */
.nav-left-cluster {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  min-width: 0;
}

.site-logo {
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 36px;
  width: auto;
}

/* Primary nav - sits right of logo */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.primary-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-page-ancestor > a {
  color: var(--white);
}

/* Hide Join CTA from inline nav - it lives as a standalone button now */
.primary-nav .menu-item-join {
  display: none;
}

/* Standalone Join CTA - far right */
.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 8px 20px !important;
  border-radius: 6px;
  font-weight: 500 !important;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent2) !important;
  color: var(--white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--admin-bar) + var(--nav-height));
  left: 0;
  right: 0;
  background: rgba(10, 13, 18, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 9998;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--white); }

.mobile-nav .mobile-cta {
  margin-top: 16px;
  background: var(--accent);
  color: var(--bg) !important;
  padding: 14px 20px !important;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border-bottom: none !important;
}

/* =====================================================
   SHARED COMPONENTS
   ===================================================== */

/* Wave decoration */
.wave-deco {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

/* Section label */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(46, 184, 240, 0.3);
}

.btn-gold {
  background: var(--gold);
  color: #0a0d12;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.btn-gold:hover {
  background: #f0d47e;
  color: #0a0d12;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(232, 199, 106, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav left cluster wrapper ───────────────────────────
   Contains: logo + primary-nav + nav-socials
   ────────────────────────────────────────────────────── */
.nav-right {
  /* kept for back-compat with header.php wrapper but no longer used for positioning */
  display: contents;
}

/* ── Header social icons ────────────────────────────────
   Sit right of the nav links inside .nav-left-cluster.
   Separated from nav links by a subtle divider.
   ────────────────────────────────────────────────────── */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.nav-socials a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
}

.nav-socials a:hover               { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-socials a.social-fb:hover     { color: #1877f2; background: rgba(24,119,242,0.1); }
.nav-socials a.social-ig:hover     { color: #e1306c; background: rgba(225,48,108,0.1); }
.nav-socials a.social-li:hover     { color: #0a66c2; background: rgba(10,102,194,0.1); }
.nav-socials a.social-yt:hover     { color: #ff0000; background: rgba(255,0,0,0.1); }

/* ── Footer social icons - larger, branded ──────────────
   Bigger pill buttons that show the platform's brand
   color on hover so they're clearly recognisable.
   ────────────────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 10px;
  list-style: none;
  margin-top: 4px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s;
}

.social-links a:hover {
  transform: translateY(-2px);
}

/* Platform brand colours on hover */
.social-links .social-fb:hover {
  color: #ffffff;
  background: #1877f2;
  border-color: #1877f2;
}

.social-links .social-ig:hover {
  color: #ffffff;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #e1306c;
}

.social-links .social-li:hover {
  color: #ffffff;
  background: #0a66c2;
  border-color: #0a66c2;
}

.social-links .social-yt:hover {
  color: #ffffff;
  background: #ff0000;
  border-color: #ff0000;
}

/* ── Mobile nav social row ─────────────────────────────── */
.mobile-socials {
  display: flex;
  gap: 12px;
  padding: 16px 0 4px;
  align-items: center;
}

.mobile-socials a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}

.mobile-socials .social-fb:hover  { color: #fff; background: #1877f2; border-color: #1877f2; }
.mobile-socials .social-ig:hover  { color: #fff; background: #e1306c; border-color: #e1306c; }
.mobile-socials .social-li:hover  { color: #fff; background: #0a66c2; border-color: #0a66c2; }
.mobile-socials .social-yt:hover  { color: #fff; background: #ff0000; border-color: #ff0000; }

/* ── Responsive: collapse nav on mobile ───────────────── */
@media (max-width: 900px) {
  .site-header { padding: 0 20px; }
  .nav-left-cluster .primary-nav { display: none; }
  .nav-left-cluster .nav-socials  { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta    { display: none; } /* hide Join CTA on mobile - it's in the drawer */
}

/* ── Language toggle ─────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  font-family: 'Geist', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}

.lang-btn:hover  { color: var(--white); }
.lang-btn.active { color: var(--accent); background: rgba(46,184,240,0.1); }
.lang-divider    { color: var(--border); font-size: 0.7rem; user-select: none; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 40px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: var(--container);
  margin: 0 auto 48px;
}

.footer-brand .brand-name {
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.footer-brand .brand-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-family: 'Geist', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 12px;
  list-style: none;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-bottom a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--accent); }

/* =====================================================
   FAQ ACCORDION
   ===================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 800px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--white); }
.faq-question.open  { color: var(--accent); }

.faq-chevron {
  font-size: 0.8rem;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-question.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  padding: 0 24px;
}

.faq-answer.open {
  max-height: 400px;
  padding: 0 24px 20px;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.testi-section .testi-card { background: var(--bg); }

.stars {
  color: #f5a623;
  font-size: 1.05rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testi-card blockquote {
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testi-name { font-size: 0.88rem; color: var(--text); font-weight: 500; }
.testi-date { font-size: 0.78rem; color: var(--muted); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
  .site-header { padding: 0 20px; }
  .nav-left-cluster .primary-nav { display: none; }
  .nav-left-cluster .nav-socials  { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta    { display: none; }
  section { padding: 64px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer { padding: 48px 20px 24px; }
}

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
