/* ===================================================
   GMC — Gan Mehanathan & Co. | Main Stylesheet
   Brand colors: Red #c92535 | Red2 #c5212f | Grey #6e6f71
                 Grey2 #58585a | Black #000000
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --red:        #c92535;
  --red-dark:   #c5212f;
  --black:      #000000;
  --dark:       #1a1a1a;
  --white:      #FFFFFF;
  --light-bg:   #F6F6F6;
  --border:     #E0E0E0;
  --text:       #333333;
  --muted:      #6e6f71;
  --muted-dark: #58585a;
  --grey:       #6e6f71;
  --grey-dark:  #58585a;
  --nav-height: 80px;
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.15);
  --radius:     4px;
  --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--black);
  line-height: 1.3;
}

/* --- Utility --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }
.text-red    { color: var(--red); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-top: 14px;
}

.text-center .section-title::after { margin-left: auto; margin-right: auto; }

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
}

.text-center .section-lead { margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,16,46,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-dark:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-1px);
}

/* ===================================================
   HEADER & NAVIGATION
   =================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.site-logo img {
  height: 58px;
  width: auto;
}

.site-logo { display: flex; align-items: center; text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--red);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav .nav-cta {
  margin-left: 10px;
  background: var(--red);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius);
}

.site-nav .nav-cta::after { display: none; }

.site-nav .nav-cta:hover {
  background: var(--red-dark);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all var(--transition);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding-top: var(--nav-height);
}

/* Hero background photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(200,16,46,0.15) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

/* Subtle pattern overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.3);
  display: block;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===================================================
   STATS BAR
   =================================================== */
.stats-bar {
  background: var(--dark);
  padding: 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ===================================================
   ABOUT SECTION (HOME)
   =================================================== */
.about-home {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-inner {
  background: var(--light-bg);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--black) 0%, #2a0a10 100%);
}

.about-visual-icon {
  font-size: 8rem;
  opacity: 0.12;
  color: var(--white);
  user-select: none;
}

.about-visual-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--red);
  color: var(--white);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  box-shadow: var(--shadow-lg);
}

.about-visual-badge .badge-number {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.about-visual-badge .badge-text {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.9;
  padding: 0 8px;
}

.about-content .section-title::after { margin: 14px 0 0; }

.about-content p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.about-value-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
}

.about-value-item i {
  color: var(--red);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===================================================
   PRACTICE AREAS
   =================================================== */
.practice-areas {
  background: var(--light-bg);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.practice-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: bottom;
}

.practice-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.practice-card:hover::before { transform: scaleY(1); }

.practice-icon {
  width: 52px;
  height: 52px;
  background: rgba(200,16,46,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.practice-card:hover .practice-icon {
  background: var(--red);
}

.practice-icon i {
  font-size: 1.35rem;
  color: var(--red);
  transition: color var(--transition);
}

.practice-card:hover .practice-icon i { color: var(--white); }

.practice-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.practice-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.practice-cta { text-align: center; margin-top: 44px; }

/* ===================================================
   PRACTICE AREAS PAGE (Detailed)
   =================================================== */
.practice-detail {
  background: var(--white);
}

.practice-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.practice-detail-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.practice-detail-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--red);
}

.practice-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.practice-detail-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.practice-detail-icon i { font-size: 1.2rem; color: var(--white); }

.practice-detail-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
}

.practice-detail-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.practice-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.practice-detail-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* China Desk special card */
.china-desk-card {
  grid-column: span 2;
  background: var(--black);
  border-color: var(--red);
}

.china-desk-card .practice-detail-header { border-color: rgba(255,255,255,0.1); }
.china-desk-card h3 { color: var(--white); }
.china-desk-card .practice-detail-list li { color: rgba(255,255,255,0.65); }
.china-desk-card .practice-detail-list li::before { background: var(--red); }

/* ===================================================
   TEAM SECTION
   =================================================== */
.team-section {
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 48px;
}

.team-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.team-photo {
  height: 280px;
  background: linear-gradient(135deg, var(--black) 0%, #2d0a12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-placeholder {
  font-size: 5rem;
  color: rgba(255,255,255,0.15);
  user-select: none;
}

.team-photo-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}

.team-info {
  padding: 28px 28px 32px;
}

.team-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.team-position {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.team-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(200,16,46,0.04);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.team-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.team-meta-item i { color: var(--red); width: 14px; flex-shrink: 0; margin-top: 2px; }

.team-qualifications {
  margin-bottom: 20px;
}

.team-qualifications h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}

.team-qualifications ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-qualifications li {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.team-qualifications li::before {
  content: '▸';
  color: var(--red);
  flex-shrink: 0;
}

.team-practice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(200,16,46,0.08);
  color: var(--red);
  border-radius: 2px;
}

.team-contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.team-contact-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.team-contact-links a:hover {
  border-color: var(--red);
  color: var(--red);
}

.team-contact-links a i { font-size: 0.9rem; }

/* ===================================================
   ABOUT PAGE
   =================================================== */
.about-story { background: var(--white); }

.vision-section { background: var(--light-bg); }

.vision-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.vision-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}

.vision-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--red);
}

.vision-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(200,16,46,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background var(--transition);
}

.vision-card:hover .vision-card-icon { background: var(--red); }
.vision-card-icon i { font-size: 1.4rem; color: var(--red); transition: color var(--transition); }
.vision-card:hover .vision-card-icon i { color: var(--white); }

