/* ============================================
   Why Not Career — Stylesheet
   Deep navy background, gold accent, bilingual EN/ZH
   ============================================ */

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

:root {
  --navy-950: #0A1E30;   /* page background */
  --navy-800: #12304B;   /* alternating section panels */
  --navy-700: #1A3E5C;   /* card / surface fill */
  --blue: #3B5D80;       /* brand mid blue */
  --blue-light: #7096B8; /* links, secondary accents */
  --gold: #C6963E;       /* primary accent */
  --gold-light: #E2B876; /* hover state */
  --white: #FFFFFF;
  --ink: #EDF2F6;        /* primary text on dark bg */
  --muted: #A9BBC9;      /* secondary text on dark bg */
  --border: rgba(255,255,255,0.11);
  --border-soft: rgba(255,255,255,0.07);
  --surface: rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.065);
  --radius: 14px;
  --max: 1160px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy-950);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.lang-zh { font-family: 'Noto Sans SC', -apple-system, sans-serif; }

h1, h2, h3, .logo span, .footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  color: var(--white);
  letter-spacing: -0.01em;
}
body.lang-zh h1, body.lang-zh h2, body.lang-zh h3,
body.lang-zh .logo span, body.lang-zh .footer-logo {
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4 { font-size: 1.02rem; font-weight: 600; color: var(--ink); }

p { color: var(--muted); }

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }

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

button { font-family: inherit; }

/* Language toggle visibility */
body.lang-en [data-zh] { display: none; }
body.lang-en [data-en] { display: inline; }
body.lang-zh [data-en] { display: none; }
body.lang-zh [data-zh] { display: inline; }
h4[data-en], h4[data-zh] { display: block; }
body.lang-en h4[data-zh] { display: none; }
body.lang-zh h4[data-en] { display: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 30, 48, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}
.logo span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}
.logo:hover span { color: var(--white); }

.nav-desktop {
  display: flex;
  gap: 34px;
}
.nav-desktop a {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 6px 2px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-desktop a:hover { color: var(--white); }
.nav-desktop a.is-active { color: var(--white); }
.nav-desktop a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-toggle button.is-active {
  background: var(--gold);
  color: #1B2635;
}
.lang-toggle button:not(.is-active):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-800);
  border-top: 1px solid var(--border-soft);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: 16px 28px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.is-active, .nav-mobile a:hover { color: var(--gold-light); }

@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1B2635;
  box-shadow: 0 10px 24px rgba(198, 150, 62, 0.28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(198, 150, 62, 0.38);
  color: #1B2635;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(198, 150, 62, 0.08);
}

/* ============================================
   Layout helpers
   ============================================ */

.section { padding: 84px 0; }
.section--pale { background: var(--navy-800); }
.section--navy {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-40 { margin-top: 40px; }
.max-w-content { max-width: 720px; }

.eyebrow {
  display: inline-block;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.65;
  margin-top: 6px;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 64px 0 20px;
}
.hero .btn { margin-top: 26px; }

.hero-photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3.4;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
  .hero > .container,
  .hero > .container[style] {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }
  .hero-photo { order: -1; aspect-ratio: 16/10; }
}

/* ============================================
   Cards: pain / service / testimonial
   ============================================ */

.pain-grid, .card-grid, .testimonial-grid {
  display: grid;
  gap: 20px;
}
.pain-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.testimonial-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

@media (max-width: 780px) {
  .pain-grid { grid-template-columns: 1fr; }
}

.pain-card, .service-card, .contact-card, .testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pain-card:hover, .service-card:hover {
  background: var(--surface-hover);
  border-color: rgba(198, 150, 62, 0.35);
}

.pain-card .num {
  display: block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.service-card { display: flex; flex-direction: column; }
.service-card .eyebrow { color: var(--gold); font-size: 0.85rem; }
.service-card h3 { font-size: 1.12rem; }
.service-card p { flex: 1; font-size: 0.95rem; margin-bottom: 20px; }
.service-card .btn { align-self: flex-start; }

/* ============================================
   Process row
   ============================================ */

.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.process-step {
  padding: 26px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.process-step::before {
  content: counter(step);
  counter-increment: step;
  display: block;
  color: var(--gold);
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.process-row { counter-reset: step; }

@media (max-width: 780px) {
  .process-row { grid-template-columns: 1fr; }
}

/* ============================================
   Pull quote
   ============================================ */

.pull-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  color: var(--white);
  border-left: 3px solid var(--gold);
  padding-left: 28px;
  max-width: 780px;
  margin: 0 auto;
}
body.lang-zh .pull-quote { font-family: 'Noto Serif SC', serif; }
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 18px;
}
body.lang-zh .pull-quote cite { font-family: 'Noto Sans SC', sans-serif; }

/* ============================================
   Checklist
   ============================================ */

.checklist {
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 680px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
}
.checklist svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

/* ============================================
   Photo band
   ============================================ */

.photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.photo-band img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
@media (max-width: 780px) {
  .photo-band { grid-template-columns: 1fr; }
  .photo-band img { height: 200px; }
}

/* ============================================
   FAQ accordion
   ============================================ */

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  text-align: left;
  padding: 22px 0;
  cursor: pointer;
}
.faq-q:hover { color: var(--gold-light); }
.faq-q .icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq-q .icon::before,
.faq-q .icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-q .icon::before { width: 14px; height: 2px; top: 9px; left: 3px; }
.faq-q .icon::after { width: 2px; height: 14px; top: 3px; left: 9px; }
.faq-item.is-open .icon::after { transform: rotate(90deg); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding-bottom: 22px; font-size: 0.97rem; }
.faq-item.is-open .faq-a { max-height: 400px; }

/* ============================================
   Contact
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card { display: flex; flex-direction: column; gap: 18px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.contact-row svg { color: var(--gold); flex-shrink: 0; }
.contact-row strong { color: var(--white); }

/* ============================================
   Testimonials
   ============================================ */

.testimonial-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.testimonial-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--navy-800);
}
.testimonial-card .body { padding: 22px; }
.testimonial-card .placeholder-note {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.testimonial-card .name {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--gold-light);
  font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 36px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo { font-size: 1.15rem; margin-bottom: 12px; }
.footer-grid p { font-size: 0.92rem; max-width: 280px; }
.footer-grid h4 {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-grid a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
