/* =====================================================
   Nimbark Research Insights — Website Styles
   Brand palette: deep green, orange, warm yellow, cream
   ===================================================== */

:root {
  --green-900: #1e4620;
  --green-700: #2d6a30;
  --green-500: #3d8b40;
  --green-050: #eef6ee;
  --orange-600: #e8830c;
  --orange-500: #f5921e;
  --orange-050: #fef3e3;
  --yellow-400: #f7c948;
  --red-500: #d64541;
  --ink: #233024;
  --muted: #5b6a5e;
  --paper: #ffffff;
  --cream: #fbf8f2;
  --line: #e4e9e4;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(30, 70, 32, 0.07);
  --shadow-md: 0 10px 30px rgba(30, 70, 32, 0.12);
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Merriweather", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--green-700); text-decoration: none; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Icons ---------- */
svg { fill: currentColor; }
.icon-xs { width: 14px; height: 14px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.icon-md { width: 28px; height: 28px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary { background: var(--orange-500); color: #fff; }
.btn-primary:hover { background: var(--orange-600); }

.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-050); }

.btn-light { background: #fff; color: var(--orange-600); }

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb857; }

.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none !important; }

/* Button spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-900);
  color: #dbe8db;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #dbe8db;
}
a.topbar-item:hover { color: var(--yellow-400); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  color: var(--green-700);
  letter-spacing: 1px;
}
/* letter-spacing tuned so this line is exactly as wide as NIMBARK above it */
.brand-sub {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2.37px;
  color: var(--green-700);
}

/* Badge-style brand: bordered card with orange tagline strip */
.brand-badge {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 2px solid var(--orange-500);
  border-radius: 14px;
  overflow: hidden;
}
.brand-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px 5px;
}
/* sized so the strip width equals the logo + NIMBARK row above it */
.brand-tagline {
  display: block;
  background: var(--orange-500);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  padding: 4.5px 6px 4px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav-link {
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2.5px;
  background: var(--orange-500);
  border-radius: 2px;
  transition: width 0.2s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--green-700); }
.nav-cta { padding: 0.55rem 1.15rem; font-size: 0.85rem; }

/* Services dropdown */
.has-dropdown { position: relative; }
.has-dropdown .caret { transition: transform 0.2s ease; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 300px;
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 110;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.has-dropdown:hover .caret,
.has-dropdown.open .caret { transform: rotate(180deg); }
.dropdown a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.dropdown a:hover { background: var(--green-050); color: var(--green-700); }
.dropdown a.dropdown-all {
  border-top: 1px solid var(--line);
  margin-top: 0.4rem;
  color: var(--orange-600);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--green-700);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(247, 201, 72, 0.35), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(61, 139, 64, 0.14), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  padding: 4.5rem 0 5rem;
}
.hero-badge {
  display: inline-block;
  background: var(--green-700);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.22;
  color: var(--green-900);
  margin-bottom: 1.1rem;
}
.hero h1 .accent { color: var(--orange-600); }
.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Hero illustration + floating cards */
.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero-scene {
  width: min(480px, 100%);
  filter: drop-shadow(0 18px 30px rgba(30, 70, 32, 0.18));
  animation: breathe 8s ease-in-out infinite;
}
.hero-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  animation: float 5s ease-in-out infinite;
}
.hero-card svg { color: var(--orange-500); }
.hero-card-1 { top: 6%; left: 0; animation-delay: 0s; }
.hero-card-2 { top: 42%; right: 0; animation-delay: 1.4s; }
.hero-card-3 { bottom: 4%; left: 12%; animation-delay: 2.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(247, 201, 72, 0.3), transparent 60%),
    linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  padding: 3.6rem 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 0.7rem;
}
.page-hero p {
  max-width: 44rem;
  margin: 0 auto;
  color: #d7e4d7;
  font-size: 1.02rem;
}
.breadcrumb {
  font-size: 0.82rem;
  color: #b9cdb9;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--yellow-400); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--green-900); padding: 1.4rem 0; }
.trust-inner {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #e6efe6;
  font-size: 0.86rem;
  font-weight: 500;
}
.trust-item svg { color: var(--yellow-400); }

/* ---------- Stats counters ---------- */
.stats-band { background: #fff; padding: 3.4rem 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem;
  text-align: center;
}
.stat-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1rem;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--green-700);
  line-height: 1.1;
}
.stat-value .plus { color: var(--orange-500); }
.stat-caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------- Sections (shared) ---------- */
.section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.section-tag {
  display: inline-block;
  background: var(--orange-050);
  color: var(--orange-600);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--green-900);
  line-height: 1.28;
  margin-bottom: 0.7rem;
}
.section-lead { color: var(--muted); font-size: 1.02rem; }
.section-head.light .section-title,
.section-head.light .section-lead { color: #fff; }
.section-head.light .section-tag { background: rgba(255,255,255,0.15); color: var(--yellow-400); }

/* ---------- Services grid ---------- */
.services { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-500);
}
.service-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  background: var(--orange-050);
  color: var(--orange-600);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: 1.02rem;
  color: var(--green-900);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}
