:root {
  --bg: #f7f0e7;
  --paper: rgba(255, 248, 241, 0.82);
  --paper-strong: #fff8f1;
  --ink: #201610;
  --muted: #70584d;
  --line: rgba(77, 46, 34, 0.12);
  --deep: #22140f;
  --brand: #8f4f2a;
  --brand-strong: #6f3416;
  --gold: #cda46a;
  --shadow: 0 24px 60px rgba(33, 20, 15, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(205, 164, 106, 0.16), transparent 30%),
    linear-gradient(180deg, #fdf6ef 0%, #f7f0e7 55%, #f3ebe2 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(253, 246, 239, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text span,
.footer-wordmark {
  font-family: "Noto Serif TC", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-strong);
}

.brand-text small {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand-strong);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 10px 16px;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 78px 0 56px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(34, 20, 15, 0.94), rgba(111, 52, 22, 0.78)),
    url("https://rxji.com.tw/asset/types/main/images/location-bg.jpg") center/cover;
  clip-path: ellipse(90% 100% at 50% 0%);
}

.hero-grid,
.section-grid,
.contact-layout {
  position: relative;
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  letter-spacing: 0.22em;
  font-size: 0.8rem;
}

.hero-copy {
  color: #fff7f0;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  line-height: 1.15;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  max-width: 10ch;
}

.lead {
  max-width: 60ch;
  line-height: 1.85;
  color: rgba(255, 244, 233, 0.88);
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--gold), #e6c28b);
  color: #2f1b12;
}

