:root {
  --bg: #f7f1e5;
  --surface: rgba(255, 250, 243, 0.92);
  --surface-strong: #fffaf2;
  --primary: #bd5d2c;
  --primary-dark: #8e3f18;
  --accent: #0f6c6d;
  --accent-soft: #dff2ee;
  --text: #1f1d1a;
  --muted: #645b4c;
  --border: rgba(114, 92, 62, 0.18);
  --shadow: 0 18px 40px rgba(74, 54, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(15, 108, 109, 0.12), transparent 28%),
    radial-gradient(circle at left center, rgba(189, 93, 44, 0.12), transparent 30%),
    linear-gradient(180deg, #fbf5ea 0%, #f2e6d6 100%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  background: rgba(31, 29, 26, 0.92);
  color: #f8f4ee;
  font-size: 0.92rem;
}

.top-strip p {
  margin: 0;
}

.top-strip a {
  color: #f4b978;
  font-weight: 700;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 248, 239, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--primary), #d79d3e);
  color: #fffaf2;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.nav-link {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(189, 93, 44, 0.12);
  color: var(--primary-dark);
}

.header-cta {
  flex-shrink: 0;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.25rem;
  align-items: stretch;
}

.hero-home {
  padding-top: 0.5rem;
}

.hero-copy,
.hero-panel,
.content-card,
.credential-card,
.case-card,
.product-card,
.filter-panel,
.detail-shell,
.contact-info-card,
.related-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel {
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(250, 241, 228, 0.9));
}

.hero-copy h1,
.section-heading h2,
.content-card h2,
.detail-overview h1 {
  margin: 0;
  font-family: Georgia, "Palatino Linotype", serif;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 0.98;
}

.hero-text,
.content-card p,
.case-card p,
.detail-text p,
.spec-list dd,
.product-meta,
.product-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #d48c42);
  color: #fffaf1;
}

.button-secondary {
  background: rgba(15, 108, 109, 0.1);
  color: var(--accent);
}

.text-link {
  color: var(--primary-dark);
  font-weight: 700;
}

.hero-panel {
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(160deg, rgba(15, 108, 109, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(255, 248, 238, 0.95), rgba(247, 236, 219, 0.95));
}

.hero-panel-text h3,
.content-card h3,
.case-card h3,
.product-copy h3,
.contact-info-card h3,
.related-copy h3 {
  margin: 0 0 0.55rem;
  font-family: Georgia, "Palatino Linotype", serif;
}

.stat-card {
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  font-family: Georgia, "Palatino Linotype", serif;
  color: var(--primary-dark);
}

.stat-card span {
  color: var(--muted);
}

.section-block {
  margin-top: 1.5rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.section-note {
  margin: 0;
  color: var(--muted);
}

.marquee {
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid var(--border);
  background: rgba(255, 250, 243, 0.82);
  box-shadow: var(--shadow);
}

.marquee-compact {
  margin-top: 0.6rem;
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 1rem;
  animation: marquee-move 26s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: #fffdf8;
  border: 1px solid rgba(114, 92, 62, 0.14);
  white-space: nowrap;
}

.marquee-chip img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.product-grid {
  display: grid;
  gap: 1rem;
}

.product-grid-featured {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.product-grid-inventory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.6rem;
  overflow: hidden;
  background: rgba(255, 252, 248, 0.95);
}

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

.product-copy {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  height: 100%;
}

.product-copy h3 {
  font-size: 1.12rem;
}

.product-meta {
  margin: 0;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
}

.product-price {
  font-size: 1.3rem;
  color: var(--primary-dark);
  font-weight: 800;
  font-family: Georgia, "Palatino Linotype", serif;
}

.product-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.section-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.content-card {
  padding: 1.4rem;
  border-radius: 1.8rem;
  background: rgba(255, 252, 247, 0.92);
}

.feature-list {
  margin: 1rem 0 1.2rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.advantage-stack,
.advantage-grid,
.case-grid,
.credential-grid,
.contact-card-list {
  display: grid;
  gap: 1rem;
}

.advantage-grid,
.case-grid,
.credential-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.case-card,
.credential-card {
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 251, 245, 0.96);
}

.case-tag {
  display: inline-flex;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(189, 93, 44, 0.12);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.credential-card img {
  aspect-ratio: 5 / 4;
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

.credential-card figcaption {
  margin-top: 0.8rem;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 1.8rem;
  background: rgba(255, 251, 245, 0.95);
}

.filter-panel label,
.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.filter-panel span,
.contact-form span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.filter-panel select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(114, 92, 62, 0.22);
  border-radius: 1rem;
  background: #fffdf9;
  color: var(--text);
}

.contact-quick p,
.contact-info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-info-card {
  padding: 1rem;
  border-radius: 1.35rem;
  background: rgba(255, 252, 248, 0.9);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-feedback {
  min-height: 1.5rem;
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.detail-shell {
  padding: 1.2rem;
  border-radius: 2rem;
  background: rgba(255, 251, 245, 0.96);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.2rem;
}

.detail-gallery {
  display: grid;
  gap: 1rem;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.4rem;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 1rem;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumb.is-active {
  border-color: var(--primary);
}

.detail-overview {
  display: grid;
  gap: 1rem;
}

.detail-overview h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 0;
}

.spec-list div {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 108, 109, 0.06);
}

.spec-list dt {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.spec-list dd {
  margin: 0;
}

.detail-body {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.detail-text,
.detail-images {
  padding: 1.2rem;
  border-radius: 1.5rem;
  background: rgba(255, 252, 248, 0.88);
  border: 1px solid var(--border);
}

.detail-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.detail-image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  object-fit: cover;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.related-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.9rem;
  padding: 0.8rem;
  border-radius: 1.35rem;
  background: rgba(255, 252, 248, 0.94);
}

.related-card img {
  width: 100%;
  height: 100px;
  border-radius: 1rem;
  object-fit: cover;
}

.related-copy {
  display: grid;
  gap: 0.35rem;
}

.site-footer {
  padding: 2rem 1rem 2.4rem;
  background: rgba(27, 24, 21, 0.95);
  color: #f2ede6;
}

.footer-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.2rem;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.55rem;
  color: #e8ddcf;
}

.footer-copy {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  color: #bdaea1;
}

.empty-state {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 250, 243, 0.9);
  border: 1px dashed rgba(114, 92, 62, 0.28);
  text-align: center;
  color: var(--muted);
}

@keyframes marquee-move {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .site-header,
  .hero,
  .section-grid-two,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1025px) {
  .product-grid-inventory {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell,
  .footer-grid,
  .footer-copy {
    width: min(100% - 1rem, 1180px);
  }

  .top-strip,
  .site-header {
    padding-inline: 0.85rem;
  }

  .hero-copy h1 {
    font-size: 2.25rem;
  }

  .section-heading,
  .top-strip,
  .product-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid-inventory,
  .detail-image-grid,
  .filter-panel,
  .spec-list {
    grid-template-columns: 1fr 1fr;
  }

  .thumb-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .product-grid-featured,
  .section-grid-two,
  .detail-image-grid,
  .spec-list,
  .filter-panel,
  .credential-grid,
  .advantage-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 0.2rem;
  }

  .nav-link,
  .button,
  .filter-panel select,
  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }

  .thumb-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-card {
    grid-template-columns: 1fr;
  }
}
