﻿@charset "utf-8";
/* =========================================================
   oy template - pages.css
   Page layer: home / products / about / OEM / blog / contact
   ========================================================= */

/* ---------- Homepage banner (admin slideshow carousel; default background when empty) ---------- */
.hero {
  position: relative;
  padding: 120px 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)),
    url('https://placehold.co/1920x700/e8e8e8/333?text=Furniture+Factory') center / cover no-repeat;
}
/* Images uploaded under Admin > Site Settings > Slideshow render as the carousel layer */
.hero .hero-swiper { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; }
.hero .hero-swiper .swiper-slide { background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero .hero-swiper .swiper-slide::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, .45);
}
.hero .hero-swiper .swiper-pagination { bottom: 18px; }
.hero .hero-swiper .swiper-pagination-bullet { background: #fff; opacity: .5; }
.hero .hero-swiper .swiper-pagination-bullet-active { background: var(--gold); opacity: 1; }
.hero .hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: 42px; margin-bottom: 16px; }
.hero p { font-size: 18px; margin: 0 auto 30px; max-width: 700px; }

/* ---------- Product grid (homepage / product list) ---------- */
/* auto-fill (not auto-fit): empty tracks are kept even with only 1-2
   products, so a card is never stretched into a full-width banner */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.product-card {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-card .text { padding: 20px; }
.product-card h3 { margin-bottom: 8px; color: var(--dark); }
.product-card p { font-size: 14px; color: var(--muted); }

/* ---------- Two-column layout (about / inquiry) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col .section-title { text-align: left; margin-bottom: 20px; }
.two-col p { margin-bottom: 14px; }

/* ---------- Forms ---------- */
.form-box { background: #f7f7f7; padding: 30px; border-radius: var(--radius); }
.form-box h2,
.form-box h3 { margin-bottom: 10px; color: var(--dark); }
.form-box label { display: block; margin: .8rem 0 .3rem; font-weight: 600; }
.form-box input,
.form-box textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font: inherit;
}
.form-box textarea { min-height: 140px; resize: vertical; }
.form-box input:focus,
.form-box textarea:focus { outline: none; border-color: var(--gold); }

/* ---------- Homepage: inquiry / quotation block ---------- */
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 52px;
  align-items: start;
}

/* Left column: pitch + contact details */
.inquiry-info h3 { font-size: 26px; line-height: 1.32; color: var(--dark); margin-bottom: 12px; }
.inquiry-info > p { color: var(--muted); margin-bottom: 28px; }

.contact-list { display: grid; gap: 18px; margin-bottom: 30px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fdf4e9;
  border: 1px solid #f0e0cb;
  color: var(--gold);
}
.contact-list .ci svg { width: 19px; height: 19px; }
.contact-list .ct { min-width: 0; padding-top: 2px; }
.contact-list em {
  display: block; font-style: normal;
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.contact-list a,
.contact-list .v {
  display: block; font-size: 15.5px; font-weight: 700; color: var(--dark);
  word-break: break-word; line-height: 1.45;
}
.contact-list a:hover { color: var(--gold); }

.trust-list { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-list li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 40px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--dark);
}
.trust-list li::before { content: "\2713"; color: var(--gold); font-weight: 700; }

/* Right column: the quotation form card */
.quote-form {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .07);
  padding: 30px 28px 32px;
}
.quote-form .q-head { margin-bottom: 20px; }
.quote-form .q-head strong { display: block; font-size: 19px; color: var(--dark); margin-bottom: 4px; }
.quote-form .q-head span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.quote-form .q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 13px 15px;
  margin: 0 0 14px;
  border: 1px solid #dedede;
  border-radius: 6px;
  font: inherit;
  color: var(--dark);
  background: #fcfcfc;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.quote-form input::placeholder,
.quote-form textarea::placeholder { color: #a9a9a9; }
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 150, 102, .15);
}
.quote-form textarea { min-height: 126px; resize: vertical; margin-bottom: 16px; }
.quote-form .btn-block { width: 100%; }
.quote-form .btn[disabled] { opacity: .7; cursor: default; }