.service-card p { font-size: 0.88rem; color: var(--muted); }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-600);
}

/* ---------- How it works (5 steps) ---------- */
.how { background: #fff; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.3rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.4rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.3rem;
  color: var(--orange-500);
  opacity: 0.35;
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}
.step svg { color: var(--green-700); margin-bottom: 0.7rem; }
.step h3 { font-size: 1rem; color: var(--green-900); margin-bottom: 0.4rem; }
.step p { font-size: 0.86rem; color: var(--muted); }

/* ---------- Publications band ---------- */
.publications {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
}
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  max-width: 56rem;
  margin: 0 auto;
}
.pub-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1.6rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pub-card:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-4px); }
.pub-card small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: #cfdccf;
  margin-top: 0.3rem;
  letter-spacing: 0;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream); overflow: hidden; }
.carousel { position: relative; max-width: 780px; margin: 0 auto; }
.carousel-track { overflow: hidden; }
.carousel-slides {
  display: flex;
  transition: transform 0.45s ease;
}
.testimonial {
  flex: 0 0 100%;
  padding: 0 0.5rem;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.2rem 2.4rem;
  text-align: center;
}
.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.5;
  color: var(--orange-500);
  display: block;
  margin-bottom: 1.1rem;
}
.testimonial-card p { color: var(--ink); font-size: 0.98rem; margin-bottom: 1.3rem; }
.testimonial-card .who { font-weight: 700; color: var(--green-900); font-size: 0.95rem; }
.testimonial-card .who small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}
.stars { color: var(--yellow-400); letter-spacing: 3px; margin-bottom: 0.8rem; font-size: 1rem; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease;
  z-index: 2;
}
.carousel-btn:hover { background: var(--green-050); }
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.4rem; }
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: #cdd8cd;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-dots button.active { background: var(--orange-500); transform: scale(1.25); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--orange-600), var(--orange-500) 55%, var(--yellow-400));
  color: #fff;
  padding: 3.2rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 0.4rem;
}
.cta-inner p { opacity: 0.95; }
.cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Content pages (about, services, articles) ---------- */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  padding: 4rem 0;
}
.prose h2 {
  font-family: var(--font-display);
  color: var(--green-900);
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.2rem 0 0.8rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  color: var(--green-900);
  font-size: 1.12rem;
  margin: 1.6rem 0 0.5rem;
}
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.3rem; color: var(--muted); }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--orange-500); font-weight: 700; }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 4px solid var(--orange-500);
  background: var(--orange-050);
  padding: 1rem 1.3rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.check-list { list-style: none; margin-left: 0 !important; }
.check-list li {
  padding-left: 1.7rem;
  position: relative;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 800;
}

