/* Inner pages share the same CI header as the main page. */
.inner-page {
  min-width: 320px;
  background: var(--ivory);
}

.inner-main {
  padding-bottom: 80px;
}

.inner-hero {
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--deep-charcoal) center / cover no-repeat;
}

.inner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 9, .86), rgba(10, 10, 9, .42) 54%, rgba(10, 10, 9, .12));
}

.company-hero {
  background-image: url("../images/hero/main-hero-approved-202608.png");
  background-position: center 52%;
}

.safety-hero { background-image: url("../images/products/safety-context-202608.png"); }
.construction-hero { background-image: url("../images/products/construction-site-category-20260827.png"); }
.aircon-hero { background-image: url("../images/products/aircon-piping-category-20260827.png"); }

.inner-hero-content {
  width: min(calc(100% - 96px), var(--page-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.inner-eyebrow {
  color: var(--beige);
  font-family: "Noto Serif KR", "Nanum Myeongjo", serif;
  font-size: 14px;
  letter-spacing: .12em;
}

.inner-hero h1 {
  margin-top: 10px;
  font-size: 42px;
  letter-spacing: -.06em;
}

.inner-hero p {
  margin-top: 15px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
}

.subnav-tabs {
  width: min(calc(100% - 96px), var(--page-width));
  margin: 0 auto;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.subnav-tabs a {
  min-width: 132px;
  padding: 19px 24px 16px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.subnav-tabs a:hover,
.subnav-tabs a.is-active {
  color: var(--beige-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--beige-dark);
}

.content-width {
  width: min(calc(100% - 96px), 1180px);
  margin: 0 auto;
}

.content-section {
  padding: 68px 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--line);
}

.section-eyebrow {
  color: var(--beige-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.content-section h2 {
  margin-top: 10px;
  font-size: 32px;
  letter-spacing: -.06em;
}

.section-lead {
  max-width: 700px;
  margin-top: 18px;
  color: #676158;
  font-size: 16px;
  line-height: 1.8;
}

.vision-feature {
  position: relative;
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(360px, 45%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f5ef;
  box-shadow: 0 18px 48px rgba(29, 27, 24, .08);
}

.vision-feature-copy {
  position: relative;
  z-index: 2;
  align-self: start;
  padding: 48px 18px 44px 48px;
}

.vision-feature-copy h2 {
  margin-top: 10px;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.35;
  word-break: keep-all;
}

.vision-feature-image {
  position: relative;
  min-height: 470px;
  background: url('../images/products/safety-context-202608.png') 58% center / cover no-repeat;
}

.vision-feature-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f8f5ef 0%, rgba(248,245,239,.86) 10%, rgba(248,245,239,.25) 28%, rgba(248,245,239,0) 52%);
}

.company-introduction {
  max-width: 700px;
  color: #514c45;
  line-height: 1.95;
  word-break: keep-all;
}

.company-promise {
  position: relative;
  max-width: 700px;
  margin-top: 28px;
  padding: 24px 30px 24px 38px;
  border-left: 4px solid var(--beige-dark);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(203,185,157,.2), rgba(255,255,255,.55));
  color: #28241f;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.04em;
  word-break: keep-all;
}

@media (max-width: 900px) {
  .vision-feature {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .vision-feature-copy {
    padding: 36px 30px 32px;
  }

  .vision-feature-image {
    min-height: 330px;
    background-position: 62% center;
  }

  .vision-feature-image::before {
    background: linear-gradient(180deg, #f8f5ef 0%, rgba(248,245,239,.35) 18%, rgba(248,245,239,0) 42%);
  }
}

@media (max-width: 560px) {
  .vision-feature-copy {
    padding: 30px 22px 26px;
  }

  .vision-feature-copy h2 {
    font-size: 28px;
  }

  .company-promise {
    padding: 20px 20px 20px 26px;
    font-size: 20px;
  }

  .vision-feature-image {
    min-height: 250px;
  }
}

.vision-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vision-card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.55);
}

.vision-card strong {
  color: var(--beige-dark);
  font-size: 21px;
}

.vision-card p {
  margin-top: 14px;
  color: #676158;
  line-height: 1.75;
}

.name-story {
  margin-top: 52px;
  padding: 42px 44px 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #f5eee4 100%);
}

.name-story-heading {
  display: grid;
  grid-template-columns: 210px 1fr;
  column-gap: 28px;
  align-items: end;
}

.name-story-heading .section-eyebrow { grid-column: 1 / -1; }
.name-story-heading h3 { margin-top: 9px; color: var(--ink); font-size: 28px; letter-spacing: -.05em; }
.name-story-heading > p:last-child { color: #686158; font-size: 14px; line-height: 1.75; word-break: keep-all; }

.name-story-meanings {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.name-story-meanings article {
  min-height: 138px;
  padding: 23px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(203, 185, 157, .5);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}

.name-story-meanings b { min-width: 54px; color: var(--beige-dark); font-family: Georgia, serif; font-size: 36px; font-weight: 500; text-align: center; }
.name-story-meanings article:last-child b { font-family: inherit; font-size: 17px; font-weight: 800; letter-spacing: .08em; }
.name-story-meanings strong { color: var(--ink); font-size: 19px; }
.name-story-meanings p { margin-top: 7px; color: #716960; font-size: 13px; line-height: 1.6; }
.name-story > blockquote { margin-top: 28px; color: #312b25; font-family: 'Noto Serif KR', serif; font-size: clamp(22px, 2.3vw, 31px); font-weight: 500; text-align: center; letter-spacing: -.04em; }

.ceo-message-section {
  display: none;
}

.ceo-message-text-wrap { scroll-margin-top: 150px; }

.ceo-message-text-section {
  padding: 54px 56px;
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.6fr);
  gap: 62px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #efe7dc 0%, #f8f5ef 31%, #fff 100%);
}

.ceo-message-heading h2 {
  margin-top: 24px;
  color: #25221e;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.06em;
}

.ceo-message-heading .section-eyebrow { display: none; }

.ceo-message-copy {
  color: #514c45;
  font-size: 15px;
  line-height: 1.9;
  word-break: keep-all;
}

.ceo-message-copy p + p { margin-top: 19px; }

.ceo-signature {
  margin-top: 34px !important;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: #4d4942;
}

.ceo-signature span { font-size: 12px; }
.ceo-signature strong { color: #24211d; font-size: 25px; }
.ceo-signature img {
  width: 138px;
  height: auto;
  display: block;
  object-fit: contain;
}
.mobile-only { display: none; }

@media (max-width: 800px) {
  .ceo-message-text-section { padding: 40px 32px; grid-template-columns: 1fr; gap: 32px; }
  .ceo-message-heading h2 { margin-top: 12px; font-size: 38px; }
}

@media (max-width: 800px) {
  .name-story { padding: 34px 28px; }
  .name-story-heading { display: block; }
  .name-story-heading > p:last-child { margin-top: 12px; }
  .name-story-meanings { grid-template-columns: 1fr; }
  .name-story-meanings article { min-height: 0; }
}

@media (max-width: 520px) {
  .name-story { margin-top: 36px; padding: 28px 20px; }
  .name-story-heading h3 { font-size: 24px; }
  .name-story > blockquote { font-size: 21px; line-height: 1.55; }
  .ceo-message-text-section { padding: 30px 22px; gap: 24px; }
  .ceo-message-heading h2 { font-size: 31px; line-height: 1.4; }
  .ceo-message-copy { font-size: 14px; line-height: 1.82; }
  .ceo-message-copy p + p { margin-top: 16px; }
  .ceo-signature {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    justify-items: end;
    gap: 5px 10px;
  }
  .ceo-signature span { grid-column: 1 / -1; }
  .ceo-signature img { width: 112px; }
  .mobile-only { display: block; }
}

.ci-story-image {
  width: 100%;
  height: auto;
  margin-top: 36px;
  display: block;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ci-story-long {
  width: min(100%, 945px);
  max-width: 945px;
  height: auto !important;
  aspect-ratio: 945 / 1663;
  margin-inline: auto;
}

.ci-guideline-image {
  max-width: 1180px;
  margin-inline: auto;
}

.map-placeholder {
  min-height: 300px;
  margin-top: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #8b847b;
  background: #ebe6de;
}

.product-toolbar {
  margin: 0 auto 24px;
  width: min(calc(100% - 96px), 1440px);
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.product-toolbar h2 {
  font-size: 32px;
  letter-spacing: -.06em;
}

.product-search {
  width: 310px;
  height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid #d9d1c6;
  border-radius: 6px;
  background: #fff;
}

.product-search input {
  width: 100%;
  height: 100%;
  padding: 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
}

.product-search button {
  width: 50px;
  height: 100%;
  border: 0;
  color: var(--beige-dark);
  background: transparent;
  cursor: pointer;
}

.product-grid-page {
  width: min(calc(100% - 96px), 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.catalog-card {
  overflow: hidden;
  border: 1px solid #e1d9cf;
  border-radius: 8px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 1.55;
  height: auto;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  -webkit-user-drag: none;
  user-select: none;
}

.catalog-thumb {
  display: block;
  margin: 14px 14px 0;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(203, 185, 157, .08);
}

.catalog-thumb-empty {
  width: 100%;
  aspect-ratio: 1.55;
  height: auto;
  display: block;
  background: transparent;
}

.detail-gallery img,
.detail-media img {
  -webkit-user-drag: none;
  user-select: none;
}

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

.catalog-card-body strong {
  display: block;
  font-size: 17px;
}

.catalog-title-link:hover strong,
.catalog-title-link:focus-visible strong {
  color: var(--beige-dark);
}

.catalog-price,
.catalog-note {
  display: block;
  margin-top: 9px;
  color: #777067;
  font-size: 13px;
}

.catalog-price b {
  color: var(--ink);
  font-size: 18px;
}

.catalog-price b.is-text {
  font-size: inherit;
}

.catalog-detail-link {
  width: 100%;
  height: 40px;
  margin-top: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--beige);
  color: var(--beige-dark);
  font-size: 13px;
}

.catalog-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.catalog-actions .catalog-detail-link {
  margin-top: 0;
}

.catalog-inquiry-link {
  border-color: var(--beige-dark);
  color: #fff;
  background: var(--beige-dark);
}

.catalog-inquiry-link[disabled],
.detail-inquiry[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.product-detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(320px, 1fr);
  gap: 52px;
  align-items: start;
}

.detail-gallery {
  min-width: 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
}

.detail-thumb-rail {
  display: grid;
  grid-template-columns: repeat(2, 50px);
  grid-template-rows: repeat(6, 50px);
  grid-auto-flow: column;
  align-content: start;
  gap: 8px;
}

.gallery-thumb {
  width: 50px;
  aspect-ratio: 1;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #ded7cd;
  background: transparent;
  cursor: pointer;
}

.gallery-thumb.is-active {
  border: 2px solid var(--beige-dark);
}

.gallery-thumb.is-empty {
  cursor: default;
  border-color: rgba(222, 215, 205, .45);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.detail-gallery[data-fit="contain"] .gallery-thumb img { object-fit: contain; }

.detail-main-image {
  height: 375px;
  min-height: 375px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e1d9cf;
  background: rgba(255,255,255,.72);
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  min-height: 375px;
  max-height: 375px;
  padding: 12px;
  display: block;
  object-fit: contain;
}

.detail-gallery[data-fit="contain"] .detail-main-image img { object-fit: contain; }

.detail-main-empty {
  width: 100%;
  min-height: 375px;
  background: transparent;
}

.product-detail-info {
  padding-top: 4px;
}

.product-detail-info h1 {
  margin-top: 10px;
  font-size: 32px;
  letter-spacing: -.055em;
}

.detail-category {
  color: var(--beige-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.detail-price {
  margin-top: 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #777067;
}

.detail-price b {
  margin-left: 8px;
  color: var(--ink);
  font-size: 22px;
}

.detail-price b.is-text {
  font-size: inherit;
}

.detail-inquiry {
  width: 100%;
  height: 50px;
  margin-top: 24px;
}

button.detail-inquiry,
button.catalog-detail-link {
  font: inherit;
}

.detail-note {
  margin-top: 20px;
  color: #676158;
  font-size: 14px;
  line-height: 1.75;
}

.product-detail-body {
  margin-top: 70px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.detail-description {
  margin-top: 22px;
  color: #5f5a52;
  line-height: 1.85;
}

.detail-media {
  margin-top: 34px;
  display: grid;
  gap: 16px;
}

.detail-description img,
.detail-media img,
.detail-media video {
  width: min(75%, 750px) !important;
  max-width: 750px !important;
  height: auto;
  display: block;
  margin-inline: auto;
  object-fit: contain;
}

.detail-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.admin-product-page {
  padding: 70px 0 90px;
}

.admin-product-page h1 {
  margin-top: 10px;
  font-size: 38px;
  letter-spacing: -.06em;
}

.admin-product-lead {
  max-width: 800px;
  margin-top: 18px;
  color: #686158;
  line-height: 1.8;
}

.admin-product-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-product-actions a {
  min-width: 180px;
  padding: 14px 20px;
  border: 1px solid var(--deep-charcoal);
  text-align: center;
  font-weight: 700;
}

.admin-primary-button { color: #fff; background: var(--deep-charcoal); }
.admin-secondary-button { color: var(--deep-charcoal); background: #fff; }
.admin-product-actions a:hover { color: #151515; border-color: var(--beige); background: var(--beige); }

.admin-category-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.admin-category-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}

.admin-category-grid strong { color: var(--ink); font-size: 20px; }
.admin-category-grid p { margin-top: 13px; color: #6c655c; line-height: 1.7; }
.admin-category-grid a { margin: 20px 14px 0 0; display: inline-block; color: var(--beige-dark); font-weight: 700; }
.admin-private-note { margin-top: 28px; color: #7c756c; font-size: 13px; }

@media (max-width: 760px) {
  .admin-product-page { padding: 48px 0 64px; }
  .admin-product-page h1 { font-size: 31px; }
  .admin-category-grid { grid-template-columns: 1fr; }
}

.page-footer {
  padding: 34px 48px;
  color: rgba(247,244,238,.7);
  background: var(--deep-charcoal);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1500px) {
  .inner-hero-content,
  .subnav-tabs,
  .product-toolbar,
  .product-grid-page { width: calc(100% - 72px); }
}

@media (max-width: 1180px) {
  .inner-hero-content,
  .subnav-tabs,
  .content-width,
  .product-toolbar,
  .product-grid-page { width: calc(100% - 48px); }

  .product-grid-page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail-summary { grid-template-columns: minmax(0, 620px) minmax(300px, 1fr); gap: 30px; }
  .detail-main-image,
  .detail-main-image img,
  .detail-main-empty { height: 340px; min-height: 340px; max-height: 340px; }
}

@media (max-width: 900px) {
  .inner-main { padding-bottom: 56px; }
  .inner-hero { min-height: 260px; }
  .inner-hero h1 { font-size: 36px; }
  .content-section { padding: 54px 0; }
  .vision-grid { grid-template-columns: 1fr; }
  .vision-card { min-height: 0; }
  .product-grid-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail-summary { grid-template-columns: 1fr; }
  .product-detail-info { max-width: 620px; }
}

@media (max-width: 640px) {
  .inner-hero-content,
  .subnav-tabs,
  .content-width,
  .product-toolbar,
  .product-grid-page { width: calc(100% - 28px); }

  .inner-main { padding-bottom: 40px; }
  .mobile-only { display: block; }
  .inner-hero { min-height: 225px; background-position: 58% center; }
  .inner-hero::after { background: linear-gradient(90deg, rgba(10,10,9,.88), rgba(10,10,9,.42) 80%, rgba(10,10,9,.18)); }
  .inner-hero h1 { margin-top: 7px; font-size: 29px; line-height: 1.35; }
  .inner-hero p { margin-top: 10px; font-size: 13px; }
  .subnav-tabs { overflow-x: auto; }
  .subnav-tabs a { min-width: 112px; padding: 15px 16px 13px; font-size: 13px; }
  .content-section { padding: 42px 0; }
  .content-section h2,
  .product-toolbar h2 { font-size: 26px; }
  .section-lead { font-size: 14px; }
  .ci-story-image { margin-top: 24px; }
  .map-placeholder { min-height: 220px; }

  .product-toolbar { margin-bottom: 18px; display: grid; gap: 16px; }
  .product-search { width: 100%; }
  .product-grid-page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-thumb { margin: 8px 8px 0; }
  .catalog-card img,
  .catalog-thumb-empty { aspect-ratio: 1.42; }
  .catalog-card img { padding: 6px; }
  .catalog-card-body { padding: 14px 12px 15px; }
  .catalog-card-body strong { font-size: 14px; }
  .catalog-price,
  .catalog-note { font-size: 11px; }
  .catalog-price b { font-size: 15px; }
  .catalog-actions { grid-template-columns: 1fr; }
  .catalog-detail-link { height: 38px; }

  .detail-gallery { width: min(100%, 520px); max-width: 520px; grid-template-columns: 1fr; gap: 10px; }
  .detail-main-image { order: 1; }
  .detail-thumb-rail { order: 2; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); grid-auto-flow: column; gap: 6px; }
  .gallery-thumb { width: 100%; }
  .detail-main-image,
  .detail-main-image img,
  .detail-main-empty { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 3; }
  .detail-description img,
  .detail-media img,
  .detail-media video { width: min(75%, 750px) !important; max-width: 75% !important; }
  .product-detail-info h1 { font-size: 27px; }
  .product-detail-body { margin-top: 48px; }
}

@media (max-width: 420px) {
  .product-grid-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-card-body { padding-inline: 10px; }
  .catalog-card-body strong { font-size: 13px; }
  .catalog-price,
  .catalog-note { font-size: 10px; }
  .catalog-price b { font-size: 14px; }
}
