/* =====================================================
   The China Toys — thechinatoys.com
   "Toy Box" design system 🧸
   Playful sticker/candy look · full RTL/LTR · responsive
   ===================================================== */

:root {
  /* candy palette */
  --pink:    #FF6FB5;
  --pink-l:  #FFE1F0;
  --blue:    #4FA3F7;
  --blue-l:  #E0EFFF;
  --yellow:  #FFC93D;
  --yellow-l:#FFF3CF;
  --mint:    #3ECFA5;
  --mint-l:  #DCF8EE;
  --purple:  #9B7BF7;
  --purple-l:#EEE8FF;
  --orange:  #FF9F5A;
  --orange-l:#FFEBDC;
  --red:     #FF6B6B;

  --ink:     #33356B;          /* friendly indigo for lines & text */
  --muted:   #6F719C;
  --bg:      #FDF8EE;          /* warm paper */
  --card:    #FFFFFF;

  --line-w:  3px;
  --radius:  22px;
  --radius-lg: 34px;
  --pop:       6px 6px 0 var(--ink);   /* hard sticker shadow */
  --pop-sm:    4px 4px 0 var(--ink);
  --pop-hover: 9px 9px 0 var(--ink);

  --font-head-ar: 'Baloo Bhaijaan 2', 'Cairo', sans-serif;
  --font-head-en: 'Baloo 2', 'Nunito', sans-serif;
  --font-ar: 'Cairo', Tahoma, sans-serif;
  --font-en: 'Nunito', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(rgba(51,53,107,.055) 2.2px, transparent 2.2px);
  background-size: 26px 26px;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16.5px;
  overflow-x: hidden;
}
body.rtl { font-family: var(--font-ar); }
body.ltr { font-family: var(--font-en); }

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 800; }
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4,
body.rtl .btn, body.rtl .stat .num { font-family: var(--font-head-ar); }
body.ltr h1, body.ltr h2, body.ltr h3, body.ltr h4,
body.ltr .btn, body.ltr .stat .num { font-family: var(--font-head-en); }

::selection { background: var(--yellow); color: var(--ink); }

/* ---------- Buttons: candy pieces ---------- */
.btn {
  display: inline-block;
  padding: .7em 1.8em;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.02rem;
  border: var(--line-w) solid var(--ink);
  box-shadow: var(--pop-sm);
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
body.rtl .btn:hover { transform: translate(2px, -2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-outline { background: var(--yellow); }
.btn-light { background: var(--yellow); }
.btn-sm { padding: .5em 1.25em; font-size: .92rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { padding: .85em 2.3em; font-size: 1.12rem; }

/* ---------- Header: toy-shop shelf ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: var(--line-w) solid var(--ink);
}
/* rainbow candy strip */
.site-header::after {
  content: ""; display: block; height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--pink) 0 60px, var(--yellow) 60px 120px,
    var(--mint) 120px 180px, var(--blue) 180px 240px,
    var(--purple) 240px 300px);
}
.header-inner {
  display: flex; align-items: center; gap: 1.4rem;
  padding-block: .55rem;
}
.logo { display: flex; align-items: center; }
.logo img.logo-main { height: 88px; width: auto; display: block; transition: transform .25s; }
.logo:hover img.logo-main { transform: rotate(-3deg) scale(1.04); }

.main-nav { display: flex; gap: .35rem; margin-inline-start: auto; flex-wrap: nowrap; }
.main-nav a {
  padding: .45em 1.05em; border-radius: 999px;
  color: var(--ink); font-weight: 800; font-size: 1rem;
  border: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--yellow-l); border-color: var(--ink); }
.main-nav a.active {
  background: var(--yellow); border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-mobile-extras { display: none; }

.header-actions { display: flex; align-items: center; gap: .7rem; }
.header-actions .btn { white-space: nowrap; }
.lang-switch {
  font-weight: 800; font-size: .92rem; color: var(--ink);
  padding: .4em .95em; border-radius: 999px;
  border: 2px dashed var(--ink); background: var(--blue-l);
}
.lang-switch:hover { background: var(--mint-l); color: var(--ink); transform: rotate(-2deg); }

.nav-toggle { display: none; background: var(--yellow); border: var(--line-w) solid var(--ink); border-radius: 12px; cursor: pointer; padding: .5rem .55rem; box-shadow: var(--pop-sm); }
.nav-toggle span {
  display: block; width: 24px; height: 3px; margin: 4px 0;
  background: var(--ink); border-radius: 3px;
}

/* ---------- Hero: the toy box ---------- */
.hero {
  position: relative;
  padding-block: 4.5rem 6.5rem;
  overflow: hidden;
}
/* floating toys */
.hero .hero-inner::before,
.hero .hero-inner::after {
  position: absolute; font-size: 2.6rem; opacity: .9;
  animation: floaty 5s ease-in-out infinite;
  z-index: 0; pointer-events: none;
}
.hero .hero-inner::before { content: "🎈"; top: 2%; inset-inline-start: 42%; animation-delay: .8s; }
.hero .hero-inner::after  { content: "🪁"; bottom: 4%; inset-inline-start: 47%; animation-delay: 2s; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }

.hero-badge {
  display: inline-block; background: var(--mint-l);
  border: 2px dashed var(--ink);
  padding: .35em 1.2em; border-radius: 999px;
  font-weight: 800; font-size: .98rem; color: var(--ink);
  margin-bottom: 1.2rem;
  transform: rotate(-2deg);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 800; margin-bottom: .4rem; letter-spacing: -.5px;
}
.hero h1 .accent {
  display: block; color: var(--blue);
  text-decoration: underline wavy var(--yellow) 5px;
  text-underline-offset: 10px;
}
.hero p { font-size: 1.16rem; color: var(--muted); max-width: 34em; margin-block: 1.4rem 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-media { position: relative; z-index: 1; }
.hero-media .main-img {
  width: 100%; aspect-ratio: 4/3.4; object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%;
  box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px var(--ink);
  animation: blob-morph 12s ease-in-out infinite;
}
@keyframes blob-morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%; }
  50%      { border-radius: 45% 55% 44% 56% / 55% 45% 55% 45%; }
}
.hero-float {
  position: absolute; background: #fff;
  border: var(--line-w) solid var(--ink); border-radius: 16px;
  box-shadow: var(--pop-sm); padding: .6rem 1.1rem;
  font-weight: 800; font-size: .95rem; color: var(--ink);
  animation: floaty 4s ease-in-out infinite;
  z-index: 2;
}
.hero-float.f1 { top: 4%; inset-inline-start: -5%; transform: rotate(-4deg); }
.hero-float.f2 { bottom: 6%; inset-inline-end: -3%; transform: rotate(3deg); animation-delay: 1.6s; }
@keyframes floaty { 50% { margin-top: -14px; } }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }
.hero-wave path { fill: var(--blue-l); }

