/*
 Theme Name: XinFengShang
 Theme URI: https://www.xfscosmetix.com/
 Author: XinFengShang
 Author URI: https://www.xfscosmetix.com/
 Description: One-page English landing site for XinFengShang — an emerging-market beauty OEM/ODM Brand Growth Partner.
 Version: 1.0.0
 Requires at least: 5.8
 Tested up to: 6.6
 Requires PHP: 7.4
 Tags: one-page, landing-page, responsive, custom-colors, accessibility-ready
 Text Domain: xinfengshang
*/

/* ===== Design Tokens ===== */
:root {
  --wine: #4C1B2E;
  --wine-deep: #2E1019;
  --rose: #D64B7A;
  --rose-soft: #F4C6D8;
  --gold: #C9A24B;
  --cream: #FBF6F1;
  --cream-2: #F4ECE4;
  --ink: #2B2026;
  --muted: #6F6470;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(46, 16, 25, 0.10);
  --shadow-sm: 0 8px 24px rgba(46, 16, 25, 0.08);
  --shadow-lg: 0 30px 80px rgba(46, 16, 25, 0.15);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --serif: "Playfair Display", "Noto Serif SC", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(251, 246, 241, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(46,16,25,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; line-height: 1; }
.brand-logo { height: 36px; width: auto; object-fit: contain; display: block; }
.footer-logo { height: 28px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: .86rem; color: var(--ink); font-weight: 500; position: relative; transition: color .2s; white-space: nowrap; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--rose); transition: width .25s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:hover { color: var(--wine); }
.nav-cta {
  background: var(--wine); color: var(--white) !important; padding: 9px 20px;
  border-radius: 999px; font-weight: 600; transition: background .25s, transform .2s;
}
.nav-cta:hover { background: var(--rose); transform: translateY(-1px); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(76,27,46,.22); background: transparent; cursor: pointer;
  border-radius: 999px; padding: 5px 12px; font-family: var(--sans); font-size: .8rem;
  font-weight: 600; color: var(--muted); transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--rose); }
.lang-toggle a { color: var(--muted); text-decoration: none; transition: color .2s; padding: 0 1px; }
.lang-toggle a:hover { color: var(--wine); }
.lang-toggle a.active { color: var(--wine); font-weight: 700; }
.lang-sep { margin: 0 3px; color: rgba(76,27,46,.3); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--wine); border-radius: 2px; transition: .3s; }

/* ===== HERO (Two-column with image) ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(214,75,122,.12), transparent 60%),
    radial-gradient(900px 500px at 12% 88%, rgba(201,162,75,.10), transparent 55%),
    linear-gradient(160deg, #fdf9f5 0%, #f6ece4 55%, #f3e3ea 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 70px;
}
.hero-content { max-width: 580px; }
.hero-tag {
  display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rose); font-weight: 600; border: 1px solid rgba(214,75,122,.35);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero-title {
  font-family: var(--serif); font-weight: 700; color: var(--wine);
  font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -.01em;
}
.hero-title-link { display: inline-block; color: inherit; text-decoration: none; cursor: pointer; outline: none; }
.hero-title-link:hover .hero-title,
.hero-title-link:focus-visible .hero-title { opacity: .82; transition: opacity .2s; }
.hero-line { display: block; }
.hero-line.accent {
  color: transparent;
  background: linear-gradient(100deg, var(--rose), var(--gold));
  -webkit-background-clip: text; background-clip: text;
}
.hero-sub {
  font-family: var(--serif); font-size: clamp(1.08rem, 2.1vw, 1.4rem);
  color: var(--wine); margin-top: 18px; font-weight: 600;
}
.hero-desc { max-width: 520px; margin-top: 16px; color: var(--muted); font-size: 1rem; line-height: 1.72; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }

/* Hero visual — editorial image */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  filter: saturate(1.02) contrast(1.01);
  transition: transform .6s cubic-bezier(.22,1,.36,1), box-shadow .6s ease;
}
.hero-visual img:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 40px 90px rgba(46,16,25,.20);
}

