/* ==========================================================================
   TIAN CELL — Landing Page Stylesheet
   Design tokens: warna hijau teh, putih, abu-abu muda, hitam, aksen kuning
   Font: Poppins (Google Fonts)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --color-white: #ffffff;
  --color-bg-soft: #f4f5f2;       /* abu-abu muda kehijauan */
  --color-tea: #3b5d42;           /* hijau teh */
  --color-tea-dark: #24392a;      /* hijau teh gelap */
  --color-tea-tint: #eaf0e7;      /* tint hijau teh sangat muda */
  --color-black: #1c1c1c;
  --color-ink: #2b2b28;
  --color-muted: #6b6f68;
  --color-line: #e4e6e1;
  --color-yellow: #e8b93b;
  --color-yellow-dark: #c99820;

  /* Typography */
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(28, 28, 28, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 28, 28, 0.08);
  --shadow-lg: 0 16px 40px rgba(28, 28, 28, 0.12);

  /* Layout */
  --max-width: 1180px;
  --nav-height: 76px;
  --transition: 220ms ease;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-tea);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-tea-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Loading Screen ---------- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 420ms ease, visibility 420ms ease;
}
#loading-screen.hide { opacity: 0; visibility: hidden; }
.loading-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--color-tea-dark);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  animation: pulse-mark 1.1s ease-in-out infinite;
}
@keyframes pulse-mark {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.7; }
}

/* ---------- Eyebrow / Section headings ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tea);
  margin-bottom: 10px;
  position: relative;
  padding-left: 18px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: var(--color-yellow);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head h2 { margin-bottom: 12px; }
.section-sub { color: var(--color-muted); font-size: 16px; }

h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.25;
}
h3 { font-size: 19px; font-weight: 600; color: var(--color-black); }

.section { padding: 88px 0; }
.section-alt { background: var(--color-bg-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-tea-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-tea); box-shadow: var(--shadow-md); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn-ghost-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }

.btn-nav-wa {
  background: var(--color-yellow);
  color: var(--color-black);
  padding: 11px 22px;
  font-size: 14px;
}
.btn-nav-wa:hover { background: var(--color-yellow-dark); }

.btn-accent-yellow {
  background: var(--color-yellow);
  color: var(--color-black);
  box-shadow: var(--shadow-sm);
}
.btn-accent-yellow:hover { background: var(--color-yellow-dark); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.0);
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  height: 68px;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--color-tea-dark);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-black);
}
.navbar:not(.scrolled) .brand-name { color: #fff; }
.navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.92); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}
.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-ink);
  position: relative;
  padding: 6px 2px;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-yellow);
  transition: width var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--color-tea); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-black);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.navbar:not(.scrolled) .nav-toggle span { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,20,15,0.55) 0%, rgba(15,20,15,0.45) 40%, rgba(10,15,10,0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-bottom: 96px;
  padding-top: calc(var(--nav-height) + 40px);
  max-width: 760px;
}
.hero-content h1 {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  line-height: 1.02;
}
.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  color: var(--color-yellow);
  margin-bottom: 18px;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .eyebrow { color: var(--color-yellow); }
.hero .eyebrow::before { background: #fff; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text p { color: var(--color-muted); margin-bottom: 16px; font-size: 16px; }
.about-text h2 { margin-bottom: 18px; }

.notice-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--color-tea-tint);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 8px;
}
.notice-box p { margin: 0; color: var(--color-ink); font-size: 14.5px; }
.notice-icon {
  color: var(--color-tea);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.notice-icon svg { width: 100%; height: 100%; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-number { font-size: 26px; font-weight: 800; color: var(--color-tea-dark); }
.stat-label { font-size: 13.5px; color: var(--color-muted); }

/* ---------- Layanan (Services) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 60px;
}
.service-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-tea);
}
.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-yellow);
  flex-shrink: 0;
}
.service-card-wide { grid-column: span 2; }

.accessory-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--color-tea-dark);
  border-radius: var(--radius-lg);
  padding: 44px;
  color: #fff;
}
.accessory-text .eyebrow { color: var(--color-yellow); }
.accessory-text .eyebrow::before { background: #fff; }
.accessory-text h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.accessory-text p { color: rgba(255,255,255,0.82); margin-bottom: 22px; }
.accessory-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.accessory-list li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Es Teh ---------- */
.esteh-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.esteh-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.esteh-text p { color: var(--color-muted); font-size: 16px; margin-bottom: 20px; }
.esteh-text h2 { margin-bottom: 14px; }

