/* ============================================================
   Dian Chu Bao — Design #17: Ochre + Violet
   Colors: Primary #a16207 | Accent #4c1d95 | Accent2 #a78bfa | Light #fefce8
   Text: #1c1917 / #44403c / #78716c
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  color: #1c1917;
  background: #fefce8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Utility: ease-in animations ---------- */
.ease-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.ease-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(254, 252, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(76, 29, 149, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #4c1d95;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a16207;
  display: inline-block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #44403c;
  transition: color 0.2s;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: #4c1d95;
  border-bottom-color: #a78bfa;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #4c1d95;
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero — Card Fan Stack ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #fefce8;
  padding-top: 64px;
  overflow: hidden;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-overline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a16207;
  background: rgba(161, 98, 7, 0.08);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #4c1d95;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  color: #a16207;
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #78716c;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #4c1d95;
  color: #fefce8;
  border-color: #4c1d95;
}

.btn-primary:hover {
  background: #3b1778;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 29, 149, 0.3);
}

.btn-outline {
  background: transparent;
  color: #a16207;
  border-color: #a16207;
}

.btn-outline:hover {
  background: #a16207;
  color: #fefce8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(161, 98, 7, 0.2);
}

/* Card Fan */
.card-fan {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fan-card {
  position: absolute;
  width: 180px;
  height: 240px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06),
              0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-origin: bottom center;
}

.fan-card:hover {
  transform: rotateZ(0deg) translateY(-12px) !important;
  z-index: 10 !important;
  box-shadow: 0 12px 40px rgba(76, 29, 149, 0.12);
}

.fan-card:nth-child(1) {
  transform: rotateZ(-10deg) translateX(-80px);
  z-index: 2;
}
.fan-card:nth-child(2) {
  transform: rotateZ(-5deg) translateX(-20px);
  z-index: 3;
}
.fan-card:nth-child(3) {
  transform: rotateZ(5deg) translateX(20px);
  z-index: 4;
}
.fan-card:nth-child(4) {
  transform: rotateZ(10deg) translateX(80px);
  z-index: 5;
}

.fan-icon {
  font-size: 2.6rem;
}

.fan-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #44403c;
  text-align: center;
}

