/* WUSHUANG FURNITURE — deep navy + walnut, CSS-only hero, no carousel JS */
:root {
  --ink: #1a2332;
  --muted: rgba(26, 35, 50, 0.68);
  --paper: #f4efe6;
  --card: rgba(255, 255, 255, 0.92);
  --line: rgba(26, 35, 50, 0.1);
  --accent: #8b5a2b;
  --accent-2: #c9a86a;
  --shadow: 0 20px 48px rgba(26, 35, 50, 0.12);
  --radius: 14px;
  --header-bg: #121a26;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 0% 0%, rgba(201, 168, 106, 0.12), transparent 50%),
    radial-gradient(800px 480px at 100% 10%, rgba(26, 35, 50, 0.06), transparent 45%),
    var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ----- Dark top bar (differentiated from light sticky sites) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 26, 38, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f4efe6;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; opacity: 0.92; }
.site-logo img { width: 168px; height: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}
.site-nav a {
  color: rgba(244, 239, 230, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a:hover { color: #fff; text-decoration: underline; }

.container { width: min(1140px, calc(100% - 2.5rem)); margin: 0 auto; }

/* ----- Hero: 3 slides, autoplay + :target manual ----- */
.hero {
  position: relative;
  margin: 1.5rem auto 0;
  width: min(1180px, calc(100% - 2rem));
  border-radius: var(--radius);
  overflow: hidden;
  min-height: min(600px, 86vh);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__hash {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  visibility: hidden;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 18s;
}

@keyframes ws-s1 {
  0%, 28% { opacity: 1; z-index: 2; visibility: visible; }
  33.4%, 100% { opacity: 0; z-index: 0; visibility: hidden; }
}
@keyframes ws-s2 {
  0%, 32% { opacity: 0; z-index: 0; visibility: hidden; }
  33.4%, 61% { opacity: 1; z-index: 2; visibility: visible; }
  66.8%, 100% { opacity: 0; z-index: 0; visibility: hidden; }
}
@keyframes ws-s3 {
  0%, 65% { opacity: 0; z-index: 0; visibility: hidden; }
  66.8%, 95% { opacity: 1; z-index: 2; visibility: visible; }
  100% { opacity: 0; z-index: 0; visibility: hidden; }
}

.hero__slide:nth-child(1) { animation-name: ws-s1; }
.hero__slide:nth-child(2) { animation-name: ws-s2; }
.hero__slide:nth-child(3) { animation-name: ws-s3; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(120deg, rgba(18, 26, 38, 0.78) 0%, rgba(18, 26, 38, 0.38) 48%, rgba(18, 26, 38, 0.62) 100%);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--primary {
  background: var(--accent-2);
  color: #1a2332;
}
.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

#ws-slide-1:target ~ .hero__slides .hero__slide,
#ws-slide-2:target ~ .hero__slides .hero__slide,
#ws-slide-3:target ~ .hero__slides .hero__slide {
  animation: none !important;
  opacity: 0;
  visibility: hidden;
}

#ws-slide-1:target ~ .hero__slides .hero__slide:nth-child(1),
#ws-slide-2:target ~ .hero__slides .hero__slide:nth-child(2),
#ws-slide-3:target ~ .hero__slides .hero__slide:nth-child(3) {
  opacity: 1;
  z-index: 4;
  visibility: visible;
}

.hero__text-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.hero__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.75rem, 4.5vw, 3rem);
  color: #fff;
  max-width: 620px;
  opacity: 0;
  z-index: 0;
  visibility: hidden;
  animation-duration: 18s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.hero__text:nth-child(1) { animation-name: ws-s1; }
.hero__text:nth-child(2) { animation-name: ws-s2; }
.hero__text:nth-child(3) { animation-name: ws-s3; }

#ws-slide-1:target ~ .hero__text-layer .hero__text,
#ws-slide-2:target ~ .hero__text-layer .hero__text,
#ws-slide-3:target ~ .hero__text-layer .hero__text {
  animation: none !important;
  opacity: 0;
  visibility: hidden;
}

#ws-slide-1:target ~ .hero__text-layer .hero__text:nth-child(1),
#ws-slide-2:target ~ .hero__text-layer .hero__text:nth-child(2),
#ws-slide-3:target ~ .hero__text-layer .hero__text:nth-child(3) {
  opacity: 1;
  z-index: 5;
  visibility: visible;
}