.check-list { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
  color: var(--color-ink);
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-tea-tint);
  border: 1.5px solid var(--color-tea);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--color-tea);
  border-bottom: 2px solid var(--color-tea);
  transform: rotate(-45deg);
}

/* ---------- Promo ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}
.promo-poster img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.promo-card {
  position: relative;
  background: var(--color-white);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.promo-card::before,
.promo-card::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--color-bg-soft);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.promo-card::before { left: -10px; }
.promo-card::after { right: -10px; }
.section-alt .promo-card::before,
.section-alt .promo-card::after { background: var(--color-bg-soft); }

.promo-badge {
  position: absolute;
  top: 18px;
  right: 22px;
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}
.promo-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-right: 90px;
}
.promo-price { font-size: 22px; font-weight: 800; color: var(--color-tea-dark); }
.promo-flag { color: var(--color-muted); font-size: 14px; margin-bottom: 20px; }

/* ---------- Layanan Antar ---------- */
.delivery-block {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--color-tea-tint);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
}
.delivery-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-tea-dark);
  box-shadow: var(--shadow-sm);
}
.delivery-icon svg { width: 32px; height: 32px; }
.delivery-text p { color: var(--color-muted); margin-top: 10px; max-width: 620px; }

/* ---------- CTA ---------- */
.cta {
  background: var(--color-tea-dark);
  padding: 84px 0;
  text-align: center;
}
.cta-inner { max-width: 700px; margin: 0 auto; }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.82); margin-bottom: 32px; font-size: 16px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ---------- Feedback ---------- */
.feedback-card {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  box-shadow: var(--shadow-sm);
}
.feedback-card .eyebrow { padding-left: 0; }
.feedback-card .eyebrow::before { display: none; }
.feedback-card h2 { margin-bottom: 12px; }
.feedback-card p { color: var(--color-muted); margin-bottom: 26px; }
.feedback-note { font-size: 12.5px; color: var(--color-muted); margin-top: 16px; margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.footer-col h3 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.footer-col p { font-size: 14.5px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--color-yellow); }
.footer-bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ---------- Floating Buttons ---------- */
.floating-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 400;
}
.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow-lg); }
.fab-wa { background: #25d366; color: #fff; }
.fab-wa svg { width: 27px; height: 27px; }
.fab-top {
  background: var(--color-white);
  color: var(--color-tea-dark);
  border: 1px solid var(--color-line);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.fab-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab-top svg { width: 22px; height: 22px; }

.admin-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 400;
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.admin-fab:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms ease, transform 640ms ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid,
  .esteh-grid,
  .promo-grid,
  .accessory-block { grid-template-columns: 1fr; }
  .esteh-media { order: -1; max-width: 420px; margin: 0 auto; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { color: var(--color-ink) !important; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--color-line); }
  .navbar:not(.scrolled) .nav-link { color: var(--color-ink); }
  .nav-toggle { display: flex; }
  .btn-nav-wa { display: none; }
  .navbar:not(.scrolled) .nav-toggle span { background: #fff; }
  .navbar.scrolled .nav-toggle span,
  .nav-toggle span { background: var(--color-black); }
  .navbar:not(.scrolled):not(.menu-open) .nav-toggle span { background: #fff; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-wide { grid-column: span 2; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .accessory-block { padding: 30px 24px; }
  .accessory-list { grid-template-columns: 1fr 1fr; }
  .delivery-block { flex-direction: column; text-align: center; padding: 34px 26px; }
  .hero-content { padding-bottom: 110px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .feedback-card { padding: 40px 24px; }
}

@media (max-width: 420px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .promo-card-head { flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 0; }
  .promo-badge { position: static; display: inline-block; margin-bottom: 12px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .navbar, .floating-stack, .admin-fab, #loading-screen { display: none; }
}