/* ---------- Marquee toy ticker ---------- */
.marquee {
  background: var(--yellow);
  border-block: var(--line-w) solid var(--ink);
  overflow: hidden; padding-block: .65rem;
  position: relative; z-index: 4;
}
.marquee-track {
  display: flex; gap: 2.6rem; width: max-content;
  font-weight: 800; font-size: 1.05rem; color: var(--ink);
  animation: marquee 26s linear infinite;
}
.marquee-track span { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
body.rtl .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Stats: building blocks ---------- */
.stats { position: relative; z-index: 5; background: var(--blue-l); padding-block: 0 3rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem;
  margin-top: -2.6rem;
}
.stat {
  text-align: center; background: #fff;
  border: var(--line-w) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--pop); padding: 1.5rem 1rem;
  transition: transform .2s;
}
.stat:nth-child(odd)  { transform: rotate(-1.3deg); background: var(--yellow-l); }
.stat:nth-child(even) { transform: rotate(1.3deg);  background: var(--mint-l); }
.stat:hover { transform: rotate(0) translateY(-6px); }
.stat .num { font-size: 2.5rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat .lbl { color: var(--muted); font-weight: 700; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding-block: 5rem; position: relative; }
.section-alt { background: var(--blue-l); border-block: var(--line-w) solid var(--ink); }
.section-head { text-align: center; max-width: 46em; margin: 0 auto 3rem; }
.section-head h2 {
  display: inline-block;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .6rem;
  position: relative;
}
/* crayon highlight under titles */
.section-head h2::after {
  content: ""; position: absolute; inset-inline: -6px; bottom: .12em;
  height: .42em; background: var(--yellow); z-index: -1;
  border-radius: 4px; transform: rotate(-1deg);
}
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head .kicker {
  display: inline-block; background: #fff; color: var(--blue);
  border: 2px dashed var(--blue);
  padding: .15em 1em; border-radius: 999px;
  font-weight: 800; font-size: .85rem;
  margin-bottom: .9rem; transform: rotate(1.5deg);
}

/* ---------- Service cards: candy stickers ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card {
  background: var(--card);
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--pop);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.card:nth-child(6n+1) { background: var(--blue-l); }
.card:nth-child(6n+2) { background: var(--yellow-l); }
.card:nth-child(6n+3) { background: var(--mint-l); }
.card:nth-child(6n+4) { background: var(--orange-l); }
.card:nth-child(6n+5) { background: var(--purple-l); }
.card:nth-child(6n+6) { background: var(--pink-l); }
.card:hover { transform: translate(-3px, -5px) rotate(-.6deg); box-shadow: var(--pop-hover); }
.card .icon {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.9rem;
  margin-bottom: 1.1rem; background: #fff;
  border: var(--line-w) solid var(--ink);
  box-shadow: var(--pop-sm);
  transform: rotate(-6deg);
}
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why-media img {
  border: 4px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 var(--mint), 10px 10px 0 3px var(--ink);
  aspect-ratio: 4/4.6; object-fit: cover;
  transform: rotate(-1.5deg);
}
.why-list { display: grid; gap: 1.4rem; }
.why-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.why-item .badge {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem;
  background: #fff; border: var(--line-w) solid var(--ink);
  box-shadow: var(--pop-sm); transform: rotate(5deg);
}
.why-item:nth-child(1) .badge { background: var(--yellow-l); }
.why-item:nth-child(2) .badge { background: var(--mint-l); }
.why-item:nth-child(3) .badge { background: var(--pink-l); }
.why-item:nth-child(4) .badge { background: var(--purple-l); }
.why-item h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.why-item p { color: var(--muted); font-size: .97rem; }

/* ---------- Process: candy trail ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 44px; inset-inline: 6%;
  border-top: 3px dashed var(--ink); opacity: .35; z-index: 0;
}
.step {
  background: #fff; border: var(--line-w) solid var(--ink);
  border-radius: var(--radius); padding: 1.7rem 1.2rem;
  box-shadow: var(--pop-sm); text-align: center;
  position: relative; z-index: 1;
  transition: transform .2s;
}
.step:nth-child(odd)  { transform: rotate(-1deg); }
.step:nth-child(even) { transform: rotate(1deg); }
.step:hover { transform: rotate(0) translateY(-6px); }
.step .n {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center;
  border: var(--line-w) solid var(--ink); box-shadow: var(--pop-sm);
  color: var(--ink); font-weight: 800; font-size: 1.35rem;
  background: var(--red);
  color: #fff;
}
.step:nth-child(2) .n { background: var(--yellow); color: var(--ink); }
.step:nth-child(3) .n { background: var(--mint); }
.step:nth-child(4) .n { background: var(--blue); }
.step:nth-child(5) .n { background: var(--purple); }
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .89rem; line-height: 1.65; }

/* ---------- Category tiles: polaroid photos ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.cat-tile {
  position: relative; display: block;
  background: #fff; border: var(--line-w) solid var(--ink);
  border-radius: 14px; padding: 12px 12px 0;
  box-shadow: var(--pop);
  transition: transform .22s, box-shadow .22s;
}
.cat-tile:nth-child(odd)  { transform: rotate(-1.4deg); }
.cat-tile:nth-child(even) { transform: rotate(1.4deg); }
.cat-tile:hover { transform: rotate(0) translateY(-7px); box-shadow: var(--pop-hover); }
/* tape strip */
.cat-tile::before {
  content: ""; position: absolute; top: -12px; left: 50%;
  width: 92px; height: 24px; transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 201, 61, .8); border: 1.5px solid rgba(51,53,107,.25);
  border-radius: 3px; z-index: 2;
}
.cat-tile img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border: 2px solid var(--ink); border-radius: 8px;
}
.cat-tile .cat-label {
  display: block; text-align: center;
  padding: .7rem .4rem .8rem;
  color: var(--ink); font-weight: 800; font-size: 1.06rem;
}

