/* Xi'an Titanium — site styles */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: .4px;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 4vw;
}

.c-yellow { color: var(--yellow); }
.c-green  { color: var(--green); }
.c-white  { color: #fff; }
.c-black  { color: #000; }

/* ------------------------------------------------------------- announce */

.announce {
  display: block;
  background: var(--band);
  color: #fff;
  text-align: center;
  padding: 11px 4vw;
  font-size: 14px;
  letter-spacing: .6px;
  text-decoration: none;
}
.announce:hover { opacity: .85; }

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bright);
}
.site-header__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 4vw;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { flex: 0 0 auto; display: block; }
.brand img { height: 34px; width: auto; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 2px;
  color: rgba(0,0,0,.9);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav__link:hover { opacity: .6; }
.nav__link.is-active { border-bottom-color: rgba(0,0,0,.9); }

.nav__cta {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 13px 22px;
  border-radius: 7px;
  white-space: nowrap;
}
.nav__cta:hover { filter: brightness(1.12); }

.nav__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,.06);
  border-radius: 999px;
  padding: 3px;
}
.nav__lang-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  color: rgba(0,0,0,.5);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav__lang-link.is-active { background: #fff; color: rgba(0,0,0,.9); }
.nav__lang-link:hover { color: rgba(0,0,0,.9); }

.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: #000;
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bright);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 4vw 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    display: none;
  }
  body.nav-open .nav { display: flex; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
  .nav__cta { margin-top: 14px; text-align: center; }
  .nav__lang { margin-top: 14px; align-self: flex-start; }
}

/* --------------------------------------------------------------- banner */

.banner {
  position: relative;
  background: var(--dark) center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.banner__overlay {
  position: absolute; inset: 0;
  background: #000;
}
.banner__inner {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 60px 4vw;
}
.banner__inner.align-center { text-align: center; }
.banner__inner.align-left   { text-align: left; }

.banner__title {
  margin: 0;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
}
.banner--hero .banner__title { font-size: clamp(46px, 9.6vw, 139px); }
.banner--xl   .banner__title { font-size: clamp(40px, 8.2vw, 118px); }
.banner--lg   .banner__title { font-size: clamp(32px, 6vw, 84px); }

.banner__sub {
  margin: 22px 0 0;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.5;
  font-weight: 300;
}

/* ---------------------------------------------------------------- button */

.btn {
  display: inline-block;
  margin-top: 30px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.75px;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 7px;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.15); }
.btn--full { display: block; text-align: center; margin-top: 18px; }
.btn.is-out { background: #7c7c7c; }

/* -------------------------------------------------------------- features */

.features { padding: 74px 0 84px; }
.features__heading {
  margin: 0 0 54px;
  text-align: center;
  font-size: clamp(24px, 2.6vw, 31px);
  font-weight: 700;
  line-height: 1.16;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
}
.feature { text-align: center; }
.feature__icon { width: 64px; height: 64px; margin: 0 auto 22px; }
.feature__title {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 300;
  line-height: 1.16;
}
.feature__text { margin: 0; font-size: 17px; line-height: 1.5; }

@media (max-width: 860px) {
  .features__grid { grid-template-columns: 1fr; gap: 46px; }
}

/* --------------------------------------------------- product / gallery grid */

.pgrid { padding: 62px 0 44px; }
.pgrid__grid, .gallery__grid, .shop__grid {
  display: grid;
  gap: 42px 34px;
}
.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; }
}

.pcard { text-decoration: none; color: inherit; display: block; }
.pcard__media {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pcard__media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform .3s ease;
}
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

/* ------------------------------------------------------------- gallery */

