/* QuanYing Pet — Nordic warm editorial design system (ported to WordPress) */

:root {
  --canvas: #faf6ef;
  --surface: #ffffff;
  --warm: #f4eddf;
  --wood: #eadfc9;
  --ink: #3e3a33;
  --ink-2: #5c5549;
  --ink-3: #80776a;
  --accent: #6b8f71;
  --accent-deep: #4e6f55;
  --accent-soft: #e8f0e5;
  --cta: #d98e4a;
  --cta-deep: #b9723a;
  --cta-soft: #f7e8d7;
  --line: rgba(62, 58, 51, 0.12);
  --line-soft: rgba(62, 58, 51, 0.07);
  --shadow-sm: 0 2px 12px rgba(62, 58, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(62, 58, 51, 0.10);
  --radius: 16px;
  --radius-lg: 24px;
  --container: min(1160px, 100% - clamp(32px, 6vw, 96px));
  --section-y: clamp(56px, 7vw, 96px);
  --font: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- neutralize Astra wrappers for full-bleed design --- */
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
#primary, .site-content, .ast-container, .entry-content { margin: 0; padding: 0; max-width: none; }
.ast-container { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.site .ast-container { width: auto; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.container { width: var(--container); margin: 0 auto; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; transition: none !important; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--cta); }
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); margin-top: 12px; }
.section-head .lead { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; min-height: 46px; transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 6px 18px rgba(217, 142, 74, 0.32); }
.btn-primary:hover { background: var(--cta-deep); }
.btn-ghost { background: rgba(255, 255, 255, 0.72); color: var(--ink); border-color: var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(250, 246, 239, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 4px 0; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--cta); transition: width 0.25s var(--ease); }
.main-nav a:hover, .main-nav a.active, .main-nav a.current-menu-item { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after, .main-nav a.current-menu-item::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--ink); }
.mobile-nav { display: none; }

/* banner — text on the right */
.banner { position: relative; display: flex; align-items: center; min-height: clamp(520px, 70vh, 700px); overflow: hidden; }
.banner-bg { position: absolute; inset: 0; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(250, 246, 239, 0.96) 0%, rgba(250, 246, 239, 0.86) 38%, rgba(250, 246, 239, 0.05) 72%); }
.banner-content { position: relative; z-index: 2; width: var(--container); margin: 0 auto; text-align: right; padding: 48px 0; }
.banner-content h1 { max-width: 26ch; margin-left: auto; margin-top: 18px; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.32; }
.banner-content .eyebrow { justify-content: flex-end; }
.banner-content .btn-row { justify-content: flex-end; margin-top: 28px; }

/* hook */
.hook-bar { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.hook-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hook-item { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border-left: 1px solid var(--line-soft); }
.hook-item:first-child { border-left: 0; }
.hook-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); }
.hook-item strong { display: block; font-size: 16px; }
.hook-item span:last-child { font-size: 13px; color: var(--ink-3); }

/* factory */
.factory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.factory-body { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.85; }
.factory-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.fs { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.fs strong { font-size: 1.5rem; font-weight: 800; color: var(--accent-deep); letter-spacing: -0.02em; }
.fs span { margin-left: 4px; font-size: 13px; color: var(--ink-3); }
.fs em { display: block; font-style: normal; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.factory-media video { width: 100%; aspect-ratio: 16/11; object-fit: contain; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: #fff; }

/* products — interactive showcase */
.showcase { position: relative; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
.showcase::before { content: ""; position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; filter: blur(42px); opacity: 0.15; pointer-events: none; z-index: 0; }
.showcase > * { position: relative; z-index: 1; }
.showcase-detail { display: none; }
.showcase.is-active { grid-template-columns: 55% 45%; }
.showcase.is-active .showcase-detail { display: block; position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; animation: showcaseDetailIn 0.35s var(--ease); }
@keyframes showcaseDetailIn { from { opacity: 0; transform: translateX(-14px) scale(0.97); } to { opacity: 1; transform: none; } }
.detail-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(104px, auto); grid-auto-flow: dense; gap: 12px; align-content: start; }
.detail-main { grid-column: span 2; grid-row: span 2; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); background: #fff; }
.detail-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-meta { padding: 16px 18px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line-soft); border-radius: 12px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.detail-meta h3 { font-size: 19px; line-height: 1.25; }
.info-block { background: rgba(250, 246, 239, 0.82); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.info-block strong { font-size: 13.5px; color: var(--ink); line-height: 1.3; }
.info-block span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.info-block.ib-img { padding: 7px; gap: 7px; }
.ib-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.ib-img figcaption { font-size: 12px; color: var(--ink-3); text-align: center; font-weight: 600; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; transition: grid-template-columns 0.35s var(--ease); }
.showcase.is-active .products-grid { grid-template-columns: repeat(2, 1fr); }
.p-card { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background-size: cover; background-position: center; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.35s var(--ease); }
.p-card::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.74); }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.p-card.is-selected { position: absolute; opacity: 0; pointer-events: none; }
.p-name { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; padding: 12px; }
.p-name-box { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; background: rgba(255, 255, 255, 0.62); border-radius: 10px; padding: 8px 16px; }
.p-name strong { font-size: clamp(14px, 1.3vw, 17px); font-weight: 700; color: var(--ink); line-height: 1.25; }
.p-name em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.p-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; width: fit-content; }
.p-en { color: var(--ink-3); font-size: 13.5px; letter-spacing: 0.02em; }

/* social links */
.social-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; }
.social-label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-2); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s, border-color 0.2s; }
.social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink); border-color: var(--accent); }

