/*
Theme Name: Sammul China
Theme URI: https://www.sammul.co.kr
Author: China Distributor
Description: 韩国加平我们的山泉（우리샘물）中国官方网站定制主题
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
License: GPL v2 or later
Text Domain: sammul-cn
*/

:root {
  --sx-deep: #073B5C;
  --sx-deep2: #062C44;
  --sx-teal: #0E7A9E;
  --sx-aqua: #2FA8B8;
  --sx-mist: #EAF4F8;
  --sx-ice: #F5FAFC;
  --sx-ink: #16303F;
  --sx-slate: #55707F;
  --sx-line: #DCE8EE;
  --sx-gold: #C9A86A;
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--sx-ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5,
.wp-block-heading {
  font-family: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  font-weight: 700;
  letter-spacing: .01em;
}

a { transition: color .2s ease; }

.wp-element-button,
.wp-block-button__link {
  border-radius: 999px !important;
  font-weight: 600;
  padding: 14px 32px !important;
  font-size: 15px;
  letter-spacing: .04em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wp-element-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7,59,92,.22); }
.is-style-outline .wp-block-button__link {
  border-width: 1.5px !important;
  padding: 12.5px 30px !important;
}

/* ---------- Header ---------- */
.sx-hdr-wrap {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220,232,238,.9);
}
.sx-hdr { min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
.sx-logo { display: flex; align-items: center; gap: 11px; text-decoration: none !important; color: var(--sx-deep); }
.sx-logo svg { width: 34px; height: 34px; flex: none; }
.sx-logo .sx-logo-tx { display: flex; flex-direction: column; }
.sx-logo .sx-logo-cn { font-size: 19px; font-weight: 800; line-height: 1.15; letter-spacing: .02em; font-family: "PingFang SC","Microsoft YaHei",sans-serif; }
.sx-logo .sx-logo-kr { font-size: 10.5px; color: var(--sx-slate); letter-spacing: .12em; text-transform: uppercase; }
.sx-hdr .wp-block-navigation { font-size: 15px; font-weight: 500; }
.sx-hdr .wp-block-navigation .wp-block-navigation-item__content { color: var(--sx-ink); padding: 6px 2px !important; }
.sx-hdr .wp-block-navigation .wp-block-navigation-item__content:hover,
.sx-hdr .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { color: var(--sx-teal); }
.sx-hdr .wp-block-navigation .wp-block-navigation-item { margin: 0 14px; }
.sx-hdr .wp-block-navigation .wp-block-navigation-item:last-child { margin-right: 0; }
@media (max-width: 781px) {
  .wp-block-navigation__responsive-container.is-menu-open { padding-top: 90px !important; }
}

/* ---------- Shared ---------- */
.sx-section { padding-top: 96px; padding-bottom: 96px; }
.sx-section-sm { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 781px) { .sx-section { padding-top: 64px; padding-bottom: 64px; } }

.sx-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  color: var(--sx-teal); text-transform: uppercase; margin-bottom: 18px;
}
.sx-eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--sx-aqua); display: inline-block;
}
.sx-eyebrow.sx-center::after {
  content: ""; width: 26px; height: 2px; background: var(--sx-aqua); display: inline-block;
}
.sx-section-head h2, .sx-banner-text h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; margin: 0 0 16px; color: var(--sx-deep); }
.sx-section-head p { color: var(--sx-slate); font-size: 16px; line-height: 1.9; margin: 0; }

.sx-card {
  background: #fff; border: 1px solid var(--sx-line); border-radius: 18px;
  padding: 34px 30px; height: 100%; box-sizing: border-box;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sx-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(7,59,92,.10); border-color: #BFD9E4; }
.sx-card .sx-card-ic {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--sx-mist); color: var(--sx-teal); margin-bottom: 20px;
}
.sx-card .sx-card-ic svg { width: 26px; height: 26px; }
.sx-card h3 { font-size: 19px; margin: 0 0 10px; color: var(--sx-deep); }
.sx-card p { margin: 0; color: var(--sx-slate); font-size: 14.5px; line-height: 1.85; }

