/* ==========================================================================
   Industry landing pages (/industries, /industries/{industry})

   A standalone stylesheet rather than a new partial in resources/sass: the
   compiled app.min.css is a build artifact, and building it on the live box
   is what took the site down in September 2026. Loaded only by the
   industries views (industries/partials/styles.blade.php), with a
   filemtime() query string because nginx caches /assets for 30 days.

   Everything is scoped under .ind-page so nothing leaks into the rest of
   the site, and the brand colours match the theme (#11a5de -> #5cf4ff
   gradient, #1a2a6c navy).
   ========================================================================== */

.ind-page {
  --ind-navy: #1a2a6c;
  --ind-navy-2: #0f1b4d;
  --ind-blue: #11a5de;
  --ind-cyan: #5cf4ff;
  --ind-ink: #1f2937;
  --ind-muted: #5b6472;
  --ind-line: #e3e9ef;
  --ind-bg: #f4f8fb;
  --ind-accent: #11a5de;
  --ind-accent-soft: #e7f6fc;
  color: var(--ind-ink);
  line-height: 1.75;
  overflow-x: hidden;
}

.ind-page *, .ind-page *::before, .ind-page *::after { box-sizing: border-box; }

.ind-page:lang(ja) {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-break: strict;
}

/* Line breaking. Japanese has no spaces, so by default a browser may break
   between any two characters - which is how a lone 「い」 or 「いる。」 ended up
   on its own line. auto-phrase breaks only between phrases (Chromium 119+;
   other browsers ignore it and keep strict line-break), balance evens out
   the lines of a heading, and pretty keeps a paragraph's last line from
   being a single word. pretty/balance help vi/en too, so they apply to all. */
.ind-page h1, .ind-page h2, .ind-page h3, .ind-page dt { text-wrap: balance; }
.ind-page p, .ind-page dd, .ind-page li { text-wrap: pretty; }
.ind-page:lang(ja) h1, .ind-page:lang(ja) h2, .ind-page:lang(ja) h3, .ind-page:lang(ja) dt,
.ind-page:lang(ja) p, .ind-page:lang(ja) dd, .ind-page:lang(ja) li { word-break: auto-phrase; }

