/* ============================================
   Project 0089 - Local Community Portal Theme
   Warm amber/orange + earthy brown + cream
   ============================================ */

/* --- Custom Properties --- */
:root {
  --cream: #fef9f0;
  --warm-white: #fffaf3;
  --amber: #d97706;
  --amber-light: #f59e0b;
  --deep-brown: #3d2b1f;
  --brown: #5c3d2e;
  --earth: #8b6914;
  --tan: #e8d5b7;
  --text-dark: #2d1f10;
  --text-medium: #5c3d2e;
  --text-light: #8b7355;
  --border-warm: rgba(139,105,20,0.15);
  --shadow-warm: 0 4px 24px rgba(61,43,31,0.08);
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
}

/* --- Navbar --- */
#navbar {
  background: rgba(254,249,240,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-warm);
  transition: all 0.35s ease;
}
#navbar.scrolled {
  box-shadow: var(--shadow-warm);
}
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-medium);
  transition: color 0.25s;
}
.nav-link:hover,
.nav-link.active { color: var(--amber); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 60%; }

/* --- Hero (Community Portal) --- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, #fef9f0 0%, #fdf3e0 30%, #fce8cc 70%, #fef9f0 100%);
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,6,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,105,20,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217,119,6,0.1);
  border: 1px solid rgba(217,119,6,0.25);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
}
.hero-badge .community-icon {
  font-size: 0.9rem;
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--deep-brown);
}
.hero-title .accent { color: var(--amber); }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Feature Cards (Community Bulletin) --- */
.feature-card {
  background: var(--warm-white);
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  padding: 30px 24px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 12px rgba(61,43,31,0.03);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(61,43,31,0.1);
  border-color: rgba(217,119,6,0.3);
}
.feature-card .pin-icon {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--amber);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(217,119,6,0.3);
  z-index: 2;
}
.feature-card .icon-box {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(217,119,6,0.08);
  color: var(--amber);
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.feature-card .bulletin-date {
  font-size: 0.75rem;
  color: var(--text-light);
  display: inline-block;
  margin-bottom: 8px;
}
.feature-card h3 {
  color: var(--deep-brown);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Stats (Community Milestones) --- */
.stats-section {
  background: linear-gradient(180deg, var(--deep-brown) 0%, #4a3220 100%);
  padding: 60px 0;
}
.stat-card {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12), transparent);
}
.stat-card:last-child::after { display: none; }
.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--amber-light);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.stat-milestone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.stat-milestone i { font-size: 0.6rem; }

/* --- Testimonials --- */
.testimonial-card {
  background: var(--warm-white);
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.35s ease;
  box-shadow: 0 2px 12px rgba(61,43,31,0.03);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-warm);
  transform: translateY(-4px);
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--earth));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}
.testimonial-card .stars {
  color: var(--amber-light);
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  background: var(--warm-white);
  overflow: hidden;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(217,119,6,0.2); }
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--deep-brown);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--amber);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  content: '\2212';
  transform: rotate(180deg);
}
.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--text-medium);
  line-height: 1.7;
  font-size: 0.925rem;
}

/* --- CTA --- */
.cta-section {
  background: linear-gradient(135deg, #3d2b1f 0%, #5c3d2e 50%, #8b6914 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(245,158,11,0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Footer --- */
.footer-link {
  color: #9ca3af;
  transition: color 0.25s;
  font-size: 0.875rem;
}
.footer-link:hover { color: var(--amber-light); }

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, var(--amber), #b45309);
  color: #fff;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(217,119,6,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(217,119,6,0.45);
}
.btn-outline {
  border: 2px solid var(--deep-brown);
  color: var(--deep-brown);
  font-weight: 700;
  padding: 12px 34px;
  border-radius: 50px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  background: var(--deep-brown);
  color: var(--cream);
}

/* --- Mobile nav --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(254,249,240,0.98);
  backdrop-filter: blur(16px);
  flex-direction: column;
  padding: 40px 28px;
  gap: 24px;
  z-index: 50;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-brown);
}

/* --- Page header (inner pages) --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #fdf3e0 0%, var(--cream) 100%);
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--deep-brown);
}

/* --- About page --- */
.about-value-card {
  background: var(--warm-white);
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(61,43,31,0.03);
}
.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
}
.about-image-placeholder {
  background: linear-gradient(135deg, rgba(217,119,6,0.15), rgba(139,105,20,0.1));
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  font-size: 3rem;
  color: var(--amber);
}

/* --- Contact page --- */
.contact-input {
  width: 100%;
  background: var(--warm-white);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
}
.contact-input:focus { border-color: var(--amber); }
.contact-input::placeholder { color: var(--text-light); }
