/*
Theme Name: HM International
Description: Digital printing on fabric — HM International, Okhla Phase II, New Delhi. Bootstrap 5 CSS, no JS framework.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: hmintl
*/
:root {
  --ink: #111217;
  --ink-2: #24262e;
  --accent: #e0136f;
  --accent-dark: #b30d58;
  --cyan: #009fd1;
  --yellow: #ffcc00;
  --paper: #ffffff;
  --soft: #f3f4f6;
  --muted: #5b5f73;
  --line: #e2e4e9;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --bs-body-color: #1f2233;
  --bs-link-color: var(--accent-dark);
  --bs-link-color-rgb: 168, 23, 75;
  --bs-link-hover-color: var(--ink);
}
body { background: var(--paper); color: #1f2233; }
h1, h2, h3, .h1, .h2, .h3 { color: var(--ink); letter-spacing: -.01em; }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 1000; background: #fff; padding: .5rem 1rem; }

/* header */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 50; }
.site-header .navbar { padding: .6rem 0; }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: conic-gradient(from 210deg, var(--cyan), var(--accent), var(--yellow), var(--cyan)); color: #fff;
  font-weight: 800; font-size: .95rem; margin-right: .6rem; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.1; color: #fff; font-weight: 700; vertical-align: middle; }
.brand-text small { font-weight: 400; font-size: .72rem; color: #c9cbe3; letter-spacing: .04em; }
.navbar-brand { display: flex; align-items: center; }
.navbar-dark .nav-link { color: #e6e7f5; }
.navbar-dark .nav-link:hover, .navbar-dark .nav-link.active { color: #fff; }
.navbar-dark .nav-link.active { box-shadow: inset 0 -2px 0 var(--accent); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline-ink { border: 1px solid var(--ink); color: var(--ink); font-weight: 600; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.topbar { background: #000; color: #c9cbe3; font-size: .85rem; }
.topbar a { color: #fff; text-decoration: none; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% 20%, rgba(209,33,95,.35), transparent 60%),
  radial-gradient(900px 500px at 0% 100%, rgba(11,143,163,.35), transparent 60%), var(--ink); color: #e9eaf7; }
.hero h1 { color: #fff; }
.hero .lead { color: #d5d7ee; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--yellow); margin-bottom: .75rem; }
.hero-img img { border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); width: 100%; height: auto; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.hero-badges li { border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: .3rem .8rem; font-size: .85rem; color: #fff; }
.page-hero { background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #d5d7ee; }
.page-hero h1 { color: #fff; }
.crumbs { font-size: .85rem; margin-bottom: .5rem; }
.crumbs a { color: #c9cbe3; }

/* sections */
.section-head { max-width: 760px; margin-bottom: 2rem; }
.bg-soft { background: var(--soft); }
.card-svc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; height: 100%; }
.card-svc h3 { font-size: 1.15rem; }
.card-svc .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .9rem;
  background: rgba(209,33,95,.1); color: var(--accent-dark); font-weight: 800; }
.card-svc p:last-child { margin-bottom: 0; }
.tick { list-style: none; padding-left: 0; }
.tick li { padding-left: 1.6rem; position: relative; margin-bottom: .45rem; }
.tick li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem;
  border-left: 3px solid var(--cyan); border-bottom: 3px solid var(--cyan); transform: rotate(-45deg); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.25rem 1.25rem 1.25rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; margin-bottom: .6rem; }
.fabric-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.fabric { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 10px; padding: 1rem 1.1rem; }
.fabric h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.fabric p { margin: 0; color: var(--muted); font-size: .93rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .35rem .85rem; font-size: .9rem; }
.gallery img, .shot img { border-radius: 12px; width: 100%; height: 100%; object-fit: cover; }
.shot { margin: 0; }
.shot figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.ratio-43 { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; }
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; }
.fact b { display: block; font-size: 1.35rem; color: var(--ink); }
.fact span { color: var(--muted); font-size: .9rem; }
.cta-band { background: linear-gradient(120deg, var(--accent-dark), var(--ink)); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .75rem; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--ink); }
.faq details p { margin: .6rem 0 0; }
.hours { width: 100%; max-width: 320px; }
.hours td { padding: .15rem 0; }
.map-embed { border: 0; width: 100%; height: 340px; border-radius: 14px; }

/* forms */
.rfq { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.rfq .form-label { font-weight: 600; font-size: .92rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 1rem; background: var(--paper); }

/* footer */
.site-footer { background: #000; color: #b9bbd6; }
.site-footer a { color: #fff; }
.site-footer .h5, .site-footer .h6 { color: #fff; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 60; }
.wa-float:hover { color: #fff; background: #1ebe57; }
.staging-bar { background: var(--yellow); color: #1f2233; text-align: center; font-size: .85rem; padding: .35rem 1rem; }

/* WooCommerce (phase 2 scaffold) */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { background: var(--accent) !important; color: #fff !important; border-radius: 8px !important; }
.woocommerce .button:hover { background: var(--accent-dark) !important; }
.hm-order-fields { background: var(--soft); border-radius: 12px; padding: 1rem; margin: 1rem 0; }
.hm-order-fields label { font-weight: 600; display: block; margin: .5rem 0 .25rem; }
.hm-order-fields select, .hm-order-fields input[type=file], .hm-order-fields textarea { width: 100%; }
.woocommerce-store-notice, p.demo_store { background: var(--ink) !important; }

@media (max-width: 575.98px) {
  .display-5 { font-size: 2rem; }
  .map-embed { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* g-5 gutters (3rem) are wider than the container padding on phones and cause a sideways scroll. */
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
.hm-on-dark { color: rgba(255,255,255,.86) !important; }
.ratio-11 { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; }
.ratio-11 img { width: 100%; height: 100%; object-fit: cover; }
/* AI-generated fabric backdrop behind the home hero (real photos sit on top). */
.hero-art { background: linear-gradient(90deg, rgba(21,23,58,.95) 0, rgba(21,23,58,.84) 45%, rgba(21,23,58,.4) 100%),
            url(img/hm-hero-bg-1600.webp) center / cover no-repeat, var(--ink); }
.brand-logo { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #fff; margin-right: 10px; flex: 0 0 auto; }
.brand-logo img { width: 30px; height: 36px; }

/* ---- Identity: "ink + CMYK" (Sky Fashion, the sister site, is the light ivory/terracotta one; keep them apart). ---- */
h1, h2, h3, .h1, .h2, .h3, .h4, .display-4, .facts-dark b, .brand-text { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -.02em; }
.btn { border-radius: 6px; }
.card-svc, .steps li, .fact, .rfq, .faq details, .ratio-43, .ratio-11, .chips li { border-radius: 6px; }
.site-header { box-shadow: 0 3px 0 0 var(--accent); }
.brand-logo { border-radius: 6px; }
.hero-hm { position: relative; color: #e9eaf0; padding: 7rem 0 8rem;
  background: linear-gradient(90deg, rgba(10,11,15,.96) 0, rgba(10,11,15,.86) 42%, rgba(10,11,15,.25) 100%),
              url(img/hm-machine-1-1600.webp?v=20261023) center / cover no-repeat, var(--ink); }
@media (max-width: 991.98px) { .hero-hm { padding: 4rem 0 5rem;
  background: linear-gradient(180deg, rgba(10,11,15,.78) 0, rgba(10,11,15,.92) 100%), url(img/hm-machine-1-960.webp?v=20261023) center / cover no-repeat, var(--ink); } }
.hero-hm h1 { color: #fff; font-weight: 700; line-height: 1.05; }
.hero-hm .lead { color: #d3d5de; max-width: 34rem; }
.hero-hm .eyebrow { color: var(--yellow); }
.link-wa { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--cyan); }
.link-wa:hover { color: var(--yellow); }
.cmyk { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; display: grid; grid-template-columns: repeat(4, 1fr); }
.cmyk i:nth-child(1) { background: var(--cyan); } .cmyk i:nth-child(2) { background: var(--accent); }
.cmyk i:nth-child(3) { background: var(--yellow); } .cmyk i:nth-child(4) { background: #000; }
.capab { background: var(--ink); color: #c9cbd6; }
.facts-dark { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 575.98px) { .facts-dark b { font-size: 1.25rem; } .facts-dark > div { padding: .8rem .6rem; } }
.facts-dark > div { padding: 1rem 1.2rem; border-top: 3px solid var(--cyan); }
.facts-dark > div:nth-child(2) { border-color: var(--accent); } .facts-dark > div:nth-child(3) { border-color: var(--yellow); } .facts-dark > div:nth-child(4) { border-color: #fff; }
.facts-dark b { display: block; font-size: 1.6rem; color: #fff; }
.facts-dark span { font-size: .9rem; }
.machines figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; padding-left: .6rem; border-left: 3px solid var(--accent); }
.ratio-43 img { width: 100%; height: 100%; object-fit: cover; }
.cta-band { background: var(--ink); border-top: 8px solid var(--accent); }
.card-svc .ico { background: var(--ink); color: #fff; border-radius: 6px; }

/* Images are never cropped or stretched: boxed images are fitted whole on white (contain); only photos whose own
   shape matches the box opt into .cover; large single images (.feat) keep their natural shape. */
.ratio-43, .ratio-11, .ratio-34 { background: #fff; }
.ratio-43 img, .ratio-11 img, .ratio-34 img { width: 100%; height: 100%; object-fit: contain; }
.ratio-34 { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; }
.cover img { object-fit: cover !important; }
.feat { border-radius: 6px; overflow: hidden; background: #fff; }
.feat img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }

/* guides (landing/guides_and_processes.py) */
.guide h2 { font-size: 1.45rem; margin-top: 2rem; }
.guide .table { font-size: .92rem; }
.guide .table th { background: #111217; color: #fff; }
.sources a { word-break: break-word; }
.guide + aside .card-svc { height: auto; }

/* home: product gallery + Japanese-machines band (22-Oct-2026) */
.prodtile figcaption { font-size: .88rem; color: var(--muted); margin-top: .45rem; padding-left: .6rem; border-left: 3px solid var(--accent); }
.bg-ink { background: var(--ink); }
.jp .hm-on-dark, .jp .tick li { color: #d5d7ee; }
.jp .feat { background: #000; }
.cap-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem; height: 100%; }
.cap-card h3 { font-size: 1.1rem; }