.ind-theme-healthcare { --ind-accent: #0f9f87; --ind-accent-soft: #e3f6f2; }
.ind-theme-ec-retail { --ind-accent: #ea7a12; --ind-accent-soft: #fdf0e3; }
.ind-theme-education { --ind-accent: #6a58d6; --ind-accent-soft: #efecfb; }

.ind-page h1, .ind-page h2, .ind-page h3, .ind-page h4 { color: inherit; line-height: 1.4; }
.ind-page p { margin: 0; }
.ind-page ul { margin: 0; padding: 0; list-style: none; }

/* --- Breadcrumb ---------------------------------------------------------- */
.ind-page .ind-breadcrumb { background: var(--ind-navy-2); padding: 14px 0 0; }
.ind-page .ind-breadcrumb .breadcrumb { margin: 0; font-size: .82rem; }
.ind-page .ind-breadcrumb .breadcrumb-item,
.ind-page .ind-breadcrumb .breadcrumb-item a,
.ind-page .ind-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .72); }
.ind-page .ind-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.ind-page .ind-breadcrumb .breadcrumb-item.active { color: #fff; }

/* --- Hero ---------------------------------------------------------------- */
.ind-hero {
  position: relative;
  color: #fff;
  padding: 40px 0 72px;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(92, 244, 255, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(17, 165, 222, .25), transparent 60%),
    linear-gradient(135deg, var(--ind-navy-2) 0%, var(--ind-navy) 55%, #123d8a 100%);
  overflow: hidden;
}
.ind-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.ind-hero > .container-xl { position: relative; z-index: 1; }
.ind-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  margin-bottom: 18px;
}
.ind-eyebrow .fa { color: var(--ind-cyan); }
.ind-hero h1 {
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: .01em;
  color: #fff;
}
.ind-hero-lead { font-size: 1.05rem; color: rgba(255, 255, 255, .88); max-width: 46em; }
.ind-hero-points { display: grid; gap: 8px; margin: 24px 0 30px !important; }
.ind-hero-points li { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; font-size: .95rem; }
.ind-hero-points .fa { color: var(--ind-cyan); margin-top: .35em; }
.ind-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ind-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 260px;
  margin-left: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, .04), 0 0 0 36px rgba(255, 255, 255, .025);
}
.ind-hero-visual .fa { font-size: 110px; color: #fff; opacity: .95; }

/* --- Buttons ------------------------------------------------------------- */
.ind-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ind-btn:hover { transform: translateY(-1px); text-decoration: none; }
.ind-btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--ind-blue) 0%, #2fc6ef 100%);
  box-shadow: 0 8px 22px rgba(17, 165, 222, .35);
}
.ind-btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(17, 165, 222, .45); }
.ind-btn-ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .55); background: transparent; }
.ind-btn-ghost:hover { color: var(--ind-navy); background: #fff; border-color: #fff; }
.ind-btn-outline { color: var(--ind-navy); border: 2px solid var(--ind-line); background: #fff; }
.ind-btn-outline:hover { color: var(--ind-navy); border-color: var(--ind-blue); }

/* --- In-page navigation -------------------------------------------------- */
.ind-subnav { background: #fff; border-bottom: 1px solid var(--ind-line); }
.ind-subnav ul { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.ind-subnav ul::-webkit-scrollbar { display: none; }
.ind-subnav a {
  display: block;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ind-muted);
  text-decoration: none;
}
.ind-subnav a:hover { color: var(--ind-navy); background: var(--ind-bg); }

/* --- Sections ------------------------------------------------------------ */
.ind-section { padding: 76px 0; scroll-margin-top: 110px; }
.ind-section-alt { background: var(--ind-bg); }
.ind-section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.ind-section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ind-accent);
  margin-bottom: 8px;
}
.ind-section-head h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.05rem);
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--ind-navy);
}
.ind-section-head p { color: var(--ind-muted); }

/* Card grids. Fixed column counts, never auto-fit: auto-fit put five
   problem cards four-and-one on a wide container. The lists are sized to
   match (see IndustryController::INDUSTRIES), so no row is left half empty:
   - ind-grid-3: 3 across on desktop, 2 on tablets, 1 on phones (6 items)
   - ind-grid-2: 2 across down to tablets, 1 on phones (even counts)
   - ind-grid-trio: exactly three items, 3 across down to tablets, then 1 -
     two across would strand the third. */
.ind-grid-2, .ind-grid-3, .ind-grid-trio { display: grid; gap: 24px; }
.ind-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ind-grid-3, .ind-grid-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ind-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ind-line);
  border-radius: 16px;
  padding: 28px 28px 30px;
  height: 100%;
  break-inside: avoid;
}
.ind-card h3 { font-size: 1.12rem; font-weight: 800; margin: 0 0 10px; color: var(--ind-navy); }
.ind-card p { color: var(--ind-muted); font-size: .95rem; }

.ind-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 22px;
  color: var(--ind-accent);
  background: var(--ind-accent-soft);
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Problems */
/* Icon above the title, so the text gets the card's full width. */
.ind-problem { border-top: 4px solid var(--ind-accent); }
.ind-problem .ind-icon { width: 46px; height: 46px; font-size: 19px; margin-bottom: 14px; }
.ind-problem h3 { font-size: 1.06rem; }

/* Solutions */
.ind-solution { transition: box-shadow .2s ease, transform .2s ease; }
.ind-solution:hover { box-shadow: 0 14px 34px rgba(26, 42, 108, .09); transform: translateY(-2px); }