.fan-card:nth-child(1) .fan-label { color: #4c1d95; }
.fan-card:nth-child(2) .fan-label { color: #a16207; }
.fan-card:nth-child(3) .fan-label { color: #4c1d95; }
.fan-card:nth-child(4) .fan-label { color: #a16207; }

/* ---------- Section shared ---------- */
.section {
  padding: 6rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a16207;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: #78716c;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.text-center {
  text-align: center;
}

.section-desc.text-center,
.section-heading.text-center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Services — Button Selector Row ---------- */
.services {
  background: #fff;
}

.service-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.service-btn {
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  background: transparent;
  color: #44403c;
  border: 2px solid #d4d4d4;
}

.service-btn:hover {
  border-color: #a78bfa;
  color: #4c1d95;
}

.service-btn.active {
  background: #4c1d95;
  color: #fefce8;
  border-color: #4c1d95;
  box-shadow: 0 4px 16px rgba(76, 29, 149, 0.25);
}

.service-panels {
  position: relative;
}

.service-panel {
  display: none;
  background: #fefce8;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.service-panel.active {
  display: block;
}

.service-panel-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 1rem;
}

.service-panel p {
  color: #44403c;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #44403c;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(161, 98, 7, 0.15);
}

.service-features li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a16207;
  flex-shrink: 0;
}

/* ---------- About — Core Principles ---------- */
.about {
  background: #fefce8;
}

.principles-list {
  max-width: 800px;
  margin: 0 auto;
}

.principle-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: 12px;
  border-left: 5px solid transparent;
  transition: background 0.2s;
}

.principle-row:nth-child(odd) {
  background: #fff;
}
.principle-row:nth-child(even) {
  background: #fefce8;
}

.principle-row:nth-child(1) { border-left-color: #4c1d95; }
.principle-row:nth-child(2) { border-left-color: #a16207; }
.principle-row:nth-child(3) { border-left-color: #4c1d95; }
.principle-row:nth-child(4) { border-left-color: #a16207; }

.principle-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principle-body {
  flex: 1;
}

.principle-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 0.25rem;
}

.principle-desc {
  font-size: 0.9rem;
  color: #78716c;
  line-height: 1.6;
}

/* ---------- Industries — Expandable Card Grid ---------- */
.industries {
  background: #fff;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.industry-card {
  background: #fefce8;
  border-radius: 14px;
  border: 1px solid rgba(76, 29, 149, 0.06);
  padding: 1.75rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  height: 160px;
  overflow: hidden;
  position: relative;
}

.industry-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
}

.industry-card.expanded {
  height: 280px;
  border-color: rgba(76, 29, 149, 0.2);
  box-shadow: 0 8px 30px rgba(76, 29, 149, 0.08);
}

.industry-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.industry-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.industry-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #4c1d95;
}

.industry-expand-hint {
  font-size: 0.75rem;
  color: #a78bfa;
  margin-top: 0.5rem;
  font-weight: 500;
  transition: opacity 0.3s;
}

.industry-card.expanded .industry-expand-hint {
  opacity: 0;
}

.industry-desc {
  color: #44403c;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s 0.1s;
}

.industry-card.expanded .industry-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Approach — Effort Ladder ---------- */
.approach {
  background: #fefce8;
}

.ladder {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ladder-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  color: #fefce8;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ladder-step:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.ladder-step:nth-child(1) {
  width: 60%;
  background: #a78bfa;
}

.ladder-step:nth-child(2) {
  width: 72%;
  background: #7c3aed;
}

.ladder-step:nth-child(3) {
  width: 84%;
  background: #4c1d95;
}

.ladder-step:nth-child(4) {
  width: 100%;
  background: #a16207;
}

.ladder-step-num {
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ladder-step-body {
  flex: 1;
}

.ladder-step-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.ladder-step-desc {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* ---------- Contact — Office Hours Card ---------- */
.contact {
  background: #fefce8;
}

.contact-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  border-top: 5px solid #4c1d95;
}

.contact-card-body {
  padding: 2.5rem;
}

.contact-card-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 1.5rem;
}

.hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: 600;
  color: #1c1917;
}

.hours-time {
  color: #78716c;
  font-size: 0.95rem;
}

.hours-time.closed {
  color: #a78bfa;
}

.contact-meta {
  font-size: 0.85rem;
  color: #78716c;
  line-height: 1.8;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1.25rem;
}

.contact-meta a {
  color: #4c1d95;
  transition: color 0.2s;
}

.contact-meta a:hover {
  color: #a16207;
}

/* ---------- CTA — Partner Logos Strip ---------- */
.cta {
  background: #fff;
}

.partner-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.partner-badge {
  padding: 0.7rem 1.6rem;
  border: 2px solid #d4d4d4;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #44403c;
  transition: all 0.25s;
}

.partner-badge:hover {
  border-color: #a78bfa;
  color: #4c1d95;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 29, 149, 0.1);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #4c1d95;
  font-size: 1rem;
  margin-top: 1rem;
  transition: color 0.2s;
}

.cta-link::after {
  content: '→';
  transition: transform 0.25s;
}

.cta-link:hover {
  color: #a16207;
}

.cta-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #4c1d95;
  color: #e9d5ff;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-about h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-about p {
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.8;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: #a78bfa;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Privacy & Terms Doc Pages ---------- */
.doc-page {
  padding-top: 120px;
  padding-bottom: 5rem;
  background: #fff;
  min-height: 100vh;
}

.doc-container {
  max-width: 760px;
  margin: 0 auto;
  width: 90%;
}

.doc-container h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #4c1d95;
  margin-bottom: 0.5rem;
}

.doc-meta {
  font-size: 0.85rem;
  color: #78716c;
  margin-bottom: 2.5rem;
}

.doc-container h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c1917;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.doc-container p {
  font-size: 16px;
  color: #44403c;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.doc-container ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.doc-container li {
  font-size: 16px;
  color: #44403c;
  line-height: 1.75;
  margin-bottom: 0.35rem;
}

.doc-container address {
  font-style: normal;
  font-size: 16px;
  color: #44403c;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .card-fan {
    height: 380px;
    order: -1;
  }

  .fan-card {
    width: 140px;
    height: 190px;
  }

  .fan-card:nth-child(1) { transform: rotateZ(-10deg) translateX(-50px); }
  .fan-card:nth-child(2) { transform: rotateZ(-5deg) translateX(-10px); }
  .fan-card:nth-child(3) { transform: rotateZ(5deg) translateX(10px); }
  .fan-card:nth-child(4) { transform: rotateZ(10deg) translateX(50px); }

  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: #fefce8;
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .section {
    padding: 4rem 0;
  }

  .card-fan {
    height: 280px;
  }

  .fan-card {
    width: 110px;
    height: 150px;
  }

  .fan-card:nth-child(1) { transform: rotateZ(-8deg) translateX(-35px); }
  .fan-card:nth-child(2) { transform: rotateZ(-4deg) translateX(-8px); }
  .fan-card:nth-child(3) { transform: rotateZ(4deg) translateX(8px); }
  .fan-card:nth-child(4) { transform: rotateZ(8deg) translateX(35px); }

  .fan-icon {
    font-size: 2rem;
  }

  .fan-label {
    font-size: 0.75rem;
  }

  .service-selector {
    gap: 0.4rem;
  }

  .service-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }

  .ladder-step {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .ladder-step:nth-child(1),
  .ladder-step:nth-child(2),
  .ladder-step:nth-child(3),
  .ladder-step:nth-child(4) {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .principle-row {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}