/* Sidebar */
.sidebar { position: sticky; top: 110px; display: grid; gap: 1.3rem; }
.side-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.side-card.highlight {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  border: 0;
}
.side-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: var(--green-900);
}
.side-card.highlight h3 { color: #fff; }
.side-card.highlight p { color: #d7e4d7; font-size: 0.88rem; margin-bottom: 1rem; }
.side-card .btn { width: 100%; justify-content: center; margin-bottom: 0.6rem; }
.side-links { list-style: none; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a {
  display: block;
  padding: 0.6rem 0.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.side-links a:hover, .side-links a.active { color: var(--orange-600); }

/* Meta chips (turnaround etc.) */
.meta-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0 0.4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-050);
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 0.9rem; }
details.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
details.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--green-500); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--green-900);
  font-size: 0.98rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--orange-500);
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-body {
  padding: 0 1.4rem 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Blog / resources ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card-top {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  padding: 1.6rem 1.5rem;
  min-height: 118px;
  display: flex;
  align-items: flex-end;
}
.post-card-top.alt { background: linear-gradient(135deg, var(--orange-600), var(--yellow-400)); }
.post-card-top h3 { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.35; }
.post-card-body { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.post-card-body p { font-size: 0.89rem; color: var(--muted); flex: 1; }
.post-meta { font-size: 0.78rem; color: var(--muted); }
.article-head { max-width: 780px; margin: 0 auto; }
.article-body { max-width: 780px; margin: 0 auto; padding: 3rem 0 4rem; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: grid; gap: 1.2rem; }
.contact-item {
  display: flex;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.contact-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--green-050);
  color: var(--green-700);
  border-radius: 12px;
}
.contact-item h3 { font-size: 0.95rem; color: var(--green-900); margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { font-size: 0.92rem; color: var(--muted); }
.contact-item a:hover { color: var(--orange-600); }

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3rem;
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Forms ---------- */
.contact-form, .enquiry-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(61, 139, 64, 0.15);
}
.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.8rem;
}
.form-feedback {
  display: none;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.form-feedback.success { display: block; background: var(--green-050); color: var(--green-700); border: 1px solid var(--green-500); }
.form-feedback.error { display: block; background: #fdecec; color: var(--red-500); border: 1px solid var(--red-500); }
/* Honeypot — hidden from humans */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 21, 0.6);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 2.2rem;
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal h2 {
  font-family: var(--font-display);
  color: var(--green-900);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}
.modal > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.4rem; }
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-close:hover { background: var(--cream); color: var(--ink); }
.modal .enquiry-form { border: 0; padding: 0; box-shadow: none; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #c8d6c8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-brand p { font-size: 0.88rem; margin-top: 0.6rem; }
.footer-tagline {
  color: var(--yellow-400);
  font-weight: 600;
  font-size: 0.85rem !important;
  letter-spacing: 0.8px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.footer-col a, .footer-col span {
  display: block;
  color: #c8d6c8;
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}
.footer-col a:hover { color: var(--yellow-400); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0;
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Mobile bottom action bar ---------- */
.bottom-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(30, 70, 32, 0.12);
}
.bottom-bar a, .bottom-bar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.55rem 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
.bottom-bar svg { width: 21px; height: 21px; }
.bottom-bar .bb-call { color: var(--green-700); }
.bottom-bar .bb-wa { color: #1fb857; }
.bottom-bar .bb-enquire { color: #fff; background: var(--orange-500); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero-card { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Admin ---------- */
.admin-page { background: var(--cream); min-height: 100vh; }
.admin-shell { padding: 2.5rem 0 4rem; }
.admin-login {
  max-width: 420px;
  margin: 4rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.admin-login h1 { font-family: var(--font-display); color: var(--green-900); font-size: 1.5rem; margin-bottom: 0.4rem; }
.admin-login p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.4rem; }
.admin-toolbar {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.4rem;
}
.admin-toolbar input, .admin-toolbar select {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.admin-toolbar input { flex: 1; min-width: 200px; }
.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 880px; }
.admin-table th {
  text-align: left;
  background: var(--green-050);
  color: var(--green-900);
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.admin-table td { padding: 0.85rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.admin-table td.msg { max-width: 280px; }
.admin-table select {
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1.5px solid var(--line);
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge.new { background: var(--orange-050); color: var(--orange-600); }
.badge.contacted { background: #e7f0fb; color: #2c6cb0; }
.badge.closed { background: var(--green-050); color: var(--green-700); }
.row-actions { display: flex; gap: 0.4rem; }
.icon-btn {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--green-700);
  background: #fff;
}
.icon-btn:hover { background: var(--green-050); }
.icon-btn svg { width: 17px; height: 17px; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3.2rem 0; }
  .hero-art { display: none; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar-right { display: none; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 5.5rem 2rem 2rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 99;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.02rem; padding: 0.5rem 0; }
  .nav-cta { margin-top: 1rem; }
  .nav-toggle { display: flex; z-index: 100; }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: hidden;
    display: none;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--green-050);
    border-radius: 0;
    min-width: 0;
    padding: 0 0 0 0.6rem;
    margin: 0.2rem 0 0.4rem;
  }
  .has-dropdown.open .dropdown { display: block; visibility: visible; }
  .has-dropdown:hover .dropdown { transform: none; }

  .section { padding: 3.5rem 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-inner { flex-direction: column; text-align: center; }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }

  .bottom-bar { display: flex; }
  body { padding-bottom: 62px; }
  .wa-float { bottom: 4.8rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .brand-name { font-size: 1.4rem; }
  .brand-sub { font-size: 0.52rem; letter-spacing: 1.6px; }
  .brand-tagline { font-size: 0.42rem; letter-spacing: 0; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-top { gap: 7px; padding: 4px 8px 3px; }
  .contact-form, .enquiry-form { padding: 1.4rem; }
  .modal { padding: 1.6rem; }
  .testimonial-card { padding: 1.6rem 1.3rem; }
}

/* =====================================================
   Motion & polish upgrades
   ===================================================== */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--orange-600), var(--yellow-400));
  z-index: 300;
  transition: width 0.08s linear;
}

/* ---------- Hero entrance animation ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge, .hero h1, .hero-lead, .hero-actions {
  animation: fadeUp 0.7s ease both;
}
.hero h1 { animation-delay: 0.12s; }
.hero-lead { animation-delay: 0.24s; }
.hero-actions { animation-delay: 0.36s; }
.hero-art { animation: fadeUp 0.9s ease 0.3s both; }

/* ---------- Services ticker ---------- */
.ticker {
  background: var(--orange-050);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 0.7rem 0;
}
.ticker-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: tickerScroll 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-900);
}
.ticker-item::before {
  content: "✦";
  color: var(--orange-500);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Staggered reveals in grids ---------- */
.services-grid .reveal:nth-child(2), .steps .reveal:nth-child(2),
.post-grid .reveal:nth-child(2), .stats-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3), .steps .reveal:nth-child(3),
.post-grid .reveal:nth-child(3), .stats-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services-grid .reveal:nth-child(4), .steps .reveal:nth-child(4),
.post-grid .reveal:nth-child(4), .stats-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(5), .steps .reveal:nth-child(5) { transition-delay: 0.32s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.services-grid .reveal:nth-child(7) { transition-delay: 0.12s; }
.services-grid .reveal:nth-child(8) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(9) { transition-delay: 0.28s; }

/* ---------- Icon micro-interactions ---------- */
.service-icon, .contact-icon, .step svg, .highlight-card svg {
  transition: transform 0.25s ease;
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.1); }
.contact-item:hover .contact-icon { transform: scale(1.1); }
.step:hover svg { transform: translateY(-3px) scale(1.08); }
.highlight-card:hover svg { transform: scale(1.12); }
.pub-card { position: relative; overflow: hidden; }
.pub-card::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.pub-card:hover::after { left: 130%; }

/* ---------- WhatsApp float pulse ---------- */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: waPulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 1.55rem;
  bottom: 5.6rem;
  z-index: 89;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-700);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--green-050); }