/* --- Case studies -------------------------------------------------------- */
.ind-case { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ind-case-head { padding: 24px 26px 18px; border-bottom: 1px solid var(--ind-line); }
.ind-case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ind-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  color: var(--ind-accent);
  background: var(--ind-accent-soft);
}
.ind-tag-dev { color: #8a5a00; background: #fff4d6; }
.ind-case-num { font-size: .76rem; font-weight: 800; color: var(--ind-muted); letter-spacing: .08em; }
.ind-case h3 { font-size: 1.18rem; margin: 0 0 8px; }
.ind-case-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--ind-muted); }
.ind-case-meta .fa { color: var(--ind-accent); margin-right: 4px; }
.ind-case-body { padding: 20px 26px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.ind-case-body dl { margin: 0; display: grid; gap: 14px; }
.ind-case-body dt {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ind-navy);
  margin-bottom: 2px;
}
.ind-case-body dd { margin: 0; font-size: .94rem; color: #3c4553; }
.ind-case-result {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ind-accent-soft);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ind-ink);
  display: flex;
  gap: 10px;
}
.ind-case-result .fa { color: var(--ind-accent); margin-top: .3em; }
.ind-case-result strong { display: block; font-size: .78rem; letter-spacing: .06em; color: var(--ind-accent); }
.ind-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ind-chips li {
  font-size: .76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  color: #3c4553;
  background: #f1f4f8;
  border: 1px solid var(--ind-line);
}

/* --- Products ------------------------------------------------------------ */
.ind-product { display: flex; gap: 20px; align-items: flex-start; }
.ind-product-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ind-accent-soft);
  color: var(--ind-accent);
  font-size: 30px;
  overflow: hidden;
}
.ind-product-logo img { width: 100%; height: 100%; object-fit: cover; }
.ind-product-tagline { font-size: .85rem; font-weight: 700; color: var(--ind-accent); margin-bottom: 4px !important; }
.ind-product .ind-btn { margin-top: 16px; min-height: 42px; padding: 8px 20px; font-size: .9rem; }

/* --- Stats band ---------------------------------------------------------- */
.ind-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ind-navy) 0%, #164a9c 100%);
  color: #fff;
  margin-bottom: 44px;
}
.ind-stat { padding: 26px 18px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .12); }
.ind-stat:last-child { border-right: 0; }
.ind-stat-value { font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem); font-weight: 800; line-height: 1.2; color: #fff; }
.ind-stat-label { font-size: .85rem; color: rgba(255, 255, 255, .78); }

.ind-strength-num {
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  color: transparent;
  background: linear-gradient(135deg, var(--ind-blue), var(--ind-navy));
  -webkit-background-clip: text;
  background-clip: text;
}

/* --- Process: six step cards on the same 3/2/1 grid -------------------- */
.ind-process { margin: 0; padding: 0; }
.ind-step-num {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(135deg, var(--ind-blue), var(--ind-navy));
}
.ind-step h3 { font-size: 1.06rem; }

.ind-model h3 { margin-bottom: 8px; }
.ind-model-best {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px dashed var(--ind-line);
  font-size: .88rem !important;
  color: var(--ind-ink) !important;
  font-weight: 700;
}
.ind-model-best span { display: block; font-size: .75rem; color: var(--ind-accent); letter-spacing: .06em; }