/* Honeypot: off-screen, never shown to real visitors */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Form result message */
.form-tip {
  display: none;
  margin: 0 0 16px;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.55;
}
.form-tip.is-success { background: #eef8f0; border: 1px solid #cfe8d5; color: #1e7a3c; }
.form-tip.is-error { background: #fdf1f0; border: 1px solid #f2d3cf; color: #b91616; }

/* ---------- Inner page banner ---------- */
.page-banner { background: #dddddd; padding: 3rem 0; text-align: center; }
.page-banner h1 { font-size: 2.2rem; color: var(--dark); }

/* ---------- Inner page body ---------- */
.page-body { max-width: 900px; margin: 0 auto; }
.page-body h2 { color: var(--dark); margin-bottom: 16px; }
.page-body h3 { color: var(--dark); margin: 2rem 0 10px; }
.page-body p { margin: 1rem 0; }
.page-body ul { padding-left: 1.5rem; line-height: 1.9; }
.page-body ul li { list-style: disc; }

/* ---------- OEM service items (entries inside the /oem/ page body) ---------- */
.service-item {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  background: var(--light);
}
.service-item h3 { color: var(--dark); }

/* ---------- OEM service cards (homepage 4-column row) ----------
   Do NOT reuse .product-grid here: its track is minmax(280px,1fr) and the
   1200px container leaves only 1160px of content width, so
   4 x 280 + 3 x 30 = 1210 > 1160 would push the 4th card onto a second row.
   The row is therefore hard-wired: 4 columns on desktop, 2 on tablet, 1 on phone. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fdf9f3;
  border: 1px solid #e3d3bd;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  padding: 24px 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .11);
  border-color: #dcc9ae;
}
.service-card h3 { color: var(--dark); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------- Blog list (articles published in the admin news centre) ---------- */
.blog-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.blog-item h3 a { color: var(--dark); }
.blog-item h3 a:hover { color: var(--gold); }
.blog-date { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }

/* Card grid. 3 columns on desktop, 2 on tablet, 1 on phones - no horizontal scroll. */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0, 0, 0, .11); border-color: #dcc9ae; }
.blog-card-media { display: block; overflow: hidden; background: #f2f2f2; }
.blog-card-media img { display: block; width: 100%; height: 190px; object-fit: cover; transition: transform .35s; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 20px; }
.blog-card-body h2,
.blog-card-body h3 { font-size: 1.05rem; line-height: 1.45; margin: 0 0 10px; color: var(--dark); }
.blog-card-body h2 a,
.blog-card-body h3 a { color: var(--dark); }
.blog-card-body h2 a:hover,
.blog-card-body h3 a:hover { color: var(--gold); }
.blog-card-body p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.blog-card-body .card-more { margin-top: auto; padding-top: 12px; }

/* ---------- Article detail ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.article-meta a { color: var(--gold); }
.article-sep { color: #c9c9c9; }
.article-lead {
  font-size: 1.08rem; line-height: 1.8; color: var(--dark);
  border-left: 4px solid var(--gold); background: var(--light);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 30px;
}
.article-hero { margin: 0 0 34px; }
.article-hero img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.article-content { font-size: 1rem; line-height: 1.85; color: #333; }
.article-content h2 { color: var(--dark); font-size: 1.35rem; margin: 2.2rem 0 .9rem; }
.article-content h3 { color: var(--dark); font-size: 1.15rem; margin: 1.8rem 0 .7rem; }
.article-content p { margin: 1rem 0; }
.article-content ul,
.article-content ol { padding-left: 1.4rem; margin: 1rem 0; }
.article-content ul li { list-style: disc; margin: .45rem 0; }
.article-content ol li { list-style: decimal; margin: .45rem 0; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 14px; }
.article-content th,
.article-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-content th { background: var(--light); color: var(--dark); }
.article-content blockquote { border-left: 4px solid var(--gold); background: var(--light); padding: 12px 18px; margin: 1.2rem 0; color: var(--muted); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.article-nav-item {
  display: block; padding: 16px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.article-nav-item:hover { border-color: var(--gold); box-shadow: 0 8px 20px rgba(0, 0, 0, .07); transform: translateY(-2px); }
.article-nav-item.is-next { text-align: right; }
.article-nav-item.is-next:only-child { grid-column: 2 / 3; }
.article-nav-label { display: block; font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.article-nav-title { display: block; font-size: 14px; font-weight: 600; color: var(--dark); line-height: 1.5; }
.related-posts { margin-top: 70px; }
.related-posts .section-title { margin-bottom: 30px; }

/* ---------- Contact page two-column ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.info-block h2 { color: var(--dark); margin-bottom: 16px; }
.info-block p { margin: .8rem 0; line-height: 1.7; }

/* ---------- Product sub-category entries (parent column of the product centre) ---------- */
.sub-cat-box ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.sub-cat-box li { margin: 0; }
.sub-cat-box li a {
  display: block; padding: 30px 20px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08); text-align: center; font-weight: 600;
  color: var(--dark); transition: transform .25s, box-shadow .25s, color .25s;
}
.sub-cat-box li a:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); color: var(--gold); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #c9c9c9; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--dark); font-weight: 600; }

/* ---------- List / detail lead paragraph ---------- */
.page-lead { max-width: 900px; margin: 0 auto 40px; color: var(--muted); text-align: center; }
.page-lead-left { text-align: left; margin: 0 0 18px; }

/* ---------- Card "view details" link ---------- */
.card-more { margin-top: 10px; font-weight: 600; }
.card-more a { color: var(--gold); }
.card-more a:hover { color: var(--gold-dark); }

/* ---------- Product list: top category filter bar ---------- */
.cat-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 42px; }
.cat-pill {
  display: inline-block; padding: 10px 16px; border-radius: 40px; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); color: var(--dark);
  font-size: 14px; font-weight: 600; line-height: 1.2;
  transition: color .22s, border-color .22s, background .22s, box-shadow .22s, transform .22s;
}
.cat-pill:hover {
  color: var(--gold); border-color: var(--gold);
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}
.cat-pill.is-active {
  background: var(--gold); border-color: var(--gold); color: #fff;
  box-shadow: 0 6px 16px rgba(200, 150, 102, .35);
}
.cat-pill.is-active:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: none; }