.back-top svg { width: 20px; height: 20px; }

/* ---------- Subjects chips ---------- */
.subjects { background: #fff; }
.subject-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  max-width: 56rem;
  margin: 0 auto;
}
.subject-chip {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.subject-chip:hover {
  transform: translateY(-3px);
  background: var(--green-050);
  border-color: var(--green-500);
}

/* ---------- Home FAQ preview ---------- */
.faq-preview { background: var(--cream); }
.faq-preview .faq-list { margin-bottom: 1.8rem; }
.center-cta { text-align: center; }

@media (max-width: 760px) {
  .back-top { bottom: 9.4rem; right: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero h1, .hero-lead, .hero-actions, .hero-art { animation: none; }
  .ticker-track { animation: none; }
  .wa-float::before { animation: none; }
}

/* =====================================================
   Upgrade round 2 — inner-page motion, rotator, 404
   ===================================================== */

/* Inner page hero entrance */
.page-hero .breadcrumb, .page-hero h1, .page-hero > .container > p:not(.breadcrumb) {
  animation: fadeUp 0.6s ease both;
}
.page-hero h1 { animation-delay: 0.1s; }
.page-hero > .container > p:not(.breadcrumb) { animation-delay: 0.2s; }

/* Hero rotating services line */
.hero-rotator {
  font-weight: 600;
  color: var(--green-900);
  margin: -0.9rem 0 1.8rem;
  font-size: 1rem;
  animation: fadeUp 0.7s ease 0.3s both;
}
.hero-rotator .rot-word {
  display: inline-block;
  color: var(--orange-600);
  border-bottom: 2px dashed var(--yellow-400);
  padding-bottom: 1px;
  animation: rotIn 0.45s ease;
}
@keyframes rotIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Gentle breathing on the hero circle */
.hero-circle { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

/* 404 page */
.notfound {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
  background: var(--cream);
}
.notfound .code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 1;
  color: var(--green-700);
}
.notfound .code span { color: var(--orange-500); }
.notfound h1 { font-family: var(--font-display); color: var(--green-900); font-size: 1.6rem; margin: 0.6rem 0; }
.notfound p { color: var(--muted); max-width: 30rem; margin: 0 auto 1.6rem; }
.notfound-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .page-hero .breadcrumb, .page-hero h1, .page-hero > .container > p,
  .hero-rotator, .hero-rotator .rot-word { animation: none; }
  .hero-circle { animation: none; }
}

/* =====================================================
   Round 3 — professional features
   ===================================================== */

/* Skip link (keyboard accessibility) */
.skip-link {
  position: absolute;
  top: -48px; left: 12px;
  z-index: 400;
  background: var(--green-900);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* Dim overlay behind the mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 21, 0.45);
  backdrop-filter: blur(2px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.nav-overlay.show { opacity: 1; visibility: visible; }

/* Testimonial avatars */
.t-avatar {
  width: 52px; height: 52px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  box-shadow: var(--shadow-sm);
}
.testimonial:nth-child(even) .t-avatar {
  background: linear-gradient(135deg, var(--orange-600), var(--yellow-400));
}

/* Comparison table */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  text-align: center;
}
.compare-table th {
  background: var(--green-900);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
}
.compare-table th.highlight-col { background: var(--orange-500); }
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--green-900);
  background: var(--cream);
}
.compare-table td.yes { color: var(--green-700); font-weight: 700; }
.compare-table td.no { color: var(--red-500); font-weight: 700; }
.compare-table td.maybe { color: var(--muted); font-weight: 600; }
.compare-table tbody tr { transition: background 0.15s ease; }
.compare-table tbody tr:hover { background: var(--green-050); }

