:root {
  --navy: #1c2b42;
  --ink: #263447;
  --muted: #667085;
  --teal: #1f7a6e;
  --coral: #e87454;
  --line: #d9e1e8;
  --soft: #eff4f2;
  --paper: #ffffff;
  --bg: #f7f9fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Aptos, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 225px;
  color: var(--navy);
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--teal);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 30;
  display: none;
  min-width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(28, 43, 66, 0.14);
  transform: translateX(-50%);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 6px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--navy);
  background: var(--soft);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.header-action,
.button,
.inquiry-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.header-action,
.button.primary,
.inquiry-form button {
  color: #fff;
  background: var(--teal);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
  border-color: rgba(28, 43, 66, 0.22);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(16, 27, 43, 0.86), rgba(16, 27, 43, 0.56), rgba(16, 27, 43, 0.18)), url("assets/hero-sofa.jpg");
  background-size: cover;
  background-position: center 54%;
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin: 0 0 70px clamp(20px, 7vw, 78px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #86dfd2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 22px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  min-height: 112px;
  padding: 26px clamp(20px, 5vw, 58px);
  background: #fff;
}

.trust-band strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
}

.trust-band span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 82px clamp(20px, 6vw, 78px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.section:nth-of-type(even) {
  background: var(--bg);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p,
.split p,
.contact-copy p {
  color: var(--muted);
  font-size: 17px;
}

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

.product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.product-card div {
  padding: 22px;
}

.product-card p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 6vw, 70px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--coral);
  border-radius: 2px;
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  background: repeating-linear-gradient(45deg, #f4f7f8, #f4f7f8 12px, #edf2f4 12px, #edf2f4 24px);
  border: 1px dashed #9aa8b6;
  border-radius: 8px;
}

.placeholder.large {
  min-height: 380px;
}

.placeholder span {
  max-width: 280px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.factory-photo-stack {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 14px;
  align-items: stretch;
}

.factory-photo-stack img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factory-photo-stack img + img {
  min-height: 280px;
  margin-top: 54px;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.workshop-grid article {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workshop-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.workshop-grid strong {
  display: block;
  padding: 14px 16px 16px;
  color: var(--navy);
  font-size: 16px;
}

.feature-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature,
.process-grid div {
  min-height: 160px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature strong,
.process-grid strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
}

.feature span,
.process-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.process-section {
  background: var(--soft);
}

.process-grid b {
  display: block;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 26px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 76px);
  padding: 82px clamp(20px, 6vw, 78px);
  background: var(--navy);
}

.contact-copy h2 {
  color: #fff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.direct-contact {
  margin-top: 18px;
  font-weight: 800;
}

.direct-contact a {
  color: #86dfd2;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.inquiry-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
}

.inquiry-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.inquiry-form textarea {
  resize: vertical;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inquiry-form button.secondary-action {
  color: var(--teal);
  background: #fff;
  border-color: var(--teal);
}

.message-output {
  display: block;
  min-height: 96px;
  padding: 14px;
  color: var(--ink);
  white-space: pre-wrap;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.message-output[hidden] {
  display: none;
}

.catalog-hero {
  display: grid;
  align-items: end;
  min-height: 360px;
  padding: 92px clamp(20px, 6vw, 78px) 58px;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(16, 27, 43, 0.88), rgba(16, 27, 43, 0.58), rgba(16, 27, 43, 0.24)), url("assets/hero-sofa.jpg");
  background-position: center 52%;
  background-size: cover;
}

.catalog-hero h1 {
  margin-bottom: 14px;
}

.catalog-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  padding: 48px clamp(20px, 6vw, 78px) 84px;
  background: #fff;
}

.catalog-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-sidebar strong {
  display: block;
  margin: 4px 8px 12px;
  color: var(--navy);
}

.category-button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.category-button.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.catalog-toolbar h2 {
  margin-bottom: 6px;
}

.catalog-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
}

.catalog-count {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

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

.catalog-section-title {
  grid-column: 1 / -1;
  margin: 18px 0 2px;
  padding: 16px 0 10px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  font-weight: 900;
}

.catalog-section-title:first-child {
  margin-top: 0;
}

.catalog-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f9fafb;
}

.catalog-card-body {
  padding: 18px;
}

.catalog-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.catalog-card p {
  min-height: 50px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.spec-list {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 13px;
}

.spec-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #edf1f4;
}

.spec-list b {
  color: var(--navy);
}

.catalog-card button {
  width: 100%;
  min-height: 40px;
  color: var(--teal);
  background: #fff;
  border: 1px solid var(--teal);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.load-more {
  display: none;
  width: min(260px, 100%);
  min-height: 44px;
  margin: 28px auto 0;
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.load-more.visible {
  display: block;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 27, 42, 0.64);
}

.detail-modal[hidden] {
  display: none;
}

.modal-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
}

.modal-gallery {
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  min-height: 420px;
  background: #f8fafb;
}

.modal-gallery > img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  background: #f8fafb;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.modal-thumbs button {
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.modal-thumbs button.active {
  border-color: var(--teal);
}

.modal-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8fafb;
}

.modal-copy {
  padding: 28px;
}

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

.modal-close {
  float: right;
  width: 34px;
  height: 34px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(20px, 6vw, 78px);
  color: rgba(255, 255, 255, 0.78);
  background: #111b2a;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  text-align: right;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 560px;
  }

  .trust-band,
  .product-grid,
  .workshop-grid,
  .feature-grid,
  .process-grid,
  .split,
  .split.reverse,
  .contact-section,
  .catalog-layout,
  .catalog-grid,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .factory-photo-stack {
    grid-template-columns: 1fr;
  }

  .factory-photo-stack img,
  .factory-photo-stack img + img {
    min-height: 280px;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px 16px;
  }

  .brand {
    min-width: auto;
  }

  .brand span {
    font-size: 14px;
  }

  .header-action {
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-content {
    margin: 0 20px 44px;
    width: calc(100% - 40px);
  }

  h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 17px;
  }

  .section,
  .contact-section {
    padding: 58px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-links {
    text-align: left;
  }
}
