/* ============================================
   AEQUITAS LAW LLP — MAIN STYLESHEET (ZH)
   v2 — carousel + shrinking logo header
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --bg: #F2F2F2;
  --text: #555555;
  --text-light: #888888;
  --text-muted: #AAAAAA;
  --accent: #8B1A2B;
  --accent-hover: #6d1422;
  --dark: #1a1a1a;
  --border: #DDDDDD;
  --menu-bg: #0d0d0d;
  --menu-width: 320px;
  --transition: 0.3s ease;
  --logo-large: 54px;
  --logo-small: 38px;
  --lang-toggle-size: 13px;   /* change this to resize the header EN/中文 button label */
  --lang-switcher-label-size: 10px;  /* change this to resize the "switch to" / "改成" label */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================
   STICKY HEADER BAR
   ============================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  z-index: 900;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

/* Header logo — hidden on inner pages until hero logo has scrolled away */
.site-logo-header {
  height: var(--logo-small);
  width: auto;
  display: block;
  transition: opacity 0.35s ease;
}

/* On inner pages, header logo starts invisible */
body.has-page-header .site-logo-header {
  opacity: 0;
  pointer-events: none;
}
body.has-page-header.logo-sticky .site-logo-header {
  opacity: 1;
  pointer-events: auto;
}

.menu-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0; z-index: 901;
}
.menu-toggle:hover { background: var(--accent); }

.hamburger-icon { display: flex; flex-direction: column; gap: 5px; width: 18px; }
.hamburger-icon span { display: block; height: 1.5px; background: #fff; transition: all var(--transition); transform-origin: center; }
.menu-toggle.open .hamburger-icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open .hamburger-icon span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open .hamburger-icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   PAGE HERO HEADER (all inner pages)
   ============================================ */

.page-hero {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04); /* slight zoom for parallax room */
  transition: transform 0.1s linear;
}

.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8, 45, 55, 0.60);
}

/* Homepage hero — no dark overlay, show image as-is */
.page-hero.no-overlay .page-hero-bg::after {
  display: none;
}

/* Large logo sitting on top of hero image */
.page-hero-logo {
  position: absolute;
  top: 22px; left: 36px;
  height: var(--logo-large);
  width: auto;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.page-hero-logo.fade-out {
  opacity: 0;
  transform: scale(0.75) translateY(-8px);
  pointer-events: none;
}

/* Quote block — right-aligned */
.page-hero-quote {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 0 72px 0 38%;
  text-align: right;
}

.page-hero-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 14px;
  text-align: right;
}

.page-hero-quote cite {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  font-style: normal;
  text-align: right;
}

/* ============================================
   FLYOUT MENU
   ============================================ */

.flyout-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 950; opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.flyout-overlay.visible { opacity: 1; pointer-events: all; }

.flyout-menu {
  position: fixed; top: 0; right: 0;
  width: var(--menu-width); height: 100%;
  background: var(--menu-bg); z-index: 1000;
  display: flex; flex-direction: column;
  padding: 80px 50px 60px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.77,0,0.18,1);
  overflow-y: auto;
}
.flyout-menu.open { transform: translateX(0); }

.flyout-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.flyout-close:hover { background: var(--accent); border-color: var(--accent); }

.flyout-nav { flex: 1; }
.flyout-nav ul { display: flex; flex-direction: column; }
.flyout-nav ul li a {
  display: block; color: #ffffff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 0.02em;
  transition: color var(--transition), padding-left var(--transition);
}
.flyout-nav ul li a:hover { color: var(--accent); padding-left: 8px; }

.flyout-contact {
  margin-top: 50px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.flyout-contact p { color: rgba(255,255,255,0.45); font-size: 12px; font-weight: 400; line-height: 1.9; letter-spacing: 0.04em; }
.flyout-contact a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.flyout-contact a:hover { color: var(--accent); }

/* ============================================
   HOMEPAGE HERO (text only, no photo header)
   ============================================ */

.homepage-hero { padding-top: 60px; }

.homepage-text {
  max-width: 900px; margin: 0 auto;
  padding: 80px 60px 60px;
  text-align: center;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400; color: var(--text);
  line-height: 1.5; margin-bottom: 34px;
  letter-spacing: 0.01em;
}

.hero-body { color: var(--text-light); font-size: 15px; line-height: 1.9; margin-bottom: 14px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 36px; border: none; cursor: pointer;
  margin-top: 26px;
  transition: background var(--transition), gap var(--transition);
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-hover); gap: 18px; color: #fff; }
.btn-primary .arrow { font-size: 16px; }

/* ============================================
   STAFF CAROUSEL
   ============================================ */

.carousel-section {
  width: 100%;
  height: 256px;
  background: #161616;
  overflow: hidden;
  position: relative;
}

/* Pause-on-hover handled by JS toggling animation-play-state */
.carousel-track-wrapper {
  width: 100%; height: 100%; overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  animation: carousel-scroll linear infinite;
  animation-play-state: running;
  will-change: transform;
}

.carousel-section:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel-card {
  position: relative;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.carousel-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: brightness(0.72);
  transition: filter 0.4s ease;
}
.carousel-card:hover img { filter: brightness(0.88); }

/* ── Red line: sits at bottom of card, animates width left→right on hover ── */
.carousel-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);          /* #8B1A2B */
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}
.carousel-card:hover::after { width: 100%; }

