/* ============================================
   ZIWEN IMMIGRATION v2 — GLOBAL STYLESHEET
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-purple:       #5B4FA8;
  --color-purple-dark:  #443A7F;
  --color-purple-light: #EEF0FF;
  --color-orange:       #E07A3F;
  --color-white:        #FFFFFF;
  --color-off-white:    #F8F7F4;
  --color-gray-100:     #F2F2F2;
  --color-gray-300:     #D4D4D4;
  --color-gray-500:     #8A8A8A;
  --color-gray-700:     #4A4A4A;
  --color-text:         #1A1A1A;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --size-h1: clamp(2.2rem, 5vw, 3.5rem);
  --size-h2: clamp(1.8rem, 4vw, 2.75rem);
  --size-h3: clamp(1.3rem, 3vw, 1.75rem);
  --size-body: 1.05rem;
  --radius:    16px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --container: 1200px;
  --section-gap: 80px;
  --card-gap: 28px;
  --transition: 300ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; color: var(--color-text); }
h1 { font-size: var(--size-h1); font-weight: 600; }
h2 { font-size: var(--size-h2); font-weight: 600; }
h3 { font-size: var(--size-h3); font-weight: 500; }
p  { color: var(--color-gray-700); max-width: 68ch; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin-bottom: 12px;
  display: block;
}
.section-title { margin-bottom: 16px; }
.section-intro { font-size: 1.1rem; color: var(--color-gray-700); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--color-purple); color: var(--color-white); border-color: var(--color-purple); }
.btn-primary:hover { background: var(--color-purple-dark); border-color: var(--color-purple-dark); transform: translateY(-2px); box-shadow: 0 3px 10px rgba(91,79,168,0.15); }
.btn-secondary { background: transparent; color: var(--color-purple); border-color: rgba(91,79,168,0.4); }
.btn-secondary:hover { background: var(--color-purple-light); transform: translateY(-2px); }
.btn-text { background: none; border: none; color: var(--color-purple); padding: 0; font-weight: 500; }

.card { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card:hover { box-shadow: var(--shadow-hover);  }
.card-body { padding: 24px; }
.card-icon { width: 36px; height: 36px; margin-bottom: 14px; color: var(--color-purple); }

.section { padding: var(--section-gap) 0; }
.section-alt { background: var(--color-off-white); padding: var(--section-gap) 0; }
.section-header { max-width: 680px; margin-bottom: 48px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--card-gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--card-gap); }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: var(--color-white); border-bottom: 1px solid var(--color-gray-100); padding: 0 32px; }
.nav-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; height: 72px; }
.nav-logo { margin-left: 10px; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: 48px; flex: 1; }
.nav-links a { font-size: 0.9rem; font-weight: 400; color: var(--color-gray-700); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--color-purple); }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-lang { font-size: 0.85rem; color: var(--color-gray-500); cursor: pointer; }
.nav-cta { padding: 9px 18px; border-radius: 8px; font-size: 0.9rem; }

/* HERO */
.hero-full { position: relative; height: 580px; overflow: hidden; display: flex; align-items: center; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% top; filter: saturate(0.9) brightness(1.0); z-index: 0; }
.hero-full-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 35%, transparent 60%); }
.hero-container { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 64px; width: 100%; display: flex; justify-content: flex-start; }
.hero-content { max-width: 520px; }

/* PATHWAYS */
.pathways-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--card-gap); }
.pathway-card { display: block; background: var(--color-white); border: 1px solid var(--color-gray-100); border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow); }
.pathway-card:hover { box-shadow: var(--shadow-hover);  }
.pathway-svg { width: 36px; height: 36px; color: var(--color-purple); margin-bottom: 16px; display: block; }
.pathway-card h3 { font-size: 1rem; margin-bottom: 10px; }
.pathway-card p  { font-size: 0.88rem; margin-bottom: 16px; }

/* SERVICE CARDS */
.service-card { display: block; }
.service-card h3 { margin-bottom: 10px; }

/* WHY CARDS */
.why-card { padding: 8px 0; }
.why-svg { width: 44px; height: 44px; color: var(--color-purple); margin-bottom: 20px; display: block; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 10px; font-family: var(--font-body); font-weight: 600; }

/* CRS CTA */
.crs-cta { display: flex; align-items: center; justify-content: space-between; gap: 48px; background: var(--color-purple-light); border-radius: var(--radius); padding: 56px 64px; }
.crs-cta h2 { margin-bottom: 12px; }

