/* ==========================================================================
   RT Dua — Public landing page styles
   ========================================================================== */

.landing { background: var(--surface); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 26px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 76px 0 92px;
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(13, 94, 53, .16), transparent 62%),
    radial-gradient(700px 380px at 4% 108%, rgba(33, 150, 243, .1), transparent 60%),
    linear-gradient(180deg, #fffdf7 0%, #ffffff 72%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 54px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft);
  border: 1px solid #ffe2ab;
  color: var(--primary-700);
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 700;
  margin-bottom: 20px;
}
.hero-badge .hb-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-badge .hb-dot svg { width: 12px; height: 12px; }

.hero h1 {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -.035em;
  margin-bottom: 17px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary), #ff8f1f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 16px; color: var(--text-2); line-height: 1.68;
  margin-bottom: 27px; max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-actions .btn { padding: 12.5px 22px; font-size: 14.2px; }

.hero-stats {
  display: flex; gap: 30px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--border);
}
.hero-stat b {
  display: block; font-size: 25px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1;
}
.hero-stat span { font-size: 12.4px; color: var(--text-3); font-weight: 550; }

/* Hero visual — village illustration card */
.hero-visual { position: relative; }
.hero-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.hero-frame svg { display: block; width: 100%; height: auto; }

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 15px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 11px;
}
.float-card .fc-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.float-card b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.float-card span { font-size: 11px; color: var(--text-3); }
.fc-1 { bottom: -22px; left: -26px; animation: floaty 5s ease-in-out infinite; }
.fc-2 { top: 26px; right: -28px; animation: floaty 5s ease-in-out infinite .9s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--primary-700);
  margin-bottom: 11px;
}
.section-head h2 { font-size: 33px; letter-spacing: -.03em; margin-bottom: 12px; }
.section-head p { font-size: 15px; color: var(--text-2); line-height: 1.65; }

/* Feature grid */
.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 25px 23px;
  transition: .2s;
  height: 100%;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #f0d9ab; }
.feat-ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 15px;
}
.feat-ico svg { width: 22px; height: 22px; }
.feat h3 { font-size: 16px; margin-bottom: 8px; }
.feat p { font-size: 13.4px; color: var(--text-2); line-height: 1.62; }

/* Services list */
.svc {
  display: flex; gap: 15px;
  padding: 19px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: .17s;
}
.svc:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.svc-ico {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.svc h4 { font-size: 14.4px; margin-bottom: 4px; }
.svc p { font-size: 12.6px; color: var(--text-2); line-height: 1.55; }
.svc .svc-req { font-size: 11.5px; color: var(--text-3); margin-top: 7px; }
/* Small pill next to a service title that flags its character (24/7, Baru). */
.svc-badge {
  display: inline-flex; align-items: center; vertical-align: middle;
  padding: 1.5px 7px; margin-left: 5px;
  border-radius: var(--r-full);
  background: var(--primary-soft); color: var(--primary-700);
  font-size: 9.6px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase;
}
/* Deep link from a service card into the matching dashboard page. */
.svc-link {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--primary-700); font-weight: 700;
  transition: .15s;
}
.svc-link svg { width: 12px; height: 12px; }
.svc-link:hover { color: var(--primary); text-decoration: underline; }

/* Pengurus cards */
.pengurus {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 21px 18px;
  text-align: center;
  transition: .18s;
}
.pengurus:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pengurus .avatar { margin: 0 auto 12px; }
.pengurus h4 { font-size: 14.4px; margin-bottom: 3px; color: var(--text); }
.pengurus .jabatan { font-size: 12.4px; color: var(--primary-700); font-weight: 700; margin-bottom: 9px; }
.pengurus .telp { font-size: 11.8px; color: var(--text-3); display: flex; align-items: center; gap: 5px; justify-content: center; }
.pengurus .telp svg { width: 13px; height: 13px; }

/* Announcement cards */
.news {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 21px;
  display: flex; flex-direction: column;
  transition: .18s;
  height: 100%;
}
.news:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.news h3 { font-size: 15.4px; line-height: 1.4; margin-bottom: 9px; }
.news p { font-size: 13px; color: var(--text-2); line-height: 1.62; flex: 1; }
.news-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; padding-top: 13px;
  border-top: 1px solid var(--border-2);
  font-size: 11.6px; color: var(--text-3);
}

/* Contact block */
.contact-card {
  background: linear-gradient(130deg, #2a2f3a, #1c212b);
  border-radius: var(--r-xl);
  padding: 40px 42px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(13, 94, 53, .13);
  top: -190px; right: -120px;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card h2 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 12px; }
.contact-card > div > p { font-size: 14.2px; color: rgba(255, 255, 255, .72); line-height: 1.68; margin-bottom: 22px; }
.contact-list { display: flex; flex-direction: column; gap: 15px; }
.contact-item { display: flex; gap: 13px; align-items: flex-start; }
.contact-item .ci-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: rgba(13, 94, 53, .17);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .ci-ico svg { width: 18px; height: 18px; }
.contact-item b { display: block; font-size: 11.4px; color: rgba(255, 255, 255, .6); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.contact-item span { font-size: 14px; }

/* Footer */
.foot {
  background: #14181f; color: rgba(255, 255, 255, .68);
  padding: 46px 0 26px;
  font-size: 13.4px;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.foot h4 { color: #fff; font-size: 14px; margin-bottom: 15px; }
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a { transition: .15s; }
.foot-links a:hover { color: var(--primary); }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.foot-brand .brand-txt strong { color: #fff; }
.foot-brand .brand-txt span { color: rgba(255, 255, 255, .5); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.4px; color: rgba(255, 255, 255, .48);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero { padding: 52px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 35px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .fc-1 { left: -12px; } .fc-2 { right: -12px; }
  .contact-card { grid-template-columns: 1fr; padding: 32px 26px; gap: 30px; }
  .section { padding: 54px 0; }
  .section-head h2 { font-size: 26px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 29px; }
  .hero-stats { gap: 22px; }
  .hero-stat b { font-size: 21px; }
  .wrap { padding: 0 18px; }
  .float-card { display: none; }
}

/* --------------------------------------------------------------------------
   Nav: signed-in user chip
   -------------------------------------------------------------------------- */
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 160px;
}
.nav-user svg { width: 14px; height: 14px; flex: none; }
.nav-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .nav-user span { display: none; }
  .nav-user { padding: 7px 10px; }
}