.carousel-card-info {
  position: absolute;
  bottom: 20px; left: 18px; right: 18px;
  display: flex; align-items: center;
  justify-content: flex-start; gap: 10px;
}

.carousel-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: #ffffff; line-height: 1.3;
}

/* Circle arrow — visible by default, hidden on hover */
.carousel-card-arrow {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; font-size: 10px;
  transition: opacity 0.25s ease;
}
.carousel-card:hover .carousel-card-arrow { opacity: 0; }

/* Inline → arrow — hidden by default, slides in on hover */
.carousel-card-arrow-inline {
  color: #fff; font-size: 14px; font-weight: 300;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease 0.1s, transform 0.25s ease 0.1s;
  flex-shrink: 0;
}
.carousel-card:hover .carousel-card-arrow-inline {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #1c1c1c;
  padding: 48px 40px 38px;
  text-align: center;
}
.footer-logo { height: 32px; width: auto; margin: 0 auto 14px; opacity: 0.62; }
.footer-copy { color: rgba(255,255,255,0.33); font-size: 12px; letter-spacing: 0.06em; margin-bottom: 22px; }
.footer-icons { display: flex; align-items: center; justify-content: center; gap: 16px; }
.footer-icons a {
  color: rgba(255,255,255,0.38); width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: all var(--transition);
}
.footer-icons a:hover { color: #fff; border-color: var(--accent); background: var(--accent); }

/* ============================================
   ABOUT
   ============================================ */

.about-section { max-width: 860px; margin: 0 auto; padding: 70px 60px 80px; }
.about-section h1 { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 400; color: var(--text); margin-bottom: 34px; letter-spacing: 0.02em; }
.about-section p { color: var(--text-light); margin-bottom: 20px; line-height: 1.9; }

/* ============================================
   TEAM
   ============================================ */

.team-section { max-width: 1100px; margin: 0 auto; padding: 70px 60px 80px; }
.team-intro { max-width: 760px; color: var(--text-light); margin-bottom: 60px; line-height: 1.9; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 34px; }

.team-card { display: block; cursor: pointer; text-decoration: none; }
.team-card-photo {
  width: 100%; aspect-ratio: 1/1.1;
  object-fit: cover; object-position: top center;
  display: block; margin-bottom: 14px;
  transition: opacity var(--transition); background: #ccc;
}
.team-card:hover .team-card-photo { opacity: 0.88; }
.team-card-photo-placeholder { width: 100%; aspect-ratio: 1/1.1; background: #d8d8d8; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 12px; letter-spacing: 0.05em; }
.team-card-name { font-weight: 500; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.team-card-title { font-size: 13px; color: var(--text-muted); }

/* ============================================
   EXPERTISE
   ============================================ */

.expertise-layout { display: flex; min-height: 600px; }
.expertise-sidebar { width: 260px; flex-shrink: 0; padding: 60px 28px 60px 50px; border-right: 1px solid var(--border); }
.expertise-sidebar ul { display: flex; flex-direction: column; }
.expertise-sidebar ul li { border-left: 3px solid transparent; transition: border-color var(--transition); }
.expertise-sidebar ul li.active { border-left-color: var(--accent); }
.expertise-sidebar ul li a { display: block; padding: 11px 14px; font-size: 13.5px; color: var(--text-muted); transition: color var(--transition); line-height: 1.4; }
.expertise-sidebar ul li.active a, .expertise-sidebar ul li a:hover { color: var(--text); }

.expertise-content { flex: 1; padding: 60px 70px 80px 55px; max-width: 820px; }
.expertise-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 500; color: var(--text); margin-bottom: 28px; letter-spacing: 0.02em; }
.expertise-content p { color: var(--text-light); margin-bottom: 18px; line-height: 1.9; }
.expertise-content h3 { font-size: 12.5px; font-weight: 500; color: var(--text); margin: 26px 0 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.expertise-content ul.practice-list { list-style: disc; padding-left: 20px; color: var(--text-light); display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.expertise-content ul.practice-list li { font-size: 14px; line-height: 1.7; }
.expertise-panel { display: none; }
.expertise-panel.active { display: block; }

/* ============================================
   STAFF BIO
   ============================================ */

.staff-layout { max-width: 1100px; margin: 0 auto; padding: 70px 60px 80px; display: grid; grid-template-columns: 1fr 400px; gap: 80px; align-items: start; }
.staff-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; color: var(--accent); margin-bottom: 12px; letter-spacing: 0.02em; }
.staff-tagline { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 500; color: var(--text); margin-bottom: 20px; line-height: 1.4; }
.staff-bio-text { color: var(--text-light); font-size: 13.5px; line-height: 1.9; margin-bottom: 12px; }
.staff-section-title { font-size: 11.5px; font-weight: 500; color: var(--accent); letter-spacing: 0.07em; text-transform: uppercase; margin: 26px 0 10px; }
.staff-list { display: flex; flex-direction: column; gap: 5px; }
.staff-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--text-light); line-height: 1.65; }
.staff-list li::before { content: '—'; color: var(--text-muted); flex-shrink: 0; }

.staff-right { position: sticky; top: 80px; }
.staff-photo { width: 100%; display: block; margin-bottom: 18px; }
.staff-photo-placeholder { width: 100%; aspect-ratio: 3/4; background: #d8d8d8; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 12px; letter-spacing: 0.05em; margin-bottom: 18px; }
.staff-email-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 18px; margin-bottom: 22px; transition: color var(--transition); }
.staff-email-link:hover { color: var(--accent); }
.staff-areas-title { font-size: 11.5px; font-weight: 500; color: var(--accent); letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 10px; }
.staff-areas-list { display: flex; flex-direction: column; gap: 5px; }
.staff-areas-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--text-light); }
.staff-areas-list li::before { content: '—'; color: var(--text-muted); flex-shrink: 0; }