/* ---------- Service hero illustrations ---------- */
.page-hero.with-art { text-align: left; }
.page-hero.with-art .hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
}
.page-hero.with-art h1 { margin-bottom: 0.7rem; }
.page-hero.with-art p { margin: 0; max-width: 40rem; }
.page-hero.with-art .breadcrumb { margin-bottom: 1rem; }
.hero-illus {
  width: min(280px, 100%);
  justify-self: center;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.28));
  animation: float 6s ease-in-out infinite, fadeUp 0.8s ease 0.2s both;
}
/* Entrance animation for the restructured hero copy */
.page-hero.with-art .hero-copy .breadcrumb,
.page-hero.with-art .hero-copy h1,
.page-hero.with-art .hero-copy p:not(.breadcrumb) { animation: fadeUp 0.6s ease both; }
.page-hero.with-art .hero-copy h1 { animation-delay: 0.1s; }
.page-hero.with-art .hero-copy p:not(.breadcrumb) { animation-delay: 0.2s; }

@media (max-width: 760px) {
  .page-hero.with-art { text-align: center; }
  .page-hero.with-art .hero-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .page-hero.with-art p { margin-inline: auto; }
  .hero-illus { width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-illus, .page-hero.with-art .hero-copy .breadcrumb,
  .page-hero.with-art .hero-copy h1, .page-hero.with-art .hero-copy p { animation: none; }
}


/* ---------- Brand as a single uploaded image ---------- */
.brand-img { display: inline-flex; }
.brand-img .brand-svg {
  height: 80px;
  width: auto;
  display: block;
}
@media (max-width: 520px) {
  .brand-img .brand-svg { height: 56px; }
}

/* ---------- Hero orbit animation ---------- */
.orbit-wrap {
  position: relative;
  width: 440px;
  height: 440px;
  margin-inline: auto;
}
.orbit-path {
  position: absolute;
  top: 50%; left: 50%;
  border: 2px dashed rgba(232, 131, 12, 0.35);
  border-radius: 50%;
}
.orbit-path-1 { width: 280px; height: 280px; margin: -140px; }
.orbit-path-2 { width: 420px; height: 420px; margin: -210px; }

.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 128px; height: 128px;
  margin: -64px;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 34px rgba(30, 70, 32, 0.18);
  z-index: 3;
}
.orbit-center img { width: 104px; height: 104px; border-radius: 50%; }
.orbit-center::before, .orbit-center::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(245, 146, 30, 0.45);
  animation: centerPulse 3s ease-out infinite;
}
.orbit-center::after { animation-delay: 1.5s; }
@keyframes centerPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.65); opacity: 0; }
}

