/*
Theme Name: Tozi Projects
Theme URI: https://toziprojects.com.au
Author: Tozi Projects
Author URI: https://toziprojects.com.au
Description: Bespoke single-page WordPress theme for Tozi Projects. Manages projects via the WP admin — add, edit, reorder, and upload images without touching code.
Version: 2.5.2
License: Proprietary
Text Domain: tozi-projects
*/

/* ─── Brand Palette ─────────────────────────────────────────── */
:root {
  --green:      #3D6B58;
  --green-dark: #2E5244;
  --cream:      #E8E0CC;
  --bg:         #ECEAE4;
  --white:      #FFFFFF;
  --ink:        #1A1A18;
  --mid:        #6B6B67;
  --border:     rgba(26,26,24,0.1);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
body.home, body.page { margin: 0; padding: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
}

/* ─── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(236,234,228,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-branding a { text-decoration: none; }
.site-title {
  font-size: 1rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); margin: 0;
}
.site-title span { color: var(--green); }

.main-navigation ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-navigation ul li a {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: color 0.2s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a { color: var(--green); }

@media (max-width: 640px) {
  .main-navigation { display: none; }
  .site-header { padding: 16px 24px; }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch; overflow: hidden;
}
.hero-left {
  background: var(--green);
  padding: 160px 56px 80px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
  animation: fadeUp 0.8s ease both;
}
.hero-left::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 48px, rgba(0,0,0,0.03) 48px, rgba(0,0,0,0.03) 49px);
  pointer-events: none;
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-eyebrow .section-label { color: rgba(232,224,204,0.7); display: inline; }
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: rgba(232,224,204,0.45); flex-shrink: 0; }
.hero-headline { font-size: clamp(2.2rem, 3.8vw, 3.8rem); color: var(--cream); line-height: 1.06; margin-bottom: 36px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; background: var(--cream); color: var(--green);
  text-decoration: none; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; align-self: flex-start;
  transition: background 0.25s, color 0.25s, gap 0.25s;
}
.hero-cta:hover { background: var(--ink); color: var(--cream); gap: 16px; }
.hero-cta svg { transition: transform 0.25s; }
.hero-cta:hover svg { transform: translateX(4px); }

.hero-right {
  background: var(--bg); padding: 160px 56px 80px;
  display: flex; flex-direction: column; justify-content: flex-end;
  animation: fadeUp 0.8s ease 0.15s both;
}
.hero-stat { padding: 26px 0; border-bottom: 1px solid var(--border); }
.hero-stat:first-child { border-top: 1px solid var(--border); }
.hero-stat-number { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 6px; letter-spacing: -0.02em; }
.hero-stat-number em { font-style: normal; color: var(--green); }
.hero-stat p { font-size: 0.81rem; color: var(--mid); line-height: 1.6; font-weight: 400; }

@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-left { padding: 100px 28px 48px; }
  .hero-right { padding: 40px 28px 48px; }
}

/* ─── About ──────────────────────────────────────────────────── */
.about-section { padding: 120px 48px; background: var(--white); }
.about-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.about-left { position: sticky; top: 100px; }
.about-tagline { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 800; line-height: 1.1; margin-top: 14px; margin-bottom: 32px; color: var(--ink); letter-spacing: -0.02em; }
.about-tagline em { font-style: normal; color: var(--green); }
.three-pillars { display: flex; flex-direction: column; }
.pillar { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.pillar:first-child { border-top: 1px solid var(--border); }
.pillar-num { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; color: var(--green); flex-shrink: 0; padding-top: 3px; width: 22px; }
.pillar h4 { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 5px; }
.pillar p { font-size: 0.83rem; color: var(--mid); line-height: 1.65; font-weight: 400; }
.pitch-block { margin-bottom: 40px; }
.pitch-block p { font-size: 0.93rem; line-height: 1.85; color: var(--ink); font-weight: 400; }
.pitch-block p + p { margin-top: 14px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); }
.service-item { padding: 26px 24px; background: var(--bg); transition: background 0.2s; }
.service-item:hover { background: var(--cream); }
.service-item h4 { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 7px; }
.service-item p { font-size: 0.81rem; color: var(--mid); line-height: 1.6; font-weight: 400; }

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .about-left { position: static; }
  .services-grid { grid-template-columns: 1fr; }
  .about-section { padding: 80px 24px; }
}