/* ---------- Testimonials: sticky notes ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.testi {
  border: var(--line-w) solid var(--ink);
  border-radius: 4px 26px 4px 26px;
  padding: 2.1rem 1.6rem 1.7rem; position: relative;
  box-shadow: var(--pop);
  transition: transform .2s;
}
.testi:nth-child(1) { background: var(--yellow-l); transform: rotate(-1.2deg); }
.testi:nth-child(2) { background: var(--mint-l);   transform: rotate(1deg); }
.testi:nth-child(3) { background: var(--blue-l);   transform: rotate(-.8deg); }
.testi:hover { transform: rotate(0) translateY(-5px); }
.testi::before {
  content: "📌"; position: absolute; top: -16px; inset-inline-start: 50%;
  margin-inline-start: -14px; font-size: 1.7rem;
}
.testi p { color: var(--ink); font-size: .98rem; margin-bottom: 1.2rem; }
.testi .stars { color: var(--orange); letter-spacing: 3px; margin-bottom: .6rem; font-size: 1rem; }
.testi .who { display: flex; align-items: center; gap: .8rem; }
.testi .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: var(--purple); border: 2.5px solid var(--ink);
}
.testi .who strong { display: block; color: var(--ink); font-size: .96rem; }
.testi .who small { color: var(--muted); font-size: .83rem; }

/* ---------- Blog cards: polaroid + sticker ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.post-card {
  background: #fff; border: var(--line-w) solid var(--ink);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--pop); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translate(-3px, -5px); box-shadow: var(--pop-hover); }
.post-card .thumb { display: block; border-bottom: var(--line-w) solid var(--ink); overflow: hidden; }
.post-card .thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s; }
.post-card:hover .thumb img { transform: scale(1.06) rotate(1deg); }
.post-card .body { padding: 1.35rem 1.4rem 1.55rem; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { display: flex; gap: .8rem; align-items: center; font-size: .83rem; color: var(--muted); margin-bottom: .6rem; flex-wrap: wrap; }
.cat-badge {
  background: var(--yellow); color: var(--ink); font-weight: 800;
  padding: .1em .85em; border-radius: 999px; font-size: .8rem;
  border: 2px solid var(--ink);
}
.post-card h3 { font-size: 1.13rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--orange); }
.post-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.post-card .read { margin-top: 1rem; font-weight: 800; color: var(--blue); font-size: .95rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(rgba(255,255,255,.16) 2.4px, transparent 2.4px),
    linear-gradient(120deg, var(--purple), var(--blue));
  background-size: 30px 30px, 100% 100%;
  color: #fff; padding-block: 4rem 4.6rem; text-align: center;
  border-bottom: var(--line-w) solid var(--ink);
}
.page-hero h1 {
  color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: .5rem;
  text-shadow: 3px 3px 0 rgba(51,53,107,.5);
}
.page-hero p { color: rgba(255,255,255,.94); max-width: 42em; margin-inline: auto; font-size: 1.1rem; }
/* scalloped edge */
.page-hero::after {
  content: ""; position: absolute; bottom: -14px; left: 0; width: 100%; height: 28px;
  background: radial-gradient(circle at 14px -6px, transparent 18px, var(--bg) 19px);
  background-size: 28px 28px;
}
.breadcrumbs { font-size: .9rem; margin-bottom: 1rem; color: rgba(255,255,255,.85); font-weight: 700; }
.breadcrumbs a { color: var(--yellow); }

