/*
 * theme-extras.css
 *
 * The hengjitai theme ships a pre-purged Tailwind bundle (combined.min.css)
 * generated from the ORIGINAL hengjitai-pipeline-site templates. Any utility
 * class that the original site never used is missing from that bundle.
 *
 * This file supplements the bundle with extra responsive / layout / sizing
 * utilities that the site-forge-version partials (notably the responsive
 * header, mobile drawer, and module hooks) depend on. It is intentionally
 * narrow: only classes that DO appear in our templates but DO NOT exist in
 * combined.min.css.
 *
 * If you add new Tailwind utilities to a partial and they don't render,
 * verify with:
 *     grep -F '.your-class' themes/<theme>/assets/css/combined.min.css
 * and add the missing rule here.
 */

/* ---------- sizing ---------- */
/* The purged combined.min.css ships .w-32 / .h-32 (substring matches but
   different size!) but NOT bare .w-3 / .h-3. Without these, any svg with
   `class="w-3 h-3"` renders at default svg size (~300x150), which is what
   made the lang-switcher / nav dropdown chevrons huge. */
.w-3    { width: 0.75rem; }   /* 12px */
.h-3    { height: 0.75rem; }
.w-3\.5 { width: 0.875rem; }  /* 14px */
.h-3\.5 { height: 0.875rem; }
.w-auto { width: auto; }      /* logo: keep aspect ratio next to fixed h */

