/* =============================================
   WANG SAM INTERIOR COMPANY — style.css
   Design System: Oak & Amber
   Mobile-first, responsive
   ============================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&family=Noto+Sans+HK:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg:         #FDF9F4;
  --text:       #1A1208;
  --accent:     #C17A3C;
  --accent-dark:#A5652F;
  --secondary:  #8B7355;
  --highlight:  #E8D5B7;
  --border:     #D4C4A8;
  --white:      #FFFFFF;
  --error:      #C0392B;
  --success:    #27AE60;

  --font-heading: 'Outfit', 'Noto Sans HK', system-ui, sans-serif;
  --font-body:    'DM Sans', 'Noto Sans HK', system-ui, sans-serif;

  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1.25rem;

  --shadow-sm:  0 1px 3px rgba(26,18,8,0.08), 0 1px 2px rgba(26,18,8,0.06);
  --shadow-md:  0 4px 12px rgba(26,18,8,0.10), 0 2px 4px rgba(26,18,8,0.06);
  --shadow-lg:  0 10px 30px rgba(26,18,8,0.12), 0 4px 8px rgba(26,18,8,0.08);

  --transition: 150ms ease-out;

  --container: 1200px;
  --header-h:  70px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--highlight); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { max-width: 70ch; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Image Placeholder ---------- */
.img-placeholder {
  background: var(--highlight);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 200px;
  text-align: center;
  padding: 1rem;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(253, 249, 244, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-zh {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.logo-en {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.625rem;
  color: var(--secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: var(--white);
  cursor: pointer;
}

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

.lang-toggle .lang-active {
  color: var(--accent);
  font-weight: 600;
}

.lang-toggle-mobile {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.5rem;
  margin-top: 1rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all var(--transition);
}

.lang-toggle-mobile:hover {
  background: var(--accent);
  color: var(--white);
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-desktop a:hover {
  color: var(--accent);
  background: rgba(193, 122, 60, 0.08);
}

.nav-desktop a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  z-index: 1001;
}

.hamburger:hover { background: var(--highlight); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 250ms ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--bg);
  z-index: 999;
  padding: 2rem 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--accent);
  background: rgba(193, 122, 60, 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(232,213,183,0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: var(--highlight);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.hero h1 {
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--secondary);
  margin-bottom: 2.5rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--secondary);
  margin: 0.75rem auto 0;
  font-size: 1rem;
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--secondary);
  font-size: 0.9375rem;
  margin: 0 auto;
}

/* ---------- Why Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.why-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.why-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--highlight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.why-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h4 {
  margin-bottom: 0.25rem;
}

.why-card p {
  color: var(--secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--highlight);
  line-height: 1;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
}

.testimonial-card p {
  color: var(--text);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
}

.testimonial-meta {
  font-size: 0.8125rem;
  color: var(--secondary);
  font-weight: 500;
}

/* ---------- Quick Quote Form ---------- */
.quick-quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}

.quick-quote h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

label .required {
  color: var(--error);
  margin-left: 2px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193, 122, 60, 0.12);
}

input.error,
select.error,
textarea.error {
  border-color: var(--error);
}

input.error:focus,
select.error:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.error-msg {
  font-size: 0.75rem;
  color: var(--error);
  display: none;
}

.error-msg.show { display: block; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B7355' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Autocomplete */
.addr-autocomplete {
  position: relative;
  width: 100%;
}

.addr-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--accent);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: var(--shadow-md);
}

.addr-dropdown.show { display: block; }

/* Mobile: flip dropdown above the field */
@media (max-width: 767px) {
  .addr-dropdown {
    top: auto;
    bottom: 100%;
    border-top: 1.5px solid var(--accent);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    max-height: 200px;
  }
}

.addr-option {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  cursor: pointer;
  border-bottom: 1px solid var(--highlight);
  transition: background var(--transition);
}

.addr-option:last-child { border-bottom: none; }
.addr-option:hover, .addr-option.highlighted { background: var(--highlight); }

.addr-option-zh { font-weight: 500; color: var(--text); }
.addr-option-en { font-size: 0.75rem; color: var(--secondary); }
.addr-option-district { font-size: 0.75rem; color: var(--accent); float: right; margin-top: -1.25rem; }