.blog-filters { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.6rem; }
.blog-filters a {
  padding: .42em 1.25em; border-radius: 999px; font-weight: 800; font-size: .95rem;
  background: #fff; color: var(--ink);
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.blog-filters a:hover { transform: translate(-1px,-2px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.blog-filters a.active { background: var(--blue); color: #fff; }

.pagination { display: flex; gap: .7rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; background: #fff;
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800; color: var(--ink); padding-inline: .8em;
}
.pagination a:hover { background: var(--yellow-l); color: var(--ink); }
.pagination .current { background: var(--yellow); }

/* ---------- Single post ---------- */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.6rem; align-items: start; }
.post-content {
  background: #fff; border: var(--line-w) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--pop); overflow: hidden;
}
.post-content .cover { aspect-ratio: 16/8; object-fit: cover; width: 100%; border-bottom: var(--line-w) solid var(--ink); }
.post-body { padding: 2.3rem clamp(1.4rem, 4vw, 2.8rem) 3rem; }
.post-body h2 {
  font-size: 1.45rem; margin: 1.7em 0 .6em;
  padding: .15em .7em; display: inline-block;
  background: var(--yellow-l); border-radius: 12px;
  border: 2px dashed var(--ink);
}
.post-body h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; }
.post-body p { margin-bottom: 1em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-inline-start: 1.5em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: .4em; }
.post-body strong { color: var(--ink); }
.post-body blockquote {
  margin: 1.4em 0; padding: 1em 1.2em;
  background: var(--mint-l); border-inline-start: 6px solid var(--mint);
  border-radius: 12px; color: var(--muted);
}

/* Article tables — narrow screens scroll the table itself, not the page */
.post-body table {
  display: block; width: 100%; overflow-x: auto;
  border-collapse: collapse; margin: 0 0 1.6em;
  font-size: .93rem; -webkit-overflow-scrolling: touch;
}
.post-body table thead { background: var(--yellow-l); }
.post-body table th,
.post-body table td {
  border: 2px solid rgba(51, 53, 107, .15);
  padding: .6em .85em; text-align: start; vertical-align: top;
}
.post-body table th { color: var(--ink); font-weight: 800; white-space: nowrap; }
.post-body table td { color: var(--muted); }
.post-body table tbody tr:nth-child(even) { background: rgba(255, 243, 207, .38); }

.post-meta-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; }

.sidebar { display: grid; gap: 1.7rem; position: sticky; top: 130px; }
.side-box {
  background: #fff; border: var(--line-w) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--pop); padding: 1.6rem;
}
.side-box h4 { margin-bottom: 1rem; font-size: 1.1rem; padding-bottom: .6rem; border-bottom: 3px dashed var(--yellow); }
.side-box ul li { margin-bottom: .7rem; }
.side-box ul a { color: var(--ink); font-weight: 700; font-size: .94rem; }
.side-box ul a:hover { color: var(--orange); }
.side-cta { background: var(--purple-l); text-align: center; transform: rotate(-1deg); }
.side-cta p { font-size: .94rem; color: var(--muted); margin-bottom: 1.2rem; }

/* ---------- CTA band: big candy banner ---------- */
.cta-band {
  background:
    radial-gradient(rgba(255,255,255,.18) 2.4px, transparent 2.4px),
    linear-gradient(120deg, var(--blue), var(--mint));
  background-size: 30px 30px, 100% 100%;
  color: #fff; padding-block: 3.6rem;
  border-block: var(--line-w) solid var(--ink);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .4rem; text-shadow: 3px 3px 0 rgba(51,53,107,.4); }
.cta-inner p { color: rgba(255,255,255,.95); max-width: 38em; font-weight: 600; }

/* ---------- Footer: night toy shelf ---------- */
.site-footer {
  background:
    radial-gradient(rgba(255,255,255,.05) 2px, transparent 2px),
    #33356B;
  background-size: 26px 26px, 100% 100%;
  color: rgba(255,255,255,.88);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem; padding-block: 3.5rem;
}
.footer-col h4 {
  color: var(--yellow); margin-bottom: 1.1rem; font-size: 1.1rem;
}
.footer-col p { font-size: .94rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col a { color: rgba(255,255,255,.85); font-size: .94rem; }
.footer-col a:hover { color: var(--yellow); }
.footer-logo { margin-bottom: 1rem; }
.footer-logo img {
  height: 90px; width: auto;
  background: #fff; padding: 10px 18px;
  border: var(--line-w) solid var(--ink); border-radius: 18px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
}
.footer-contact li { display: flex; gap: .5rem; align-items: baseline; }
.footer-bottom { border-top: 2px dashed rgba(255,255,255,.25); padding-block: 1.2rem; font-size: .9rem; text-align: center; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  border: var(--line-w) solid var(--ink);
  box-shadow: var(--pop-sm);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.12) rotate(8deg); color: #fff; }

/* ---------- Forms: crayon boxes ---------- */
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: start; }
.form-card {
  background: #fff; border: var(--line-w) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--pop); padding: 2.2rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 800; font-size: .92rem; display: block; margin-bottom: .35rem; color: var(--ink); }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: .75em 1em; border-radius: 14px;
  border: 2.5px solid var(--ink); background: var(--bg);
  font-family: inherit; font-size: .97rem; color: var(--ink);
  transition: box-shadow .15s, background .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; background: #fff; box-shadow: var(--pop-sm);
}
textarea { min-height: 140px; resize: vertical; }
.alert { padding: 1em 1.3em; border-radius: 14px; font-weight: 800; margin-bottom: 1.4rem; border: 2.5px solid var(--ink); box-shadow: var(--pop-sm); }
.alert-success { background: var(--mint-l); color: #0b7a5c; }
.alert-error { background: var(--pink-l); color: #c22753; }

.info-card {
  background: var(--yellow-l); border: var(--line-w) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--pop); padding: 2rem;
  transform: rotate(1deg);
}
.info-card ul li { margin-bottom: 1rem; display: flex; gap: .6rem; align-items: baseline; font-size: .97rem; }
.info-card img { border: var(--line-w) solid var(--ink) !important; box-shadow: var(--pop-sm); }

/* ---------- About / services detail ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-grid img {
  border: 4px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 var(--mint), 10px 10px 0 3px var(--ink);
  aspect-ratio: 4/3; object-fit: cover; transform: rotate(1.5deg);
}
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.check-list li { display: flex; gap: .7rem; align-items: baseline; margin-bottom: .8rem; font-size: 1rem; }
.check-list li::before {
  content: "✓"; font-weight: 900; color: #fff; flex-shrink: 0;
  background: var(--mint); border: 2px solid var(--ink); border-radius: 50%;
  width: 24px; height: 24px; display: grid; place-items: center; font-size: .8rem;
}

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-block: 3rem; }
.service-detail:nth-child(even) .sd-media { order: 2; }
.service-detail img {
  border: 4px solid var(--ink); border-radius: var(--radius-lg);
  aspect-ratio: 4/3; object-fit: cover;
}
.service-detail:nth-child(4n+1) img { box-shadow: 10px 10px 0 var(--purple), 10px 10px 0 3px var(--ink); transform: rotate(-1.5deg); }
.service-detail:nth-child(4n+2) img { box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px var(--ink); transform: rotate(1.5deg); }
.service-detail:nth-child(4n+3) img { box-shadow: 10px 10px 0 var(--mint),   10px 10px 0 3px var(--ink); transform: rotate(-1.5deg); }
.service-detail:nth-child(4n+4) img { box-shadow: 10px 10px 0 var(--blue),   10px 10px 0 3px var(--ink); transform: rotate(1.5deg); }
.service-detail h2 { font-size: 1.65rem; margin-bottom: .8rem; }
.service-detail .lead { color: var(--muted); margin-bottom: 1.2rem; }
.service-detail .icon {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: var(--line-w) solid var(--ink);
  box-shadow: var(--pop-sm); margin-bottom: 1rem;
  transform: rotate(-6deg);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
/* keep sticky-note / polaroid rotations after reveal */
.reveal.visible.stat:nth-child(odd),  .stat:nth-child(odd)  { transform: rotate(-1.3deg); }
.reveal.visible.stat:nth-child(even), .stat:nth-child(even) { transform: rotate(1.3deg); }

/* ---------- Responsive ---------- */
/* mid-size screens: FR/ES labels are longer — compact the header so it stays on one row */
@media (min-width: 1025px) and (max-width: 1420px) {
  .logo img.logo-main { height: 64px; }
  .header-inner { gap: .9rem; }
  .main-nav { gap: .15rem; }
  .main-nav a { padding: .4em .65em; font-size: .88rem; }
  .header-actions { gap: .45rem; }
  .header-actions .btn-sm { font-size: .82rem; padding: .5em 1em; }
  .lang-menu summary { font-size: .82rem; padding: .35em .7em; }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  .logo img.logo-main { height: 54px; }
  .main-nav a { padding: .38em .5em; font-size: .82rem; }
  .header-actions .btn-sm { font-size: .76rem; padding: .45em .8em; }
  .lang-menu summary { font-size: .76rem; padding: .3em .55em; }
}

@media (max-width: 1024px) {
  /* hamburger navigation */
  .header-inner { justify-content: space-between; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; inset-inline: 0;
    margin-inline-start: 0;
    background: #fff; flex-direction: column; gap: .4rem;
    padding: 1.1rem 1.1rem 1.4rem;
    border-bottom: var(--line-w) solid var(--ink);
    box-shadow: 0 18px 32px rgba(51, 53, 107, .2);
    display: none; z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a { border: 2px solid transparent; text-align: center; }
  .nav-mobile-extras {
    display: flex; flex-direction: column; gap: .7rem;
    margin-top: .9rem; padding-top: 1.1rem;
    border-top: 2px dashed rgba(51, 53, 107, .3);
  }
  .nav-mobile-extras .btn, .nav-mobile-extras .lang-switch { text-align: center; }

  .hero-inner, .why-grid, .about-grid, .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .sd-media { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .cards-grid, .cats-grid, .testi-grid, .posts-grid, .mvv-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-layout, .contact-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .hero-inner::before, .hero .hero-inner::after { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .cards-grid, .cats-grid, .testi-grid, .posts-grid, .mvv-grid, .steps, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 3rem 5rem; }
  .hero p { font-size: 1.05rem; }
  .hero-float { display: none; }
  .hero-media .main-img { aspect-ratio: 4/3; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .stat { padding: 1.1rem .6rem; }
  .stat .num { font-size: 1.9rem; }

  /* compact header: keep lang switch + quote button visible */
  .logo img.logo-main { height: 46px; }
  .header-actions { gap: .4rem; }
  .lang-switch { font-size: .72rem; padding: .35em .55em; white-space: nowrap; }
  .header-actions .btn-sm { font-size: .74rem; padding: .5em .85em; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
  .nav-toggle { padding: .4rem .45rem; box-shadow: 2px 2px 0 var(--ink); }
  .nav-toggle span { width: 20px; }
  .cta-inner { text-align: center; justify-content: center; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}

/* ---------- Products ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
/* grid items default to min-width:auto — a nowrap thumbs row would blow the column
   past the viewport on small screens; force them to shrink instead */
.product-layout > * { min-width: 0; }
.gallery-thumbs { max-width: 100%; }
.product-gallery .gallery-main {
  background: #fff; border: var(--line-w) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--pop); overflow: hidden;
}
.gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 86px; height: 66px; padding: 0; cursor: pointer; overflow: hidden;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink); opacity: .65; transition: opacity .15s, transform .15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { opacity: 1; transform: translateY(-3px); border-color: var(--blue); }

.product-info .product-moq {
  display: inline-block; background: var(--yellow-l);
  border: 2px dashed var(--ink); border-radius: 12px;
  padding: .4em 1em; font-size: .95rem;
}
.product-desc { color: var(--muted); font-size: .98rem; line-height: 1.9; }
.product-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.video-wrap {
  position: relative; border: var(--line-w) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--pop);
  overflow: hidden; background: #000; aspect-ratio: 16/9;
  max-width: 900px; margin-inline: auto;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.products-grid .product-card .thumb img { aspect-ratio: 4/3; }

@media (max-width: 1024px) {
  .product-layout { grid-template-columns: 1fr; }
}

/* ---------- Export specs table ---------- */
.specs-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.specs-table tr { border-bottom: 2px dashed rgba(51,53,107,.15); }
.specs-table tr:nth-child(odd) { background: rgba(255,243,207,.5); }
.specs-table th {
  text-align: start; padding: .5em .8em; color: var(--ink);
  width: 38%; vertical-align: top; font-weight: 800;
  overflow-wrap: break-word;
}
.specs-table td { padding: .5em .8em; color: var(--muted); overflow-wrap: break-word; }
@media (max-width: 680px) {
  .specs-table, .specs-table tbody, .specs-table tr,
  .specs-table th, .specs-table td { display: block; width: 100%; }
  .specs-table th { padding: .55em .8em 0; }
  .specs-table td { padding: .05em .8em .55em; }
}

/* ---------- Creative product gallery ---------- */
.gallery-main { position: relative; cursor: zoom-in; }
.gallery-main img { transition: opacity .25s ease, transform .25s ease; }
.gallery-main img.switching { opacity: 0; transform: scale(.96); }
.gallery-count {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: var(--yellow); border: 2.5px solid var(--ink);
  border-radius: 999px; padding: .15em .8em;
  font-weight: 800; font-size: .85rem; transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--ink); z-index: 2;
}
.gallery-zoom {
  position: absolute; bottom: 12px; inset-inline-end: 12px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 50%;
  width: 42px; height: 42px; display: grid; place-items: center;
  font-size: 1.1rem; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s; z-index: 2;
}
.gallery-main:hover .gallery-zoom { transform: scale(1.15) rotate(8deg); }
.g-nav {
  direction: ltr; /* the glyphs are bidi-mirrored chars — pin them so RTL never flips them */
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.5rem; font-weight: 800; color: var(--ink);
  cursor: pointer; z-index: 2; line-height: 1;
  transition: background .15s, transform .15s;
}
.g-nav:hover { background: var(--yellow); transform: translateY(-50%) scale(1.1); }
.g-prev { left: 12px; }
.g-next { right: 12px; }

.gallery-thumbs {
  display: flex; gap: .9rem; margin-top: 1.2rem;
  flex-wrap: nowrap; overflow-x: auto;
  padding: 8px 4px 12px;
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
  -webkit-overflow-scrolling: touch;
}
.gallery-thumbs::-webkit-scrollbar { height: 6px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 3px; }
.gallery-thumb {
  flex: 0 0 auto;
  width: 88px; height: 68px; padding: 0; cursor: pointer; overflow: hidden;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink); opacity: .7;
  transition: opacity .15s, transform .2s;
}
.gallery-thumb:nth-child(odd)  { transform: rotate(-2.5deg); }
.gallery-thumb:nth-child(even) { transform: rotate(2.5deg); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; transform: rotate(0) translateY(-4px); }
.gallery-thumb.active {
  opacity: 1; transform: rotate(0) translateY(-4px) scale(1.05);
  border-color: var(--blue); box-shadow: 3px 3px 0 var(--blue);
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background:
    radial-gradient(rgba(255,255,255,.06) 2px, transparent 2px),
    rgba(35, 37, 82, .94);
  background-size: 26px 26px, 100% 100%;
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
/* keep arrows on fixed physical sides in both languages */
.lightbox { direction: ltr; }
body.rtl .lightbox figcaption { direction: rtl; }
.lightbox figure { max-width: min(900px, 82vw); text-align: center; margin: 0; }
.lightbox img {
  max-width: 100%; max-height: 76vh; object-fit: contain;
  background: #fff; border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 3px var(--ink);
}
.lightbox figcaption { color: #fff; font-weight: 700; margin-top: 1.1rem; font-size: 1rem; }
.lb-close {
  position: absolute; top: 20px; inset-inline-end: 20px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; border: 2.5px solid #fff;
  font-size: 1.3rem; font-weight: 800; cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0,0,0,.4);
}
.lb-close:hover { transform: rotate(90deg); transition: transform .25s; }
.lb-nav {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: #fff; border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0,0,0,.4);
  font-size: 1.7rem; font-weight: 800; color: var(--ink); cursor: pointer;
}
.lb-nav:hover { background: var(--yellow); }

/* ---------- Standards band ---------- */
.standards-band {
  background: var(--mint-l);
  border-block: var(--line-w) solid var(--ink);
  padding-block: 4rem;
}
.standards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.std-badge {
  position: relative; background: #fff;
  border: var(--line-w) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--pop); padding: 1.6rem 1.2rem 1.4rem;
  text-align: center; display: grid; gap: .2rem; justify-items: center;
  transition: transform .2s;
}
.std-badge:nth-child(odd)  { transform: rotate(-1.2deg); }
.std-badge:nth-child(even) { transform: rotate(1.2deg); }
.std-badge:hover { transform: rotate(0) translateY(-6px); }
.std-badge .std-icon { font-size: 2.2rem; line-height: 1; }
.std-badge strong { font-size: 1.25rem; color: var(--ink); }
.std-badge small { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.std-badge .std-check {
  position: absolute; top: -14px; inset-inline-end: -10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--mint); color: #fff; font-weight: 900;
  border: 2.5px solid var(--ink); display: grid; place-items: center;
  transform: rotate(8deg); box-shadow: 2px 2px 0 var(--ink);
}

@media (max-width: 1024px) { .standards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .standards-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp button ---------- */
.btn-whatsapp {
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; gap: .55em;
}
.btn-whatsapp:hover { background: #1EBE5B; color: #fff; }
.btn-whatsapp svg { flex-shrink: 0; }

/* ---------- "sample of thousands" note ---------- */
.sample-note {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--yellow-l);
  border: 2px dashed var(--ink); border-radius: var(--radius);
  padding: 1.1rem 1.5rem; margin-bottom: 2.2rem;
  transform: rotate(-.4deg);
}
.sample-note-icon {
  font-size: 2rem; flex-shrink: 0;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 50%;
  width: 56px; height: 56px; display: grid; place-items: center;
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-6deg);
}
.sample-note p { flex: 1; margin: 0; font-size: 1rem; color: var(--ink); }
.sample-note .btn { white-space: nowrap; }
@media (max-width: 680px) {
  .sample-note { flex-direction: column; text-align: center; }
}

/* ---------- Language menu ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer;
  font-weight: 800; font-size: .92rem; color: var(--ink);
  padding: .4em .95em; border-radius: 999px;
  border: 2px dashed var(--ink); background: var(--blue-l);
  white-space: nowrap; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--mint-l); }
.lang-menu[open] summary { background: var(--yellow-l); }
.lang-menu ul {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  background: #fff; border: var(--line-w) solid var(--ink);
  border-radius: 14px; box-shadow: var(--pop-sm);
  padding: .5rem; min-width: 140px; z-index: 120;
}
.lang-menu li a {
  display: block; padding: .45em .9em; border-radius: 10px;
  color: var(--ink); font-weight: 700; font-size: .92rem; white-space: nowrap;
}
.lang-menu li a:hover { background: var(--yellow-l); color: var(--ink); }

.lang-list-mobile { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.lang-chip {
  padding: .35em .9em; border-radius: 999px; font-weight: 800; font-size: .85rem;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
}
.lang-chip.active { background: var(--yellow); }

@media (max-width: 680px) {
  .lang-menu summary { font-size: .72rem; padding: .35em .55em; }
}

/* official certification logos */
.std-logo-wrap {
  display: flex; gap: .7rem; align-items: center; justify-content: center;
  height: 74px; width: 100%; margin-bottom: .5rem;
}
.std-badge .std-logo {
  max-height: 74px; max-width: 46%; width: auto; height: auto;
  object-fit: contain; transition: transform .25s;
}
.std-logo-wrap .std-logo:only-child { max-width: 82%; }
.std-badge:hover .std-logo { transform: scale(1.07); }

/* service card photos (instead of emoji icons) */
.card .card-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: var(--pop-sm); margin-bottom: 1.1rem;
  transform: rotate(-.6deg);
  transition: transform .2s;
}
.card:nth-child(even) .card-img { transform: rotate(.6deg); }
.card:hover .card-img { transform: rotate(0) scale(1.02); }

/* ---------- Office address card (about page) ---------- */
.office-card {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  background: #fff; border: var(--line-w) solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--pop);
  padding: 1.8rem 2rem; transform: rotate(-.4deg);
}
.office-pin {
  font-size: 2rem; flex-shrink: 0;
  background: var(--yellow-l); border: 2.5px solid var(--ink); border-radius: 50%;
  width: 62px; height: 62px; display: grid; place-items: center;
  box-shadow: var(--pop-sm); transform: rotate(-6deg);
}
.office-card > div { flex: 1; min-width: 240px; }
.office-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.office-card address {
  font-style: normal; color: var(--muted); font-size: 1rem; line-height: 1.7;
}
.office-contact { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .7rem; font-weight: 700; font-size: .93rem; }
@media (max-width: 680px) {
  .office-card { flex-direction: column; text-align: center; }
  .office-contact { justify-content: center; }
}

/* ---------- Contact channel cards (contact page) ---------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.channel-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .75rem;
  background: #fff;
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: 2rem 1.4rem;
  transition: transform .2s, box-shadow .2s;
  min-width: 0;
}
.channel-card:nth-child(3n+1) { background: var(--blue-l);   transform: rotate(-1.2deg); }
.channel-card:nth-child(3n+2) { background: var(--yellow-l); transform: rotate(1.2deg); }
.channel-card:nth-child(3n+3) { background: var(--mint-l);   transform: rotate(-.8deg); }
.channel-card:hover { transform: rotate(0) translate(-3px, -5px); box-shadow: var(--pop-hover); }
.channel-icon {
  font-size: 1.9rem; line-height: 1;
  width: 66px; height: 66px; display: grid; place-items: center;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: var(--pop-sm); transform: rotate(-6deg);
}
.channel-card h3 { font-size: 1.15rem; margin: .4rem 0 0; }
.channel-value {
  font-weight: 700; font-size: 1rem; color: var(--ink);
  word-break: break-word; overflow-wrap: anywhere; max-width: 100%;
}
.channel-value:hover { text-decoration: underline; }
.channel-card .btn { margin-top: auto; max-width: 100%; }

.channel-extra {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem; margin-top: 2.6rem;
  background: #fff;
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop-sm);
  padding: 1.6rem 1.8rem;
}
.channel-extra-item { display: flex; gap: .9rem; align-items: center; min-width: 0; }
.channel-extra-icon {
  font-size: 1.35rem; flex-shrink: 0;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--yellow-l); border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: var(--pop-sm); transform: rotate(-5deg);
}
.channel-extra-item address {
  font-style: normal; color: var(--muted); line-height: 1.65; font-size: .95rem;
  overflow-wrap: anywhere;
}
.channel-extra-item p { color: var(--muted); font-size: .95rem; margin: 0; }

@media (max-width: 680px) {
  .channel-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .channel-extra { grid-template-columns: 1fr; }
  .channel-card { padding: 1.6rem 1.1rem; }
}

/* ============================================================
   FAQ PAGE (faq.php) — toy-box accordion, answers always in DOM
   ============================================================ */
.faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 1.4rem; }

.faq-item {
  background: #fff;
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: 0;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.faq-item:nth-child(3n+1) { background: var(--blue-l);   transform: rotate(-.5deg); }
.faq-item:nth-child(3n+2) { background: var(--yellow-l); transform: rotate(.45deg); }
.faq-item:nth-child(3n+3) { background: var(--mint-l);   transform: rotate(-.35deg); }
.faq-item:hover { transform: rotate(0deg) translate(-2px, -3px); box-shadow: var(--pop-hover); }
.faq-item[open] { transform: rotate(0deg); }

.faq-q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .9rem;
  padding: 1.15rem 1.35rem;
  font-family: inherit; font-weight: 800; font-size: 1.06rem; line-height: 1.5;
  color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: var(--radius); }

.faq-num {
  flex: 0 0 auto;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: #fff; color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: var(--pop-sm);
  font-size: .95rem; font-weight: 900;
  transform: rotate(-6deg);
}
.faq-q-text { flex: 1 1 auto; min-width: 0; }

.faq-mark {
  flex: 0 0 auto; position: relative;
  width: 32px; height: 32px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 10px;
  box-shadow: var(--pop-sm);
  transition: transform .2s ease;
}
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--ink); border-radius: 2px;
}
.faq-mark::before { width: 14px; height: 3px; }
.faq-mark::after  { width: 3px;  height: 14px; transition: transform .2s ease; }
.faq-item[open] .faq-mark { transform: rotate(180deg); }
.faq-item[open] .faq-mark::after { transform: scaleY(0); }

