/* ══════════════════════════════════════════════
   TENET COMPLIANCE — Design System
   Palette: Navy #0B2545 · Gold #C9A84C · White #FFFFFF
   ══════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Brand Palette */
  --navy:         #0B2545;
  --navy-mid:     #153A6B;
  --navy-light:   #1E4D8C;
  --gold:         #C9A84C;
  --gold-hover:   #B8923B;
  --gold-light:   #F5EDD6;
  --white:        #FFFFFF;
  --off-white:    #F8F7F4;
  --light-grey:   #F2F0EC;
  --mid-grey:     #E5E2DC;
  --border:       #D8D4CC;
  --text:         #1A1A1A;
  --text-muted:   #6B6760;
  --text-faint:   #A8A5A0;

  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    4.5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;

  /* Layout */
  --content-default: 1160px;
  --content-narrow:  720px;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11,37,69,0.08);
  --shadow-md: 0 4px 16px rgba(11,37,69,0.10);
  --shadow-lg: 0 12px 40px rgba(11,37,69,0.14);

  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Base Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.2; font-family: var(--font-display); }
p { text-wrap: pretty; max-width: 72ch; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { cursor: pointer; background: none; border: none; }

::selection { background: rgba(201,168,76,0.2); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ─── Utility ─── */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}
.zh { color: var(--text-muted); font-size: 0.92em; }
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.section--alt { background: var(--off-white); }
.section__header {
  max-width: 680px;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.section__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}
.section__title {
  font-size: var(--text-2xl);
  color: var(--navy);
  margin-bottom: var(--space-5);
  line-height: 1.18;
}
.section__title .zh {
  display: block;
  color: var(--text-muted);
  font-size: 0.55em;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-weight: 400;
}
.section__desc { font-size: var(--text-base); color: var(--text-muted); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}
.btn--primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn--navy {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn--navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.btn--full { width: 100%; justify-content: center; }

/* ════════════════════════ HEADER ════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-8);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}
.logo__img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo__img--footer {
  width: 80px;
  height: 80px;
  /* Slight brightness boost so logo reads on dark footer */
  filter: brightness(1.1);
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--navy); background: var(--light-grey); }
.nav__link--cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
}
.nav__link--cta:hover { background: var(--navy-mid); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════ HERO ════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a3d7a 100%);
  min-height: clamp(560px, 85vh, 800px);
  display: flex;
  align-items: center;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-5);
}
.hero__headline {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-6);
  line-height: 1.12;
  font-weight: 700;
}
.hero__headline em {
  font-style: normal;
  color: var(--gold);
  font-size: 0.62em;
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  margin-top: var(--space-2);
  letter-spacing: 0.02em;
}
.hero__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-2);
  max-width: 52ch;
}
.hero__sub--zh {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-8);
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero__visual { position: relative; }
.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero__badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.hero__badge-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
}
.hero__badge-label {
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.3;
}

/* ════════════════════════ TRUST BAR ════════════════════════ */
.trust-bar {
  background: var(--navy);
  padding-block: var(--space-5);
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.trust-bar__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.trust-bar__logos {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.trust-bar__item {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.trust-bar__divider { color: rgba(255,255,255,0.2); font-size: var(--text-lg); }

/* ════════════════════════ SERVICES ════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.service-card__icon {
  color: var(--gold);
  margin-bottom: var(--space-5);
  width: 48px;
  height: 48px;
  background: var(--gold-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-card__title {
  font-size: var(--text-lg);
  color: var(--navy);
  margin-bottom: var(--space-4);
  font-weight: 700;
  font-family: var(--font-body);
}
.service-card__title .zh {
  display: block;
  color: var(--text-muted);
  font-size: 0.8em;
  margin-top: var(--space-1);
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}
.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  transition: color var(--transition);
}
.service-card__link:hover { color: var(--gold-hover); }

/* ════════════════════════ APPROACH ════════════════════════ */
.approach__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}
.approach__quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--navy);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: var(--space-5);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}
.approach__quote--zh {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-left: calc(var(--space-5) + 3px);
}
.approach__list { display: flex; flex-direction: column; gap: var(--space-8); }
.approach__item {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.approach__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
}
.approach__item-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-2);
}
.approach__item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ════════════════════════ ABOUT ════════════════════════ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.about__text { display: flex; flex-direction: column; gap: var(--space-5); }
.about__text p { font-size: var(--text-base); line-height: 1.7; }
.about__text .zh { color: var(--text-muted); font-size: 0.92em; }
.about__stats {
  display: flex;
  gap: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.about__stat { display: flex; flex-direction: column; gap: var(--space-1); }
.about__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
}
.about__stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}
.about__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ════════════════════════ INSIGHTS ════════════════════════ */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: var(--space-6);
}
.insight-card {
  background: var(--white);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.insight-card:hover { box-shadow: var(--shadow-md); border-color: var(--navy-light); }
.insight-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.insight-card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.insight-card__title {
  font-size: var(--text-lg);
  color: var(--navy);
  font-family: var(--font-display);
  line-height: 1.3;
}
.insight-card__title .zh {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75em;
  margin-top: var(--space-2);
}
.insight-card--featured .insight-card__title { color: var(--white); }
.insight-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.insight-card--featured .insight-card__desc { color: rgba(255,255,255,0.7); }
.insight-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  margin-top: auto;
  transition: color var(--transition);
}
.insight-card__link:hover { color: var(--gold-hover); }

/* ════════════════════════ CONTACT ════════════════════════ */
.contact-section { background: var(--white); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}
.contact__left { display: flex; flex-direction: column; gap: var(--space-5); }
.contact__left p { font-size: var(--text-base); color: var(--text-muted); line-height: 1.7; }
.contact__left .zh { font-size: 0.92em; }
.contact__details { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-4); }
.contact__detail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.contact__detail svg { color: var(--gold); flex-shrink: 0; }
.contact__detail a { color: var(--navy); font-weight: 500; }
.contact__detail a:hover { color: var(--gold); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}
.form-field label span { color: var(--gold); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--off-white);
  font-size: var(--text-sm);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,37,69,0.08);
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form__note {
  font-size: var(--text-xs);
  color: var(--text-faint);
  line-height: 1.5;
  max-width: 100%;
}

/* ════════════════════════ FOOTER ════════════════════════ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding-top: clamp(var(--space-16), 6vw, var(--space-24));
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand .logo { margin-bottom: var(--space-5); }
.footer__brand .logo__name { color: var(--white); }
.footer__brand .logo__tagline { color: rgba(255,255,255,0.5); }
.footer__desc { font-size: var(--text-sm); line-height: 1.7; max-width: 42ch; }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a, .footer__col span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  padding-block: var(--space-6);
}
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__bottom p, .footer__bottom .footer__disclaimer {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  max-width: 100%;
}

/* ════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-card--featured { grid-column: span 2; }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Nav */
  .nav__toggle { display: flex; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: var(--space-4);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .nav__link { display: block; padding: var(--space-3) var(--space-4); }
  .nav__link--cta { text-align: center; }

  /* Hero */
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero { min-height: auto; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .approach__inner { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .about__image-wrap { display: none; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card--featured { grid-column: span 1; }
  .contact__inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .trust-bar__inner { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .about__stats { flex-direction: column; gap: var(--space-5); }
  .footer__links { grid-template-columns: 1fr; }
}
