/* ==========================================================================
   Inner-page components (added for the 8-category prototype)
   Loaded after styles.css — same navy / gold design system.
   ========================================================================== */

/* ---------- inner page hero (dark, matches the fixed transparent header) --- */
.page-hero {
  position: relative; color: rgba(255, 255, 255, .86);
  background: var(--navy-deep);
  padding: calc(var(--header-h) + clamp(42px, 6vw, 76px)) 0 clamp(40px, 5vw, 66px);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(204, 159, 62, .20) 0%, rgba(204, 159, 62, 0) 55%),
    linear-gradient(160deg, #0b1526 0%, #0e1a2f 50%, #16253c 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .lead { color: rgba(255, 255, 255, .8); max-width: 64ch; }
.page-hero .btn-row { margin-top: 1.4rem; }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  font-size: .86rem; color: rgba(255, 255, 255, .6); margin-bottom: 1.1rem;
}
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- layout helpers ---------- */
.container--narrow { max-width: 880px; }
.center { text-align: center; }
.btn-row--center { justify-content: center; }

/* ---------- data tables ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td {
  border: 1px solid var(--border); padding: .7rem .85rem;
  text-align: left; vertical-align: top; font-size: .95rem;
}
.table th {
  background: var(--muted); font-family: var(--font-body);
  font-weight: 600; color: var(--ink); width: 36%;
}
.table--striped tr:nth-child(even) td { background: #fbfcfe; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- numbered process on the navy band ---------- */
.step__num {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--gold); color: var(--gold);
  font-weight: 700; margin-bottom: .7rem;
}
.steps .step h3 { color: #fff; font-size: 1.1rem; margin-bottom: .3rem; }
.steps .step p { color: rgba(255, 255, 255, .74); font-size: .92rem; margin: 0; }

/* ---------- service (software) cards ---------- */
.product--service { border-color: #dbe6f2; background: #fbfdff; }
.product__badge {
  display: inline-block; font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy); background: var(--gold-soft);
  border: 1px solid #e6d6a4; border-radius: 999px;
  padding: .12rem .5rem; margin-bottom: .45rem;
}
.product__meta { font-size: .84rem; color: var(--body); margin: .5rem 0 0; }
.product__meta span { color: var(--navy); font-weight: 600; margin-right: .35rem; }

/* ---------- compact cards (other categories) ---------- */
.card--compact { padding: 1.15rem 1.25rem; }
.card--compact h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.grid--compact .card__icon { margin-bottom: .55rem; }

/* ---------- notes ---------- */
.note {
  font-size: .9rem; color: var(--body); background: var(--gold-soft);
  border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: .7rem .9rem; margin-top: 1.2rem;
}
.page-hero .note { background: rgba(255, 255, 255, .08); border-left-color: var(--gold); color: rgba(255, 255, 255, .82); }

/* ---------- prose (privacy policy) ---------- */
.prose h2 { font-size: 1.32rem; margin: 1.9rem 0 .2rem; }
.prose p { margin: 0 0 .2rem; }

/* ---------- forms ---------- */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: .84rem; color: var(--body); margin: .6rem 0 0; }

/* ---------- brands & partners strip ---------- */
.logo-strip {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
}
.logo-tile {
  display: grid; place-items: center; min-height: 96px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .8rem; text-align: center;
}
.logo-tile img { max-height: 56px; width: auto; object-fit: contain; }
.logo-tile span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy);
}
.logo-tile.is-empty { border-style: dashed; background: transparent; }
.logo-tile.is-empty span {
  font-family: var(--font-body); font-weight: 500; font-size: .82rem;
  color: var(--body); letter-spacing: .04em; text-transform: uppercase;
}

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
  .table th { width: 42%; }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- category banner image ---------- */
.category-banner { padding: clamp(24px, 3vw, 40px) 0 0; }
.category-banner img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
@media (max-width: 767px) { .category-banner { padding-top: 20px; } }

/* ==========================================================================
   Header layout fixes — the company name and e-mail are longer than the
   original placeholder, so the bar is now kept on one line and drops to the
   drawer earlier.
   ========================================================================== */
.site-header .container { flex-wrap: nowrap; gap: 14px; }
.brand { flex: 0 1 auto; min-width: 0; }
.brand__text { min-width: 0; }

