.home-shell {
  --wp-main-yellow: #ffb74d;
  --wp-main-yellow-deep: #e39a2a;
  background:
    radial-gradient(1100px 500px at 5% -2%, rgba(4, 38, 82, .22), transparent 55%),
    radial-gradient(900px 420px at 96% 2%, rgba(31, 126, 170, .18), transparent 58%),
    linear-gradient(180deg, #f4f8fd 0%, #ffffff 38%);
}
.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  margin-bottom: 44px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: url('../../wpclone/media/burnay_hero.jpg') center/cover no-repeat;
  box-shadow: 0 24px 60px rgba(16, 32, 56, .20);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(300px, .62fr) minmax(300px, .68fr);
  gap: 24px;
  padding: 54px 36px;
  color: #fff;
  width: min(1780px, calc(100vw - 24px));
  max-width: none;
  margin: 0 auto;
  align-items: stretch;
}
.hero-copy { position: relative; padding-left: 38px; isolation: isolate; }
.hero-copy > * { position: relative; z-index: 1; }
.hero-copy::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -10px;
  bottom: -12px;
  width: 4px;
  border-radius: 999px;
  background: var(--wp-main-yellow);
  z-index: 0;
  transform: scaleY(.06);
  transform-origin: top;
  animation: heroBracketGrowY .7s ease-out .12s forwards;
}
.hero-copy::after {
  content: "";
  position: absolute;
  left: -6px;
  top: -10px;
  bottom: -12px;
  width: 96px;
  background:
    linear-gradient(var(--wp-main-yellow), var(--wp-main-yellow)) left top / 96px 4px no-repeat,
    linear-gradient(var(--wp-main-yellow), var(--wp-main-yellow)) left bottom / 96px 4px no-repeat;
  opacity: .98;
  z-index: 0;
  transform: scaleX(.08);
  transform-origin: left;
  animation: heroBracketGrowX .85s ease-out .12s forwards;
}
.eyebrow { max-width: 430px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; opacity: .84; margin: 0 0 14px auto; text-align: right; }
.hero h1 {
  font-family: "Yeseva One", serif;
  font-size: 58px;
  line-height: 1.05;
  margin: 0 0 16px;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.92);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.96),
    0 0 8px rgba(255, 255, 255, 0.42);
}
.hero h1.hero-title-zh { font-size: 52px; }
.hero h1:not(.hero-title-zh) {
  font-family: Arial, Helvetica, "Arial Black", sans-serif;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.hero p { max-width: 680px; font-size: 18px; opacity: .94; margin: 0 0 18px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}
.btn-primary-home { background: #00a3e0; color: #fff; }
.btn-map-home { background: #4ba6f8; border: 1px solid #2b82d8; color: #fff; }
.btn-map-home:hover { background: #358fdf; color: #fff; text-decoration: none; }
.btn-secondary-home { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-featured-home { background: #2fbf62; border: 1px solid #209a4c; color: #fff; }
.btn-featured-home:hover { background: #28ab58; color: #fff; text-decoration: none; }
.hero-note {
  font-size: 13px;
  opacity: .86;
  text-align: right;
  margin-left: auto;
  max-width: 360px;
  padding-right: 2px;
}
.hero-side {
  background: var(--wp-main-yellow);
  border: 1px solid var(--wp-main-yellow-deep);
  border-radius: 14px;
  padding: 20px;
  color: #1f2b3b;
  box-shadow: 0 10px 24px rgba(25, 42, 66, .16);
}
.hero-side--placeholder {
  background: rgba(255,255,255,.10);
  border: 1px dashed rgba(255,255,255,.34);
  box-shadow: none;
  min-height: 100%;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
.hero-ai-form { margin: 0 0 14px; }
.hero-ai-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #142033;
}
.hero-ai-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.hero-ai-row input {
  width: 100%;
  border: 1px solid rgba(20, 32, 51, .25);
  border-radius: 6px;
  padding: 8px 10px;
  height: 36px;
  color: #172335;
  background: rgba(255, 255, 255, .92);
}
.hero-ai-row button {
  border: 1px solid #c2185b;
  border-radius: 6px;
  height: 36px;
  padding: 0 12px;
  background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
  color: #fff;
  font-weight: 700;
}
.hero-ai-row button:hover {
  background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
}
.hero-side h3 { margin: 0 0 12px; font-size: 20px; font-family: "Yeseva One", serif; }
.hero-side ul { list-style: none; padding: 0; margin: 0; }
.hero-side li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(57, 70, 92, .3); font-size: 14px; }
.hero-side li strong { color: #172335; }

.section { margin-bottom: 44px; }
.section-title { font-family: "Yeseva One", serif; font-size: 32px; margin: 0 0 10px; color: #273b59; }
.section-sub { color: #62728f; margin-bottom: 18px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -18px; position: relative; z-index: 3; }
.stat-box {
  background: #fff;
  border: 1px solid #d9e4f2;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(26, 50, 84, .06);
}
.stat-num { font-family: "Yeseva One", serif; font-size: 28px; color: #1f4b7a; line-height: 1; }
.stat-lbl { margin-top: 6px; font-size: 13px; color: #6c7a92; }

.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.home-shell .community-grid .community-card {
  position: relative;
  border: 1px solid #d8e2f0;
  background-color: #f4f8ff !important;
  background-image: linear-gradient(145deg, #e9f2ff 0%, #f7fbff 100%) !important;
  border-radius: 10px;
  padding: 14px;
  transition: transform .16s ease, box-shadow .16s ease, min-height .22s ease, padding .22s ease;
}
.home-shell .community-grid .community-card:nth-child(8n + 1) { background-color: #eaf4ff !important; background-image: linear-gradient(145deg, #dcecff 0%, #f4f9ff 100%) !important; }
.home-shell .community-grid .community-card:nth-child(8n + 2) { background-color: #ffeaf2 !important; background-image: linear-gradient(145deg, #ffdbe9 0%, #fff3f8 100%) !important; }
.home-shell .community-grid .community-card:nth-child(8n + 3) { background-color: #e9f8ef !important; background-image: linear-gradient(145deg, #daf1e3 0%, #f2fbf6 100%) !important; }
.home-shell .community-grid .community-card:nth-child(8n + 4) { background-color: #f3ecff !important; background-image: linear-gradient(145deg, #e8ddff 0%, #f8f2ff 100%) !important; }
.home-shell .community-grid .community-card:nth-child(8n + 5) { background-color: #fff2e3 !important; background-image: linear-gradient(145deg, #ffe6cf 0%, #fff7ee 100%) !important; }
.home-shell .community-grid .community-card:nth-child(8n + 6) { background-color: #e9fbf7 !important; background-image: linear-gradient(145deg, #d9f3ec 0%, #f2fdf9 100%) !important; }
.home-shell .community-grid .community-card:nth-child(8n + 7) { background-color: #fff8dd !important; background-image: linear-gradient(145deg, #fff1c6 0%, #fffbed 100%) !important; }
.home-shell .community-grid .community-card:nth-child(8n + 8) { background-color: #e9fbf7 !important; background-image: linear-gradient(145deg, #d8f6ef 0%, #f3fdfa 100%) !important; }
.community-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(25, 45, 71, .09); }
.community-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 10px;
}
.community-card h4,
.community-card p,
.community-card .meta {
  position: relative;
  z-index: 2;
}
.community-card h4 { margin: 0 0 6px; font-size: 18px; }
.community-card p { color: #6a7891; margin: 0 0 8px; min-height: 33px; font-size: 13px; }
.community-card .meta { color: #43516a; font-size: 12px; margin-bottom: 8px; }

.featured-grid { margin-bottom: 8px; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.home-shell .why-grid .why-card {
  border: 1px solid #d8e2f0;
  border-radius: 10px;
  background-color: #f6f9ff !important;
  background-image: linear-gradient(145deg, #eaf2ff 0%, #f8fbff 100%) !important;
  padding: 16px;
}
.home-shell .why-grid .why-card:nth-child(6n + 1) { background-color: #ffeaf2 !important; background-image: linear-gradient(145deg, #ffdce9 0%, #fff4f9 100%) !important; }
.home-shell .why-grid .why-card:nth-child(6n + 2) { background-color: #e9f8ef !important; background-image: linear-gradient(145deg, #daf2e3 0%, #f3fbf7 100%) !important; }
.home-shell .why-grid .why-card:nth-child(6n + 3) { background-color: #eaf3ff !important; background-image: linear-gradient(145deg, #deebff 0%, #f4f9ff 100%) !important; }
.home-shell .why-grid .why-card:nth-child(6n + 4) { background-color: #fff4df !important; background-image: linear-gradient(145deg, #ffe7c8 0%, #fff9ef 100%) !important; }
.home-shell .why-grid .why-card:nth-child(6n + 5) { background-color: #e9fbf7 !important; background-image: linear-gradient(145deg, #d9f4ec 0%, #f3fdfa 100%) !important; }
.home-shell .why-grid .why-card:nth-child(6n + 6) { background-color: #f2ecff !important; background-image: linear-gradient(145deg, #e6dcff 0%, #f8f3ff 100%) !important; }
.why-card h4 { margin: 6px 0; font-size: 17px; color: #2f4260; }
.why-card p { margin: 0; color: #64758f; font-size: 14px; }

.cta-band {
  margin-top: 28px;
  border-radius: 14px;
  background: linear-gradient(105deg, #0b2d4e, #134f7d);
  color: #fff;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cta-band h3 { margin: 0 0 6px; font-family: "Yeseva One", serif; }
.cta-band p { margin: 0; opacity: .88; }

@keyframes heroBracketGrowY {
  from { transform: scaleY(.06); opacity: .4; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes heroBracketGrowX {
  from { transform: scaleX(.08); opacity: .4; }
  to { transform: scaleX(1); opacity: .98; }
}

@media (max-width: 1200px) {
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1360px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .68fr);
  }
  .hero-side:not(.hero-side--geo-glass) {
    display: none;
  }
}
@media (max-width: 991px) {
  .hero { min-height: 560px; }
  .hero-grid { grid-template-columns: 1fr; padding: 28px; }
  .hero-side--placeholder { display: none; }
  .hero-copy { padding-left: 30px; }
  .hero-copy::before,
  .hero-copy::after { left: -4px; top: -8px; bottom: -10px; }
  .hero-copy::after { width: 80px; background-size: 80px 3px, 80px 3px; }
  .hero h1 { font-size: 42px; }
  .hero h1.hero-title-zh { font-size: 38px; }
  .hero-ai-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .community-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy::before,
  .hero-copy::after {
    animation: none;
    transform: none;
  }
}