/* ─── Differentiator ─────────────────────────────────────────── */
.differentiator-section { background: var(--green); padding: 64px 48px; }
.diff-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 80px; }
.diff-quote { font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 800; color: var(--cream); line-height: 1.25; flex: 1; letter-spacing: -0.015em; }
.diff-context { flex: 0 0 250px; border-left: 1px solid rgba(232,224,204,0.2); padding-left: 48px; }
.diff-context p { font-size: 0.84rem; color: rgba(232,224,204,0.68); line-height: 1.75; font-weight: 400; }
@media (max-width: 768px) {
  .diff-inner { flex-direction: column; gap: 28px; }
  .diff-context { border-left: none; border-top: 1px solid rgba(232,224,204,0.2); padding-left: 0; padding-top: 24px; flex: unset; }
  .differentiator-section { padding: 56px 24px; }
}

/* ─── Portfolio ──────────────────────────────────────────────── */
.portfolio-section { padding: 120px 48px; background: var(--bg); }
.portfolio-header { max-width: 1200px; margin: 0 auto 52px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.portfolio-title { font-size: clamp(1.7rem, 2.8vw, 2.6rem); font-weight: 800; max-width: 460px; line-height: 1.1; letter-spacing: -0.02em; }
.portfolio-title em { font-style: normal; color: var(--green); }
.portfolio-note { font-size: 0.77rem; color: var(--mid); max-width: 200px; text-align: right; line-height: 1.6; font-weight: 400; }

/* Grid */
.projects-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.project-card { position: relative; overflow: hidden; }
.project-card.featured { grid-column: span 2; }

/* Thumbnail */
.project-thumb {
  width: 100%; aspect-ratio: 4/3;
  position: relative; overflow: hidden;
  background: var(--green-dark);
}
.project-card.featured .project-thumb { aspect-ratio: 16/9; }

/* ── Multi-image hover carousel ──────────────────────────────
 * All images are absolutely stacked. The .active one is
 * visible; others are opacity:0. JS advances on hover.
 */
.project-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: block;
  transform: scale(1.0);
}

.project-thumb-img.active {
  opacity: 1;
}

/* Subtle scale on the visible image when hovering a gallery card */
.project-card[data-gallery]:hover .project-thumb-img.active {
  transform: scale(1.04);
}

/* Non-gallery cards keep the simple scale-on-hover */
.project-card:not([data-gallery]):hover .project-thumb-img {
  transform: scale(1.04);
}

/* ── Progress bar (thin line at bottom of thumb) ─────────────
 * Fills left-to-right over 6s to signal the next image is coming.
 * Only visible on gallery cards while hovering.
 */
.thumb-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.2);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
  overflow: hidden;
}

.project-card[data-gallery]:hover .thumb-progress {
  opacity: 1;
}

.thumb-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--cream);
  /* Animation is driven by JS — reset each image change */
}

.thumb-progress-bar.animating {
  width: 100%;
  transition: width 3s linear;
}

/* Fallback gradient when no image */
.project-thumb.no-image { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); }
.project-thumb.no-image::after {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(232,224,204,0.05) 39px, rgba(232,224,204,0.05) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(232,224,204,0.04) 39px, rgba(232,224,204,0.04) 40px);
}
/* Fallback icon when no image */
.project-thumb .no-image-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.22;
}

/* Overlay on hover (image cards) */
.project-thumb .thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,24,0.45) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.35s;
}
.project-card:hover .thumb-overlay { opacity: 1; }