/* ---------- Product list: bottom category cards ---------- */
.cat-browse { margin-top: 70px; padding: 56px 0 0; border-top: 1px solid var(--line); }
.cat-browse .section-title { font-size: 28px; margin-bottom: 40px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cat-card {
  position: relative; display: block; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cat-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: var(--gold); transform: scaleY(0); transform-origin: top center; transition: transform .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0, 0, 0, .1); border-color: #d9d9d9; }
.cat-card:hover::before { transform: scaleY(1); }
.cat-card-name { display: block; font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.cat-card-desc { display: block; font-size: 14px; color: var(--muted); line-height: 1.65; }
.cat-card-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--gold); }
.cat-card.is-current { border-color: var(--gold); background: #fdfaf7; }
.cat-card.is-current::before { transform: scaleY(1); }
.cat-card.is-current .cat-card-more { color: var(--dark); }
.cat-badge {
  position: absolute; right: 14px; top: 14px; padding: 3px 9px; border-radius: 20px;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.cat-browse-note { margin-top: 34px; text-align: center; font-size: 14px; color: var(--muted); }
.cat-browse-note a { color: var(--gold); font-weight: 600; }

/* ---------- Product list: bottom button group ---------- */
.list-cta { text-align: center; margin-top: 40px; }
.list-cta .btn + .btn { margin-left: 10px; }

/* ---------- Product list: pager ---------- */
.pager-wrap { margin-top: 50px; text-align: center; }
.pager-count { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.pager-count strong { color: var(--dark); }
.pager { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pager a,
.pager span.pager-nav,
.pager span.pager-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  color: var(--dark); font-size: 14px; font-weight: 600; line-height: 1;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.pager a:hover { color: var(--gold); border-color: var(--gold); box-shadow: 0 6px 16px rgba(0, 0, 0, .07); }
.pager span.pager-num.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.pager span.is-disabled { opacity: .4; }
.pager .pager-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; color: var(--muted); }

/* ---------- Responsive ---------- */
/* Medium screens (tablet / small laptop): OEM row drops to 2 columns so text is not squeezed */
@media (max-width: 992px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .inquiry-grid { gap: 36px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .two-col,
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 24px; margin-bottom: 34px; }
  /* Category filter bar: smaller buttons */
  .cat-filter { gap: 9px; margin-bottom: 30px; }
  .cat-pill { padding: 8px 14px; font-size: 13px; }
  /* Bottom category cards */
  .cat-browse { margin-top: 50px; padding: 40px 0 0; }
  .cat-browse .section-title { font-size: 22px; margin-bottom: 26px; }
  .cat-browse-note { margin-top: 26px; font-size: 13px; }
  /* Bottom buttons: full-width stack */
  .list-cta .btn { display: block; width: 100%; }
  .list-cta .btn + .btn { margin: 12px 0 0; }
  /* OEM service row: single column on phones */
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 20px; }
  /* Inquiry block: stack the pitch above the form */
  .inquiry-grid { grid-template-columns: 1fr; gap: 34px; }
  .inquiry-info h3 { font-size: 22px; }
  .quote-form { padding: 24px 20px 26px; }
  /* Pager: smaller buttons */
  .pager-wrap { margin-top: 36px; }
  .pager { gap: 6px; }
  .pager a,
  .pager span.pager-nav,
  .pager span.pager-num { min-width: 38px; height: 38px; padding: 0 11px; font-size: 13px; }
  .pager .pager-nav { padding: 0 12px; }
  /* Blog: single column so cards stay readable, prev/next stack vertically */
  .blog-grid { grid-template-columns: 1fr; gap: 22px; }
  .blog-card-media img { height: 210px; }
  .article-lead { font-size: 1rem; padding: 14px 16px; }
  .article-nav { grid-template-columns: 1fr; gap: 14px; }
  .article-nav-item.is-next { text-align: left; }
  .article-nav-item.is-next:only-child { grid-column: auto; }
  .related-posts { margin-top: 50px; }
}

/* Small phones: two-column category cards, lead text clamped to two lines */
@media (max-width: 640px) {
  /* Category filter becomes a single horizontally scrollable row, bleeding to both
     screen edges so half a button peeks out and hints that it can be swiped */
  .cat-filter {
    flex-wrap: nowrap; justify-content: flex-start; gap: 8px;
    margin: 0 -20px 28px; padding: 0 20px 4px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .cat-filter::-webkit-scrollbar { display: none; }
  .cat-pill { flex: 0 0 auto; padding: 8px 14px; font-size: 13px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 16px 14px 14px; }
  .cat-card-name { font-size: 15px; margin-bottom: 6px; }
  .cat-card-desc {
    font-size: 12.5px; line-height: 1.5; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .cat-card-more { margin-top: 10px; font-size: 12.5px; }
  .cat-badge { position: static; display: inline-block; margin-bottom: 8px; font-size: 10px; padding: 2px 8px; }
  /* Inquiry form: one field per row so nothing gets squeezed */
  .quote-form .q-row { grid-template-columns: 1fr; gap: 0; }
  .trust-list li { font-size: 12.5px; padding: 6px 11px; }
  /* Blog: tighter cards, smaller body text on narrow phones */
  .blog-card-body { padding: 16px; }
  .blog-card-media img { height: 180px; }
  .article-content { font-size: .97rem; line-height: 1.8; }
  .article-content h2 { font-size: 1.2rem; }
  .article-content h3 { font-size: 1.05rem; }
  .article-meta { font-size: 13px; gap: 8px; }
}
