/* JU RONG INC — furniture showroom palette: cream, terracotta, sage */

:root {
  --bg: #f7f1ea;
  --surface: #fdf8f3;
  --ink: #2c2a28;
  --muted: #6b6560;
  --accent: #c4704b;
  --accent-2: #7a9b8e;
  --line: rgba(44, 42, 40, 0.1);
  --shadow: 0 20px 50px rgba(44, 42, 40, 0.08);
  --radius: 20px;
  --max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.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: 50;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.85;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 1.25rem;
    top: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

main {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 0;
}

/* Hero carousel */
.jr-hero {
  position: relative;
  min-height: min(640px, 88vh);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 0.5rem;
}

.jr-hero__slides {
  position: absolute;
  inset: 0;
}

.jr-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 720ms ease;
}

.jr-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.jr-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jr-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(44, 42, 40, 0.72) 0%, rgba(44, 42, 40, 0.28) 48%, rgba(44, 42, 40, 0.55) 100%);
}

.jr-hero__inner {
  position: relative;
  z-index: 3;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 640px;
  color: #fdf8f3;
}

.jr-hero__panes {
  position: relative;
  min-height: 220px;
}

.jr-hero__pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.jr-hero__pane.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.jr-kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  opacity: 0.9;
  margin: 0 0 0.75rem;
}

.jr-hero__pane h1,
.jr-hero__pane h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  font-weight: 600;
}

.jr-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  opacity: 0.92;
  max-width: 46ch;
}

.jr-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.jr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.jr-btn:hover {
  transform: translateY(-1px);
}

.jr-btn--light {
  background: #fdf8f3;
  color: var(--ink);
}

.jr-btn--ghost {
  color: #fdf8f3;
  border-color: rgba(253, 248, 243, 0.35);
  background: rgba(253, 248, 243, 0.08);
}

.jr-hero__prev,
.jr-hero__next {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(253, 248, 243, 0.35);
  background: rgba(44, 42, 40, 0.35);
  color: #fdf8f3;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jr-hero__prev:hover,
.jr-hero__next:hover {
  background: rgba(44, 42, 40, 0.5);
}

.jr-hero__prev {
  left: 0.75rem;
}

.jr-hero__next {
  right: 0.75rem;
}

.jr-hero__dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: rgba(253, 248, 243, 0.12);
  border: 1px solid rgba(253, 248, 243, 0.22);
  backdrop-filter: blur(8px);
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(253, 248, 243, 0.45);
  cursor: pointer;
}

.carousel__dot.is-active {
  background: #fdf8f3;
  transform: scale(1.12);
}

@media (max-width: 640px) {
  .jr-hero__prev,
  .jr-hero__next {
    display: none;
  }
}

/* Sections shared */
.cmp-container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.cmp-section {
  padding: clamp(3rem, 5vw, 4.75rem) 0;
}

.cmp-section__head {
  margin-bottom: 1.35rem;
}

.cmp-section__head--center {
  text-align: center;
}

.cmp-kicker {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.cmp-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Product grid — fixed 4 columns, equal cards */
.cmp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.cmp-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cmp-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cmp-card__body {
  padding: 1rem 1.05rem 1.15rem;
}

.cmp-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.cmp-card__desc {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .cmp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cmp-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Intro band */
.intro-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.intro-band__media {
  min-height: 280px;
}

.intro-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-band__text {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.intro-band__text p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .intro-band {
    grid-template-columns: 1fr;
  }

  .intro-band__media {
    min-height: 220px;
  }
}

/* Testimonials */
.cmp-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.cmp-review {
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cmp-review__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cmp-review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.cmp-review__name {
  font-weight: 700;
}

.cmp-review__role {
  font-size: 0.88rem;
  color: var(--muted);
}

.cmp-review__stars {
  color: #d4a017;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

.cmp-review__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .cmp-testimonials {
    grid-template-columns: 1fr;
  }
}

/* Split message */
.cmp-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.15rem;
  align-items: stretch;
}

.cmp-split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 280px;
}

.cmp-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmp-form {
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}

.cmp-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cmp-field {
  display: grid;
  gap: 0.3rem;
}

.cmp-field__label {
  font-size: 0.88rem;
  color: var(--muted);
}

.cmp-field__input,
.cmp-field__textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
}

.cmp-field__textarea {
  resize: vertical;
  min-height: 140px;
}

.cmp-form__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.jr-btn--solid {
  background: var(--accent);
  color: #fff;
  border: 0;
}

.jr-btn--solid:hover {
  filter: brightness(1.05);
}

@media (max-width: 900px) {
  .cmp-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cmp-form__row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.cmp-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #efe6dc;
}

.cmp-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr;
  gap: 1.25rem;
  padding: 2.5rem 0 2rem;
  align-items: start;
}

.cmp-footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 0.65rem;
}

.cmp-footer__desc {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 36ch;
  font-size: 0.95rem;
}

.cmp-footer__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.cmp-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.cmp-footer__list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.cmp-footer__list a:hover {
  border-bottom-color: var(--accent);
}

.cmp-footer__social {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.cmp-social {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 42, 40, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
}

.cmp-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cmp-footer__bottom {
  padding: 1rem 0 1.5rem;
  text-align: center;
  background: rgba(44, 42, 40, 0.04);
}

.cmp-footer__copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .cmp-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* About page */
.page-hero-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 1.5rem;
}

.about-stack {
  display: grid;
  gap: 1.25rem;
}

.about-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.about-copy {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.about-copy p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Contact page */
.contact-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  max-height: 320px;
}

.contact-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  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: 280px;
  object-fit: cover;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0 0 1rem;
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-card dt {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}