.button.ghost {
  border: 1px solid rgba(255, 240, 225, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff7f0;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.highlight-card {
  overflow: hidden;
  border-radius: 24px;
  min-height: 220px;
  box-shadow: var(--shadow);
  background: rgba(255, 250, 244, 0.12);
}

.highlight-card.large {
  grid-column: span 2;
  min-height: 340px;
}

.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-card {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(205, 164, 106, 0.25), transparent 40%),
    rgba(255, 248, 241, 0.94);
  color: var(--brand-strong);
  font-family: "Noto Serif TC", serif;
  font-size: 1.3rem;
  text-align: center;
}

.text-card p {
  margin: 6px 0;
}

.section {
  padding: 88px 0;
}

.intro-strip {
  padding-top: 24px;
}

.stat-grid,
.story-layout,
.news-grid,
.location-grid,
.footer-grid {
  display: grid;
  gap: 20px;
}

.stat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-grid article,
.story-card,
.news-card,
.location-card,
.contact-panel,
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.stat-grid article {
  padding: 28px;
}

.stat-grid span {
  display: block;
  font-family: "Noto Serif TC", serif;
  font-size: 2rem;
  color: var(--brand-strong);
}

.stat-grid p,
.section-heading p,
.story-card p,
.news-card p,
.location-card p,
.contact-copy p,
.product-body p {
  line-height: 1.8;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.story-layout {
  grid-template-columns: repeat(2, 1fr);
}

.story-card {
  padding: 28px;
}

.story-card.visual {
  padding: 0;
  overflow: hidden;
}

.story-card.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card h3,
.product-body h3,
.news-card h3,
.location-card h3 {
  margin-top: 0;
  font-family: "Noto Serif TC", serif;
}

.section-dark {
  background: linear-gradient(180deg, rgba(34, 20, 15, 0.98), rgba(54, 29, 19, 0.96));
  color: #fff4e9;
}

.section-dark .section-heading h2,
.section-dark .search-box span,
.section-dark .product-body h3 {
  color: #fff7f0;
}

.subpage-hero {
  padding: 64px 0 44px;
}

.subpage-hero h1 {
  margin: 0;
  color: #fff7f0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.subpage-hero .lead {
  margin-top: 16px;
}

.with-action {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.search-box {
  display: grid;
  gap: 8px;
  min-width: min(100%, 360px);
}

.search-box span {
  font-size: 0.9rem;
  color: rgba(255, 244, 233, 0.82);
}

.search-box input {
  width: 100%;
  border: 1px solid rgba(255, 240, 225, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff7f0;
  border-radius: 16px;
  padding: 14px 16px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.pill {
  border: 1px solid rgba(255, 240, 225, 0.18);
  background: transparent;
  color: rgba(255, 244, 233, 0.78);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}

.pill.active {
  background: var(--gold);
  color: var(--deep);
  border-color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  overflow: hidden;
  background: rgba(255, 248, 241, 0.08);
  border-color: rgba(255, 240, 225, 0.14);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.product-body {
  padding: 22px;
}

.product-price {
  margin: 18px 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff7f0;
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(92px, 110px) 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.qty-field {
  display: grid;
  gap: 6px;
}

.qty-field span {
  font-size: 0.84rem;
  color: rgba(255, 244, 233, 0.78);
}

.qty-input {
  width: 100%;
  border: 1px solid rgba(255, 240, 225, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff7f0;
  border-radius: 14px;
  padding: 12px 14px;
}

.inquiry-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.product-type,
.news-tag {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-card.is-hidden {
  display: none;
}

.catalog-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.teaser-card {
  padding: 28px;
  border: 1px solid rgba(255, 240, 225, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 248, 241, 0.08);
  box-shadow: var(--shadow);
}

.teaser-card h3 {
  margin-top: 0;
  color: #fff7f0;
  font-family: "Noto Serif TC", serif;
}

.teaser-card p {
  line-height: 1.8;
}

.news-grid,
.location-grid {
  grid-template-columns: repeat(2, 1fr);
}

.news-card,
.location-card,
.contact-panel {
  padding: 28px;
}

.section-accent {
  background:
    radial-gradient(circle at right top, rgba(205, 164, 106, 0.2), transparent 28%),
    linear-gradient(180deg, #f1e3d2, #f8f0e7);
}

.location-card ul {
  margin: 18px 0 22px;
  padding-left: 18px;
  line-height: 1.8;
}

.location-card a {
  color: var(--brand-strong);
  font-weight: 700;
}

.contact-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}

.contact-list p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.notice {
  color: var(--muted);
}

.contact-panel {
  padding: 12px;
}

.contact-panel iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: 22px;
}

.inquiry-panel {
  display: none;
  padding: 0 0 88px;
  background:
    radial-gradient(circle at left top, rgba(205, 164, 106, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f0e7, #f3ebe2);
}

.inquiry-panel.is-open {
  display: block;
}

.inquiry-dialog {
  width: min(720px, 100%);
  border-radius: 28px;
  padding: 28px;
  background: #fff8f1;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.modal-intro {
  color: var(--muted);
}

.inquiry-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
}

.inquiry-form span {
  font-size: 0.92rem;
  font-weight: 600;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(77, 46, 34, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  background: white;
  color: var(--ink);
}

.inquiry-form textarea {
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.site-footer {
  padding: 28px 0 40px;
  background: #1d110d;
  color: rgba(255, 241, 230, 0.82);
}

.footer-grid {
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.footer-logo {
  width: 138px;
}

.footer-wordmark {
  color: rgba(255, 241, 230, 0.92);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    min-width: 220px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 248, 241, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .contact-layout,
  .story-layout,
  .news-grid,
  .location-grid,
  .footer-grid,
  .product-grid,
  .stat-grid,
  .catalog-teaser {
    grid-template-columns: 1fr;
  }

  .hero-cards,
  .highlight-card.large {
    grid-template-columns: 1fr;
  }

  .highlight-card.large {
    grid-column: span 1;
  }

  .with-action {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 42px;
  }

  .section {
    padding: 64px 0;
  }

  .story-card,
  .news-card,
  .location-card,
  .contact-panel,
  .product-body,
  .stat-grid article {
    padding: 22px;
  }

  .contact-panel {
    padding: 10px;
  }

  .contact-panel iframe {
    min-height: 360px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .inquiry-dialog {
    padding: 22px;
  }
}