.faq-a {
  padding: 0 1.35rem 1.35rem;
  margin-inline-start: calc(38px + .9rem);
}
.faq-a p {
  margin: 0; color: var(--ink);
  font-size: 1rem; line-height: 1.85;
  border-top: 2px dashed var(--ink);
  padding-top: 1rem;
}

.faq-cta {
  max-width: 900px; margin: 3rem auto 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem;
  background: var(--pink-l);
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--pop);
  padding: 2rem 2.2rem;
}
.faq-cta h2 { margin: 0 0 .5rem; font-size: 1.5rem; }
.faq-cta p  { margin: 0; color: var(--muted); }
.faq-cta-contact {
  display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: .9rem !important;
}
.faq-cta-contact a { font-weight: 700; color: var(--ink); text-decoration: none; }
.faq-cta-contact a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .faq-q { padding: 1rem 1rem; font-size: 1rem; gap: .7rem; }
  .faq-num { width: 32px; height: 32px; font-size: .85rem; }
  .faq-a { padding: 0 1rem 1.15rem; margin-inline-start: 0; }
  .faq-cta { padding: 1.6rem 1.2rem; }
  .faq-item, .faq-item:nth-child(3n+1), .faq-item:nth-child(3n+2), .faq-item:nth-child(3n+3) { transform: none; }
}

