/* HUIJIAN Lighting — Overseas brand site
   Minimal luxury + oriental detail */

:root {
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --muted: #7a746c;
  --line: #e4ddd3;
  --paper: #faf7f2;
  --paper-deep: #f0ebe3;
  --white: #ffffff;
  --charcoal: #1c1c1c;
  --accent: #e57200;
  --accent-soft: #f3a04a;
  --accent-deep: #b85a00;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.2; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(20, 20, 20, 0.04);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo img {
  height: 42px;
  width: auto;
}
.logo-text {
  display: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem !important;
  border: 1px solid var(--ink);
  letter-spacing: 0.14em !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}
.nav-shop {
  color: var(--muted) !important;
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}
.nav-shop::after { display: none !important; }
.nav-shop span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  margin-left: 0.35rem;
  text-transform: none;
  opacity: 0.8;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    margin-top: 0.75rem;
    justify-content: center;
    border-bottom: 1px solid var(--ink) !important;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #2a2a2a;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.15) 0%, rgba(20,20,20,0.55) 55%, rgba(20,20,20,0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 8vh, 5.5rem);
  max-width: 38rem;
  margin-left: max(var(--gutter), calc((100% - var(--max)) / 2));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.hero .lede {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  max-width: 28rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* —— Page hero (inner) —— */
.page-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--charcoal);
  color: #fff;
  overflow: hidden;
}
.page-hero.has-image {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.35), rgba(20,20,20,0.75));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 34rem;
  margin: 0;
}

/* —— Sections —— */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--white); }
.section-dark {
  background: var(--charcoal);
  color: rgba(255,255,255,0.78);
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 400;
  margin: 0;
}
.section-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.link-arrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.2rem;
  transition: color 0.25s, gap 0.25s;
}
.link-arrow:hover { color: var(--accent); gap: 0.75rem; }

/* —— Brand split —— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 800px) {
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
}
.wisdom-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0 2.5rem;
}
.wisdom-card {
  padding: 1.5rem 1.25rem;
  background: var(--white);
  border-top: 2px solid var(--accent);
}
.wisdom-card .cn {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.wisdom-card .en {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.frame {
  position: relative;
  background: var(--paper-deep);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame.landscape { aspect-ratio: 16 / 10; }
.frame.square { aspect-ratio: 1; }
.frame.product {
  aspect-ratio: 1;
  background: var(--white);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.frame.product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.frame.product.tall {
  aspect-ratio: 3 / 4;
}
.frame.product.wide {
  aspect-ratio: 16 / 10;
  padding: 1.5rem 2rem;
}
.card .frame.product {
  border-bottom: 1px solid var(--line);
}
.catalog-section {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.catalog-section .section-head {
  margin-bottom: 1.5rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}
.variant-note {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}
.provisional {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* —— Collection cards —— */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20,20,20,0.08);
}
.card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}
.card-body .meta {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.card-body .cn-name {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.card-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

/* —— Featured series —— */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 800px) {
  .featured { grid-template-columns: 1fr; }
}
.quote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
  margin: 1.25rem 0 1.5rem;
}
.spec-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
}
.spec-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
}
.spec-list .label {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding-top: 0.2rem;
}

/* —— Detail gallery —— */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 560px) {
  .detail-gallery { grid-template-columns: 1fr; }
}

/* —— Projects —— */
.project-card .frame { aspect-ratio: 4 / 3; }
.project-card .card-body .meta { color: var(--muted); }

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-item {
  margin-bottom: 1.75rem;
}
.contact-item .label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.contact-item a:hover { color: var(--accent); }

.form {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.form-success {
  display: none;
  padding: 1rem 1.15rem;
  background: #eef7ee;
  border: 1px solid #b7d7b7;
  color: #2d5a2d;
  margin-bottom: 1rem;
}
.form-success.is-visible { display: block; }

/* —— CTA band —— */
.cta-band {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, #2a2420 0%, var(--charcoal) 55%, #121212 100%);
  color: rgba(255,255,255,0.8);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.cta-band p { max-width: 32rem; margin: 0 auto 1.75rem; }

/* —— Footer —— */
.site-footer {
  background: #121212;
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 1.75rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  background: #fff;
  padding: 0.4rem 0.55rem;
  border-radius: 2px;
}
.footer-brand p { max-width: 18rem; line-height: 1.65; }
.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-soft); }
.footer-col .accent { color: var(--accent-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* —— Misc —— */
.tagline-cn {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}
.divider-accent {
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin: 1.25rem 0;
}
.coming-soon {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
  margin-left: 0.5rem;
}
.placeholder-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Collection list page cards denser */
.series-card .frame.product { padding: 1.25rem; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.breadcrumb a:hover { color: var(--accent-soft); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