/* ---------- spacing: gap ---------- */
.gap-0\.5 { gap: 0.125rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-3    { gap: 0.75rem; }

/* ---------- spacing: padding ---------- */
.px-2     { padding-left: 0.5rem;  padding-right: 0.5rem; }
.px-2\.5  { padding-left: 0.625rem;padding-right: 0.625rem; }
.py-3     { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.pb-4     { padding-bottom: 1rem; }
.pt-0     { padding-top: 0; }
.pl-6     { padding-left: 1.5rem; }
.pr-2     { padding-right: 0.5rem; }
.pb-2     { padding-bottom: 0.5rem; }

/* ---------- spacing: margin ---------- */
.m-0      { margin: 0; }
.-mr-1    { margin-right: -0.25rem; }

/* ---------- border radius ---------- */
.rounded-md { border-radius: 0.375rem; }

/* ---------- flex ---------- */
.shrink-0      { flex-shrink: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0       { min-width: 0; }
.inline-flex   { display: inline-flex; }
.flex-nowrap   { flex-wrap: nowrap; }
.w-full        { width: 100%; }

/* ---------- text overflow ---------- */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- overflow ---------- */
.overflow-y-auto { overflow-y: auto; }

/* ---------- borders & subtle slate colors (header drawer / dropdowns) ---------- */
.border-slate-100 { border-color: rgb(241 245 249); }
.border-slate-200 { border-color: rgb(226 232 240); }
.text-slate-600   { color: rgb(71 85 105); }

/* ---------- arbitrary max-* ---------- */
.max-w-\[14rem\] { max-width: 14rem; }
.max-w-\[22rem\] { max-width: 22rem; }
.max-h-\[70vh\]  { max-height: 70vh; }

/* ---------- responsive: sm (>= 640px) ---------- */
@media (min-width: 640px) {
  .sm\:inline       { display: inline; }
  .sm\:inline-block { display: inline-block; }
  .sm\:gap-2        { gap: 0.5rem; }
  .sm\:gap-3        { gap: 0.75rem; }
}

/* ---------- responsive: lg (>= 1024px) ---------- */
@media (min-width: 1024px) {
  .lg\:inline { display: inline; }
}

/* ---------- responsive: xl (>= 1280px) ---------- */
@media (min-width: 1280px) {
  .xl\:inline       { display: inline; }
  .xl\:hidden       { display: none; }
  .xl\:gap-1        { gap: 0.25rem; }
  .xl\:px-3         { padding-left: 0.75rem; padding-right: 0.75rem; }
  .xl\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
 * Pre-existing partial utilities that the original hengjitai
 * bundle never purged. Added once so npm run theme:audit passes
 * and so future visual regressions surface immediately.
 * ============================================================ */

/* ---------- backgrounds / borders ---------- */
.bg-transparent { background-color: transparent; }
.border-0       { border-width: 0; }

/* ---------- transitions ---------- */
.duration-500  { transition-duration: 500ms; }

/* ---------- gradients (primary = rgb(22 45 82)) ---------- */
.from-primary\/90 {
  --tw-gradient-from: rgb(22 45 82 / 0.9);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(22 45 82 / 0));
}
.via-slate-900\/55 {
  --tw-gradient-stops: var(--tw-gradient-from), rgb(15 23 42 / 0.55),
                       var(--tw-gradient-to, rgb(15 23 42 / 0));
}
.via-white\/40 {
  --tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / 0.4),
                       var(--tw-gradient-to, rgb(255 255 255 / 0));
}

/* ---------- spacing / size ---------- */
.gap-10  { gap: 2.5rem; }
.mb-5    { margin-bottom: 1.25rem; }
.mb-7    { margin-bottom: 1.75rem; }
.mt-20   { margin-top: 5rem; }
.pb-8    { padding-bottom: 2rem; }
.pt-14   { padding-top: 3.5rem; }
.px-7    { padding-left: 1.75rem; padding-right: 1.75rem; }
.max-w-none { max-width: none; }

/* ---------- text colors ---------- */
.text-slate-900 { color: rgb(15 23 42); }
.text-white\/85 { color: rgb(255 255 255 / 0.85); }

/* ---------- hover states ---------- */
.hover\:bg-white\/90:hover { background-color: rgb(255 255 255 / 0.9); }
.hover\:shadow-md:hover    { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
                                          0 2px 4px -2px rgb(0 0 0 / 0.1); }

/* ---------- decorations ---------- */
.no-underline { text-decoration-line: none; }

/* ---------- custom button radius (theme-specific) ---------- */
.rounded-button { border-radius: 0.5rem; }

/* ---------- prose (typography placeholders ¡ª the theme uses these on
   the text-block partial but the original bundle never shipped the
   typography plugin). Minimal sensible defaults; if you need the full
   typography reset, install @tailwindcss/typography in the theme's
   own build pipeline. ---------- */
.prose       { max-width: 65ch; line-height: 1.7; }
.prose-slate { color: rgb(51 65 85); }

/* ---------- responsive supplements ---------- */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-12    { padding-left: 3rem;  padding-right: 3rem; }
  .sm\:py-14    { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .sm\:py-20    { padding-top: 5rem;   padding-bottom: 5rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem;  line-height: 2.5rem; }
}
@media (min-width: 768px) {
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cursor-zoom-in { cursor: zoom-in; }
.object-contain { object-fit: contain; }
.top-3 { top: 0.75rem; }
.right-3 { right: 0.75rem; }
.bg-primary\/90 { background-color: rgb(22 45 82 / 0.9); }
.border-white\/80 { border-color: rgb(255 255 255 / 0.8); }
.border-white\/50 { border-color: rgb(255 255 255 / 0.5); }
.hover\:bg-white\/10:hover { background-color: rgb(255 255 255 / 0.1); }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-no-repeat { background-repeat: no-repeat; }
.product-catalog-section { border-top: 1px solid rgb(226 232 240); margin-top: 2rem; padding-top: 2.5rem; opacity: 0.95; }
.image-grid-photo { /* marker class for image-viewer binding */ }
.leading-snug { line-height: 1.375; }
.max-h-full { max-height: 100%; }
.max-w-full { max-width: 100%; }
.transition-shadow { transition-property: box-shadow; transition-duration: 150ms; }
@media (min-width: 640px) {
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- brochure-aligned components ---------- */
.brochure-stat-card {
  border-left: 3px solid #162d52;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.brochure-spec-table {
  border: 1px solid rgb(226 232 240);
  border-radius: 0.375rem;
  overflow: hidden;
}
.brochure-img-frame img {
  max-height: 100%;
}
.aspect-\[4\/3\] {
  aspect-ratio: 4 / 3;
}
.rounded-md { border-radius: 0.375rem; }
.bg-primary\/10 { background-color: rgb(22 45 82 / 0.1); }
.text-primary\/90 { color: rgb(22 45 82 / 0.9); }
.border-primary\/25 { border-color: rgb(22 45 82 / 0.25); }
.bg-primary\/5 { background-color: rgb(22 45 82 / 0.05); }
@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:gap-12 { gap: 3rem; }
}
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.border-slate-200\/80 { border-color: rgb(226 232 240 / 0.8); }
.border-collapse { border-collapse: collapse; }
.list-none { list-style-type: none; }
.pl-0 { padding-left: 0; }
.pl-4 { padding-left: 1rem; }
.p-5 { padding: 1.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.tracking-wide { letter-spacing: 0.025em; }
.uppercase { text-transform: uppercase; }
.bg-slate-50\/50 { background-color: rgb(248 250 252 / 0.5); }
.brochure-ribbon { line-height: 1.25; }
.partner-card { /* layout marker */ }
.section-heading__title {
  position: relative;
}
.section-heading.text-center .section-heading__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: #162d52;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  opacity: 0.85;
}
.contact-band .border-primary-light\/30 { border-color: rgb(31 61 112 / 0.35); }
.prose-en { line-height: 1.65; }
.prose-en p { margin-bottom: 0.85em; }
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}
.cta-panel { box-shadow: 0 12px 40px rgb(22 45 82 / 0.18); }
.prose-en { line-height: 1.65; }
.border-l-4 { border-left-width: 4px; }
.pl-3 { padding-left: 0.75rem; }
.border-primary { border-color: #162d52; }
.hover\:underline:hover { text-decoration-line: underline; }
.underline-offset-2 { text-underline-offset: 2px; }
.rounded-md { border-radius: 0.375rem; }
.is-visible { /* scroll reveal */ }
.contact-band { /* layout marker */ }
.hover\:border-primary\/35:hover { border-color: rgb(22 45 82 / 0.35); }
.hover\:text-white\/90:hover { color: rgb(255 255 255 / 0.9); }
.max-w-5xl { max-width: 64rem; }
.p-0 { padding: 0; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
@media (min-width: 640px) {
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}
@media (min-width: 1024px) {
  .lg\:items-center { align-items: center; }
  .lg\:justify-between { justify-content: space-between; }
}
@media (min-width: 640px) {
  .sm\:gap-4 { gap: 1rem; }
  .sm\:gap-5 { gap: 1.25rem; }
  .sm\:items-end { align-items: flex-end; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .sm\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
}