/* ---------- WeChat: floating button + QR modal ---------- */
.wechat-float {
  position: fixed; bottom: 94px; inset-inline-end: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #07C160; color: #fff; display: grid; place-items: center;
  border: var(--line-w) solid var(--ink); box-shadow: var(--pop-sm);
  cursor: pointer; padding: 0;
  transition: transform .2s;
}
.wechat-float:hover { transform: scale(1.12) rotate(-8deg); }

.wechat-modal {
  position: fixed; inset: 0; z-index: 200;
  background:
    radial-gradient(rgba(255,255,255,.06) 2px, transparent 2px),
    rgba(35, 37, 82, .94);
  background-size: 26px 26px, 100% 100%;
  display: grid; place-items: center; padding: 1.5rem;
}
.wechat-modal[hidden] { display: none; }
.wechat-box {
  position: relative; background: #fff; text-align: center;
  border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 #07C160, 8px 8px 0 3px var(--ink);
  padding: 1.8rem 1.6rem 1.4rem; max-width: min(360px, 92vw);
}
.wechat-box h4 { font-size: 1.15rem; margin-bottom: .9rem; }
.wechat-box img {
  width: 100%; max-width: 280px; height: auto; margin-inline: auto;
  border: 2.5px solid var(--ink); border-radius: 14px;
}
.wechat-id { margin-top: .9rem; font-size: .95rem; color: var(--ink); }
.wechat-hint { margin-top: .4rem; font-size: .88rem; color: var(--muted); }
.wechat-close {
  position: absolute; top: -16px; inset-inline-end: -16px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--red); color: #fff; border: 2.5px solid var(--ink);
  font-size: 1.1rem; font-weight: 800; cursor: pointer;
  box-shadow: var(--pop-sm);
}
.wechat-close:hover { transform: rotate(90deg); transition: transform .25s; }

/* inline QR on the contact page */
.wechat-qr-inline {
  width: 100%; max-width: 190px; height: auto; margin: .8rem auto .2rem;
  border: 2.5px solid var(--ink); border-radius: 12px;
}

@media (max-width: 680px) {
  .wechat-float { width: 52px; height: 52px; bottom: 78px; inset-inline-end: 16px; }
}

/* Chinese address line — shown under the English address in every language */
.addr-zh { display:inline-block; margin-top:.15em; font-size:.92em; opacity:.85; letter-spacing:.02em; }

/* Legal entity block above the copyright line */
.footer-legal {
  border-top: 2px dashed rgba(255,255,255,.18);
  padding-block: 1.3rem;
  font-size: .86rem; line-height: 1.75;
  color: rgba(255,255,255,.72); text-align: center;
}
.footer-legal p { margin: 0; }
.footer-legal .legal-lead { font-weight: 700; color: rgba(255,255,255,.9); margin-bottom: .35rem; }
.footer-legal .legal-name { margin-bottom: .45rem; }
.footer-legal .legal-name strong { color: #fff; font-weight: 800; }
.footer-legal span { unicode-bidi: isolate; }