/* single-line brand name, tighter tagline, ellipsis instead of wrapping */
@media (min-width: 1181px) {
  .brand__text { white-space: nowrap; }
}
.brand__text small {
  letter-spacing: .1em;
  max-width: 36ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* never let a nav item or the e-mail break onto a second line */
.nav { flex: 0 0 auto; }
.nav a { white-space: nowrap; }
.header-cta { flex: 0 0 auto; }
.header-top { white-space: nowrap; }
.header-cta .btn { white-space: nowrap; }

/* a little less air before the bar gets tight */
@media (max-width: 1400px) {
  .nav a { padding: 10px 11px; }
  .header-cta { gap: 9px; }
}

/* the e-mail is the first thing to go when space runs out */
@media (max-width: 1240px) {
  .header-top { display: none; }
}

/* switch to the mobile drawer earlier than the design originally did,
   because the brand text now takes more room */
@media (max-width: 1180px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 620px) {
  .brand__text small { display: none; }
  .brand { font-size: 1.12rem; }
}

/* ---------- WhatsApp QR block on the contact page ---------- */
.qr {
  width: 100%; max-width: 320px; height: auto; margin: 0 auto;
  background: #fff; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.qr__caption {
  text-align: center; font-size: .88rem; color: var(--body); margin-top: .7rem;
}
@media (max-width: 991px) {
  .qr { max-width: 260px; }
}

/* ==========================================================================
   Contact page fixes
   1. <strong> inherits the page-hero colour (the global rule paints it dark).
   2. Contact cards move from four narrow columns to a roomy 2 x 2 grid, and
      long values such as the e-mail address wrap instead of being clipped.
   ========================================================================== */
.page-hero strong,
.page-hero .lead strong,
.page-hero .note strong {
  color: inherit;
  font-weight: 600;
}
.page-hero .lead strong { color: #fff; }

.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.contact-card {
  overflow: visible;            /* the generic .card clips long values */
  align-items: flex-start;
  gap: .9rem;
}
.contact-card .card__icon { margin-bottom: 0; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.contact-card p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-card a { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- optical sizing for the four contact icons ----------
   Every symbol shares a 24x24 viewBox but the artwork fills it differently:
   the mail rectangle spans 19x14 while the clock is an 18px circle. These
   per-icon sizes even out what the eye actually sees. */
.contact-card .card__icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 6px; }
.contact-card .card__icon--mail svg { width: 22px; height: 22px; }
.contact-card .card__icon--phone svg { width: 23px; height: 23px; }
.contact-card .card__icon--pin svg { width: 27px; height: 27px; }
.contact-card .card__icon--clock svg { width: 27px; height: 27px; }

/* ---------- category cards with a picture ---------- */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media .card__media {
  aspect-ratio: 16 / 9; background: var(--muted); overflow: hidden;
  display: grid; place-items: center;
}
.card--media .card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.card--media:hover .card__media img { transform: scale(1.04); }
.card--media .card__media .card__icon { margin: 0; }
.card--media .card__body { padding: clamp(18px, 2vw, 24px); display: flex; flex-direction: column; flex: 1 1 auto; }
.card--media .card__body h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.card--media .card__body p { font-size: .95rem; }
.card--media .card__body .text-link { margin-top: auto; padding-top: .9rem; }

/* ---------- WhatsApp QR in the footer ---------- */
.footer-grid { grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr auto; gap: 26px; }
.footer-qr { text-align: center; }
.footer-qr img {
  display: block; width: 120px; height: auto; margin: 0 auto 8px;
  background: #fff; padding: 8px; border-radius: 10px;
}
.footer-qr span { font-size: .78rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-qr { text-align: left; }
  .footer-qr img { margin: 0 0 8px; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Header / navigation: one shared treatment for every page
   ========================================================================== */
.mobile-nav__brand {
  display:block; padding:10px 18px 4px; font-weight:600; font-size:1rem;
  color:#F4F7FB; letter-spacing:.01em;
}
.mobile-nav__brand small { display:block; font-size:.72rem; letter-spacing:.16em;
  text-transform:uppercase; color:#C5D2E3; font-weight:400; margin-top:2px; }

/* the long company name moves into the menu; the bar keeps only the JX mark */
.site-header .container { max-width:1480px; gap:22px; }
.site-header .brand { white-space:nowrap; }
.site-header .brand__text { display:inline-block; }
.site-header .nav { margin-left:auto; margin-right:auto; }

/* ==========================================================================
   Typography: Inter for headings, shared by every page
   ========================================================================== */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/inter-400.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/inter-600.woff2") format("woff2")}
:root { --font-display: "Inter", "Montserrat", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.01em; }