/* --- FAQ ----------------------------------------------------------------- */
.ind-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.ind-faq-item { background: #fff; border: 1px solid var(--ind-line); border-radius: 14px; padding: 20px 24px; break-inside: avoid; }
.ind-faq-item dt, .ind-faq-item dd { display: flex; gap: 14px; margin: 0; }
.ind-faq-item dt { font-weight: 800; color: var(--ind-navy); margin-bottom: 10px; }
.ind-faq-item dd { color: #3c4553; font-size: .95rem; }
.ind-faq-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  color: #fff;
  background: var(--ind-navy);
}
.ind-faq-item dd .ind-faq-mark { background: var(--ind-accent); }

/* --- CTA ----------------------------------------------------------------- */
.ind-cta {
  position: relative;
  color: #fff;
  border-radius: 24px;
  padding: 52px 40px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(92, 244, 255, .25), transparent 60%),
    linear-gradient(135deg, var(--ind-navy-2), var(--ind-navy) 60%, #164a9c);
}
.ind-cta h2 { font-size: clamp(1.35rem, 1rem + 1.3vw, 1.95rem); font-weight: 800; color: #fff; margin: 0 0 14px; }
.ind-cta p { color: rgba(255, 255, 255, .86); max-width: 40em; margin: 0 auto 26px; }
.ind-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ind-cta-contact { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; margin-top: 22px !important; font-size: .95rem; }
.ind-cta-contact a { color: #fff; font-weight: 700; text-decoration: none; }
.ind-cta-contact a:hover { text-decoration: underline; }
.ind-cta-contact span { color: rgba(255, 255, 255, .7); margin-right: 6px; }

/* --- Industry cards (hub + cross links) ---------------------------------- */
.ind-industry-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-top: 5px solid var(--ind-accent);
  transition: box-shadow .2s ease, transform .2s ease;
}
.ind-industry-card:hover { color: inherit; text-decoration: none; box-shadow: 0 16px 36px rgba(26, 42, 108, .12); transform: translateY(-3px); }
.ind-industry-card h3 { font-size: 1.25rem; }
.ind-industry-card .ind-more { margin-top: auto; padding-top: 16px; font-weight: 800; color: var(--ind-accent); }
.ind-industry-card ul { display: grid; justify-items: start; gap: 6px; margin: 14px 0 0 !important; }
.ind-why { max-width: 820px; margin: 0 auto; text-align: center; }
.ind-why p { color: var(--ind-muted); font-size: 1.02rem; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 991.98px) {
  .ind-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-grid-trio { gap: 18px; }
  .ind-grid-trio .ind-card { padding: 22px 20px 24px; }
}
@media (max-width: 767.98px) {
  .ind-section { padding: 56px 0; }
  .ind-hero { padding: 28px 0 52px; }
  .ind-grid-2, .ind-grid-3, .ind-grid-trio { grid-template-columns: 1fr; gap: 16px; }
  .ind-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-stat:nth-child(2) { border-right: 0; }
  .ind-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .ind-card { padding: 22px; }
  .ind-case-head, .ind-case-body { padding-left: 20px; padding-right: 20px; }
  .ind-cta { padding: 40px 20px; border-radius: 18px; }
  .ind-btn { width: 100%; }
  .ind-product { flex-direction: column; }
}

/* --- Print: these pages get shared as PDFs and printouts ------------------ */
@media print {
  @page { margin: 14mm 12mm; }
  .site-header, .main-footer, .scroltop, .ind-subnav, .ind-hero-actions, .ind-cta-actions,
  .ind-hero-visual, .loading-area, iframe { display: none !important; }
  .ind-page { font-size: 10.5pt; color: #000; }
  .ind-hero, .ind-breadcrumb { background: none !important; color: #000; padding: 0 0 12pt; }
  .ind-hero::after { display: none; }
  .ind-hero h1, .ind-hero-lead, .ind-eyebrow, .ind-hero-points li,
  .ind-breadcrumb .breadcrumb-item, .ind-breadcrumb .breadcrumb-item a { color: #000 !important; }
  .ind-eyebrow { border-color: #999; background: none; }
  .ind-section { padding: 14pt 0; }
  .ind-section-head { margin-bottom: 12pt; }
  .ind-section-alt { background: none; }
  .ind-card, .ind-faq-item { border-color: #bbb; box-shadow: none !important; transform: none !important; }
  .ind-grid-2, .ind-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10pt; }
  .ind-grid-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10pt; }
  .ind-stats, .ind-cta { background: none !important; color: #000; border: 1px solid #bbb; }
  .ind-stat-value, .ind-stat-label, .ind-cta h2, .ind-cta p, .ind-cta-contact a, .ind-cta-contact span { color: #000 !important; }
  .ind-case, .ind-step, .ind-problem, .ind-solution { break-inside: avoid; page-break-inside: avoid; }
  .ind-section-head h2 { break-after: avoid; }
}
