/*
Theme Name: Flourishing Biz Circle
Theme URI: https://flourishingbizcircle.com
Author: FBC
Author URI: https://flourishingbizcircle.com
Description: A vibrant community theme for Flourishing Biz Circle — connecting entrepreneurs across Malaysia.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fbc
Tags: business, community, blog, custom-menu, featured-images, footer-widgets, full-width-template
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --green: #1D9E75;
  --green-dark: #0F6E56;
  --green-light: #E1F5EE;
  --cream: #FAF8F3;
  --ink: #1A1A18;
  --muted: #6B6B64;
  --border: rgba(0,0,0,0.08);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { line-height: 1.7; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(250,248,243,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--green); }

.main-navigation ul {
  display: flex; gap: 2rem;
}

.main-navigation a {
  font-size: 0.85rem; font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--green); }

.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }

.menu-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  color: var(--ink);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 500; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); color: #fff; }

.btn-secondary {
  border: 1.5px solid var(--border);
  color: var(--ink);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 500; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--green); background: var(--green-light); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 5% 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, #c8f0e0 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 10% 80%, #e1f5ee 0%, transparent 50%);
  opacity: 0.6;
}

.hero-content {
  position: relative; max-width: 680px;
  animation: fadeUp 0.9s ease both;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--green); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  display: flex; gap: 3rem; flex-wrap: wrap;
  padding: 2.5rem 5%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem; font-weight: 700;
  color: var(--green); line-height: 1;
}
.stat-label {
  font-size: 0.82rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 4px;
}

/* =============================================
   SECTION SHARED
   ============================================= */
.site-section { padding: 6rem 5%; }

.section-label {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1rem;
  display: block;
}

.section-title { margin-bottom: 1rem; }

.section-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 520px; margin-bottom: 3rem;
}

/* =============================================
   ABOUT
   ============================================= */
.about-section { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}

.about-body p { color: var(--muted); line-height: 1.8; font-size: 0.95rem; }

.about-image-wrap {
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #c8f0e0, #a0dfc3);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.about-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-image-wrap::after {
  content: '';
  position: absolute; bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  background: var(--green); border-radius: 50%; opacity: 0.15;
}

/* =============================================
   CIRCLES
   ============================================= */
.circles-section { background: var(--cream); }

.circles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.circle-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.circle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.circle-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
}
.circle-card.c1::before { background: #378ADD; }
.circle-card.c2::before { background: #EF9F27; }
.circle-card.c3::before { background: #639922; }
.circle-card.c4::before { background: #D4537E; }

.circle-num {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.circle-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.circle-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* =============================================
   BLOG
   ============================================= */
.blog-section { background: #fff; }

.blog-section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem;
}

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

.blog-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.blog-thumb {
  height: 180px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background: var(--green-light);
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }

.blog-body { padding: 1.5rem; }

.blog-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); background: var(--green-light);
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 0.75rem;
}

.blog-title {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700;
  line-height: 1.35; margin-bottom: 0.5rem;
}
.blog-title a { color: var(--ink); }
.blog-title a:hover { color: var(--green); }

.blog-meta { font-size: 0.78rem; color: var(--muted); margin-top: 1rem; }

/* =============================================
   GALLERY / MEDIA
   ============================================= */
.media-section { background: var(--cream); }

.media-section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.25s, opacity 0.25s;
}
.gallery-item:hover { transform: scale(1.03); opacity: 0.9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item:nth-child(1) { background: #d4edda; grid-column: span 2; }
.gallery-item:nth-child(2) { background: #FAEEDA; }
.gallery-item:nth-child(3) { background: #E6F1FB; }
.gallery-item:nth-child(4) { background: #FBEAF0; grid-column: span 2; }
.gallery-item:nth-child(5) { background: #EAF3DE; }
.gallery-item:nth-child(6) { background: #E6F1FB; }

/* =============================================
   JOIN CTA
   ============================================= */
.join-section {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
}
.join-section .section-label { color: rgba(255,255,255,0.6); }
.join-section .section-title { color: #fff; margin-bottom: 1rem; }
.join-section .section-sub { color: rgba(255,255,255,0.7); margin: 0 auto 3rem; }

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; max-width: 900px; margin: 0 auto 3rem;
}

.join-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.join-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }

.join-card-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.join-card-name { font-weight: 500; color: #fff; font-size: 0.95rem; }
.join-card-sub { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.join-card-cta { color: #a0dfc3; font-size: 0.8rem; font-weight: 500; }

.join-social {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2rem;
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.join-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--green-dark);
  padding: 1rem 2.5rem; border-radius: 100px;
  font-weight: 500; font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}
.join-btn:hover { background: var(--green-light); transform: translateY(-2px); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem 5%;
  font-size: 0.82rem;
}
.site-footer strong { color: rgba(255,255,255,0.8); }
.site-footer a { color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: var(--green); }

/* =============================================
   SINGLE POST / PAGES
   ============================================= */
.content-wrap { max-width: 760px; margin: 0 auto; padding: 7rem 5% 5rem; }

.entry-header { margin-bottom: 2.5rem; }
.entry-title { font-family: var(--font-serif); margin-bottom: 1rem; }
.entry-meta { font-size: 0.85rem; color: var(--muted); }
.entry-meta a { color: var(--green); }

.entry-content { line-height: 1.8; }
.entry-content p { margin-bottom: 1.4rem; }
.entry-content h2, .entry-content h3 { margin: 2.5rem 0 1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content img { border-radius: 12px; margin: 2rem 0; }
.entry-content a { color: var(--green); text-decoration: underline; }
.entry-content blockquote {
  border-left: 3px solid var(--green);
  padding-left: 1.5rem; margin: 2rem 0;
  color: var(--muted); font-style: italic;
}

/* =============================================
   WIDGETS / SIDEBAR
   ============================================= */
.widget { margin-bottom: 2.5rem; }
.widget-title {
  font-family: var(--font-serif);
  font-size: 1.1rem; margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-area { margin-top: 3rem; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font-sans); font-size: 0.9rem;
  background: #fff; margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--green);
}
.comment-form .submit {
  background: var(--green); color: #fff;
  border: none; padding: 0.75rem 2rem;
  border-radius: 100px; cursor: pointer;
  font-weight: 500; font-size: 0.9rem;
  transition: background 0.2s;
}
.comment-form .submit:hover { background: var(--green-dark); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 768px) {
  .main-navigation { display: none; }
  .main-navigation.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: rgba(250,248,243,0.98); border-bottom: 1px solid var(--border); padding: 1.5rem 5%; }
  .main-navigation.is-open ul { flex-direction: column; gap: 1rem; }
  .menu-toggle { display: block; }
  .stats-bar { gap: 2rem; }
}