/* ============================================
   PLACEHOLDER MARKERS
   ============================================ */

.placeholder-block {
  background: rgba(139,26,43,0.05);
  border: 2px dashed rgba(139,26,43,0.3);
  padding: 14px 16px; border-radius: 3px;
  color: var(--accent); font-size: 12px;
  letter-spacing: 0.04em; display: block; margin: 5px 0;
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */

@media (max-width: 900px) {
  :root { --menu-width: 280px; }
  .site-header { padding: 0 22px; }
  .page-hero { height: 280px; }
  .page-hero-quote { padding: 0 36px 0 28%; }
  .page-hero-quote blockquote { font-size: 20px; }
  .homepage-text { padding: 60px 30px 50px; }
  .team-section { padding: 50px 30px 60px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .expertise-sidebar { width: 200px; padding: 50px 18px 50px 26px; }
  .expertise-content { padding: 50px 28px 60px 28px; }
  .staff-layout { grid-template-columns: 1fr; gap: 44px; padding: 50px 30px; }
  .staff-right { position: static; max-width: 380px; }
  .about-section { padding: 50px 30px 60px; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */

@media (max-width: 600px) {
  .site-header { padding: 0 14px; }
  .lang-toggle-btn { font-size: 9px; padding: 4px 6px; letter-spacing: 0.06em; }
  .lang-toggle-btn + .lang-toggle-btn { margin-left: 3px; }
  .page-hero { height: 200px; }
  .page-hero-logo { height: 26px; top: 12px; left: 14px; }
  .page-hero-quote { padding: 0 16px; }
  .page-hero-quote blockquote { font-size: 15px; }
  .page-hero-quote cite { font-size: 11px; }
  .carousel-section { height: 192px; }
  .homepage-text { padding: 36px 18px 36px; }
  .hero-tagline { font-size: 17px; }
  .team-section { padding: 34px 16px 50px; }
  .team-grid { grid-template-columns: 1fr; gap: 24px; }
  .expertise-layout { flex-direction: column; }
  .expertise-sidebar { width: 100%; padding: 24px 16px 14px; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .expertise-sidebar ul { flex-direction: row; flex-wrap: wrap; gap: 2px; }
  .expertise-sidebar ul li { border-left: none; border-bottom: 2px solid transparent; }
  .expertise-sidebar ul li.active { border-left-color: transparent; border-bottom-color: var(--accent); }
  .expertise-sidebar ul li a { padding: 7px 9px; font-size: 12px; white-space: nowrap; }
  .expertise-content { padding: 24px 16px 46px; }
  .expertise-content h2 { font-size: 22px; }
  .staff-layout { padding: 24px 16px; gap: 34px; }
  .about-section { padding: 34px 16px 46px; }
  .flyout-menu { width: 100%; padding: 72px 28px 46px; }
  .flyout-nav ul li a { font-size: 24px; }
  .site-footer { padding: 34px 16px 26px; }
}

/* ============================================
   EXPERTISE — SCROLLING PAGE WITH SCROLL-SPY
   ============================================ */

.expertise-scroll-layout {
  display: flex;
  align-items: flex-start;
}

/* Sticky sidebar */
.expertise-scroll-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 60px; /* header height */
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 50px 28px 50px 50px;
  border-right: 1px solid var(--border);
}

/* The vertical red indicator bar */
.expertise-scroll-sidebar ul {
  position: relative;
  display: flex;
  flex-direction: column;
  border-left: 2px solid #e0e0e0;
  padding-left: 0;
  margin-left: 0;
}

.expertise-scroll-sidebar ul li {
  position: relative;
}

/* The red active bar — absolutely positioned left edge */
.expertise-scroll-sidebar ul li::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.expertise-scroll-sidebar ul li.active::before {
  background: var(--accent);
}

.expertise-scroll-sidebar ul li a {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.25s ease;
  line-height: 1.4;
  font-weight: 400;
}

.expertise-scroll-sidebar ul li.active a {
  color: var(--text);
  font-weight: 500;
}

.expertise-scroll-sidebar ul li a:hover {
  color: var(--text);
}

/* Scrolling content area */
.expertise-scroll-content {
  flex: 1;
  padding: 50px 70px 120px 60px;
  max-width: 820px;
}

/* Each section within the scroll content */
.expertise-section {
  padding-top: 30px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.expertise-section:last-child {
  border-bottom: none;
}

.expertise-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.expertise-section p {
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.9;
  font-size: 14.5px;
}

.expertise-section h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 26px 0 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.expertise-section ul.practice-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}

.expertise-section ul.practice-list li {
  font-size: 14px;
  line-height: 1.7;
}

/* Responsive expertise scroll */
@media (max-width: 900px) {
  .expertise-scroll-sidebar {
    width: 200px;
    padding: 40px 16px 40px 24px;
  }
  .expertise-scroll-content {
    padding: 40px 30px 80px 30px;
  }
}

@media (max-width: 600px) {
  .expertise-scroll-layout { flex-direction: column; }
  .expertise-scroll-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px 16px 14px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .expertise-scroll-sidebar ul {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    border-bottom: 2px solid #e0e0e0;
    gap: 0;
  }
  .expertise-scroll-sidebar ul li::before {
    left: 0; top: auto; bottom: -2px;
    width: 100%; height: 2px;
  }
  .expertise-scroll-sidebar ul li a {
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .expertise-scroll-content {
    padding: 24px 16px 60px;
  }
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-info-bar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
  padding: 44px 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-info-icon {
  color: var(--accent);
  font-size: 22px;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-info-text {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.8;
}

.contact-info-text a {
  color: var(--text-light);
  transition: color var(--transition);
}

.contact-info-text a:hover { color: var(--accent); }

.contact-map {
  width: 100%;
  height: 460px;
  border: none;
  display: block;
}

@media (max-width: 900px) {
  .contact-info-bar { gap: 40px; padding: 34px 30px; }
}

@media (max-width: 600px) {
  .contact-info-bar { flex-direction: column; gap: 26px; padding: 26px 18px; }
  .contact-map { height: 320px; }
}


/* ==========================================
   HEADER LANGUAGE TOGGLE BUTTON
   Shows opposite language only.
   Sits between logo and hamburger.
   Adjust --lang-toggle-size to resize text.
========================================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.lang-toggle-btn {
  font-family: var(--font-ui);
  font-size: var(--lang-toggle-size);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #ffffff;
  background: #8B1A2B;
  border: 1px solid #8B1A2B;
  cursor: pointer;
  padding: 5px 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.lang-toggle-btn:hover {
  color: #8B1A2B;
  background: #ffffff;
}
.lang-toggle-btn + .lang-toggle-btn {
  margin-left: 4px;
}
.header-lang-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
/* All buttons hidden by default — JS reveals the correct two at runtime */
.header-lang-group .lang-toggle-btn {
  display: none;
}
}

/* ==========================================
   LANGUAGE SWITCHER (in flyout menus)
========================================== */
.lang-switcher {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 18px 0 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 18px;
}
.lang-switcher a {
  font-family: var(--font-ui);
  font-size: var(--lang-toggle-size);   /* same variable as header button — adjust in :root */
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 6px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
  cursor: pointer;
  margin-bottom: 4px;
  min-width: 100px;
  text-align: center;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

/* ==========================================
   BILINGUAL FOOTER RIGHTS TEXT
========================================== */
.footer-rights-zh { display: none; }

/* ==========================================
   LANG SWITCHER LABELS (switch to / 改成)
========================================== */
.lang-switcher-label {
  font-family: var(--font-ui);
  font-size: var(--lang-switcher-label-size);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.38);
  display: block;
  text-align: left;
  margin-bottom: 6px;
}