/* Decorative shape behind hero image */
.hero-visual::before {
  content: "";
  position: absolute;
  top: -18px; right: -18px;
  width: 85%; height: 92%;
  border-radius: 32px;
  border: 2px solid rgba(214,75,122,.18);
  pointer-events: none;
}

.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--wine); line-height: 1; }
.stat-num.inf { font-size: 2.7rem; font-weight: 600; }
.stat-label { font-size: .84rem; color: var(--muted); margin-top: 6px; letter-spacing: .03em; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: 13px 28px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s;
}
.btn-primary { background: var(--wine); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--rose); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--wine); border-color: rgba(76,27,46,.3); }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; margin-top: 28px; }

/* ===== SECTIONS ===== */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rose); font-weight: 700; margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 700; color: var(--wine);
  font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15;
}
.section-lead { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* approach */
.approach { background: var(--white); }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.approach-card {
  background: var(--cream); border-radius: var(--radius); padding: 38px 32px;
  border: 1px solid rgba(76,27,46,.07); transition: transform .3s ease, box-shadow .3s ease;
}
.approach-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ac-num { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--rose); margin-bottom: 14px; }
.approach-card h3 { font-family: var(--serif); font-size: 1.45rem; color: var(--wine); margin-bottom: 12px; font-weight: 600; }
.approach-card p { color: var(--muted); font-size: .98rem; }

/* products + banner */
.products { background: var(--cream); }
.prod-banner {
  margin-bottom: 38px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.prod-banner img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.prod-banner:hover img { transform: scale(1.015); }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid rgba(76,27,46,.06); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(214,75,122,.35); }
.pc-ico { font-size: 2rem; margin-bottom: 16px; }
.pc-img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 18px; transition: transform .4s ease; }
.prod-card:hover .pc-img { transform: scale(1.03); }
.prod-card h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--wine); margin-bottom: 10px; font-weight: 600; }
.prod-card p { color: var(--muted); font-size: .95rem; }

/* process */
.process { background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%); color: var(--cream); }
.process .eyebrow { color: var(--rose-soft); }
.process .section-head h2 { color: var(--white); }
.process .section-lead { color: rgba(251,246,241,.72); }
.proc-flow { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; counter-reset: step; }
.proc-step {
  background: rgba(255,255,255,.06); border: 1px solid rgba(244,198,216,.18);
  border-radius: var(--radius-sm); padding: 24px 18px; position: relative;
  transition: transform .3s, background .3s;
}
.proc-step:hover { transform: translateY(-5px); background: rgba(214,75,122,.16); }
.ps-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--rose-soft); display: block; margin-bottom: 12px; }
.proc-step h3 { font-size: 1.02rem; color: var(--white); font-weight: 600; margin-bottom: 8px; font-family: var(--sans); }
.proc-step p { font-size: .84rem; color: rgba(251,246,241,.7); line-height: 1.5; }

/* why */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-item {
  padding: 32px 34px; border-radius: var(--radius); background: var(--cream);
  border-left: 4px solid var(--rose); transition: transform .3s, box-shadow .3s;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.why-item h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--wine); margin-bottom: 10px; font-weight: 600; }
.why-item p { color: var(--muted); font-size: .97rem; }

/* markets */
.markets { background: var(--cream); }
.trend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trend-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid rgba(76,27,46,.1); display: flex; flex-direction: column;
  position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
  box-shadow: 0 2px 12px rgba(46,16,25,.04);
}
.trend-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--wine), var(--rose));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.trend-card:hover { transform: translateY(-8px); box-shadow: 0 14px 40px rgba(46,16,25,.12); border-color: rgba(214,75,122,.3); }
.trend-card:hover::before { transform: scaleX(1); }
.trend-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.trend-region { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wine); }
.trend-heat { font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--rose); background: rgba(214,75,122,.14); padding: 4px 12px; border-radius: 999px; }
.trend-cat { font-family: var(--serif); font-size: 1.55rem; color: #3a1525; margin-bottom: 14px; font-weight: 700; line-height: 1.2; }
.trend-d { color: #5c4b52; font-size: .93rem; line-height: 1.65; flex: 1; }

.mkt-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(76,27,46,.1);
}
.mkt-strip-label { font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-right: 4px; }
.mkt-pill {
  font-size: .84rem; color: var(--wine); background: rgba(76,27,46,.06);
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(76,27,46,.08);
}

/* faq */
.faq { background: var(--cream); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid rgba(76,27,46,.08);
  border-radius: var(--radius-sm); padding: 4px 26px; transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] { border-color: rgba(214,75,122,.4); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--serif);
  font-size: 1.18rem; font-weight: 600; color: var(--wine); position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--sans); font-size: 1.6rem; font-weight: 400;
  color: var(--rose); transition: transform .25s; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 0 22px; color: var(--muted); font-size: 1rem; line-height: 1.75; }