.orbit-spin {
  position: absolute;
  inset: 0;
  animation: orbitSpin 26s linear infinite;
}
.orbit-spin-2 { animation: orbitSpinRev 40s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitSpinRev { to { transform: rotate(-360deg); } }
.orbit-wrap:hover .orbit-spin,
.orbit-wrap:hover .orbit-icon { animation-play-state: paused; }

.orbit-item {
  position: absolute;
  top: 50%; left: 50%;
  width: 58px; height: 58px;
  margin: -29px;
  transform: rotate(var(--a)) translateX(140px) rotate(calc(-1 * var(--a)));
}
.orbit-spin-2 .orbit-item { transform: rotate(var(--a)) translateX(210px) rotate(calc(-1 * var(--a))); }

.orbit-icon {
  width: 58px; height: 58px;
  background: #fff;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--orange-600);
  box-shadow: 0 8px 22px rgba(30, 70, 32, 0.16);
  animation: orbitSpinRev 26s linear infinite;
}
.orbit-spin-2 .orbit-icon { animation: orbitSpin 40s linear infinite; color: var(--green-700); }
.orbit-icon svg { width: 28px; height: 28px; }

.orbit-star {
  position: absolute;
  color: var(--yellow-400);
  font-size: 1.1rem;
  animation: twinkle 2.6s ease-in-out infinite;
}
.orbit-star:nth-child(odd) { animation-delay: 1.3s; color: var(--orange-500); }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 1150px) {
  .orbit-wrap { transform: scale(0.82); }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-spin, .orbit-icon, .orbit-star, .orbit-center::before, .orbit-center::after { animation: none; }
}

