/* ===== Base Reset ===== */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  
  height: 100%;
}

/* ===== Typography (single-definition per element) ===== */
h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: 33px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #093894;
}

h3 {
  margin: 0;

  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1;                /* 100% */
  letter-spacing: -0.02em;       /* -2% */

  color: #093894;

  text-transform: uppercase;
  font-weight: 600;
}

p {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #093894;
}

/* ===== Typography — Responsive scaling ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  p {
    font-size: 16px;
  }
}

/* ===== Brand defaults ===== */
body { background: #ffffff;
  color: #1f1f1f;
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Page Transition: Smooth fade in/out with branded color */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
  background: #C4CBCD;
}

body.is-loaded {
  opacity: 1;
  background: #ffffff;
  transition: opacity 0.5s ease, background-color 0.4s ease;
}

body.is-transitioning {
  opacity: 0;
  background: #C4CBCD;
  transition: opacity 0.4s ease;
}

a { color: #1C5172; }

main {
  flex: 1 0 auto;
}


/* ===== Layout container ===== */
.container {
  max-width: 1200px;   /* controls overall content width */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===== Header ===== */
.site-header {
  padding: 9px 0;
  color: #ffffff;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  /* Always opaque */
  background: #0C425F;

  transition: none;
}



.site-header::before { opacity: 0; }
.is-header-scrolled::before { opacity: 0; }



/* Header inner layout */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* Left lane: logo stays left */
.header-left {
  flex: 0 0 auto;
  line-height: 0;
}

.header-left img {
  display: block;
}

/* Middle lane: wide column, nav right-aligned inside it */
.header-mid {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

/* Right lane: future language toggle */
.header-right {
  flex: 0 0 auto;
  margin-left: 24px; /* space between nav and lang */
  display: flex;
  align-items: center;
}

/* ===== Language Toggle ===== */
.lang-toggle {
  background: none;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 300;
  color: #ffffff;
  transition: opacity 180ms ease;
  border-radius: 4px;
  margin-right: 16px;
  -webkit-tap-highlight-color: rgba(184, 214, 201, 0.4);
  outline: none;
}

.lang-toggle:hover {
  /* Removed global opacity - individual labels handle their own */
}

.lang-toggle:focus {
  outline: 2px solid rgba(140, 150, 146, 0.25);
  outline-offset: 2px;
}

.lang-separator {
  opacity: 0.4;
}

/* Active language indicator - matches navigation .is-active style */
html[lang="en"] .lang-label-en,
html[lang="zh"] .lang-label-zh {
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 1;
}

/* Inactive language labels */
.lang-label-en,
.lang-label-zh {
  font-weight: 300;
  opacity: 0.6;
}

.logo {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav li { margin-left: 24px; }

.main-nav a {
  text-decoration: none;
  color: inherit;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 300;
  padding: 6px 10px;
  border-radius: 4px;
  opacity: 0.6;
  -webkit-tap-highlight-color: rgba(112, 192, 126, 0.4);
  transition: all 0.2s ease;
}

.main-nav a:active {
  background: rgba(112, 192, 126, 0.4);
}

.main-nav .is-active {
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 1;
}

.site-header a {
  color: #ffffff;
  text-decoration: none;
}

.site-header .main-nav a:hover {
  text-decoration: none;
  opacity: 0.85;
}


/* ===== Mobile Menu Toggle Button ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  -webkit-tap-highlight-color: rgba(184, 214, 201, 0.4);
  outline: none;
}

.mobile-menu-toggle:focus {
  outline: 2px solid rgba(140, 150, 146, 0.25);
  outline-offset: 2px;
}

/* Hamburger Icon (CSS-drawn, using section divider color) */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  display: block;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #3C9A63;
  border-radius: 1px;
  opacity: 1;
  left: 0;
  transition: all 0.35s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.is-active .hamburger span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.mobile-menu-toggle.is-active .hamburger span:nth-child(2) {
  opacity: 0;
  left: -30px;
}

.mobile-menu-toggle.is-active .hamburger span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #A5ADAF;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Menu Content */
.mobile-menu-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(20px);
  transition: transform 0.35s ease;
  width: 100%;
  max-width: 400px;
  padding: 0 32px;
}

.mobile-menu-overlay.is-active .mobile-menu-content {
  transform: translate(-50%, -50%) translateY(0);
}

.mobile-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mobile-menu-nav li {
  margin: 0 0 24px 0;
}

.mobile-menu-nav li:last-child {
  margin-bottom: 0;
}

.mobile-menu-nav a {
  display: inline-block;
  max-width: 95%;
  min-width: 240px;
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 400;
  padding: 12px 60px;
  border-radius: 8px;
  opacity: 0.75;
  transition: all 0.35s ease;
  -webkit-tap-highlight-color: rgba(112, 192, 126, 0.4);
  outline: none;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-nav .is-active {
  font-weight: 600;
  opacity: 1;
  background: rgba(46, 127, 131, 0.4);
}

/* Responsive: reduce padding on very small screens */
@media (max-width: 380px) {
  .mobile-menu-content {
    padding: 0 20px;
  }
  
  .mobile-menu-nav a {
    padding: 12px 40px;
    min-width: 200px;
    font-size: 22px;
  }
}

/* Prevent body scroll when mobile menu is open */
/* TEMPORARILY DISABLED FOR DEBUGGING
body.mobile-menu-open {
  overflow: hidden;
}
*/

/* ===== Responsive: Mobile Navigation ===== */
@media (max-width: 900px) {
  /* Hide desktop navigation */
  .header-mid {
    display: none;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Show mobile menu overlay (controlled by JS) */
  .mobile-menu-overlay {
    display: block;
  }

  /* Adjust header layout for mobile */
  .header-inner {
    justify-content: space-between;
  }

  .header-right {
    display: flex;
    align-items: center;
    margin-left: 0;
  }

  /* Tighten header vertical rhythm */
  .site-header {
    padding: 12px 0;
  }
}

/* Stack language toggle and hamburger vertically on very small screens */
@media (max-width: 400px) {
  .header-right {
    flex-direction: column;
    align-items: flex-end;
  }
  
  .lang-toggle {
    margin-right: 0;
    margin-bottom: 6px;
    font-size: 15px;
    padding: 4px 8px;
  }
}


/* ===== INDEX: Hero ===== */
.hero {
  padding: 110px 0 80px;
  background: #000000;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 680px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-media {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 1;

  background-image: url("/images/home/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  margin-bottom: 0;

  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.button-primary {
  display: inline-block;
  padding: 12px 18px;
  text-decoration: none;

  /* Fallback */
  border: 2px solid #EAEFF3;

  /* Preferred */
  border: 2px solid rgba(234, 239, 243, 0.6);

  background: #198AA1;
  /* Fallback */
  color: #ffffff;

  /* Preferred */
  color: rgba(255, 255, 255, 0.83);

  transition: color 180ms ease;
  margin-top: 17px;
  border-radius: 999px;
  
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}

.button-primary:hover {
  text-decoration: none;
  color: #ffffff;
  opacity: 1;
}

/* ===== INDEX: Hero — Phase C responsive tuning ===== */

/* Hide mobile title by default */
.hero-title--mobile {
  display: none;
}

/* Laptop + down: reduce vertical dead space */
@media (max-width: 1024px) {
  .hero {
    min-height: 600px;
    padding: 104px 0 64px;
  }

  .hero-copy {
    padding-top: 110px;
    max-width: 860px;
  }
}


/* Mobile: tighter hero, preserve fixed header comfort */
@media (max-width: 560px) {
  .hero {
    min-height: 560px;
    padding: 96px 0 48px;
  }

  .hero-copy {
    padding-top: 92px;
    max-width: 520px;
  }

  .button-primary {
    margin-top: 14px;
  }
  
  /* Swap to shorter title on mobile */
  .hero-title--desktop {
    display: none;
  }
  
  .hero-title--mobile {
    display: block;
  }
}

/* Small mobile: better vertical centering + avoid navbar overlap */
@media (max-width: 480px) {
  .hero {
    min-height: 520px;
    padding: 100px 0 48px;
    display: flex;
    align-items: center;
  }
  
  .hero-inner {
    width: 100%;
  }
  
  .hero-copy {
    padding-top: 0;
  }
}

/* Very small mobile: extra navbar clearance */
@media (max-width: 375px) {
  .hero {
    min-height: 540px;
    padding-top: 110px;
  }
}

/* Extra small mobile: Prevent hero title wrapping */
@media (max-width: 345px) {
  .hero-title--mobile {
    font-size: 26px;
  }
}


/* ===== INDEX: Services Preview ===== */
.services-preview {
  padding: 72px 0 56px;
  background: #ffffff;
  color: #1f1f1f;
}

.services-preview .container {
  padding-top: 8px;
}

.services-header {
  text-align: center;
  margin-bottom: 36px;
}

.services-divider {
  width: 100%;
  max-width: 700px;
  height: 1px;
  background: #3C9A63;
  margin: 28px auto 0;
}

.services-icons {
  display: flex;
  flex-wrap: wrap;
  margin-top: 28px;
}

.service-icon {
  flex: 0 0 100%;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 16px;
}

.service-icon-inner {
  padding: 24px 8px;
}

.service-icon img {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
}

.service-title {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #093894;
  margin-bottom: 4px;

  max-width: 140px;
  margin-left: auto;
  margin-right: auto;
}


.service-blurb {
  display: block;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #093894;

  /* allow wrapping for narrow screens */
  white-space: normal;
}

@media (max-width: 560px) {
  .services-preview {
    padding: 56px 0 48px;
  }

  .services-header {
    margin-bottom: 28px;
  }

  .service-icon-inner {
    padding: 20px 8px;
  }
}

/* Tablet: 2-up, center the orphan (3 + 2 split reads intentional) */
@media (min-width: 768px) and (max-width: 899px) {
  .services-icons {
    justify-content: center;
  }

  .service-icon {
    flex: 0 0 50%;
  }

  /* Center the last icon when it wraps alone */
  .service-icon:last-child {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Laptop: 3-up, true centered columns */
@media (min-width: 900px) and (max-width: 1199px) {
  .services-icons {
    justify-content: center;
  }

  .service-icon {
    flex: 0 0 33.333%;
    margin-bottom: 22px;
  }

  .service-title {
    max-width: 160px;
  }
}

/* Desktop: 5-up starts later to avoid spill at ~1048px */
@media (min-width: 1200px) {
  .services-icons {
    justify-content: space-between;
  }

  .service-icon {
    flex: 0 0 19.2%;
    padding-left: 4px;
    padding-right: 4px;
  }
}


/* ===== Internal Page Hero (shared) ===== */
.internal-hero {
  padding: 104px 0 72px;
  background: #1C5172;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.internal-hero__title {
  margin: 0;
}

.internal-hero__inner {
  position: relative;
  z-index: 1;
}

/* HERO: Ensure body copy reads correctly on dark backgrounds */
.internal-hero__copy,
.internal-hero__copy p {
  color: #ffffff;
}

.internal-hero__copy {
  position: relative;
  z-index: 2;
}

.internal-hero__copy-secondary {
  margin: 12px auto 0;
  max-width: 46ch;
  opacity: 0.88;
}

/* Internal hero — responsive adjustments */
@media (max-width: 899px) {
  .internal-hero {
    padding: 96px 0 56px;
  }
}

@media (max-width: 560px) {
  .internal-hero {
    padding: 88px 0 48px;
  }
  
  .internal-hero__copy-secondary {
    max-width: 38ch;
  }
}

/* ===== Section Skeleton (shared) ===== */
.section {
  padding: 56px 0;
}

.section__inner {
  max-width: 860px;
  margin: 0 auto;
}

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

/* Left-aligned content inside centered sections */
.section--center .section-content-left {
  text-align: left;
}

.section-title {
  margin: 0;
}

.section-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.85;
}

.section-divider {
  width: 64px;
  height: 3px;
  background: #1C5172;
  margin: 12px auto 0;
}

/* Divider variant: long thin green rule (opt-in) */
.divider-long {
  width: 700px;
  max-width: 100%;
  height: 1px;
  background: #3C9A63;
  margin: 20px auto 0;
}

.section-body {
  margin: 16px auto 0;
  max-width: 68ch;
}

@media (min-width: 900px) {
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 48px 0;
  }
  
  .section-body {
    max-width: 100%;
  }
}

/* ===== Section Band ===== */
.section--band {
  background: #1C5172;
  color: #ffffff;
}

.section--band .section-title,
.section--band .pillar__title,
.section--band .pillar__body {
  color: #ffffff;
}

.section--band .section-divider {
  background: #ffffff;
}

.section--band .divider-long {
  background: #ffffff;
}


/* ===== CTA Band ===== */
.cta-band {
  background: #ffffff;
  color: inherit;
}

.cta-band .section-divider {
  background: #1C5172;
}

.cta-band .cta-actions {
  margin-top: 6px;
}

/* CTA button override (white background context) */
.cta-band .button-primary {
  background: #00ABD6;
  border-color: #00ABD6;
  color: #ffffff;
}

/* ===== Pillars ===== */
.pillars-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;

  margin-left: -16px;
  margin-right: -16px;
}

.pillar {
  width: auto;
  padding-left: 16px;
  padding-right: 16px;
  margin-bottom: 24px;
}

.pillar__title {
  margin: 0;
}

.pillar__body {
  margin: 10px 0 0;
  max-width: 52ch;
}

/* Chinese-specific: increase title-to-blurb spacing in Why Choose section */
html[lang="zh"] .about-why .pillar__body {
  margin-top: 14px;
}

@media (min-width: 900px) {
  .pillar {
    flex: 0 0 calc(33.333% - 32px);
  }

  .pillars-row {
    flex-wrap: nowrap;
  }
}

@media (max-width: 899px) {
  .pillars-row {
    margin-top: 32px;
  }
  
  .pillar {
    flex: 0 0 100%;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
  }
  
  .pillar__body {
    max-width: 100%;
  }
}

/* ===== Values Grid ===== */
.about-values .values-grid {
  margin-top: 52px;
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -16px;
  margin-right: -16px;
}

.value-item {
  padding-left: 16px;
  padding-right: 16px;
  margin-bottom: 32px;
}

.value-item__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: transparent;
}

.value-item__icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.value-item__title {
  margin: 0;
}

.value-item__body {
  margin: 12px auto 0; /* Increased from 8px for more breathing room */
  max-width: 36ch;
  text-align: center; /* Center-align blurbs to titles */
}

@media (min-width: 1024px) {
  .value-item {width: auto;flex: 0 0 calc(33.333% - 32px);}
  .values-row {flex-wrap: nowrap;}
  
  .about-values .values-row {
    justify-content: space-between;
  }
  
}

/* Tablet/Laptop: 2 columns of 3 rows (treat both rows as one unified grid) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Make values-grid the flex container, not the individual rows */
  .about-values .values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    
    /* Constrain the overall width so columns feel closer */
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Hide the row wrappers' flex behavior */
  .values-row {
    display: contents;
  }
  
  .value-item {
    flex: 0 0 calc(50% - 24px);
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
    margin-bottom: 40px;
  }
}

/* Mobile: single column stack */
@media (max-width: 767px) {
  .about-values .values-grid {
    margin-top: 32px;
  }
  
  .values-row {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }
  
  .value-item {
    flex: 0 0 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
    margin-bottom: 32px;
  }
  
  .value-item__body {
    max-width: 100% !important;
  }
}

/* ===== SERVICES: Page ===== */

.services-hero {
  /* intentionally inherits from .internal-hero */
}

/* SERVICES: Hero copy refinements */
.services-hero {
  min-height: 406px;
  padding-top: 60px;
  padding-bottom: 64px;
}

.services-hero__inner,
.services-hero__copy {
  position: relative;
  z-index: 2;
}

.services-hero__copy {
  color: #ffffff;
  text-align: right;
  padding-right: 45px;
  margin-top: 165px;
}

.services-hero__copy-secondary {
  margin-top: 2px;
  font-weight: 600;

  /* fallback */
  color: #ffffff;

  /* preferred */
  color: rgba(255, 255, 255, 1);

  opacity: 1;
}

/* SERVICES: Hero title micro-nudge */
.services-hero__title {
  padding-right: 0px;
  margin-right: 20px;
}

/* Services hero — responsive adjustments */

/* Hide mobile caption by default */
.services-hero__copy-secondary--mobile {
  display: none;
}

@media (max-width: 899px) {
  .services-hero {
    min-height: 320px;
    padding: 88px 0 56px;
  }
  
  .services-hero__copy {
    margin-top: 120px;
    padding-right: 24px;
  }
}

@media (max-width: 560px) {
  .services-hero {
    min-height: 280px;
    padding: 80px 0 48px;
  }
  
  .services-hero__copy {
    margin-top: 88px;
    padding-right: 16px;
    text-align: center;
  }
  
  .services-hero__title {
    padding-right: 0;
  }
  
  /* Swap to shorter caption on mobile */
  .services-hero__copy-secondary--desktop {
    display: none;
  }
  
  .services-hero__copy-secondary--mobile {
    display: block;
  }
}

/* Small mobile: better vertical centering + avoid navbar overlap */
@media (max-width: 480px) {
  .services-hero {
    min-height: 360px;
    padding: 88px 0 48px;
    display: flex;
    align-items: center;
  }
  
  .services-hero .container {
    width: 100%;
  }
  
  .services-hero__copy {
    margin-top: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Very small mobile: extra navbar clearance */
@media (max-width: 375px) {
  .services-hero {
    min-height: 380px;
    padding-top: 100px;
  }
}

/* SERVICES: Hero background hook */
.services-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 0;
  pointer-events: none;

  /* keep image fully opaque */
  opacity: 1;

  /* asset */
  background-image: url("/images/services/services-hero.jpg");
  background-repeat: no-repeat;

  /* banner-style fit (matches 1440x406 intent better than cover) */
  background-size: cover;
  background-position: 65% 89%;
}

.services-hero__media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  /* fallback */
  background: #1C5172;

  /* overlay (lighten so the photo reads) */
  background: rgba(28, 81, 114, 0.28);
}

/* SERVICES: INTRO */
.services-intro {
  padding: 56px 0;
}

.services-intro__header {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* SERVICES: PRODUCTS */
.services-products__header {
  max-width: 760px;
  margin: 0 auto 22px auto;
  text-align: center;
}

.services-detail {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;

  margin-right: -18px;
  margin-bottom: -18px;
  overflow: hidden;
}

.detail-item {
  flex: 1 1 420px;

  margin-right: 18px;
  margin-bottom: 18px;

  border: 1px solid #e0e0e0;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;

  padding: 0;
}

/* SERVICES: Accordion title typography */
.detail-summary__title {
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #093894;
  text-transform: uppercase; /* validator-safe small caps approximation */
  font-weight: 600;
  margin: 0;
}

.detail-summary .detail-summary__teaser {
  display: block;
  margin-top: 6px;
  opacity: 0.9;
}

.detail-summary {
  cursor: pointer;
  list-style: none;
  padding: 22px;
  position: relative;
  padding-right: 48px;
}

.detail-summary::-webkit-details-marker {
  display: none;
}

/* Icon (rotate immediately on click states) */
.detail-summary::after {
  content: "+";
  position: absolute;
  top: 22px;
  right: 22px;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  opacity: 0.75;
  transform: rotate(0deg);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Services accordion — mobile adjustments */
@media (max-width: 768px) {
  .detail-summary__title {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .detail-item {
    flex: 1 1 100%;
    margin-right: 0;
  }
  
  .detail-summary {
    padding: 18px;
    padding-right: 44px;
  }
  
  .detail-summary__title {
    font-size: 22px;
  }
  
  .detail-summary::after {
    top: 18px;
    right: 18px;
  }
  
  .detail-body {
    padding: 0 18px 18px;
  }
}

/* Fallback open state */
.detail-item[open] .detail-summary::after {
  transform: rotate(45deg);
  opacity: 0.9;
}

/* Opening: rotate immediately */
.is-expanding .detail-summary::after {
  transform: rotate(45deg);
  opacity: 0.9;
}

/* Closing: rotate back immediately (must override [open] while collapsing) */
.is-collapsing .detail-summary::after {
  transform: rotate(0deg);
  opacity: 0.75;
}

/* Summary background states */
.detail-summary:hover {
  background: #f3f6f8;
}

.detail-item[open] .detail-summary {
  background: #f3f6f8;
}

/* SERVICES: Closing state motion (no adjoining classes) */
.is-collapsing .detail-body {
  opacity: 0;
  transform: translateY(-8px);
}

/* Body spacing + readability + motion base */
.detail-body {
  padding: 0 22px 22px;

  /* readability */
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;

  /* motion */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 520ms ease,
    opacity 420ms ease,
    transform 420ms ease;
}

.detail-body p + p {
  margin-top: 10px;
}

/* Open state (JS controls max-height inline) */
.detail-item[open] .detail-body {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .detail-body {
    transition: none;
  }
}


/* SERVICES: PILLARS */
.services-pillars {
  padding: 56px 0;
  background: #EDF1F3;
}

.services-pillars__header {
  max-width: 760px;
  margin: 2px auto 0 auto;
  text-align: center;
}

/* SERVICES: Divider spacing refinement */
.services-products__header .services-divider,
.services-pillars__header .services-divider {
  margin-bottom: 40px;
}

.services-pillars__grid {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 28px auto 12px auto;

  /* gutter system (matches your margin-based approach) */
  margin-right: -18px;

  overflow: hidden;
}

.pillar-card {
  box-sizing: border-box;

  width: calc(50% - 18px);
  flex: 0 0 auto;

  margin-right: 18px;
  margin-bottom: 18px;
  padding: 15px;

  border: 1px solid #e0e0e0;
  border: 1px solid rgba(0,0,0,0.12);

  border-radius: 10px;
}


/* SERVICES: Pillar card body spacing */
.pillar-card p {
  margin-top: 12px;
}

/* SERVICES: align Products + Pillars along the same center axis */
.services-intro__content,
.services-pillars__grid {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* SERVICES: BREATHER */
.services-breather {
  min-height: 425px;

  /* fallback */
  background-color: #f2f2f2;

  /* breather image */
  background-image: url("/images/services/services-breather-v1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 15% 45%;
}

/* SERVICES: CTA */
.services-cta {
  padding: 60px 0 90px;
  background: #C9D7D1;
  font-size: 15px;
}

.services-cta__inner {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.services-cta__copy {
  margin-bottom: 18px;
}

/* SERVICES: CTA copy spacing */
.services-cta__copy p {
  margin-top: 20px;
}

.services-cta__form {
  margin: 0;
}

.services-cta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
  margin-right: -12px;
  overflow: hidden;
}

.form-input {
  /* box-sizing required for predictable layout in modern browsers
     IE6/7 unsupported by design */
  box-sizing: border-box;

  flex: 1 1 auto;
  max-width: 360px;
  margin-right: 12px;
  
  font-size: inherit;
  line-height: 1.4;

  background: #ffffff;
  padding: 10px 12px 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
}

/* SERVICES: CTA button refinement */
.services-cta__button {
  box-sizing: border-box;

  padding: 12px 18px;
  border-radius: 12px;

  background: #00ABD6;
  border: 2px solid #00ABD6;

  color: #ffffff;

  font-size: inherit;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;

  cursor: pointer;
}

.services-cta__button:hover {
  opacity: 0.83;
}


/* BREAKPOINTS */
@media (max-width: 960px) {
  .detail-item { flex: 1 1 100%; }

  .services-hero__inner { flex-direction: column; }
  .services-hero__copy { margin-right: 0; margin-bottom: 24px; }

  .services-breather { min-height: 320px; }
}

@media (max-width: 560px) {
  .services-hero { padding: 96px 0 46px; }

  .pillar-card { padding: 18px; }
  
  /* SERVICES: Pillars — single column on mobile */
  .services-pillars__grid {
    margin-right: 0;
  }

  .pillar-card {
    width: 100%;
    margin-right: 0;
  }
  
  .detail-summary { padding: 18px; }
  .detail-body { padding: 0 18px 18px; }
  
  .detail-body p {
    text-align: left;
    hyphens: manual;
  }

  .services-cta__row {
    margin-right: 0;
  }

  .form-input {
    flex: 1 1 100%;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .services-cta__button {
    width: 100%;
  }
}

/* ===== ABOUT: Hero ===== */
/* About hero hook (Phase A) */
.about-hero {
  min-height: 406px;
  padding-top: 60px;
  padding-bottom: 64px;
}

.about-hero__title {
  padding-right: 8px;
  margin-right: 20px;
}

.about-hero__copy {
  color: #ffffff;
  text-align: right;
  margin-left: auto;
  padding-right: 45px;
  margin-top: 148px;
}

.about-hero__copy-secondary {
  margin: 2px 0 0;
  font-weight: 600;

  /* ensure it aligns with right-aligned block */
  text-align: right;
  line-height: 1.3;
  margin-left: auto;

  /* optional: keep line length controlled, still right-aligned */
  max-width: 46ch;

  /* fallback */
  color: #ffffff;

  /* preferred */
  color: rgba(255, 255, 255, 1);

  opacity: 1;
}

/* About hero — responsive adjustments */

/* Hide mobile caption by default */
.about-hero__copy-secondary--mobile {
  display: none;
}

@media (max-width: 899px) {
  .about-hero {
    min-height: 320px;
    padding: 88px 0 56px;
  }
  
  .about-hero__copy {
    margin-top: 110px;
    padding-right: 24px;
  }
}

/* Swap to shorter caption earlier to prevent wrapping */
@media (max-width: 625px) {
  .about-hero__copy-secondary--desktop {
    display: none;
  }
  
  .about-hero__copy-secondary--mobile {
    display: block;
  }
}

@media (max-width: 560px) {
  .about-hero {
    min-height: 280px;
    padding: 80px 0 48px;
  }
  
  .about-hero__copy {
    margin-top: 80px;
    padding-right: 16px;
    text-align: center;
  }
  
  .about-hero__copy-secondary {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-hero__title {
    padding-right: 0;
  }
}

/* Small mobile: better vertical centering + avoid navbar overlap */
@media (max-width: 480px) {
  .about-hero {
    min-height: 360px;
    padding: 88px 0 48px;
    display: flex;
    align-items: center;
  }
  
  .about-hero .container {
    width: 100%;
  }
  
  .about-hero__copy {
    margin-top: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Very small mobile: extra navbar clearance */
@media (max-width: 375px) {
  .about-hero {
    min-height: 380px;
    padding-top: 100px;
  }
}

.about-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 0;
  pointer-events: none;

  /* keep image fully opaque */
  opacity: 1;

  /* asset */
  background-image: url("/images/about/about-hero.jpg");
  background-repeat: no-repeat;

  /* fit */
  background-size: cover;
  background-position: 55% 89%;
}

.about-hero__media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  /* fallback */
  background: #1C5172;

  /* overlay tint only (does not change image opacity) */
  background: rgba(28, 81, 114, 0);
}

.about-mission .section-body {
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;

  /* spacing polish */
  margin-top: 30px;
  max-width: 84ch;
}

/* Mission: generous padding on tablet/mobile */
@media (min-width: 561px) and (max-width: 1060px) {
  .about-mission .section__inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 560px) {
  .about-mission .section__inner {
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* ===== ABOUT: Office Gallery ===== */
.about-office {
  padding-top: 60px;
  padding-bottom: 40px;
}

.office-gallery {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  margin-top: 48px;
  margin-left: -12px;  /* Negative margin for spacing */
  margin-right: -12px;
}

.office-gallery__item {
  flex: 1 1 0;
  padding-left: 12px;  /* Creates 24px total gap between items */
  padding-right: 12px;
}

.office-gallery__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  
  /* Subtle desaturation to unify the set */
  filter: saturate(0.88) brightness(1.02) contrast(0.98);
}

/* Bump contrast on exterior shot */
.office-gallery__item:first-child img {
  filter: saturate(0.88) brightness(1.02) contrast(1.12);
}

/* Mobile: stack vertically, constrain max width */
@media (max-width: 768px) {
  .office-gallery {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .office-gallery__item {
    max-width: 420px;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .about-office {
    padding-top: 64px;
  }
  
  .office-gallery {
    margin-top: 32px;
  }
}

/* ABOUT: tighten Mission → Values transition */
.about-values {
  padding-top: 106px; /* Increased to accommodate divider repositioning */
  position: relative;
}

/* Add subtle divider between Mission and Values sections */
.about-values::before {
  content: "";
  position: absolute;
  top: 16px; /* Much closer to office images */
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  max-width: 200px;
  height: 1px;
  background: #3C9A63;
  opacity: .45;
}

/* ABOUT: Values — add breathing room between rows */
.about-values .values-row + .values-row {
  margin-top: 24px;
}

/* ABOUT: Values — per-item blurb measures (keeps columns evenly spaced) */

/* Row 1: Transparency / Integrity / Reliability */
.about-values .values-row:nth-child(1) > .value-item:nth-child(1) .value-item__body {
  max-width: 20ch;
}

.about-values .values-row:nth-child(1) > .value-item:nth-child(2) .value-item__body {
  max-width: 16ch;
}

.about-values .values-row:nth-child(1) > .value-item:nth-child(3) .value-item__body {
  max-width: 16ch;
}

/* Row 2: Expertise / Confidentiality / Accountability */
.about-values .values-row:nth-child(2) > .value-item:nth-child(1) .value-item__body {
  max-width: 24ch;
}

.about-values .values-row:nth-child(2) > .value-item:nth-child(2) .value-item__body {
  max-width: 28ch;
}

.about-values .values-row:nth-child(2) > .value-item:nth-child(3) .value-item__body {
  max-width: 20ch;
}

/* CHINESE-SPECIFIC: Value blurb adjustments for visual balance */

/* Row 1: 透明 / 诚信 / 可靠 */
html[lang="zh"] .about-values .values-row:nth-child(1) > .value-item:nth-child(1) .value-item__body {
  max-width: 16ch; /* 透明 */
}

html[lang="zh"] .about-values .values-row:nth-child(1) > .value-item:nth-child(2) .value-item__body {
  max-width: 19ch; /* 诚信 */
  padding-left: 7px; /* Nudge second line right slightly */
}

html[lang="zh"] .about-values .values-row:nth-child(1) > .value-item:nth-child(3) .value-item__body {
  max-width: 12ch; /* 可靠 */
  padding-left: 12px; /* Nudge entire blurb right */
}

/* Row 2: 专业 / 保密 / 负责 */
html[lang="zh"] .about-values .values-row:nth-child(2) > .value-item:nth-child(1) .value-item__body {
  max-width: 18ch; /* 专业 */
}

html[lang="zh"] .about-values .values-row:nth-child(2) > .value-item:nth-child(2) .value-item__body {
  max-width: 28ch; /* 保密 */
  padding-left: 14px; /* Nudge entire blurb right */
}

html[lang="zh"] .about-values .values-row:nth-child(2) > .value-item:nth-child(3) .value-item__body {
  max-width: 14ch; /* 负责 */
  padding-left: 6px; /* Nudge second line right slightly */
}

/* ABOUT: add breathing room above Why Choose section */
.about-why {
  padding-top: 82px;
  
  position: relative;
  overflow: hidden;

  /* allow image to be visible */
  background: transparent;
}

.about-why__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 0;
  pointer-events: none;

  /* image opacity */
  opacity: 1;

  /* asset */
  background-image: url("/images/about/about-why.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

/* ensure content sits above the image */
.about-why .container,
.about-why .section__inner {
  position: relative;
  z-index: 1;
}

.about-why__media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  /* fallback */
  background: #1C5172;

  /* subtle readability tint */
  background: rgba(28, 81, 114, 0.45);
}


.about-why .section-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ABOUT: Why Choose — keep divider green even in band */
.about-why .divider-long {
  background: #3C9A63;
}

.about-why .pillar__body + .pillar__body {
  margin-top: 14px;
}

.about-why .pillar__body {
  line-height: 1.4;
  opacity: 0.88; /* Reduced from 0.92 for lighter visual weight */
  letter-spacing: 0.01em;

  text-align: left;
  hyphens: auto;
}

/* ABOUT: Why — increase column spacing */
.about-why .pillar {
  padding-left: 27px;
  padding-right: 27px;
}

/* Desktop: 3-column layout */
@media (min-width: 1061px) {
  .about-why .pillars-row {
    flex-wrap: nowrap;
    justify-content: center;
    transform: translateX(6px);
  }

  .about-why .pillars-row > .pillar:nth-child(1) {
    flex: 0 0 32%;
  }

  .about-why .pillars-row > .pillar:nth-child(2) {
    flex: 0 0 40%;
  }

  .about-why .pillars-row > .pillar:nth-child(3) {
    flex: 0 0 28%;
  }
}

/* Tablet/laptop: generous padding for spacious feel */
@media (min-width: 561px) and (max-width: 1060px) {
  .about-why .pillars-row {
    flex-direction: column;
    align-items: center;
  }
  
  .about-why .pillar {
    flex: 0 0 100%;
    max-width: 540px;
    padding-left: 40px;
    padding-right: 40px;
    margin-bottom: 32px;
  }
  
  .about-why .pillar__body {
    max-width: 100%;
  }
}

/* Mobile: generous padding (still comfortable on small screens) */
@media (max-width: 560px) {
  .about-why .pillars-row {
    flex-direction: column;
    align-items: center;
  }
  
  .about-why .pillar {
    flex: 0 0 100%;
    max-width: 540px;
    padding-left: 28px;
    padding-right: 28px;
    margin-bottom: 32px;
  }
  
  .about-why .pillar__body {
    max-width: 100%;
  }
}

/* ABOUT: CTA — tighten overall vertical position */
.cta-band .section__inner {
  margin-top: -8px;
}

/* ABOUT: Join Us — copy refinement */
.cta-band .section-body {
  display: block;
  
  text-align: left;
  line-height: 1.6;
  letter-spacing: 0.01em;
  max-width: 70ch;
  opacity: 0.92;
  
}

/* Chinese-specific: CTA blurb max-width adjustment */
html[lang="zh"] .cta-band .section-body {
  max-width: 70ch; /* Adjust as needed for Chinese text flow */
}

/* CTA: generous padding on tablet/mobile */
@media (min-width: 561px) and (max-width: 1060px) {
  .cta-band .section__inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 560px) {
  .cta-band .section__inner {
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* ABOUT: Join Us — separate title from copy */
.cta-band .section-title + .section-body {
  margin-top: 24px;
}

/* ABOUT: CTA button — hover affordance */
.cta-band .button-primary:hover {
  color: #ffffff;
  opacity: .9;
  background: #009BC4;
}


/* ===== NEWS: Page ===== */

/* Hide mobile caption by default */
.news-hero__copy-secondary--mobile {
  display: none;
}

.news-hero {
  min-height: 406px;
  padding-top: 60px;
  padding-bottom: 64px;
}

.news-hero .internal-hero__inner,
.news-hero .internal-hero__copy {
  position: relative;
  z-index: 2;
}

.news-hero .internal-hero__copy {
  color: #ffffff;

  /* text behavior */
  text-align: left;
  max-width: 520px;

  /* center-axis anchor */
  margin-left: 40%;
  padding-left: 24px;

  /* vertical placement */
  margin-top: 165px;
}


.news-hero .internal-hero__copy-secondary {
  /* match Services hero */
  margin-top: 2px;
  font-weight: 600;

  /* fallback */
  color: #ffffff;

  /* preferred */
  color: rgba(255, 255, 255, 1);

  opacity: 1;
}

/* News hero — responsive adjustments */

/* Hide mobile caption by default */
.news-hero__copy-secondary--mobile {
  display: none;
}

@media (max-width: 899px) {
  .news-hero {
    min-height: 320px;
    padding: 88px 0 56px;
  }
  
  .news-hero .internal-hero__copy {
    margin-top: 110px;
    margin-left: 30%;
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .news-hero .internal-hero__copy {
    /* switch alignment */
    text-align: right;

    /* reset center-axis anchoring */
    margin-left: auto;
    padding-left: 0;

    /* give right-side breathing room */
    padding-right: 20px;

    /* optional: slightly reduce vertical offset */
    margin-top: 120px;
  }
}

@media (max-width: 560px) {
  .news-hero {
    min-height: 280px;
    padding: 80px 0 48px;
  }
  
  .news-hero .internal-hero__copy {
    margin-top: 80px;
    padding-right: 16px;
    text-align: center;
  }
  
  /* Swap to shorter caption on mobile */
  .news-hero__copy-secondary--desktop {
    display: none;
  }
  
  .news-hero__copy-secondary--mobile {
    display: block;
  }
}

/* Small mobile: better vertical centering + avoid navbar overlap */
@media (max-width: 480px) {
  .news-hero {
    min-height: 360px;
    padding: 88px 0 48px;
    display: flex;
    align-items: center;
  }
  
  .news-hero .container {
    width: 100%;
  }
  
  .news-hero .internal-hero__copy {
    margin-top: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Very small mobile: extra navbar clearance */
@media (max-width: 375px) {
  .news-hero {
    min-height: 380px;
    padding-top: 100px;
  }
}


/* ===== NEWS: Hero (Phase B media) ===== */
.news-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 0;
  pointer-events: none;

  /* keep image fully opaque */
  opacity: 1;

  /* asset */
  background-image: url("/images/news/news-hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;

  /* start aligned like Services (can refine later in Phase B if needed) */
  background-position: 35% 20%;
}

.news-hero__media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  /* fallback */
  background: #1C5172;

  /* overlay (match Services) */
  background: rgba(28, 81, 114, 0.28);
}

.news-listing .divider-long,
.partners-block .divider-long {
  margin-bottom: 32px;
}

.partners-block .divider-long {
  opacity: .45;
}


/* ===== NEWS: Listings ===== */
.news-note {
  margin: 0 0 22px;
}

.news-items {
  margin: 0;
}

.news-item {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 14px;
  overflow: hidden;
}

.news-details {
  margin: 0;
}

.news-summary {
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.news-summary::-webkit-details-marker {
  display: none;
}

.news-summary__meta {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.news-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border: 1px solid #1C5172;
  border-radius: 999px;
  font-size: 12px;
}

.news-title {
  margin: 0 0 8px;
}

.news-excerpt {
  margin: 0;
}

.news-body {
  padding: 0 18px 18px;
}

.news-link {
  margin: 12px 0 0;
}

.news-empty {
  border: 1px dashed #cfcfcf;
  border-radius: 10px;
  padding: 18px;
   margin: 14px 0 28px;
}

.news-empty p + p {
  margin-top: 10px;
}


/* ===== NEWS: Partners Block (dark band variant) ===== */
.partners-block {
  background: #1C5172;
  color: #ffffff;
  padding-top: 78px;
  padding-bottom: 95px
}

.partners-block .section-title {
  color: #ffffff;
}

/* Partners: allow wider logo wall (Phase B) */
.partners-block .section__inner {
  max-width: 1125px;
}

.partners-block .partners-row {
  margin-top: 40px;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-right: -16px;
  margin-top: 20px;
}


.partners-col {
  box-sizing: border-box;
  flex: 1 1 calc(20% - 20px);
  margin-right: 16px;
  margin-bottom: 16px;
  position: relative;
}

/* Vertical divider between columns */
.partners-col::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: #3C9A63;
  opacity: .45;
  display: none; /* Hidden by default, shown only where needed */
}


.partner-tile {
  border: 0;
  background: transparent;
  padding: 4px;
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 14px;
  letter-spacing: 0.2px;
}

.partner-tile img {
  display: block;
  width: auto;
  max-height: 45px;
  opacity: 1;
}

/* Partners: per-logo optical sizing (Phase B) */
.partner-tile .logo-allianz { max-height: 48px; }
.partner-tile .logo-prudential { max-height: 84px; }
.partner-tile .logo-lincoln-financial { max-height: 54px; }
.partner-tile .logo-national-life-group { max-height: 67px; }
.partner-tile .logo-new-york-life { max-height: 71px; }
.partner-tile .logo-nationwide { max-height: 74px; }
.partner-tile .logo-john-hancock { max-height: 64px; }
.partner-tile .logo-symetra { max-height: 41px; }
.partner-tile .logo-transamerica { max-height: 67px; }

/* Partners: per-logo nudges (Phase B) */
.nudge-up-1 { position: relative; top: -2px; }
.nudge-up-2 { position: relative; top: -10px; }
.nudge-up-3 { position: relative; top: -3px; }

.nudge-down-1 { position: relative; top: 2px; }
.nudge-down-2 { position: relative; top: 11px; }
.nudge-down-3 { position: relative; top: 3px; }

.nudge-left-1 { position: relative; left: -7px; }
.nudge-left-2 { position: relative; left: -11px; }
.nudge-left-3 { position: relative; left: -14px; }

.nudge-right-1 { position: relative; left: 4px; }
.nudge-right-2 { position: relative; left: 9px; }
.nudge-right-3 { position: relative; left: 13px; }



/* BREAKPOINTS */

/* Partners: visual row nudges (Phase B) */
/* Desktop only - row nudges, NO dividers (plenty of space) */
@media (min-width: 901px) {

  /* Row 1: columns 1–5 */
  .partners-col:nth-child(-n+5) {
    position: relative;
    top: 14px;
    left: 18px;
  }

  /* Row 2: columns 6–9 */
  .partners-col:nth-child(n+6) {
    position: relative;
    top: 27px;
    left: -8px;
  }

}

/* Tablet 2-column: bring logos closer together, NO dividers */
@media (min-width: 768px) and (max-width: 900px) {
  .partners-col {
    flex: 1 1 calc(50% - 20px);
  }
  
  /* Tighter spacing between columns */
  .partners-row {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mid-range tablet/mobile: 2 columns WITH single centered vertical divider */
@media (min-width: 490px) and (max-width: 767px) {
  .partners-col {
    flex: 1 1 calc(50% - 20px);
  }
  
  /* Single centered vertical divider using pseudo-element on container */
  .partners-row::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 40px; /* Move divider down 40px */
    bottom: 220px; /* Stop after NY Life/Nationwide row */
    width: 1px;
    background: #3C9A63;
    opacity: .45;
    transform: translateX(-50%);
  }
  
  .partners-row {
    position: relative;
  }
  
  /* Transamerica stays centered at bottom (full width when odd) */
  .partners-col:last-child {
    flex: 1 1 100%;
    text-align: center;
  }
  
  /* Add left padding to right column logos for breathing room from center line */
  .partners-col:nth-child(even) .partner-tile {
    padding-left: 32px;
  }
}

/* 560-592px: stop divider earlier as John Hancock/Symetra wrap */
@media (min-width: 560px) and (max-width: 591px) {
  .partners-row::before {
    bottom: 290px; /* Stop after Lincoln/National Life to avoid JH/Symetra wrap */
  }
}

/* Below 560px: stop divider earlier as John Hancock/Symetra wrap */
@media (min-width: 490px) and (max-width: 559px) {
  .partners-row::before {
    bottom: 290px; /* Stop after Lincoln/National Life to avoid JH/Symetra wrap */
  }
}

/* Small mobile wrapping: 2 columns WITH single centered vertical divider */
@media (min-width: 471px) and (max-width: 489px) {
  .partners-col {
    flex: 1 1 calc(50% - 20px);
  }
  
  /* Single centered vertical divider */
  .partners-row::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 290px; /* Stop after Lincoln/National Life to avoid John Hancock */
    width: 1px;
    background: #3C9A63;
    opacity: .45;
    transform: translateX(-50%);
  }
  
  .partners-row {
    position: relative;
  }
  
  /* Transamerica stays centered at bottom */
  .partners-col:last-child {
    flex: 1 1 100%;
    text-align: center;
  }
  
  /* Add left padding to right column logos */
  .partners-col:nth-child(even) .partner-tile {
    padding-left: 32px;
  }
}

@media (max-width: 768px) {
  .partners-block {
    padding-top: 64px;
    padding-bottom: 72px;
  }
  
  .partners-block .partners-row {
    margin-top: 32px;
  }
}

/* Remove this breakpoint - was causing multiple dividers 400-470px */
/* @media (max-width: 470px) - DELETED */

/* Small mobile 2-column: no dividers needed */
@media (min-width: 401px) and (max-width: 470px) {
  .partners-col {
    flex: 1 1 calc(50% - 16px);
    margin-right: 12px;
    margin-bottom: 20px;
  }
  
  /* No dividers in this range */
}

@media (max-width: 560px) {
  .partners-block {
    padding-top: 56px;
    padding-bottom: 64px;
  }
  
  .partners-row {
    margin-right: 0;
  }
  
  .partner-tile {
    min-height: 64px;
    padding: 8px;
  }
  
  .partner-tile img {
    max-height: 38px;
  }
  
  /* Reduce per-logo sizes proportionally on mobile */
  .partner-tile .logo-allianz { max-height: 40px; }
  .partner-tile .logo-prudential { max-height: 68px; }
  .partner-tile .logo-lincoln-financial { max-height: 44px; }
  .partner-tile .logo-national-life-group { max-height: 54px; }
  .partner-tile .logo-new-york-life { max-height: 58px; }
  .partner-tile .logo-nationwide { max-height: 60px; }
  .partner-tile .logo-john-hancock { max-height: 52px; }
  .partner-tile .logo-symetra { max-height: 34px; }
  .partner-tile .logo-transamerica { max-height: 54px; }
}

/* Extra small mobile: single column with horizontal dividers */
@media (max-width: 400px) {
  .partners-col {
    flex: 1 1 100%;
    margin-right: 0;
    margin-bottom: 28px;
  }
  
  /* Switch to horizontal divider below each logo */
  .partners-col::after {
    display: block;
    right: auto;
    top: auto;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 25%; /* 1/4 width */
    height: 0;
    border-bottom: 1px solid #3C9A63;
    opacity: .45;
    background: transparent;
  }
  
  /* Hide divider on Transamerica (last logo) */
  .partners-col:last-child::after {
    display: none;
  }
}

/* ===== NEWS: CTA (overlay hook; Phase B image) ===== */
.news-cta {
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

/* NEWS: CTA — match Services CTA spacing rhythm */
.news-cta__copy {
  margin-bottom: 18px;
}

.news-cta__copy p {
  margin-top: 28px;
}


.news-cta__inner {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.news-cta__bg {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;

  /* asset */
  background-image: url("/images/news/news-cta-bg.jpg");
  background-repeat: no-repeat;

  /* fit */
  background-size: cover;
  background-position: center;

  opacity: .7;
}

/* ===== CONTACT: Hero (Phase B polish) ===== */

/* Hide mobile caption by default */
.contact-hero__copy-secondary--mobile {
  display: none;
}

.contact-hero {
  /* match internal page hero rhythm used elsewhere */
  min-height: 406px;
  padding-top: 60px;
  padding-bottom: 64px;

  /* fallback */
  background: #0b1f3a;

  /* hero image */
  background-image: url("/images/contact/contact-hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 15% 95%;
}



.contact-hero .internal-hero__copy {
  margin-top: 165px;
  
 /* Keep the block’s start roughly 40–45% across on wide screens,
     but don’t let it collapse on narrow screens */
  margin-left: 26%;
  margin-right: auto;

  /* readable line length */
  max-width: 560px;

  /* text reads left */
  text-align: left;
}

.contact-hero .internal-hero__copy-secondary {
  /* fallback first */
  color: #ffffff;
  color: rgba(255, 255, 255, 1);
  opacity: 1;

  font-weight: 600;
  margin-top: 2px;
}

/* Contact hero — responsive adjustments */

/* Hide mobile caption by default */
.contact-hero__copy-secondary--mobile {
  display: none;
}

@media (max-width: 899px) {
  .contact-hero {
    min-height: 320px;
    padding: 88px 0 56px;
  }
  
  .contact-hero .internal-hero__copy {
    margin-top: 110px;
    margin-left: 18%;
  }
}

@media (max-width: 560px) {
  .contact-hero {
    min-height: 280px;
    padding: 80px 0 48px;
  }
  
  .contact-hero .internal-hero__copy {
    margin-top: 80px;
    margin-left: 0;
    text-align: center;
  }
  
  /* Swap to shorter caption on mobile */
  .contact-hero__copy-secondary--desktop {
    display: none;
  }
  
  .contact-hero__copy-secondary--mobile {
    display: block;
  }
}

/* Small mobile: better vertical centering + avoid navbar overlap */
@media (max-width: 480px) {
  .contact-hero {
    min-height: 360px;
    padding: 88px 0 48px;
    display: flex;
    align-items: center;
  }
  
  .contact-hero .container {
    width: 100%;
  }
  
  .contact-hero .internal-hero__copy {
    margin-top: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Very small mobile: extra navbar clearance */
@media (max-width: 375px) {
  .contact-hero {
    min-height: 380px;
    padding-top: 100px;
  }
}

/* ===== CONTACT: Form (2-column) ===== */

.contact-main {
  padding-top: 48px; /* reduced from default section rhythm */
  padding-bottom: 40px;
}

.contact-main > .container {
  max-width: 980px;
}

.contact-main__row {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.contact-main__col + .contact-main__col {
  margin-top: 0;
}

.contact-main__col {
  width: 100%;
}

.contact-main__col--left {
  background: #EDF1F3;
  padding: 40px 0 24px;
}

.contact-main__col--right {
  background: #12406A;
  padding: 36px 0 24px;
}

/* Contact: inner padding inside colored panels (base) */
.contact-main__col .section__inner {
  padding-left: 24px;
  padding-right: 24px;
}

/* Left blurbs */
.contact-blurb {
  margin: 0 0 28px;
}

.contact-blurb__title {
  margin: 0;
  line-height: 1.25;
}

.contact-blurb__body {
  margin: 10px 0 0;
}


/* ===== CONTACT: Hours alignment (no grid) ===== */
.contact-hours__label {
  display: inline-block;
  width: 70px;        /* aligns values vertically */
  white-space: nowrap;
  font-weight: 500;
}

/* Chinese hours labels need more width */
html[lang="zh"] .contact-hours__label {
  width: 100px;
}

.contact-hours__value {
  display: inline-block;
}


/* Blurb links — no underline */
.contact-main__col--left .contact-blurb__body a {
  text-decoration: none;
}

/* CONTACT: Left blurbs — unified alignment (client consistency) */
.contact-main__col--left .contact-blurb {
  margin-left: 20px;
}


/* ===== CONTACT: Mini divider after first blurb (brand-matched) ===== */
.contact-main__col--left .contact-blurb:first-of-type::after {
  content: "";
  display: block;

  /* spacing BEFORE divider */
  margin-top: 60px;

  /* spacing AFTER divider */
  margin-bottom: 14px;
  margin-left: -2px;

  height: 1px;
  
  /* match brand divider */
  background-color: #3C9A63;

  /* narrower than full-width divider */
  width: 95%;
}




/* Form */
.contact-form__field {
  margin: 0 0 16px;
}

.contact-form__label {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__input,
.contact-form__textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  background: #ffffff;
  color: #1a1a1a;
  
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.contact-form__input {
  display: block;
}

/* ===== CONTACT: Short form fields — reduced width ===== */
.contact-form__field:nth-of-type(1) .contact-form__input,
.contact-form__field:nth-of-type(2) .contact-form__input,
.contact-form__field:nth-of-type(3) .contact-form__input {
  max-width: 380px;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 200px; /* was ~6 rows */
}

/* ===== CONTACT: Submit button — kicker-based typography ===== */
.contact-form__button {
  box-sizing: border-box;
  display: inline-block;
  width: 100%;

  padding: 12px 18px;
  border-radius: 12px;

  background: #00ABD6;
  border: 2px solid #00ABD6;

  color: #ffffff;

  /* kicker typography */
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.4;

  cursor: pointer;
}

.contact-form__button:hover {
  opacity: 0.83;
}


@media (min-width: 900px) {
  .contact-main__row {
    flex-direction: row;
    align-items: stretch;
  }

  .contact-main__col--left {
    width: 38%;
  }

  .contact-main__col--right {
    width: 62%;
    margin-top: 0;
    margin-left: 0;
  }

  .contact-main__col .section__inner {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  /* Left Copy - indentation (desktop) */
  .contact-main__col--left .section__inner {
    padding-left: 38px;
    padding-right: 35px;
  }
  
/* CONTACT: Left blurbs — unify measures (desktop) */
  .contact-main__col--left .contact-blurb__body {
    padding-right: 45px;
  }
  
}

@media (max-width: 899px) {
  .contact-main__col--right {
    border-top: 1px solid #d7dee4;
  }

}

/* ===== Contact: Divider ===== */
.contact-divider + .contact-map,
.contact-map + .contact-divider {
  padding-left: 0;
  padding-right: 0;
}

.contact-main + .contact-divider {
  padding-top: 4px;
  padding-bottom: 16px;
}


/* Contact: divider spacing around map */
.contact-divider {
  padding-top: 16px;
  padding-bottom: 32px;
}

.contact-divider__line {
  display: block;
  height: 1px;
  background: #3C9A63;
  width: 100%;
  opacity: .4;
}

/* ===== CONTACT: Divider line — container-aligned (client request) ===== */
.contact-divider .contact-divider__line {
  width: calc(100vw - 48px);   /* 24px inset on both sides */
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: 1152px;           /* 1200 - 48 */
}

/* ===== Contact: Full-bleed Map ===== */
.contact-map--full {
  padding: 0;
}

.contact-map__full {
  max-width: 1200px; /* same as .container */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.contact-map__embed {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

@media (max-width: 560px) {
  .contact-map__embed {
    height: 280px;
  }
}


/* ===== FOOTER ===== */
.site-footer {
  padding: 68px 0 64px;
  background: #EDF1F3;
  color: #1f1f1f;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  
  flex-shrink: 0;
}


.site-footer p,
.site-footer .footer-copy {
  white-space: nowrap;
}

.site-footer p {
  margin: 0;
}

/* Hide mobile copyright by default */
.footer-copy--mobile {
  display: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap; /* allows wrapping when footer becomes a row */
}

.footer-col { margin-bottom: 16px; }

.footer-col-inner {
  line-height: 1.4;
  padding: 0 12px;
}

.footer-logo {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -12px;
}

.footer-copy {
  text-align: left;
  padding-left: 12px;
}


.footer-links {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  color: #093894;
  position: relative;
  top: 2px;
}

.footer-links a {
  color: #093894;
  text-decoration: none;
  vertical-align: baseline;
  margin: 0 6px;
}

.footer-links a:hover {
  text-decoration: none;
  opacity: 0.80;
}

/* Desktop: horizontal row layout */
@media (min-width: 1024px) {
  .footer-inner {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .footer-col {
    width: auto;
    flex: 0 1 auto;
    margin-bottom: 0;
  }
  
  /* Add comfortable spacing between columns */
  .footer-col-inner {
    padding: 0 20px;
  }
}

/* Tablet: centered stacked layout (cleaner than cramped row) */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-col {
    width: auto;
    margin-bottom: 20px;
  }
  
  .footer-col:last-child {
    margin-bottom: 0;
  }
  
  /* Center-align everything on tablet */
  .footer-copy {
    text-align: center;
    padding-left: 0;
  }
}

/* Mobile: stacked layout */
@media (max-width: 767px) {
  .site-footer p,
  .site-footer .footer-copy {
    white-space: normal;
  }
  
  .footer-links {
    white-space: normal;
  }
  
  .footer-copy {
    text-align: center;
    padding-left: 0;
  }
}

/* Small mobile: swap to copyright with line break */
@media (max-width: 480px) {
  .footer-copy--desktop {
    display: none;
  }
  
  .footer-copy--mobile {
    display: block;
  }
}

@media (max-width: 360px) {
  .footer-copy {
    white-space: normal;
    text-align: center;
  }
}

/* ===== LEGAL: Terms / Privacy — smaller text ===== */

/* LEGAL: absorb extra viewport height into hero */
.page-terms .internal-hero,
.page-privacy .internal-hero {
  padding-bottom: 65px;
}


.page-privacy .internal-hero__copy,
.page-terms .internal-hero__copy {
  margin-left: auto;
  margin-right: auto;
  padding-top: 45px; /* increase from whatever base is */
}

/* LEGAL: Hero body copy — keep centered but reduce wrapping */
.page-privacy .internal-hero__copy p,
.page-terms .internal-hero__copy p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}


.page-terms .section-content-left,
.page-privacy .section-content-left {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.01em;

  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;

  text-align: left;

  /* optional hyphen support */
  hyphens: none;
  hyphens: auto;
}

/* LEGAL: Blurb titles — hierarchy without qualifying headings */
.page-terms .legal-blurb-title,
.page-privacy .legal-blurb-title {
  font-weight: 600;
  font-size: 17px; /* slightly above 14px body */
  line-height: 1.4;
  margin: 20px 0 6px;
}


/* LEGAL: paragraph rhythm */
.page-terms .section-content-left p,
.page-privacy .section-content-left p {
  margin: 0 0 14px;

  /* fallback */
  color: #093894;

  /* preferred */
  color: rgba(9, 56, 148, 0.85);
}

/* LEGAL: separate consecutive paragraphs */
.page-terms .section-content-left p + p,
.page-privacy .section-content-left p + p {
  margin-top: 6px;
}

/* LEGAL: Breathing room after lists */
.page-terms .section-content-left ul,
.page-privacy .section-content-left ul {
  margin-bottom: 16px;
}

.page-terms .section:last-of-type,
.page-privacy .section:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 899px) {
  .page-terms .internal-hero,
  .page-privacy .internal-hero {
    padding-top: 112px;
  }
}

@media (max-width: 360px) {
  .page-terms .internal-hero,
  .page-privacy .internal-hero {
    padding-top: 140px;
  }
}


/* ===== Utilities ===== */
.is-hidden { display: none; }

/* ===== SERVICES PAGE ===== */

/* Hero - inherits from internal-hero */
.services-hero {
  min-height: 406px;
  padding-top: 60px;
  padding-bottom: 64px;
}

.services-hero__inner,
.services-hero__copy {
  position: relative;
  z-index: 2;
}

.services-hero__copy {
  color: #ffffff;
  text-align: right;
  padding-right: 45px;
  margin-top: 165px;
}

.services-hero__copy-secondary {
  margin-top: 2px;
  font-weight: 600;
  color: #ffffff;
  opacity: 1;
}

/* Hide mobile caption by default */
.services-hero__copy-secondary--mobile {
  display: none;
}

/* Services Hero Background */
.services-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  
  /* asset */
  background-image: url("/images/services/services-hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 65% 89%;
}

.services-hero__media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* fallback */
  background: #1C5172;
  
  /* overlay (lighten so the photo reads) */
  background: rgba(28, 81, 114, 0.28);
}

@media (max-width: 899px) {
  .services-hero {
    min-height: 320px;
    padding: 88px 0 56px;
  }
  
  .services-hero__copy {
    margin-top: 120px;
    padding-right: 24px;
  }
}

@media (max-width: 560px) {
  .services-hero {
    min-height: 280px;
    padding: 80px 0 48px;
  }
  
  .services-hero__copy {
    margin-top: 88px;
    padding-right: 16px;
    text-align: center;
  }
  
  .services-hero__title {
    padding-right: 0;
  }
  
  .services-hero__copy-secondary--desktop {
    display: none;
  }
  
  .services-hero__copy-secondary--mobile {
    display: block;
  }
}

@media (max-width: 480px) {
  .services-hero {
    min-height: 360px;
    padding: 88px 0 48px;
    display: flex;
    align-items: center;
  }
  
  .services-hero .container {
    width: 100%;
  }
  
  .services-hero__copy {
    margin-top: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 375px) {
  .services-hero {
    min-height: 380px;
    padding-top: 100px;
  }
}

/* Products Section */
.services-products {
  padding: 72px 0 64px;
  background: #F8FAFB;
}

.services-products__inner {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.services-products__header {
  text-align: center;
  margin-bottom: 32px;
}

.services-products__header h2 {
  margin-bottom: 24px;
}

.services-divider {
  width: 100%;
  max-width: 500px;
  height: 1px;
  background: #3C9A63;
  margin: 0 auto;
  opacity: 0.45;
}

.services-products__grid {
  display: flex;
  margin-left: -8px;
  margin-right: -8px;
}

/* Product Cards */
.product-card {
  flex: 1;
  padding-left: 8px;
  padding-right: 8px;
}

.product-card__inner {
  background: #ffffff;
  border: 1px solid rgba(60, 154, 99, 0.25);
  border-radius: 12px;
  padding: 29px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.product-card__icon {
  margin-bottom: 16px;
  height: 288px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__icon img {
  max-width: 264px;
  max-height: 264px;
  width: auto;
  height: auto;
  display: block;
}

.product-card__title {
  margin-bottom: 14px;
  text-align: center;
  flex-shrink: 0;
}

.product-card__details {
  text-align: left;
  flex-shrink: 0;
  min-height: 48px;
}

.product-card__details summary {
  transition: margin 200ms ease-out;
}

.product-card__details[open] summary {
  margin-bottom: 0;
}

.product-card__body {
  overflow: hidden;
  transition: max-height 350ms cubic-bezier(0.4, 0, 0.2, 1), opacity 350ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.product-card__details[open] .product-card__body {
  opacity: 1;
}

.product-card__body > div {
  padding: 2px 12px 4px;
}

.product-card__body p {
  margin-bottom: 16px;
  text-align: justify;
  hyphens: auto;
}

.product-card__body p:last-child {
  margin-bottom: 0;
}

.product-card__summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 18px;
  background: #00ABD6;
  border: 2px solid #00ABD6;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  transition: background 200ms ease, opacity 200ms ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.product-card__summary span:first-child {
  transition: opacity 200ms ease-out;
}

/* Hide text when open AND not closing - target both language spans */
.product-card__details[open]:not(.is-closing) .product-card__summary .lang-en,
.product-card__details[open]:not(.is-closing) .product-card__summary .lang-zh {
  opacity: 0;
}

/* Fallback for non-bilingual cards */
.product-card__details[open]:not(.is-closing) .product-card__summary span:first-child:not(.lang-en):not(.lang-zh) {
  opacity: 0;
}

.product-card__summary:hover {
  opacity: 0.83;
}

/* Remove ALL focus/active states */
.product-card__summary:focus,
.product-card__summary:active,
.product-card__summary:focus-visible {
  outline: none;
}

.product-card__summary:hover:focus,
.product-card__summary:hover:active {
  opacity: 0.83;
}

.product-card__summary::-webkit-details-marker {
  display: none;
}

.product-card__indicator {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  margin-left: 12px;
}

.product-card__indicator::before,
.product-card__indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1), opacity 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card__indicator::before {
  width: 12px;
  height: 2px;
}

.product-card__indicator::after {
  width: 2px;
  height: 12px;
}

.product-card__details[open]:not(.is-closing) .product-card__indicator::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.product-card__body {
  padding: 24px 18px 4px;
  animation: slideDown 400ms ease-out;
  overflow: hidden;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
  }
}

.product-card__body p {
  margin-bottom: 16px;
}

.product-card__body p:last-child {
  margin-bottom: 0;
}

/* Coming Soon */
.product-card__coming-soon {
  padding: 20px;
  background: #F8FAFB;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  text-align: left;
  flex-shrink: 0;
  min-height: 48px;
}

.product-card__coming-soon p {
  margin-bottom: 12px;
}

.product-card__coming-soon p:last-child {
  margin-bottom: 0;
}

.product-card__status {
  font-weight: 600;
  color: #3C9A63;
  font-style: italic;
}

/* Solutions Section */
.services-solutions {
  padding: 72px 0 64px;
  background: #ffffff;
}

.services-solutions__inner {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services-solutions__header {
  text-align: center;
  margin-bottom: 56px;
}

.services-solutions__header h2 {
  margin-bottom: 24px;
}

.services-solutions__cards {
  display: flex;
  flex-direction: column;
}

/* Solution Cards */
.solution-card {
  padding: 32px;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
}

.solution-card:last-child {
  margin-bottom: 0;
}

.solution-card__icon {
  flex-shrink: 0;
  margin-right: 32px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-card__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.solution-card__content {
  flex: 1;
}

.solution-card__content h3 {
  margin-bottom: 12px;
}

.solution-card__content p {
  margin: 0;
}

/* Breather */
.services-breather {
  min-height: 425px;
  
  /* fallback */
  background-color: #f2f2f2;
  
  /* breather image */
  background-image: url("/images/services/services-breather-v1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 15% 45%;
}

/* CTA Section */
.services-cta {
  padding: 60px 0 90px;
  background: #C9D7D1;
  font-size: 15px;
}

.services-cta__inner {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.services-cta__copy {
  margin-bottom: 18px;
}

.services-cta__copy h2 {
  margin-bottom: 12px;
}

.services-cta__copy p {
  margin-top: 20px;
  font-size: 18px;
  color: #093894;
  opacity: 0.85;
}

.services-cta__form {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-cta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
  margin-right: -12px;
  overflow: hidden;
}

.form-input {
  box-sizing: border-box;
  flex: 1 1 auto;
  max-width: 360px;
  margin-right: 12px;
  font-size: inherit;
  line-height: 1.4;
  background: #ffffff;
  padding: 10px 12px 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  color: #1a1a1a;
  font-family: inherit;
}

.form-input::placeholder {
  color: #999;
}

.services-cta__button {
  box-sizing: border-box;
  padding: 11px 36px;
  background: #00ABD6;
  border: 2px solid #00ABD6;
  border-radius: 12px;
  color: #ffffff;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 200ms ease;
}

.services-cta__button:hover {
  opacity: 0.85;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1060px) {
  .services-products__grid {
    flex-direction: column;
  }
  
  .product-card {
    flex: 1;
    margin-bottom: 16px;
  }
  
  .product-card:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 899px) {
  .services-breather {
    min-height: 320px;
  }
}

/* Large Mobile */
@media (max-width: 767px) {
  /* Container handles padding */
}

/* Mobile */
@media (max-width: 560px) {
  .services-products {
    padding: 56px 0 48px;
  }
  
  .services-products__header {
    margin-bottom: 40px;
  }
  
  .product-card__icon {
    height: 240px;
  }
  
  .product-card__icon img {
    max-width: 216px;
    max-height: 216px;
  }
  
  .product-card__inner {
    padding: 24px 20px;
  }
  
  .services-solutions {
    padding: 56px 0 48px;
  }
  
  .services-solutions__header {
    margin-bottom: 40px;
  }
  
  .solution-card {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .solution-card__icon {
    margin-right: 0;
    margin-bottom: 16px;
  }
  
  .services-cta {
    padding: 48px 0;
  }
  
  .services-cta__row {
    margin-right: 0;
  }
  
  .form-input {
    flex: 1 1 100%;
    margin-right: 0;
    margin-bottom: 12px;
  }
  
  .services-cta__button {
    width: 100%;
  }
}

/* Small Mobile - Tighter Card Padding */
@media (max-width: 470px) {
  .solution-card {
    padding: 20px;
  }
}



/* ===== BILINGUAL LANGUAGE SYSTEM ===== */

/* Default state: Hide all Chinese content */
.lang-zh {
  display: none !important;
}

/* When Chinese is active: Hide all English, show all Chinese */
html[lang="zh"] .lang-en {
  display: none !important;
}

html[lang="zh"] .lang-zh {
  display: initial !important;
}

/* Chinese-specific spacing adjustments */
html[lang="zh"] .button-primary {
  margin-top: 24px;
}

html[lang="zh"] .services-divider {
  margin-top: 32px;
}

html[lang="zh"] .service-icon img {
  margin-bottom: 14px;
}

html[lang="zh"] .service-title {
  margin-bottom: 8px;
}

/* Solution cards - balance visual weight by increasing icon presence */
html[lang="zh"] .solution-card__icon {
  width: 72px;
  height: 72px;
  margin-right: 36px;
}

html[lang="zh"] .solution-card__content h3 {
  margin-bottom: 18px;
}

html[lang="zh"] .solution-card__content p {
  line-height: 1.5;
}

/* Tighten space between button and content in Chinese */
html[lang="zh"] .product-card__body {
  margin-top: -8px;
  margin-bottom: -8px;
}

html[lang="zh"] .product-card__body > div {
  padding: 0px 12px 0px;
}

/* Contact page - Chinese spacing adjustments */
html[lang="zh"] .contact-blurb {
  margin-bottom: 36px;
}

/* News page CTA - empty state spacing */
.news-empty p + p {
  margin-top: 10px;
}

/* News CTA - Chinese blurb responsive line break */
.cta-blurb-line2 {
  display: inline;
}

@media (max-width: 420px) {
  html[lang="zh"] .cta-blurb-line2 {
    display: block;
  }
}

/* News hero caption - prevent Chinese text wrapping on narrow screens (340-560px) */
@media (max-width: 560px) {
  html[lang="zh"] .news-hero .internal-hero__copy-secondary {
    font-size: 22px;
  }
}

@media (max-width: 375px) {
  html[lang="zh"] .news-hero .internal-hero__copy-secondary {
    font-size: 20px;
  }
}

/* Contact hero caption - prevent Chinese text wrapping at narrow widths */
@media (max-width: 420px) {
  html[lang="zh"] .contact-hero .internal-hero__copy-secondary {
    font-size: 20px;
  }
}

@media (max-width: 345px) {
  html[lang="zh"] .contact-hero .internal-hero__copy-secondary {
    font-size: 18px;
  }
}

/* Chinese font optimization */
html[lang="zh"] {
  font-family: "Source Sans Pro", "PingFang SC", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}
