/* ==========================================================================
   ZHENGXIN PRECISION — Design System
   Self-contained premium styling. Light/Dark via :root[data-theme].
   ========================================================================== */

/* ----- Design tokens ----------------------------------------------------- */
:root {
  /* Brand */
  --accent:        #C9A86A;   /* metallic bronze */
  --accent-strong: #B68C45;
  --accent-soft:   rgba(201, 168, 106, 0.12);

  /* Light theme (default) */
  --bg:            #F7F6F3;
  --bg-2:          #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     #F1EFEA;
  --ink:           #15171B;   /* primary text */
  --ink-2:         #4B4F57;   /* secondary text */
  --ink-3:         #80858E;   /* muted text */
  --line:          #E2DFD8;   /* hairline borders */
  --line-2:        #D4D0C7;
  --hero-ink:      #F4F1EA;   /* text on dark imagery */
  --shadow-sm:     0 1px 2px rgba(20,23,28,.06), 0 2px 8px rgba(20,23,28,.05);
  --shadow-md:     0 6px 24px rgba(20,23,28,.09), 0 2px 6px rgba(20,23,28,.05);
  --shadow-lg:     0 24px 60px rgba(20,23,28,.14);
  --scrim:         linear-gradient(180deg, rgba(8,10,13,.30) 0%, rgba(8,10,13,.74) 100%);
  --grid-line:     rgba(20,23,28,.05);

  /* Type */
  --font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --font-body:    "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-mono:    "Space Grotesk", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 10px;
  --section-y: clamp(64px, 9vw, 132px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

:root[data-theme="dark"] {
  --bg:            #0C0E12;
  --bg-2:          #0E1116;
  --surface:       #141820;
  --surface-2:     #1A1F28;
  --ink:           #EDEAE3;
  --ink-2:         #AEB2BB;
  --ink-3:         #767B85;
  --line:          rgba(255,255,255,.09);
  --line-2:        rgba(255,255,255,.15);
  --hero-ink:      #F4F1EA;
  --shadow-sm:     0 1px 2px rgba(0,0,0,.4);
  --shadow-md:     0 8px 30px rgba(0,0,0,.5);
  --shadow-lg:     0 30px 70px rgba(0,0,0,.6);
  --scrim:         linear-gradient(180deg, rgba(6,7,9,.45) 0%, rgba(6,7,9,.82) 100%);
  --grid-line:     rgba(255,255,255,.045);
  --accent:        #D6B574;
  --accent-strong: #E0C386;
  --accent-soft:   rgba(214, 181, 116, 0.14);
}

/* ----- Reset ------------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ----- Typography -------------------------------------------------------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.display { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; }
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.6; font-weight: 400; }
:where(p, .lead, .val, .chip, .btn, .footer-col a, .footer-col p) { overflow-wrap: break-word; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .display { letter-spacing: 0; font-weight: 700; }
.muted { color: var(--ink-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .8; }
.eyebrow.center::before { display: none; }

/* ----- Layout ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container, .split, .card, .info-row > div { min-width: 0; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.section-head h2 { margin-top: 16px; }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px){ .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 500; font-size: .98rem;
  letter-spacing: .01em; line-height: 1;
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s, color .3s, box-shadow .3s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: #1a1408; box-shadow: 0 6px 22px rgba(201,168,106,.28); }
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.btn--light { background: var(--hero-ink); color: #16130c; }
.btn--light:hover { transform: translateY(-2px); background:#fff; }
.btn--on-dark { border: 1px solid rgba(255,255,255,.28); color: var(--hero-ink); }
.btn--on-dark:hover { border-color: var(--accent); color: var(--accent); }

/* ----- Header / Nav ------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease), border-color .4s, height .3s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  height: 64px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand .mark { color: var(--ink); width: 36px; height: 36px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: .02em; }
.brand-name span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 15px; border-radius: var(--radius);
  font-size: .94rem; font-weight: 450; color: var(--ink-2);
  transition: color .25s; white-space: nowrap;
}
.nav a::after {
  content:""; position:absolute; left:16px; right:16px; bottom:6px; height:1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: grid; place-items: center; color: var(--ink-2);
  border: 1px solid transparent; transition: background-color .25s, color .25s, border-color .25s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  width: auto; padding-inline: 12px; gap: 6px; color: var(--ink-2);
}
.lang-btn:hover { color: var(--ink); }
@media (max-width: 520px){ .lang-btn { width: 40px; padding-inline: 0; } .lang-btn span { display: none; } }
.header-cta { margin-left: 4px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

.menu-btn { display: none; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer__scrim { position:absolute; inset:0; background: rgba(6,7,9,.5); opacity:0; transition: opacity .35s; }
.drawer__panel {
  position: absolute; top:0; right:0; height:100%; width: min(86vw, 360px);
  background: var(--bg-2); border-left: 1px solid var(--line);
  padding: 24px var(--gutter); transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
.drawer.open { visibility: visible; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__head { display:flex; align-items:center; justify-content: space-between; margin-bottom: 18px; }
.drawer nav a { padding: 14px 4px; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer nav a.active { color: var(--accent-strong); }
.drawer__foot { margin-top: auto; padding-top: 20px; color: var(--ink-3); font-size: .85rem; }

@media (max-width: 1024px){
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
}

/* ----- Hero -------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__bg-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 30%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 920px){ .hero__inner { grid-template-columns: 1fr; } }
.hero h1 { margin: 22px 0 0; }
.hero .lead { margin-top: 22px; max-width: 48ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__media { position: relative; }
.hero__media .frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); aspect-ratio: 4/5; }
.hero__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: -22px; bottom: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 20px; box-shadow: var(--shadow-md); display:flex; align-items:center; gap: 14px;
}
.hero__badge .n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--accent-strong); line-height: 1; }
.hero__badge .t { font-size: .82rem; color: var(--ink-2); line-height: 1.3; }
@media (max-width: 920px){ .hero__badge { left: 16px; } }

/* Hero stat strip */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 72px); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.hero-stats .stat { padding: 26px clamp(16px, 2vw, 28px); border-right: 1px solid var(--line); }
.hero-stats .stat:last-child { border-right: none; }
.stat .n { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.stat .n .u { color: var(--accent-strong); }
.stat .t { font-size: .86rem; color: var(--ink-3); margin-top: 6px; letter-spacing: .02em; }
@media (max-width: 720px){ .hero-stats { grid-template-columns: repeat(2,1fr); } .hero-stats .stat:nth-child(2){border-right:none;} .hero-stats .stat:nth-child(1),.hero-stats .stat:nth-child(2){border-bottom:1px solid var(--line);} }

/* ----- Cards ------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.card .ic { width: 46px; height: 46px; border-radius: var(--radius); display:grid; place-items:center; color: var(--accent-strong); background: var(--accent-soft); margin-bottom: 20px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: .98rem; }
.more { display:inline-flex; align-items:center; gap:7px; margin-top: 18px; color: var(--accent-strong); font-family: var(--font-display); font-weight:500; font-size:.9rem; }
.more svg { width: 15px; height: 15px; flex: none; transition: transform .3s var(--ease); }
.more:hover svg, .card:hover .more svg, .tile:hover .more svg { transform: translateX(4px); }

/* numbered feature list */
.feature-list { display: grid; gap: 2px; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list .idx { font-family: var(--font-mono); color: var(--accent-strong); font-size: .85rem; padding-top: 3px; }
.feature-list h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature-list p { color: var(--ink-2); font-size: .96rem; }

/* ----- Image frame / gallery -------------------------------------------- */
.imgframe { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--surface-2); }
.imgframe img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.imgframe:hover img { transform: scale(1.04); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.gallery .g { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); position: relative; }
.gallery .g img { width:100%; height:100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery .g:hover img { transform: scale(1.05); }
.gallery .g .cap { position:absolute; left:0; right:0; bottom:0; padding: 16px; background: linear-gradient(transparent, rgba(8,10,13,.78)); color:#fff; font-size:.86rem; font-family: var(--font-display); opacity:0; transform: translateY(8px); transition: .35s var(--ease); }
.gallery .g:hover .cap { opacity:1; transform:none; }
.g-tall { grid-row: span 2; }
@media (max-width: 720px){ .gallery { grid-template-columns: repeat(2,1fr); } .g-tall{ grid-row: auto; } }

/* ----- Industry / product cards ----------------------------------------- */
.tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 280px; display:flex; align-items:flex-end; }
.tile img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; z-index:-1; transition: transform .8s var(--ease); filter: saturate(1.02); }
.tile::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(8,10,13,.05) 0%, rgba(8,10,13,.78) 100%); z-index:-1; }
.tile:hover img { transform: scale(1.05); }
.tile__body { padding: clamp(20px, 2.4vw, 30px); color: #fff; }
.tile__body .k { font-family: var(--font-mono); font-size:.74rem; letter-spacing:.16em; text-transform:uppercase; color: var(--accent); }
.tile__body h3 { color:#fff; margin: 8px 0 6px; font-size: 1.35rem; }
.tile__body p { color: rgba(255,255,255,.82); font-size:.92rem; }

/* ----- Stats band (dark imagery) ---------------------------------------- */
.band { position: relative; color: var(--hero-ink); overflow: hidden; }
.band__bg { position:absolute; inset:0; z-index:-2; }
.band__bg img { width:100%; height:100%; object-fit: cover; }
.band::before { content:""; position:absolute; inset:0; z-index:-1; background: var(--scrim); }
.band .container { padding-block: clamp(56px, 8vw, 100px); }
.band h2 { color: var(--hero-ink); }
.band .lead { color: rgba(244,241,234,.82); }
.bandstats { display:grid; grid-template-columns: repeat(4,1fr); gap: clamp(20px,3vw,40px); margin-top: 8px; }
.bandstats .stat .n { color: var(--hero-ink); }
.bandstats .stat .n .u { color: var(--accent); }
.bandstats .stat .t { color: rgba(244,241,234,.66); }
@media (max-width: 720px){ .bandstats { grid-template-columns: repeat(2,1fr); gap: 28px; } }

/* ----- Logo / client wall ----------------------------------------------- */
.clients { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap: clamp(24px, 4vw, 60px); }
.clients .c { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem,2vw,1.5rem); color: var(--ink-3); letter-spacing: .02em; transition: color .3s; }
.clients .c:hover { color: var(--ink); }
.clients .c .tag { display:block; font-family: var(--font-mono); font-size:.6rem; letter-spacing:.2em; color: var(--accent-strong); text-transform:uppercase; margin-top: 2px; }

/* ----- Timeline ---------------------------------------------------------- */
.timeline { display: grid; gap: 0; }
.timeline .t-item { display:grid; grid-template-columns: 120px 1fr; gap: clamp(20px,3vw,44px); padding: 28px 0; border-top: 1px solid var(--line); position: relative; }
.timeline .t-item:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--accent-strong); }
.timeline h3 { font-size: 1.2rem; margin-bottom: 8px; }
.timeline p { color: var(--ink-2); }
@media (max-width: 620px){ .timeline .t-item { grid-template-columns: 1fr; gap: 6px; } }