.vision-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.vision-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Core Values */
.values-section { background: var(--black); }
.values-section .section-label { color: rgba(200,16,46,0.9); }
.values-section .section-title { color: var(--white); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.value-card {
  padding: 32px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--red);
  background: rgba(255,255,255,0.03);
}

.value-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(200,16,46,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.value-card-icon i { font-size: 1.3rem; color: var(--red); }

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ===================================================
   CONTACT SECTION
   =================================================== */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.office-block {
  margin-bottom: 28px;
  padding: 22px;
  background: var(--light-bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.office-block h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.office-block .office-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.office-block .office-detail i {
  color: var(--red);
  width: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 40px 36px;
  border: 1px solid var(--border);
}

.contact-form-wrap h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.contact-form-wrap .form-subtext {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-group label .req { color: var(--red); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.10);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* CAPTCHA */
.captcha-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.captcha-question {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
}

.captcha-question i { color: var(--red); font-size: 0.9rem; }

.captcha-group .captcha-wrap input {
  max-width: 110px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}

.form-submit { display: flex; align-items: center; gap: 16px; margin-top: 8px; }

.form-note {
  font-size: 0.79rem;
  color: var(--muted);
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: 0.9rem;
  font-weight: 600;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===================================================
   PAGE HERO (inner pages)
   =================================================== */
.page-hero {
  background: var(--black);
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,16,46,0.15) 0%, transparent 60%);
}

.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }
.breadcrumb .current { color: var(--white); }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.75;
}

/* ===================================================
   CTA BAND
   =================================================== */
.cta-band {
  background: var(--red);
  padding: 60px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.cta-band p {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.8);
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--dark);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  display: inline-block;
  background: var(--white);
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 18px;
}

.footer-brand .footer-logo img { height: 46px; display: block; }

.footer-brand p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin-bottom: 22px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.footer-contact-item i { color: var(--red); width: 14px; flex-shrink: 0; }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px;
  height: 2px;
  background: var(--red);
}

.footer-col ul { display: flex; flex-direction: column; gap: 9px; }

.footer-col ul a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul a:hover { color: var(--red); }
.footer-col ul a::before { content: '›'; color: var(--red); font-size: 1rem; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

.footer-bottom p a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-bottom p a:hover { color: var(--red); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--red);
  color: var(--white);
}

/* ===================================================
   FLOATING CALL BUTTON
   =================================================== */
.float-call {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(200,16,46,0.45);
  transition: all var(--transition);
  text-decoration: none;
}

.float-call-icon {
  width: 58px;
  height: 58px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.float-call-icon i {
  font-size: 1.35rem;
  color: var(--white);
  animation: phoneRing 2s infinite;
}

.float-call-label {
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.4s ease, padding 0.4s ease;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.float-call:hover .float-call-label {
  max-width: 200px;
  padding: 0 18px;
}

.float-call-label span {
  font-size: 0.7rem;
  opacity: 0.85;
  letter-spacing: 0.03em;
}

.float-call:hover { box-shadow: 0 8px 32px rgba(201,37,53,0.55); }

.float-call-pulse {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  animation: callPulse 2s infinite;
  z-index: -1;
  right: 0;
}

/* ===================================================
   FLOATING WHATSAPP BUTTON
   =================================================== */
.float-wa {
  position: fixed;
  bottom: 102px;
  right: 30px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: all var(--transition);
  text-decoration: none;
}

.float-wa-icon {
  width: 58px;
  height: 58px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-wa-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.float-wa-label {
  background: #25D366;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.4s ease, padding 0.4s ease;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.float-wa:hover .float-wa-label {
  max-width: 200px;
  padding: 0 18px;
}

.float-wa-label span {
  font-size: 0.7rem;
  opacity: 0.85;
  letter-spacing: 0.03em;
}

.float-wa:hover { box-shadow: 0 8px 32px rgba(37,211,102,0.55); }

.float-wa-pulse {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  animation: callPulse 2.5s infinite;
  animation-delay: 0.5s;
  z-index: -1;
  right: 0;
}

@keyframes callPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes phoneRing {
  0%, 50%, 100% { transform: rotate(0deg); }
  10%, 30%      { transform: rotate(-15deg); }
  20%, 40%      { transform: rotate(15deg); }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .about-grid         { grid-template-columns: 1fr; gap: 40px; }
  .about-visual       { display: none; }
  .values-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }

  /* Nav */
  .site-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
    border-radius: var(--radius);
  }

  .site-nav a::after { display: none; }
  .site-nav a:hover, .site-nav a.active { background: var(--light-bg); }
  .site-nav .nav-cta { width: 100%; text-align: center; margin-top: 10px; margin-left: 0; }

  .nav-toggle { display: flex; }

  /* Hero */
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Stats */
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }

  /* Grids */
  .practice-grid          { grid-template-columns: 1fr; }
  .practice-detail-grid   { grid-template-columns: 1fr; }
  .china-desk-card        { grid-column: span 1; }
  .team-grid              { grid-template-columns: 1fr; }
  .vision-cards           { grid-template-columns: 1fr; }
  .values-grid            { grid-template-columns: 1fr 1fr; }
  .contact-grid           { grid-template-columns: 1fr; }
  .form-row               { grid-template-columns: 1fr; }
  .footer-grid            { grid-template-columns: 1fr; }

  /* CTA band */
  .cta-band-inner { flex-direction: column; text-align: center; }

  /* Float button */
  .float-call { bottom: 20px; right: 20px; }
  .float-wa   { bottom: 92px; right: 20px; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 26px 20px; }
  .page-hero { padding: 120px 0 56px; }
}