/* Official address — auto-filled, read-only *//
#addr-official {
  background: var(--highlight);
  color: var(--text);
  cursor: default;
}

/* ---------- Cases Page ---------- */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  text-align: center;
  background: var(--highlight);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--secondary); margin: 0 auto; }

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 0 1.25rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Cases Grid */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Case Card */
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.case-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.case-img .img-placeholder {
  height: 100%;
  min-height: 220px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
}

.case-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-vr-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(26,18,8,0.75);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.case-vr-badge svg {
  width: 12px;
  height: 12px;
  fill: var(--white);
}

.case-body {
  padding: 1.25rem;
}

.case-name {
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.case-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.case-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Before/After Tabs */
.ba-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.875rem;
}

.ba-tab {
  flex: 1;
  padding: 0.375rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg);
  color: var(--secondary);
  transition: all var(--transition);
  border-right: 1px solid var(--border);
}

.ba-tab:last-child { border-right: none; }
.ba-tab.active { background: var(--accent); color: var(--white); }

.ba-content {
  font-size: 0.8125rem;
  color: var(--secondary);
  padding: 0.5rem 0;
  border-top: 1px dashed var(--border);
  margin-top: 0;
}

.ba-content strong { color: var(--text); }

/* VR Section */
.vr-section {
  background: var(--highlight);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.vr-section h3 {
  margin-bottom: 0.5rem;
}

.vr-section p {
  color: var(--secondary);
  font-size: 0.9375rem;
  margin: 0 auto 1.5rem;
}

.vr-placeholder {
  max-width: 800px;
  margin: 0 auto;
}

.vr-placeholder .img-placeholder {
  min-height: 300px;
}

/* ---------- Process Page ---------- */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}

.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.process-step:not(:last-child) .step-num::after {
  content: '';
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 56px + 1.5rem);
  background: var(--border);
}

.step-content h3 {
  margin-bottom: 0.25rem;
}

.step-content p {
  color: var(--secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.step-arrow {
  display: none;
}

/* ---------- About Page ---------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-text p {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.about-img {
  width: 100%;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.pillar-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: var(--highlight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card h4 { margin-bottom: 0.375rem; }
.pillar-card p { color: var(--secondary); font-size: 0.875rem; margin: 0 auto; }

/* ---------- Contact Page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
}

.contact-info-card h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--highlight);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item h4 {
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.contact-item p {
  font-size: 0.9375rem;
  color: var(--secondary);
  margin: 0;
}

.contact-item a {
  color: var(--accent);
  font-weight: 500;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
}

.form-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--highlight);
  margin-top: 1.5rem;
}

.form-section-title:first-of-type { margin-top: 0; }

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.form-success.show { display: block; }

.form-success-icon {
  width: 72px;
  height: 72px;
  background: var(--highlight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent);
}

.form-success-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-success h3 { margin-bottom: 0.75rem; }
.form-success p { color: var(--secondary); margin: 0 auto 1.5rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: rgba(253,249,244,0.7);
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-zh {
  color: var(--bg);
  font-size: 1.25rem;
}

.footer-brand .logo-en {
  color: rgba(253,249,244,0.5);
}

.footer h4 {
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
}

.footer p, .footer a {
  font-size: 0.875rem;
  color: rgba(253,249,244,0.65);
  line-height: 1.8;
}

.footer a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(253,249,244,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(253,249,244,0.4);
}

/* ---------- English Mode ---------- */
[lang="en"] .zh { display: none; }
[lang="zh"] .en { display: none; }

/* ── Desktop Nav (768px+) ─────────────────────────── */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .hamburger {
    display: none;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Desktop nav language toggle */
  .nav-desktop .lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    background: var(--white);
    cursor: pointer;
    margin-left: 0.5rem;
  }

  .nav-desktop .lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  /* Hide the header-right lang-toggle (duplicate) */
  .header-right > .lang-toggle {
    display: none;
  }
}

/* ── Back to Top ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(193, 122, 60, 0.35);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
  z-index: 900;
}

.back-to-top:hover {
  background: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

html:not([lang]), html[lang="zh"] { }