/* about — two column: text + lab image */
.about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.about-text .eyebrow { margin-bottom: 14px; }
.about-text h2 {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  color: var(--wine); line-height: 1.2; margin-bottom: 22px; font-weight: 700;
}
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.02rem; }

/* Compact inline stats in about text area */
.about-stats {
  display: flex;
  gap: 20px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.about-stat {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  border: 1px solid rgba(76,27,46,.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}
.as-num {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1.2;
}
.as-label {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: .04em;
}

/* About visual — lab photo */
.about-visual {
  position: relative;
}
.about-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease;
}
.about-visual img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
/* Decorative accent behind about image */
.about-visual::before {
  content: "";
  position: absolute;
  bottom: -14px; left: -14px;
  width: 92%; height: 94%;
  border-radius: calc(var(--radius) + 4px);
  border: 2px solid rgba(201,162,75,.22);
  pointer-events: none;
  z-index: -1;
}

/* contact — texture background */
.contact {
  background:
    linear-gradient(160deg, rgba(251,246,241,.88), rgba(244,198,216,.65)),
    url('images/contact.jpg') center/cover no-repeat;
  text-align: center;
  position: relative;
}
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(251,246,241,.80), rgba(244,198,216,.50));
  pointer-events: none;
}
.contact-inner {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
}
.contact .eyebrow { color: var(--rose); }
.contact h2 {
  font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--wine); line-height: 1.2;
}
.contact-sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; position: relative; z-index: 1; }

/* footer */
.footer { background: var(--wine-deep); color: rgba(251,246,241,.8); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(244,198,216,.14); }
.footer-brand .footer-logo { display: block; margin-bottom: 4px; }
.footer-brand p { margin-top: 12px; font-size: .88rem; color: rgba(251,246,241,.6); max-width: 320px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: .92rem; color: rgba(251,246,241,.8); transition: color .2s; }
.footer-links a:hover { color: var(--rose-soft); }
.footer-bottom { padding-top: 22px; font-size: .82rem; color: rgba(251,246,241,.45); }

/* reveal animation */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; } /* Image above text on tablet */
  .hero-visual img { max-width: 360px; margin: 0 auto; }
  .hero-visual::before { display: none; }

  .approach-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-flow { grid-template-columns: repeat(2, 1fr); }
  .trend-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { justify-content: center; }
  .prod-banner img { max-height: 280px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 74px; right: 0; height: calc(100vh - 74px); width: 78%; max-width: 320px;
    background: rgba(251,246,241,.98); backdrop-filter: blur(12px); flex-direction: column;
    align-items: flex-start; gap: 8px; padding: 28px 28px; transform: translateX(110%);
    transition: transform .35s ease; box-shadow: -10px 0 40px rgba(46,16,25,.12);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; padding: 8px 0; }
  .nav-burger { display: flex; }
  .section { padding: 68px 0; }
  .approach-grid, .prod-grid, .trend-grid { grid-template-columns: 1fr; }
  .proc-flow { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .footer-inner { flex-direction: column; }
  .hero-visual img { max-width: 280px; border-radius: 20px; }
  .prod-banner img { max-height: 220px; }
  .about-visual::before { display: none; }
  .about-stats { gap: 12px; }
  .about-stat { min-width: 95px; padding: 10px 14px; }
}

/* ===== COMPLIANCE PAGE ===== */
.cmp-hero { background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%); color: var(--cream); padding: 130px 0 80px; }
.cmp-hero .eyebrow { color: var(--rose-soft); }
.cmp-hero .section-head h2 { color: var(--white); }
.cmp-hero .section-lead { color: rgba(251,246,241,.78); }