/* Info panel */
.project-info { padding: 20px 22px 22px; background: var(--white); border: 1px solid var(--border); border-top: none; transition: background 0.2s; }
.project-card:hover .project-info { background: var(--cream); }
.project-type { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.project-name { font-size: 0.95rem; font-weight: 800; color: var(--ink); margin-bottom: 3px; line-height: 1.2; }
.project-meta { font-size: 0.74rem; color: var(--mid); font-weight: 400; margin-bottom: 9px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; padding: 3px 8px; background: var(--bg); color: var(--ink); border: 1px solid var(--border); }

/* No projects placeholder */
.no-projects {
  max-width: 1200px; margin: 0 auto;
  padding: 64px 48px;
  text-align: center;
  background: var(--white);
  border: 1px dashed rgba(61,107,88,0.3);
}
.no-projects p { font-size: 0.88rem; color: var(--mid); line-height: 1.7; }
.no-projects strong { color: var(--green); font-weight: 800; }

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-column: span 2; }
  .portfolio-section { padding: 80px 24px; }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .portfolio-note { text-align: left; }
}

/* ─── Process ────────────────────────────────────────────────── */
.process-section { background: var(--white); padding: 120px 48px; border-top: 1px solid var(--border); }
.process-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.process-left { position: sticky; top: 100px; }
.process-left h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-top: 14px; line-height: 1.1; }
.process-left h2 em { font-style: normal; color: var(--green); }
.process-steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.step:first-child { border-top: 1px solid var(--border); }
.step-num { font-size: 1.5rem; font-weight: 800; color: rgba(26,26,24,0.1); line-height: 1; padding-top: 2px; }
.step-content h4 { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 5px; }
.step-content p { font-size: 0.83rem; color: var(--mid); line-height: 1.65; font-weight: 400; }
@media (max-width: 900px) {
  .process-inner { grid-template-columns: 1fr; gap: 36px; }
  .process-left { position: static; }
  .process-section { padding: 80px 24px; }
}

/* ─── Contact ────────────────────────────────────────────────── */
.contact-section { background: var(--green); padding: 120px 48px; position: relative; overflow: hidden; }
.contact-section::before { content: 'T'; position: absolute; right: -20px; top: -80px; font-family: 'Montserrat', sans-serif; font-size: 520px; font-weight: 800; color: rgba(46,82,68,0.45); line-height: 1; pointer-events: none; user-select: none; }
.contact-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.contact-left .section-label { color: rgba(232,224,204,0.65); }
.contact-headline { font-size: clamp(1.8rem, 3vw, 2.9rem); font-weight: 800; color: var(--cream); line-height: 1.1; margin-top: 14px; margin-bottom: 24px; letter-spacing: -0.02em; }
.contact-desc { font-size: 0.88rem; color: rgba(232,224,204,0.62); line-height: 1.8; max-width: 360px; font-weight: 400; }
.cta-btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 32px; background: var(--cream); color: var(--green); text-decoration: none; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 32px; transition: background 0.25s, color 0.25s, gap 0.25s; }
.cta-btn:hover { background: var(--ink); color: var(--cream); gap: 18px; }
.contact-right { display: flex; flex-direction: column; }
.contact-item { padding: 26px 0; border-bottom: 1px solid rgba(232,224,204,0.14); }
.contact-item:first-child { border-top: 1px solid rgba(232,224,204,0.14); }
.contact-item-label { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(232,224,204,0.5); margin-bottom: 5px; }
.contact-item-value { font-size: 1.05rem; font-weight: 800; color: var(--cream); }
.contact-item-value a { color: var(--cream); text-decoration: none; transition: opacity 0.2s; }
.contact-item-value a:hover { opacity: 0.65; }
.contact-item-sub { font-size: 0.76rem; color: rgba(232,224,204,0.42); margin-top: 2px; font-weight: 400; }
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .contact-section { padding: 80px 24px; }
  .contact-section::before { font-size: 260px; }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--ink); padding: 26px 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-logo { font-size: 0.88rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(236,234,228,0.35); }