/* ---------- Hero story animation (3 scenes) ---------- */
.story { position: relative; width: 360px; height: 596px; margin-inline: auto; }
.story-scene {
  position: absolute;
  inset: 0 0 28px 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease;
}
.story-scene.active { opacity: 1; visibility: visible; }
.story-dots {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.story-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d8ceba;
  transition: background 0.3s, transform 0.3s;
}
.story-dots span.on { background: var(--orange-500); transform: scale(1.25); }

/* --- Scene 1: chat --- */
.phone {
  width: 330px;
  background: #ece5dd;
  border: 7px solid var(--green-900);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(30, 70, 32, 0.22);
}
.ph-head {
  background: var(--green-900);
  color: #fff;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.ph-head img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.ph-head b { font-size: 13px; display: block; line-height: 1.2; }
.ph-head small { font-size: 10.5px; color: #9ad3a0; }
.ph-chat {
  padding: 12px 9px;
  height: 486px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}
.msg {
  max-width: 84%;
  padding: 6px 10px;
  border-radius: 11px;
  font-size: 11.8px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(14px) scale(0.95);
}
.msg.in { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.msg.out { background: #dcf8c6; align-self: flex-end; border-top-right-radius: 3px; }
.msg .tk { color: #34b7f1; font-size: 10px; float: right; margin: 6px 0 0 7px; }
.run .msg { animation: msgPop 0.45s ease forwards; }
.run .m1 { animation-delay: 0.6s; } .run .m2 { animation-delay: 2.7s; }
.run .m3 { animation-delay: 4.9s; } .run .m4 { animation-delay: 7.1s; }
.run .m5 { animation-delay: 9.5s; } .run .m6 { animation-delay: 11.7s; }
.run .m7 { animation-delay: 14.3s; } .run .m8 { animation-delay: 16.3s; }
.run .m9 { animation-delay: 18.8s; }
@keyframes msgPop { to { opacity: 1; transform: translateY(0) scale(1); } }

.ph-chat::-webkit-scrollbar { display: none; }

/* --- Scene 2: thesis document --- */
.doc {
  width: 330px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 55px rgba(30, 70, 32, 0.2);
  padding: 22px 24px 46px;
  position: relative;
}
.doc-pen {
  position: absolute;
  top: -16px; right: -10px;
  font-size: 34px;
  animation: penWiggle 1.2s ease-in-out infinite;
}
@keyframes penWiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(9deg); } }
.doc-head b { color: var(--green-900); font-size: 17px; }
.doc-head small { display: block; color: #97a399; font-size: 9.5px; letter-spacing: 1.1px; margin-top: 2px; }
.row { margin-top: 13px; position: relative; }
.rl { font-size: 11.5px; font-weight: 600; color: var(--green-700); }
.rl i { font-style: normal; color: var(--orange-600); font-size: 10px; }
.rc {
  position: absolute; right: 0; top: 0;
  color: var(--green-500); font-weight: 800; font-size: 13px;
  opacity: 0;
}
.bar { height: 7px; border-radius: 4px; background: #eef1ee; margin-top: 5px; overflow: hidden; }
.fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--yellow-400));
}
.run .fill { animation: barType 1.15s ease forwards; }
.run .rc { animation: ckIn 0.3s ease forwards; }
.run .r1 .fill { animation-delay: 0.4s; } .run .r1 .rc { animation-delay: 1.55s; }
.run .r2 .fill { animation-delay: 1.9s; } .run .r2 .rc { animation-delay: 3.05s; }
.run .r3 .fill { animation-delay: 3.4s; } .run .r3 .rc { animation-delay: 4.55s; }
.run .r4 .fill { animation-delay: 4.9s; } .run .r4 .rc { animation-delay: 6.05s; }
.run .r5 .fill { animation-delay: 6.4s; } .run .r5 .rc { animation-delay: 7.55s; }
.run .r6 .fill { animation-delay: 7.9s; } .run .r6 .rc { animation-delay: 9.05s; }
@keyframes barType { to { width: 100%; } }
@keyframes ckIn { to { opacity: 1; } }
.doc-stamp {
  position: absolute;
  right: 14px; bottom: 12px;
  border: 3px solid var(--green-500);
  color: var(--green-500);
  font-weight: 800;
  font-size: 13.5px;
  padding: 5px 12px;
  border-radius: 9px;
  transform: rotate(-11deg) scale(3);
  opacity: 0;
}
.run .doc-stamp { animation: stampIn 0.5s ease 9.8s forwards; }
@keyframes stampIn { to { opacity: 1; transform: rotate(-11deg) scale(1); } }

/* --- Scene 3: success --- */
.win { width: 340px; position: relative; padding: 46px 0 0; }
.win-track {
  position: absolute;
  top: 50%; left: 7%; right: 7%;
  height: 6px;
  background: #e4e9e4;
  border-radius: 3px;
}
.win-fill {
  height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--orange-500));
}
.run .win-fill { animation: winGrow 4.4s ease 0.3s forwards; }
@keyframes winGrow { to { width: 100%; } }
.win-steps { display: flex; justify-content: space-between; position: relative; }
.wst { text-align: center; width: 76px; position: relative; }
.wdot {
  width: 54px; height: 54px;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e4e9e4;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.wst b { font-size: 10.5px; color: var(--muted); }
.run .wdot { animation: dotLite 0.45s ease forwards; animation-play-state: paused; }
.run .w1 .wdot { animation-delay: 0.5s; animation-play-state: running; }
.run .w2 .wdot { animation-delay: 1.7s; animation-play-state: running; }
.run .w3 .wdot { animation-delay: 2.9s; animation-play-state: running; }
.run .w4 .wdot { animation-delay: 4.1s; animation-play-state: running; }
@keyframes dotLite {
  to { border-color: var(--green-500); box-shadow: 0 10px 24px rgba(61, 139, 64, 0.3); transform: scale(1.1); }
}
.wcap {
  position: absolute;
  top: -44px; left: 50%;
  margin-left: -17px;
  font-size: 34px;
  opacity: 0;
}
.run .wcap { animation: capFly 1s ease 4.9s forwards; }
@keyframes capFly {
  0% { opacity: 0; transform: translateY(26px) rotate(-20deg); }
  60% { opacity: 1; transform: translateY(-12px) rotate(8deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}
.win-msg {
  text-align: center;
  margin-top: 40px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--green-900);
  opacity: 0;
}
.run .win-msg { animation: msgPop 0.6s ease 5.6s forwards; }
.wconf { position: absolute; font-size: 15px; opacity: 0; }
.run .wconf { animation: confFall 1.5s ease forwards; }
.run .c1 { right: 6%; top: -6%; animation-delay: 5.2s; }
.run .c2 { right: 18%; top: -14%; animation-delay: 5.45s; }
.run .c3 { right: 0%; top: -12%; animation-delay: 5.65s; }
.run .c4 { right: 26%; top: -4%; animation-delay: 5.85s; }
@keyframes confFall {
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(80px) rotate(230deg); }
}

@media (prefers-reduced-motion: reduce) {
  .run .msg, .run .fill, .run .rc, .run .doc-stamp, .run .win-fill,
  .run .wdot, .run .wcap, .run .win-msg, .run .wconf { animation: none; opacity: 1; width: 100%; transform: none; }
  .doc-pen { animation: none; }
}