.cmp-markets { background: var(--cream); }
.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cmp-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid rgba(76,27,46,.08); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cmp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(214,75,122,.32); }
.cmp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cmp-region { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }
.cmp-flag { font-size: 1.4rem; line-height: 1; }
.cmp-card h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--wine); margin-bottom: 12px; font-weight: 600; line-height: 1.25; }
.cmp-desc { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.cmp-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cmp-steps li { position: relative; padding-left: 22px; color: #5c4b52; font-size: .9rem; line-height: 1.55; }
.cmp-steps li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.cmp-xfs { margin-top: auto; font-size: .86rem; color: var(--wine); background: rgba(214,75,122,.08); border-left: 3px solid var(--rose); padding: 12px 14px; border-radius: 0 10px 10px 0; }

.cmp-support { background: var(--white); }
.cmp-note { max-width: 760px; margin: 14px auto 0; font-size: .92rem; line-height: 1.6; color: var(--muted); background: rgba(76,27,46,.05); border: 1px solid rgba(76,27,46,.12); border-radius: 12px; padding: 14px 18px; }
.cmp-note::before { content: "📌 "; }

.cmp-faq { background: var(--cream); }
.cmp-cta { background: linear-gradient(160deg, rgba(251,246,241,.9), rgba(244,198,216,.6)), url('images/contact.jpg') center/cover no-repeat; }

/* ===== BLOG / INSIGHTS ===== */
.blog { background: var(--cream); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 28px;
  border: 1px solid rgba(76,27,46,.08); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(214,75,122,.32); }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.post-region { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); background: rgba(76,27,46,.06); padding: 4px 10px; border-radius: 999px; }
.post-tag { font-size: .72rem; font-weight: 600; color: var(--rose); background: rgba(214,75,122,.12); padding: 4px 10px; border-radius: 999px; }
.post-date { font-size: .76rem; color: var(--muted); margin-left: auto; }
.post-card-title { font-family: var(--serif); font-size: 1.35rem; color: var(--wine); margin-bottom: 12px; font-weight: 600; line-height: 1.3; }
.post-excerpt { color: var(--muted); font-size: .94rem; flex: 1; }
.post-read { margin-top: 18px; font-weight: 600; color: var(--rose); font-size: .9rem; }

.post-single { max-width: 760px; margin: 0 auto; }
.post-back { display: inline-block; margin-bottom: 22px; color: var(--rose); font-weight: 600; font-size: .92rem; }
.post-single .post-meta { margin-bottom: 18px; }
.post-title { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--wine); line-height: 1.2; margin-bottom: 22px; }
.post-body { color: var(--ink); font-size: 1.04rem; line-height: 1.85; }
.post-body h3 { font-family: var(--serif); color: var(--wine); font-size: 1.4rem; margin: 28px 0 12px; }
.post-body ul { margin: 0 0 18px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; color: #4a3b42; }
.post-body p { margin-bottom: 16px; }

/* ===== RTL (Arabic) ===== */
[dir="rtl"] body { font-family: var(--sans); }
[dir="rtl"] .nav-links { direction: rtl; }
[dir="rtl"] .faq-item summary { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .about-inner, [dir="rtl"] .hero-inner { direction: rtl; }
[dir="rtl"] .why-grid, [dir="rtl"] .approach-grid, [dir="rtl"] .cmp-grid, [dir="rtl"] .post-grid { direction: rtl; }
[dir="rtl"] .cmp-steps li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .cmp-steps li::before { left: auto; right: 0; }
[dir="rtl"] .cmp-xfs { border-left: none; border-right: 3px solid var(--rose); border-radius: 10px 0 0 10px; }
[dir="rtl"] .mkt-strip, [dir="rtl"] .footer-inner { direction: rtl; }
[dir="rtl"] .post-meta { direction: rtl; }
[dir="rtl"] .post-date { margin-left: 0; margin-right: auto; }

@media (max-width: 980px) {
  .cmp-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cmp-grid, .post-grid { grid-template-columns: 1fr; }
}