.gallery { padding: 56px 0 40px; }
.gitem { margin: 0; }
.gitem__media {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gitem__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.gitem__media:hover img { transform: scale(1.04); }
.gitem__zoom {
  position: absolute;
  left: 50%; bottom: 10px;
  transform: translateX(-50%);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background: rgba(0,0,0,.72);
  color: #fff;
  padding: 5px 11px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.gitem__media:hover .gitem__zoom { opacity: 1; }
.gitem__cap {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}
a.gitem__media { cursor: pointer; }

/* ----------------------------------------------------------------- prose */

.rich { padding: 34px 0 8px; }
.rich.align-center { text-align: center; }

.prose h2 {
  margin: 0 0 18px;
  font-size: clamp(21px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 1.3;
}
.prose h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  font-weight: 700;
}
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose p.indent { margin-left: 22px; font-weight: 600; }
.prose strong { font-weight: 700; }
.prose a { color: var(--blue); }

/* ----------------------------------------------------------------- split */

.split { padding: 34px 0 26px; }
.split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.split__left { font-size: 15px; }
@media (max-width: 860px) {
  .split__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ------------------------------------------------------------ spec table */

.spec { padding: 22px 0 30px; }
.spec__title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 15px;
}
.spec__scroll { overflow-x: auto; }
.spec__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 620px;
}
.spec__table th, .spec__table td {
  border: 1px solid #d9d9d9;
  padding: 9px 10px;
  text-align: center;
  white-space: nowrap;
}
.spec__table th {
  background: #f2f2f2;
  font-weight: 700;
}
.spec__table td:first-child, .spec__table th:first-child {
  text-align: left;
  white-space: normal;
}
.spec__note { margin: 12px 0 0; font-size: 13px; color: #555; }

/* ------------------------------------------------------------------ shop */

.shop { padding: 58px 0 48px; }
.scard { display: flex; flex-direction: column; }
.scard__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #fafafa;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.scard__media > img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.scard__media > img[hidden] { display: none; }
.scard__thumbs {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 8px;
}
.scard__thumb {
  width: 38px; height: 38px;
  padding: 2px;
  border: 1px solid #d0d0d0;
  background: #fff;
  cursor: pointer;
  border-radius: 3px;
}
.scard__thumb.is-on { border-color: var(--blue); }
.scard__thumb img { width: 100%; height: 100%; object-fit: contain; }

.scard__title {
  margin: 18px 0 4px;
  font-size: 19px;
  font-weight: 400;
}
.scard__price { margin: 0 0 12px; font-size: 15px; color: #444; }
.scard__desc { font-size: 14px; flex: 1 0 auto; }
.scard__desc p, .scard__desc ul { margin-bottom: 10px; }

.scard__variant {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
}
.scard__variant span {
  display: block;
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
}
.scard__variant select {
  width: 100%;
  padding: 11px 12px;
  font-family: var(--font);
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

/* --------------------------------------------------------------- contact */

.contact { padding: 78px 0 70px; text-align: center; }
.contact__heading {
  margin: 0 0 26px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}
.contact__sub {
  margin: 0 0 12px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
}
.contact__email {
  margin: 0 0 40px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
}
.contact__email a { color: var(--blue); }
.contact__addr {
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 34px;
}
.contact__hours h3 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 14px;
}
.contact__hours dl {
  margin: 0 auto;
  max-width: 330px;
  font-size: 15px;
}
.contact__hours dl > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
.contact__hours dt, .contact__hours dd { margin: 0; }

/* ------------------------------------------------------------------- top */

.topsec { padding: 54px 0 66px; text-align: center; }
.toplink {
  font-size: 14px;
  letter-spacing: 2.4px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.35);
  padding-bottom: 3px;
}
.toplink:hover { opacity: .6; }

/* ---------------------------------------------------------------- footer */

.footband { height: 72px; background: var(--band); }
.site-footer {
  background: var(--bright);
  padding: 52px 0 58px;
  text-align: center;
}
.site-footer__heading {
  margin: 0 0 12px;
  font-size: 19px;
  letter-spacing: 1px;
}
.site-footer__line { margin: 0 0 6px; font-size: 15px; }
.site-footer__line a { color: var(--blue); }
.site-footer__icon {
  display: inline-block;
  margin-top: 22px;
  color: #000;
}

/* ------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
}
.lightbox__cap {
  color: #fff;
  font-size: 14px;
  margin: 18px 0 0;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  background: none; border: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

/* ------------------------------------------------------- admin edit bar */

.adminbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 90;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 9px 10px 9px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: .6px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.adminbar a {
  background: var(--yellow);
  color: #111;
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 999px;
  font-weight: 700;
}

@media (max-width: 620px) {
  .adminbar { font-size: 12px; padding: 7px 8px 7px 14px; gap: 10px; bottom: 12px; }
  .adminbar a { padding: 6px 12px; white-space: nowrap; }
}