/* ---------- Hero ---------- */
.sx-hero .wp-block-cover__inner-container { width: 100%; }
.sx-hero-inner { max-width: 1200px; margin: 0 auto; }
.sx-hero .sx-eyebrow { color: #9FD8E6; }
.sx-hero .sx-eyebrow::before, .sx-hero .sx-eyebrow::after { background: rgba(159,216,230,.8); }
.sx-hero h1 {
  font-size: clamp(34px, 5.2vw, 60px); line-height: 1.22; color: #fff;
  margin: 0 0 22px; letter-spacing: .02em;
}
.sx-hero p.sx-hero-sub { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.95; color: rgba(255,255,255,.88); max-width: 620px; margin: 0 0 36px; }
.sx-hero-pill {
  display: inline-block; margin-bottom: 22px; padding: 7px 18px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #EAF6FA; font-size: 13px; letter-spacing: .12em;
}
@media (min-width: 782px) { .sx-hero { min-height: 640px; } }

/* ---------- Stats ---------- */
.sx-stats { background: var(--sx-deep); }
.sx-stat { text-align: center; color: #fff; padding: 10px 8px; }
.sx-stat b {
  display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: #fff;
  font-family: "PingFang SC","Microsoft YaHei",sans-serif; line-height: 1.1;
}
.sx-stat b small { font-size: .5em; font-weight: 600; margin-left: 2px; color: #9FD8E6; }
.sx-stat span { display: block; margin-top: 10px; font-size: 13.5px; color: rgba(255,255,255,.72); letter-spacing: .08em; }

/* ---------- Product cards ---------- */
.sx-pcard {
  background: #fff; border: 1px solid var(--sx-line); border-radius: 20px;
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.sx-pcard:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(7,59,92,.12); }
.sx-pcard .sx-pcard-img {
  background: linear-gradient(160deg, #F2F9FC 0%, #E2F0F6 100%);
  padding: 34px 24px 20px; text-align: center;
}
.sx-pcard .sx-pcard-img img { width: 100%; max-width: 210px; height: 230px; object-fit: contain; margin: 0 auto; }
.sx-pcard .sx-pcard-body { padding: 22px 24px 28px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.sx-pcard h3 { font-size: 18.5px; color: var(--sx-deep); margin: 0 0 6px; }
.sx-pcard .sx-pcard-kr { font-size: 12px; color: #8AA3B0; letter-spacing: .08em; margin-bottom: 12px; }
.sx-pcard .sx-pcard-spec {
  font-size: 13.5px; color: var(--sx-slate); margin-bottom: 18px;
}
.sx-pcard .sx-pcard-tag {
  margin-top: auto; display: inline-block; align-self: center;
  font-size: 13px; font-weight: 600; color: var(--sx-teal);
  border: 1px solid #BFD9E4; border-radius: 999px; padding: 7px 20px; text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.sx-pcard:hover .sx-pcard-tag { background: var(--sx-teal); color: #fff; border-color: var(--sx-teal); }

/* ---------- Values ---------- */
.sx-value { text-align: center; padding: 8px 6px; }
.sx-value b { display: block; font-size: 20px; color: var(--sx-deep); margin-bottom: 4px; }
.sx-value em { display: block; font-style: normal; font-size: 11px; letter-spacing: .16em; color: var(--sx-aqua); text-transform: uppercase; margin-bottom: 10px; }
.sx-value p { font-size: 13px; color: var(--sx-slate); line-height: 1.7; margin: 0; }

/* ---------- CTA ---------- */
.sx-cta {
  background: linear-gradient(135deg, #073B5C 0%, #0E7A9E 100%);
  border-radius: 24px; color: #fff; padding: 64px 48px; text-align: center;
}
.sx-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 0 0 14px; }
.sx-cta p { color: rgba(255,255,255,.82); margin: 0 0 30px; font-size: 16px; }

/* ---------- Sub page hero ---------- */
.sx-subhero .wp-block-cover__inner-container { width: 100%; }
.sx-subhero-inner { max-width: 1200px; margin: 0 auto; }
.sx-subhero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin: 0 0 12px; }
.sx-subhero p { color: rgba(255,255,255,.82); margin: 0; font-size: 16px; letter-spacing: .06em; }

/* ---------- Prose / pages ---------- */
.sx-prose { max-width: 780px; }
.sx-prose h2 { font-size: 30px; color: var(--sx-deep); margin: 0 0 20px; }
.sx-prose h3 { font-size: 21px; color: var(--sx-deep); margin: 36px 0 14px; }
.sx-prose p { color: #40596A; font-size: 16px; line-height: 2; margin: 0 0 18px; }
.sx-sign { margin-top: 30px; color: var(--sx-slate); font-size: 14.5px; line-height: 1.9; }
.sx-sign b { color: var(--sx-deep); font-size: 16px; }

/* timeline */
.sx-timeline { position: relative; margin-top: 20px; }
.sx-timeline::before {
  content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--sx-aqua), var(--sx-mist));
}
.sx-tl-item { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 34px; padding: 0 0 38px 0; }
.sx-tl-item:last-child { padding-bottom: 0; }
.sx-tl-year {
  text-align: right; font-family: "PingFang SC","Microsoft YaHei",sans-serif;
  font-weight: 800; font-size: 22px; color: var(--sx-teal); padding-top: 2px;
}
.sx-tl-body { position: relative; padding-left: 30px; }
.sx-tl-body::before {
  content: ""; position: absolute; left: -7px; top: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--sx-aqua);
}
.sx-tl-body h4 { font-family: "PingFang SC","Microsoft YaHei",sans-serif; font-size: 16px; margin: 0 0 8px; color: var(--sx-deep); }
.sx-tl-body p { font-size: 14.5px; color: var(--sx-slate); line-height: 1.9; margin: 0; }
@media (max-width: 600px) {
  .sx-timeline::before { left: 52px; }
  .sx-tl-item { grid-template-columns: 52px 1fr; gap: 18px; }
  .sx-tl-year { font-size: 17px; }
  .sx-tl-body { padding-left: 22px; }
}

/* product detail */
.sx-pdetail {
  background: #fff; border: 1px solid var(--sx-line); border-radius: 22px;
  padding: 44px; display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start;
  margin-bottom: 40px;
}
.sx-pdetail .sx-pd-img {
  background: linear-gradient(160deg, #F2F9FC, #DFEEF5); border-radius: 16px; padding: 30px;
  position: sticky; top: 100px;
}
.sx-pdetail .sx-pd-img img { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.sx-pdetail h2 { font-size: 28px; color: var(--sx-deep); margin: 0 0 4px; }
.sx-pdetail .sx-pd-kr { color: #8AA3B0; font-size: 13px; letter-spacing: .1em; margin-bottom: 20px; }
.sx-pdetail .sx-pd-desc { color: #40596A; font-size: 15.5px; line-height: 1.95; margin-bottom: 26px; }
.sx-mineral { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0 0 28px; }
.sx-mineral div {
  background: var(--sx-ice); border: 1px solid var(--sx-line); border-radius: 12px;
  padding: 16px 8px; text-align: center;
}
.sx-mineral b { display: block; font-family: "PingFang SC","Microsoft YaHei",sans-serif; font-size: 17px; color: var(--sx-teal); }
.sx-mineral b small { font-size: 11px; color: #8AA3B0; font-weight: 500; }
.sx-mineral span { display: block; font-size: 12px; color: var(--sx-slate); margin-top: 4px; }
@media (max-width: 900px) {
  .sx-pdetail { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
  .sx-pdetail .sx-pd-img { position: static; }
  .sx-mineral { grid-template-columns: repeat(3, 1fr); }
}
table.sx-spec { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; }
table.sx-spec th, table.sx-spec td { border: 1px solid var(--sx-line); padding: 12px 16px; text-align: left; line-height: 1.7; vertical-align: top; }
table.sx-spec th { width: 130px; background: var(--sx-ice); color: var(--sx-deep); font-weight: 600; white-space: nowrap; }
table.sx-spec td { color: #40596A; }
.sx-note {
  font-size: 13.5px; color: var(--sx-slate); background: var(--sx-ice);
  border-left: 3px solid var(--sx-aqua); border-radius: 0 10px 10px 0; padding: 14px 18px; line-height: 1.8;
}

/* process */
.sx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.sx-step {
  background: #fff; border: 1px solid var(--sx-line); border-radius: 14px; padding: 24px 20px;
  position: relative; counter-increment: step;
}
.sx-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
  font-size: 26px; font-weight: 800; color: var(--sx-aqua); display: block; margin-bottom: 10px;
}
.sx-step h4 { font-family: "PingFang SC","Microsoft YaHei",sans-serif; font-size: 15px; margin: 0 0 6px; color: var(--sx-deep); }
.sx-step p { font-size: 13px; color: var(--sx-slate); line-height: 1.7; margin: 0; }
.sx-steps { counter-reset: step; }
@media (max-width: 900px) { .sx-steps { grid-template-columns: repeat(2, 1fr); } }

/* contact */
.sx-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sx-cbox { border: 1px solid var(--sx-line); border-radius: 20px; padding: 40px; background: #fff; height: 100%; }
.sx-cbox.sx-kr { background: linear-gradient(160deg, #073B5C, #0E6E90); color: #fff; border: none; }
.sx-cbox h2 { color: var(--sx-deep); font-size: 24px; margin: 0 0 22px; }
.sx-cbox.sx-kr h2 { color: #fff; }
.sx-crow { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px dashed rgba(85,112,127,.22); font-size: 14.5px; line-height: 1.7; }
.sx-cbox.sx-kr .sx-crow { border-bottom-color: rgba(255,255,255,.18); }
.sx-crow b { color: var(--sx-slate); font-weight: 500; }
.sx-crow span { color: var(--sx-ink); }
.sx-cbox.sx-kr .sx-crow b { color: rgba(255,255,255,.65); }
.sx-cbox.sx-kr .sx-crow span { color: #fff; }
.sx-crow:last-child { border-bottom: none; }
.sx-cbox a { color: #0E7A9E; text-decoration: none; }
.sx-cbox a:hover { text-decoration: underline; }
.sx-cbox.sx-kr a { color: #9FD8E6; }
@media (max-width: 781px) { .sx-contact-grid { grid-template-columns: 1fr; } .sx-cbox { padding: 30px 24px; } }

/* ---------- Footer ---------- */
.sx-footer { background: var(--sx-deep2); color: rgba(255,255,255,.72); margin-top: 0; padding-top: 64px; padding-bottom: 30px; }
.sx-footer h4 { color: #fff; font-family: "PingFang SC","Microsoft YaHei",sans-serif; font-size: 15px; margin: 0 0 18px; letter-spacing: .08em; }
.sx-footer p, .sx-footer a { font-size: 13.5px; line-height: 2; color: rgba(255,255,255,.66); text-decoration: none; }
.sx-footer a:hover { color: #9FD8E6; }
.sx-footer .sx-ftr-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.sx-footer .sx-ftr-logo .t { color: #fff; font-weight: 800; font-size: 17px; }
.sx-ftr-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px;
  font-size: 12.5px; color: rgba(255,255,255,.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.sx-ftr-bottom a { color: rgba(255,255,255,.62); text-decoration: none; }
.sx-ftr-bottom a:hover { color: #fff; }
.sx-ftr-links li { list-style: none; margin-bottom: 6px; }
.sx-ftr-links { padding: 0; margin: 0; }

/* image float helper */
.sx-img-round { border-radius: 20px; overflow: hidden; }
.sx-img-round img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* light eyebrow & cards on image covers */
.sx-eyebrow.sx-light { color: #9FD8E6; }
.sx-eyebrow.sx-light::before, .sx-eyebrow.sx-light::after { background: rgba(159,216,230,.85); }
.sx-darkcard {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px; padding: 24px; height: 100%; box-sizing: border-box;
  backdrop-filter: blur(4px);
}
.sx-darkcard h4 { color: #fff; font-family: "PingFang SC","Microsoft YaHei",sans-serif; font-size: 16px; margin: 0 0 8px; }
.sx-darkcard p { color: rgba(255,255,255,.78); font-size: 13.5px; line-height: 1.85; margin: 0; }

.sx-lead { font-size: 17px; color: #40596A; line-height: 2; margin: 0 0 16px; }
.sx-quote {
  font-family: "Songti SC","Noto Serif SC",serif; font-size: 21px; line-height: 1.9;
  color: var(--sx-deep); border-left: 3px solid var(--sx-aqua); padding-left: 22px; margin: 0;
}
@media (max-width: 600px) { .sx-quote { font-size: 18px; } }

/* ---------- Designed hero (no photo bg) ---------- */
.sx-hero2, .sx-subhero2 { margin-block: 0; }
.sx-hero2 {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(116deg, #052A42 0%, #073B5C 44%, #0C6385 100%);
  padding: 92px 0 104px;
}
.sx-hero2::before {
  content: ""; position: absolute; right: -160px; top: -180px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,168,184,.32), rgba(47,168,184,0) 70%);
}
.sx-hero2::after {
  content: ""; position: absolute; left: -120px; bottom: -220px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(159,216,230,.16), rgba(159,216,230,0) 70%);
}
.sx-h2mount { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; opacity: .16; }
.sx-h2in {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 40px; align-items: center;
}
.sx-hero2 h1 {
  font-size: clamp(36px, 5.2vw, 60px); line-height: 1.22; color: #fff;
  margin: 0 0 22px; letter-spacing: .02em;
}
.sx-hero2 .sx-hero-sub { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.95; color: rgba(255,255,255,.88); max-width: 560px; margin: 0 0 34px; }
.sx-hero2 .sx-hero-pill {
  display: inline-block; margin-bottom: 22px; padding: 7px 18px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #EAF6FA; font-size: 13px; letter-spacing: .12em;
}
.sx-hero2 .hero-visual { position: relative; height: 470px; }
.sx-hero2 .hero-visual .glow {
  position: absolute; inset: 30px 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(159,216,230,.4), rgba(159,216,230,0) 68%);
}
.sx-hero2 .hero-visual img { position: absolute; object-fit: contain; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0; }
.sx-cta .wp-block-buttons, .sx-cover-cta .wp-block-buttons { justify-content: center; }
.sx-cta .wp-block-button__link { background: #fff; color: var(--sx-deep); border: 1.5px solid #fff; }
.sx-cta .is-style-outline .wp-block-button__link { background: transparent; color: #fff; }
.sx-hero2 .wp-block-button__link {
  border-radius: 999px; padding: 14px 32px; font-size: 15px;
  background: #fff; color: var(--sx-deep); border: 1.5px solid #fff;
}
.sx-hero2 .is-style-outline .wp-block-button__link { background: transparent; color: #fff; }
.sx-hero2 .hero-visual .hv-2l { right: 6%; bottom: 0; height: 448px; z-index: 2; filter: drop-shadow(0 34px 44px rgba(0,0,0,.4)); }
.sx-hero2 .hero-visual .hv-05 { left: -2%; bottom: 36px; height: 330px; z-index: 1; opacity: .92; filter: drop-shadow(0 24px 34px rgba(0,0,0,.35)); }
@media (max-width: 900px) {
  .sx-hero2 { padding: 70px 0 78px; }
  .sx-h2in { grid-template-columns: 1fr; }
  .sx-hero2 .hero-visual { display: none; }
}

/* ---------- Gradient sub hero ---------- */
.sx-subhero2 {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(120deg, #052A42 0%, #073B5C 50%, #0C6385 100%);
  padding: 92px 24px 96px;
}
.sx-subhero2::before {
  content: ""; position: absolute; left: 50%; top: -160px; transform: translateX(-50%);
  width: 680px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,168,184,.28), rgba(47,168,184,0) 70%);
}
.sx-subhero2 .sx-sub-inner { position: relative; z-index: 2; }
.sx-subhero2 h1 { color: #fff; font-size: clamp(30px,4vw,46px); margin: 0 0 12px; }
.sx-subhero2 p { color: rgba(255,255,255,.82); margin: 0; font-size: 16px; letter-spacing: .06em; }
.sx-subhero2 .sx-eyebrow { justify-content: center; }

.wp-block-separator { opacity: 1; border-color: var(--sx-line); }