/* CTA BANNER */
.cta-banner { background: var(--color-purple); color: var(--color-white); padding: 80px 0; text-align: center; }
.cta-banner h2 { color: var(--color-white); margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.85); margin: 0 auto 36px; max-width: 52ch; }
.cta-banner .btn-primary { background: var(--color-white); color: var(--color-purple); border-color: var(--color-white); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-gray-100); padding: 24px 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 500; }
.faq-question span { color: var(--color-purple); font-size: 1.4rem; }
.faq-item.open .faq-question span { transform: rotate(45deg); }
.faq-answer { display: none; padding-top: 16px; color: var(--color-gray-700); }
.faq-item.open .faq-answer { display: block; }

/* FOOTER */
.footer { background: var(--color-white); border-top: 1px solid var(--color-gray-100); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand p { font-size: 0.9rem; color: var(--color-gray-500); margin-top: 16px; max-width: 28ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-gray-500); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--color-gray-700); }
.footer-col ul li a:hover { color: var(--color-purple); }
.footer-bottom { border-top: 1px solid var(--color-gray-100); padding-top: 32px; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--color-gray-500); }

/* IMG PLACEHOLDER */
.img-placeholder { background: var(--color-gray-100); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--color-gray-500); font-size: 0.85rem; font-style: italic; }

/* TIMELINE */
.timeline { display: flex; position: relative; margin: 48px 0; }
.timeline::before { content: ''; position: absolute; top: 20px; left: 20px; right: 20px; height: 2px; background: var(--color-gray-300); }
.timeline-step { flex: 1; text-align: center; position: relative; padding: 0 8px; }
.timeline-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--color-purple); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.85rem; margin: 0 auto 16px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pathways-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-gap: 64px; }
  .container { padding: 0 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .pathways-grid { grid-template-columns: 1fr 1fr; }
  .crs-cta { flex-direction: column; padding: 40px 32px; text-align: center; }
  .hero-full { height: auto; min-height: 500px; }
  .hero-container { padding: 60px 24px; }
}
@media (max-width: 480px) {
  .pathways-grid { grid-template-columns: 1fr; }
}


/* Nav button - quiet default, strong hover */
.nav-cta { box-shadow: none !important; }
.nav-cta:hover { box-shadow: 0 3px 10px rgba(91,79,168,0.2) !important; transform: translateY(-1px); }




/* What We Do Banner hover */
.wwd-card img {
  transition: transform 0.4s ease;
}
.wwd-card:hover img {
  transform: scale(1.04);
}
.wwd-card {
  transition: box-shadow 0.3s ease;
}
.wwd-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Service cards hover */
.service-card { transition: border-color 0.2s; }
.service-card:hover { border-color: rgba(91,79,168,0.5) !important; }
.service-card:hover h3 { color: #5B4FA8; transition: color 0.2s; }

/* Service cards - Apple Card style */
.svc-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 20px 18px;
  background: #fff;
  border: 1px solid #E2E0DB;
  border-radius: 12px;
  text-decoration: none;
  min-height: 80px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}
.svc-card:hover .svc-arrow {
  transform: translateX(4px);
  transition: transform 0.2s ease;
}
.svc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.3;
}
.svc-arrow {
  font-size: 1rem;
  color: #5B4FA8;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s ease;
}
.svc-featured .svc-title {
  color: #5B4FA8;
}

/* Updated svc-card */
.svc-card { min-height: 70px !important; }
.svc-arrow { font-size: 18px !important; }
.svc-card:hover .svc-arrow { transform: translateX(5px); }

.svc-card:hover { border-color: #5B4FA8 !important; }
.svc-card:hover .svc-title { color: #5B4FA8; }
.svc-title { transition: color 0.2s; }

.svc-card { justify-content: center !important; text-align: center !important; }

.svc-card { align-items: center !important; }
.svc-card .svc-title { display: block; width: 100%; text-align: center !important; }

.svc-card { min-height: 52px !important; padding: 10px 14px !important; gap: 0 !important; }

.svc-title { font-family: 'Playfair Display', serif !important; font-size: 0.95rem !important; }

.svc-title { font-family: 'Inter', sans-serif !important; font-weight: 600 !important; font-size: 0.88rem !important; letter-spacing: -0.01em !important; }