.footer-logo span { color: var(--green); }
.footer-copy { font-size: 0.68rem; color: rgba(236,234,228,0.2); letter-spacing: 0.05em; font-weight: 400; }
@media (max-width: 600px) {
  .site-footer { flex-direction: column; align-items: flex-start; gap: 5px; padding: 22px 24px; }
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS SECTION
   Matches exact same layout pattern as every other section:
   - section: padding 120px 48px, position relative, overflow hidden
   - inner:   max-width 1200px, margin 0 auto
   Prev/next arrows live INSIDE the inner container, positioned
   absolutely at left:0 and right:0 of the carousel wrapper.
   ═══════════════════════════════════════════════════════════════ */

.testimonials-section {
  background: var(--bg);
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}

/* Large decorative open-quote watermark */
.testimonials-section::before {
  content: '\201C';
  position: absolute;
  right: 32px;
  top: -60px;
  font-family: 'Montserrat', sans-serif;
  font-size: 400px;
  font-weight: 800;
  color: rgba(236, 234, 228, 0); /* hidden on light background */
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Inner container — identical to .about-inner parent, .process-inner parent, etc. */
.testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header row */
.testimonials-header {
  margin-bottom: 52px;
}

.testimonials-header .section-label {
  color: var(--green);
  display: block;
  margin-bottom: 10px;
}

.testimonials-title {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.testimonials-title em {
  font-style: normal;
  color: var(--green);
}

/* ── Carousel ─────────────────────────────────────────────────── */

/*
 * The carousel wrapper is position:relative so the
 * prev/next buttons can be absolutely positioned.
 * NO horizontal padding — content goes edge-to-edge of
 * the 1200px inner container, same as the step grid etc.
 */
.testimonials-carousel {
  position: relative;
}

/* Track holds the slides; min-height prevents collapse during fade */
.carousel-track {
  position: relative;
  min-height: 200px;
}

/* ── Slides ──────────────────────────────────────────────────── */

/* All slides are absolutely stacked, invisible by default */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

/* Active slide is in-flow (position:relative) so track inherits its height */
.carousel-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Optional project reference above the quote */
.testimonial-project {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

/* Quote text — nl2br() in PHP converts WP line breaks to <br> */
.testimonial-quote {
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.85;
  letter-spacing: 0;
  margin-bottom: 36px;
  font-style: normal;
}

/* Attribution: dash + name/role */
.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonial-dash {
  width: 36px;
  height: 2px;
  background: var(--green);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.testimonial-role {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--mid);
  margin-top: 2px;
}

/* ── Controls row: Prev | Next | Dots ───────────────────────── */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--cream);
  border-color: var(--green);
  color: var(--green);
}

/* Dots sit after the two buttons */
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(26, 26, 24, 0.18);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.carousel-dot.active,
.carousel-dot:hover {
  background: var(--green);
  transform: scale(1.3);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .testimonials-section {
    padding: 80px 24px;
  }
  .testimonials-section::before {
    font-size: 200px;
    right: 8px;
    top: -20px;
  }
}

/* ─── Language Toggle ────────────────────────────────────────── */

/*
 * Hide Google Translate's injected toolbar banner at the top of
 * the page — we drive translation entirely through our own button.
 */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
  display: none !important;
  box-shadow: none !important;
}

body {
  top: 0 !important; /* prevent Google from pushing body down */
}

/* The toggle button in the nav */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.lang-toggle:hover {
  border-color: var(--green);
}

.lang-toggle__en,
.lang-toggle__zh {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 10px;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

/* EN label — active (default) state */
.lang-toggle__en {
  background: var(--ink);
  color: var(--cream);
}

/* ZH label — inactive state */
.lang-toggle__zh {
  background: transparent;
  color: var(--ink);
}

/* When Chinese is active, flip the highlight */
.lang-toggle.zh-active .lang-toggle__en {
  background: transparent;
  color: var(--ink);
}

.lang-toggle.zh-active .lang-toggle__zh {
  background: var(--green);
  color: var(--cream);
}

/* Thin divider between EN and 中文 */
.lang-toggle__divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  /* Keep it visible on mobile even when nav links are hidden */
  .lang-toggle {
    margin-left: auto;
  }
}