.hero__controls {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.hero__dot--link {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  text-indent: -9999px;
  overflow: hidden;
}
.hero__dot--link:hover { background: rgba(255, 255, 255, 0.78); }

#ws-slide-1:target ~ .hero__controls a[href="#ws-slide-1"],
#ws-slide-2:target ~ .hero__controls a[href="#ws-slide-2"],
#ws-slide-3:target ~ .hero__controls a[href="#ws-slide-3"] {
  background: var(--accent-2);
  transform: scale(1.12);
}

.hero__resume {
  margin-left: 0.25rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
}
.hero__resume:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }

/* ----- Sections ----- */
.section { padding: clamp(2.85rem, 5vw, 4.25rem) 0; }
.section__head { margin-bottom: 1.25rem; }
.section__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.35vw, 2rem);
  letter-spacing: -0.02em;
}

/* Product grid — 4 equal columns; 5th item leaves empty cells */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(26, 35, 50, 0.06);
}

.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body { padding: 0.95rem 1rem 1.1rem; }
.card__title { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 700; }
.card__desc { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* About strip — image right / text left for variety */
.about-strip {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: center;
}
.about-strip__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 300px;
  order: 2;
}
.about-strip__text { order: 1; }
.about-strip__media img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.about-strip__text h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin-top: 0;
}
.about-strip__text p { color: var(--muted); }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.review {
  border-radius: var(--radius);
  padding: 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 100%;
}
.review__head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.65rem; }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.review__name { font-weight: 700; }
.review__role { font-size: 0.86rem; color: var(--muted); }
.review__stars { color: var(--accent); font-size: 0.92rem; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.review__text { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Message split */
.section__head--center { text-align: center; }
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.15rem;
  align-items: stretch;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 300px;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }

.form {
  border-radius: var(--radius);
  padding: 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.8rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.field { display: grid; gap: 0.28rem; }
.field__label { font-size: 0.86rem; color: var(--muted); }
.field__input,
.field__textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.96);
}
.field__textarea { resize: vertical; min-height: 130px; }
.form__hint { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* Footer */
.footer {
  margin-top: 1.75rem;
  background: linear-gradient(180deg, #121a26, #1a2332);
  color: rgba(244, 239, 230, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.35rem 0 1.1rem;
}
.footer a { color: var(--accent-2); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.35rem;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.footer__logo:hover { text-decoration: none; opacity: 0.9; }
.footer__logo img { width: 160px; height: auto; filter: brightness(1.08); }
.footer__desc { margin: 0.55rem 0 0.85rem; color: rgba(244, 239, 230, 0.72); max-width: 42ch; font-size: 0.92rem; }
.footer__title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.55rem; color: rgba(244, 239, 230, 0.55); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer__list a { color: rgba(244, 239, 230, 0.92); font-weight: 600; }
.footer__social { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.footer__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 239, 230, 0.92);
}
.footer__social a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.12); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__bottom {
  margin-top: 1.75rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(244, 239, 230, 0.55);
  font-size: 0.84rem;
}

/* About page */
.page-hero { padding: 1.35rem 0 0; }
.page-hero__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: min(440px, 56vh);
}
.page-hero__inner img { width: 100%; height: min(440px, 56vh); object-fit: cover; }

.about-page { padding: 2.25rem 0 2.75rem; }
.about-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
  align-items: start;
}
.about-page__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-page__figure img { width: 100%; height: auto; min-height: 280px; object-fit: cover; }
.about-page__prose { font-size: 1.02rem; color: var(--muted); }
.about-page__prose h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  margin-top: 0;
}

/* Contact page */
.contact-banner {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.35rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: min(400px, 50vh);
}
.contact-banner img { width: 100%; height: min(400px, 50vh); object-fit: cover; }

.contact-body { padding: 2.25rem 0 2.75rem; }
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
  align-items: start;
}
.contact-split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-split__media img { width: 100%; min-height: 300px; object-fit: cover; }
.contact-card {
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-card h2 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; }
.contact-card dl { margin: 0; display: grid; gap: 0.95rem; }
.contact-card dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.contact-card dd { margin: 0; font-weight: 600; }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .about-strip { grid-template-columns: 1fr; }
  .about-strip__media { order: 0; }
  .about-strip__text { order: 1; }
  .split { grid-template-columns: 1fr; }
  .about-page__grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