/* ----- Process steps ----------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: clamp(16px,2vw,24px); }
.steps.cols-3 { grid-template-columns: repeat(3,1fr); }
.steps.cols-6 { grid-template-columns: repeat(6,1fr); }
@media (max-width: 980px){ .steps.cols-6 { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 620px){ .steps.cols-3, .steps.cols-6 { grid-template-columns: 1fr; } }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size:.82rem; color: var(--accent-strong); letter-spacing:.1em; }
.step h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.step p { font-size: .9rem; color: var(--ink-2); }

/* ----- Spec table / accordion ------------------------------------------- */
.spec { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.spec__row { display:grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.spec__row:first-child { border-top: none; }
.acc__head { display:flex; align-items:center; justify-content: space-between; gap:16px; padding: 22px clamp(20px,2.4vw,28px); width:100%; text-align:left; }
.acc__head h3 { font-size: 1.1rem; }
.acc__head .meta { font-family: var(--font-mono); font-size:.8rem; color: var(--ink-3); }
.acc__head .chev { width:22px;height:22px; color: var(--ink-3); transition: transform .35s var(--ease); flex:none; }
.acc[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--accent-strong); }
.acc__body { display:grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc__body > div { overflow: hidden; }
.acc[aria-expanded="true"] + .acc__body { grid-template-rows: 1fr; }
.acc__body .inner { padding: 0 clamp(20px,2.4vw,28px) 24px; color: var(--ink-2); }
.kv { display:grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 10px 24px; }
.kv .item { display:flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size:.92rem; }
.kv .item b { font-family: var(--font-display); font-weight:500; color: var(--ink); }
.kv .item .v { font-family: var(--font-mono); color: var(--accent-strong); }

/* ----- Pills / chips ----------------------------------------------------- */
.chips { display:flex; flex-wrap:wrap; gap: 10px; }
.chip { padding: 8px 16px; border:1px solid var(--line); border-radius: 100px; font-size:.86rem; color: var(--ink-2); background: var(--surface); }
.chip b { color: var(--accent-strong); font-family: var(--font-mono); font-weight:600; }

/* ----- Contact / forms --------------------------------------------------- */
.field { display:flex; flex-direction: column; gap: 8px; }
.field label { font-size:.86rem; font-weight:500; color: var(--ink-2); }
.field label .req { color: var(--accent-strong); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink); background: var(--surface); padding: 13px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px){ .contact-grid { grid-template-columns: 1fr; } }
.info-row { display:flex; gap:16px; padding: 20px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top:none; }
.info-row .ic { width:42px;height:42px;flex:none; border-radius: var(--radius); display:grid;place-items:center; color: var(--accent-strong); background: var(--accent-soft); }
.info-row .ic svg{ width:20px;height:20px; }
.info-row .k { font-size:.78rem; letter-spacing:.04em; color: var(--ink-3); text-transform: uppercase; font-family: var(--font-mono); }
.info-row .val { color: var(--ink); font-size: 1.02rem; margin-top:2px; }
@media (max-width: 520px){ .info-row .val { overflow-wrap: anywhere; } }
.formnote { font-size:.84rem; color: var(--ink-3); margin-top: 4px; }

/* ----- Page header (interior pages) ------------------------------------- */
.pagehead { position: relative; padding-top: calc(var(--header-h) + clamp(40px,6vw,72px)); padding-bottom: clamp(32px,4vw,52px); }
.pagehead .crumb { font-family: var(--font-mono); font-size:.78rem; letter-spacing:.1em; color: var(--ink-3); text-transform: uppercase; }
.pagehead h1 { margin: 16px 0 0; }
.pagehead .lead { margin-top: 18px; max-width: 60ch; }

/* ----- CTA band ---------------------------------------------------------- */
.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(36px,5vw,64px); text-align:center; position: relative; overflow:hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-soft), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lead { margin: 0 auto 28px; max-width: 56ch; }
.cta-band .btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ----- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(56px,7vw,84px); margin-top: 0; }
.footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(28px,4vw,56px); padding-bottom: 56px; }
@media (max-width: 880px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--ink-2); font-size:.94rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size:.74rem; letter-spacing:.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; font-weight:600; }
.footer-col a, .footer-col p { display:block; color: var(--ink-2); font-size:.95rem; padding: 6px 0; transition: color .25s; }
.footer-col a:hover { color: var(--accent-strong); }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0; display:flex; align-items:center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: var(--ink-3); font-size:.86rem; }
.footer-bottom .slogan { font-family: var(--font-display); color: var(--ink-2); }