@media (hover: none) {
  .showcase.is-active { grid-template-columns: 1fr; }
  .showcase.is-active .showcase-detail { display: none; }
  .showcase.is-active .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* contact */
.contact-simple { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-simple .btn { font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.c-link { display: block; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); height: 100%; }
.c-link:hover .contact-card { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.c-icon { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--cta-soft); color: var(--cta-deep); }
.contact-card strong { display: block; font-size: 15px; }
.contact-card a { font-size: 1.05rem; font-weight: 700; color: var(--ink); word-break: break-all; }
.contact-card em { display: block; font-style: normal; font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* story + team */
.story-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.story-copy h1 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); margin-top: 12px; }
.story-copy p { color: var(--ink-2); font-size: 1.0625rem; margin-top: 16px; }
.story-founder { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.story-founder .avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--warm); flex: none; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); }
.story-founder .avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-founder strong { display: block; }
.story-founder span { font-size: 13px; color: var(--ink-3); }
.team-card { position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.team-label { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cta); }
.team-card p { font-size: 1.2rem; line-height: 1.6; color: var(--ink); font-weight: 600; margin-top: 14px; }
.team-mark { position: absolute; top: 8px; right: 22px; font-size: 84px; line-height: 1; color: var(--accent-soft); pointer-events: none; }
.vision-band { background: var(--accent-soft); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); text-align: center; margin-top: clamp(28px, 4vw, 48px); }
.vision-band p { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; color: var(--accent-deep); max-width: 38ch; margin: 0 auto; line-height: 1.6; }

/* oem + export */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.info-card .num { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--cta); }
.info-card h3 { margin-top: 10px; font-size: 18px; }
.info-card p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.export-banner { background: var(--accent-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.export-banner .eyebrow { color: #dcebd9; }
.export-banner .eyebrow::before { background: var(--cta); }
.export-banner p { color: rgba(255, 255, 255, 0.85); font-size: 1.0625rem; max-width: 70ch; margin-top: 16px; }
.export-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.export-points .pt { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 18px 20px; }
.export-points .pt strong { display: block; font-size: 1.5rem; }
.export-points .pt span { font-size: 13px; opacity: 0.85; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line-soft); padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--ink-2); max-width: 40ch; }
.footer-nav { display: grid; gap: 12px; align-content: start; }
.footer-nav a { color: var(--ink-2); }
.footer-nav a:hover { color: var(--accent-deep); }
.footer-links { display: grid; gap: 12px; align-content: start; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.footer-links a:hover { color: var(--accent-deep); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 13px; }

/* floating contact */
.floating-contact { position: fixed; right: 16px; top: 50%; transform: translateY(-50%) translateX(16px); z-index: 70; display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.floating-contact.is-in { opacity: 1; transform: translateY(-50%) translateX(0); }
.fc-item { display: flex; align-items: center; justify-content: center; gap: 6px; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-md); border: 1px solid var(--line-soft); transition: width 0.25s var(--ease), background 0.2s; }
.fc-item span { font-size: 0; white-space: nowrap; opacity: 0; transition: opacity 0.2s; }
.fc-item:hover { width: auto; padding: 0 18px; border-radius: 999px; }
.fc-item:hover span { font-size: 13px; font-weight: 700; opacity: 1; }
.fc-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.fc-whatsapp:hover { background: #1eb955; }

/* generic page hero (inner pages) */
.page-hero { padding: clamp(40px, 6vw, 72px) 0; background: var(--warm); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 14px; max-width: 24ch; }

/* responsive */
@media (max-width: 1023px) {
  .factory-grid, .story-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .showcase.is-active { grid-template-columns: 1fr; }
  .showcase.is-active .showcase-detail { display: none; }
  .showcase.is-active .products-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cards-3, .export-points { grid-template-columns: 1fr; }
  .hook-grid { grid-template-columns: 1fr; }
  .hook-item { border-left: 0; border-top: 1px solid var(--line-soft); }
  .hook-item:first-child { border-top: 0; }
  .banner-content { text-align: left; }
  .banner-content h1 { margin-left: 0; }
  .banner-content .eyebrow { justify-content: flex-start; }
  .banner-content .btn-row { justify-content: flex-start; }
}
@media (max-width: 639px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: flex; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
  .mobile-nav a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .factory-stats { grid-template-columns: 1fr 1fr; }
  .floating-contact { right: 10px; }
}