/* ----- Scroll reveal ----------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal][data-delay="1"]{ transition-delay: .08s; }
[data-reveal][data-delay="2"]{ transition-delay: .16s; }
[data-reveal][data-delay="3"]{ transition-delay: .24s; }
[data-reveal][data-delay="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){ [data-reveal]{ opacity:1; transform:none; transition:none; } }

/* ----- Floating contact / chat widget ------------------------------------ */
.chat { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat__fab {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px;
  border-radius: 100px; background: var(--accent); color: #1a1408;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  box-shadow: 0 10px 30px rgba(201,168,106,.4); cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s;
}
.chat__fab:hover { transform: translateY(-2px); background: var(--accent-strong); }
.chat__fab svg { width: 22px; height: 22px; }
.chat__fab .lbl { white-space: nowrap; }
@media (max-width: 520px){ .chat__fab .lbl { display: none; } .chat__fab { padding: 0; width: 56px; justify-content: center; } }
.chat__panel {
  width: 290px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  transform-origin: bottom right; transform: scale(.92) translateY(10px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.chat.open .chat__panel { transform: none; opacity: 1; pointer-events: auto; }
.chat__head { padding: 20px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border-bottom: 1px solid var(--line); }
.chat__head b { font-family: var(--font-display); font-size: 1.1rem; display: block; }
.chat__head span { color: var(--ink-3); font-size: .84rem; }
.chat__opt { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-top: 1px solid var(--line); color: var(--ink); transition: background-color .2s; }
.chat__opt:first-of-type { border-top: none; }
.chat__opt:hover { background: var(--surface-2); }
.chat__opt .ic { width: 38px; height: 38px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); }
.chat__opt .ic svg { width: 20px; height: 20px; }
.chat__opt b { font-family: var(--font-display); font-weight: 500; font-size: .96rem; display: block; }
.chat__opt small { color: var(--ink-3); font-size: .78rem; }
.chat__opt.wa .ic { color: #1ebe5d; background: rgba(37,211,102,.14); }

/* ----- Utilities --------------------------------------------------------- */
.center { text-align:center; }
.mt-s{margin-top:14px}.mt-m{margin-top:26px}.mt-l{margin-top:44px}
.divider { height:1px; background: var(--line); border:0; }
.accent { color: var(--accent-strong); }
.nowrap { white-space: nowrap; }
.hide { display:none !important; }
.no-js [data-reveal] { opacity:1; transform:none; }
.rule { display:flex; align-items:center; gap:16px; color:var(--ink-3); font-family:var(--font-mono); font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; }
.rule::before,.rule::after{ content:""; height:1px; background:var(--line); flex:1; }
