/*
Theme Name: INX GTM
Theme URI: https://www.innovativenetworx.com
Author: Innovative Networx
Author URI: https://www.innovativenetworx.com
Description: Innovative Networx block theme — "Navy frame" design (approved 4 Nov 2026). Navy header and close band, white body, label rail with light-blue section numbers, gold eyebrow. Poppins; brand palette. Question-form H2 sections, visible reviewer line, ProfessionalService / Person / FAQPage / Article schema and llms.txt built in.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inx-gtm
*/

:root {
  --inx-rail: 300px;
  --inx-gutter: 64px;
}

/* ---------- Page hero: gold eyebrow on the rail, H1 + question + answer in the content column ---------- */
.inx-hero { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--60); }
.inx-hero .wp-block-columns { gap: var(--inx-gutter); }
.inx-eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--wp--preset--color--gold); padding-top: 18px; line-height: 1.5;
}
.inx-question { font-size: 1.25rem; font-weight: 500; line-height: 1.45; color: var(--wp--preset--color--dark); max-width: 640px; }
.inx-hero p:not(.inx-question):not(.inx-eyebrow) { max-width: 640px; }

/* ---------- Section: rail (number + label) | content, hairline on top ---------- */
.inx-section { padding-top: var(--wp--preset--spacing--60); }
.inx-section > .wp-block-columns { border-top: 1px solid var(--wp--preset--color--rule); padding-top: 48px; gap: var(--inx-gutter); }
.inx-num { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; color: var(--wp--preset--color--light-blue); margin: 0; }
.inx-label { font-size: 0.9375rem; font-weight: 600; color: var(--wp--preset--color--dark); margin: 6px 0 0; line-height: 1.4; }
.inx-section h2 { margin-top: 0; }
.inx-section p { max-width: 600px; }
.inx-muted { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.inx-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--wp--preset--color--light-blue); padding-bottom: 2px; }

/* Rail column widths (desktop) */
@media (min-width: 782px) {
  .inx-hero > .wp-block-columns > .wp-block-column:first-child,
  .inx-section > .wp-block-columns > .wp-block-column:first-child,
  .inx-diagram-row > .wp-block-columns > .wp-block-column:first-child { flex-basis: var(--inx-rail) !important; flex-grow: 0; }
}

/* ---------- Three tiles (starting points) ---------- */
.inx-tiles .wp-block-column { border-top: 3px solid var(--wp--preset--color--light-blue); padding-top: 18px; }
.inx-tiles .wp-block-column:first-child { border-top-color: var(--wp--preset--color--gold); }
.inx-tiles h3 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.25; }
.inx-tiles p { font-size: 0.9rem; margin: 0 0 14px; }

/* ---------- Five systems (name tiles) ---------- */
.inx-systems .wp-block-column { border-top: 2px solid var(--wp--preset--color--navy); padding-top: 12px; }
.inx-systems .inx-sys-id { font-size: 0.75rem; font-weight: 600; color: var(--wp--preset--color--light-blue); margin: 0; }
.inx-systems .inx-sys-name { font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--dark); margin: 4px 0 0; line-height: 1.3; }

/* ---------- Statistics ---------- */
.inx-stats .wp-block-column { border-top: 2px solid var(--wp--preset--color--gold); padding-top: 12px; }
.inx-stat-value { font-size: 2rem; font-weight: 600; color: var(--wp--preset--color--navy); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.inx-stat-label { font-size: 0.8125rem; color: var(--wp--preset--color--muted); margin: 8px 0 0; }

/* ---------- Phases (Advisory 1) ---------- */
.inx-phases .wp-block-column { border-top: 2px solid var(--wp--preset--color--navy); padding-top: 14px; }
.inx-phases .inx-sys-id { font-size: 0.75rem; font-weight: 600; color: var(--wp--preset--color--light-blue); margin: 0; }
.inx-phases h3 { margin: 4px 0 6px; font-size: 1.1875rem; }
.inx-phases p { font-size: 0.875rem; margin: 0; }

/* ---------- Built well / When weak ---------- */
.inx-bw { max-width: 640px; }
.inx-bw .inx-bw-row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--wp--preset--color--rule); }
.inx-bw .inx-bw-row:last-child { border-bottom: 1px solid var(--wp--preset--color--rule); }
.inx-bw .inx-bw-tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; margin: 0; }
.inx-bw .inx-bw-row:first-child .inx-bw-tag { color: var(--wp--preset--color--navy); }
.inx-bw .inx-bw-row:last-child .inx-bw-tag { color: var(--wp--preset--color--gold); }
.inx-bw p { margin: 0; font-size: 0.9375rem; }

/* ---------- Hairline list rows ---------- */
.inx-rows > * { padding: 18px 0; border-top: 1px solid var(--wp--preset--color--rule); margin: 0; max-width: 640px; }
.inx-rows > :last-child { border-bottom: 1px solid var(--wp--preset--color--rule); }
.inx-rows h3 { font-size: 1.125rem; margin: 0 0 4px; }
.inx-rows p { font-size: 0.9375rem; margin: 0; }

/* ---------- Close band + footer ---------- */
.inx-close { margin-top: var(--wp--preset--spacing--70); }
.inx-close h2, .inx-close p { color: var(--wp--preset--color--white); }
.inx-close .inx-sub { color: var(--wp--preset--color--pale-blue); }
.inx-close .wp-block-button__link { background: var(--wp--preset--color--white) !important; color: var(--wp--preset--color--navy) !important; }
.inx-close .inx-link { color: #fff; border-bottom-color: var(--wp--preset--color--light-blue); }
.inx-footer { font-size: 0.75rem; }
.inx-footer a { color: #fff; }

/* ---------- Header ---------- */
.inx-header .wp-block-site-logo img { height: 40px; width: auto; }
.inx-header .wp-block-navigation .wp-block-navigation-item__content { color: #fff; opacity: 0.85; }
.inx-header .wp-block-navigation .current-menu-item .wp-block-navigation-item__content { opacity: 1; font-weight: 600; }
.inx-header .wp-block-button__link { background: #fff !important; color: var(--wp--preset--color--navy) !important; padding: 0.7rem 1.1rem; font-size: 0.8125rem; }

/* ---------- Diagram ---------- */
.inx-diagram img { width: 100%; max-width: 520px; height: auto; display: block; }

/* ---------- Byline / expander / skip link ---------- */
.inx-byline { font-size: 0.9rem; color: var(--wp--preset--color--muted); }
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--rule); padding: 0.75rem 0; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 1000; }

/* ---------- Form field style (HubSpot form inherits) ---------- */
.inx-form input, .inx-form select, .inx-form textarea, .hs-form input, .hs-form select, .hs-form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--wp--preset--color--dark); background: transparent;
  padding: 10px 0; font-family: inherit; font-size: 0.9375rem; color: var(--wp--preset--color--dark);
}
.inx-form label, .hs-form label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--muted); }

@media (max-width: 781px) {
  .inx-hero .wp-block-columns, .inx-section > .wp-block-columns { gap: 1.25rem; }
  .inx-section > .wp-block-columns { padding-top: 32px; }
}

/* Diagram row (GTM Patterns, Architecture page) */
.inx-diagram-row { margin-top: -24px; }
.inx-diagram-row > .wp-block-columns { gap: var(--inx-gutter); }
.inx-section .inx-diagram { margin: 24px 0 8px; }
mark { background: var(--wp--preset--color--gold-light); }

/* ---------- Video (click-to-play YouTube poster, v2.0.5) ---------- */
.inx-video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 640px; margin: 0; background: var(--wp--preset--color--navy); overflow: hidden; cursor: pointer; }
.inx-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity .2s; }
.inx-video:hover img { opacity: 0.92; }
.inx-video-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; padding: 0; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.inx-video-play span { display: block; width: 0; height: 0; margin: 0 auto 0 30px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--wp--preset--color--navy); }
.inx-video-play:focus-visible { outline: 3px solid var(--wp--preset--color--light-blue); outline-offset: 3px; }
.inx-video.is-playing img, .inx-video.is-playing .inx-video-play { display: none; }
.inx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.inx-video-caption { font-size: 0.8125rem; color: var(--wp--preset--color--muted); margin: 10px 0 0; }
.inx-hero .inx-video { max-width: none; }
@media (min-width: 782px) { .inx-hero .wp-block-columns.inx-hero-cols > .wp-block-column:last-child { flex-basis: 46% !important; flex-grow: 0; align-self: center; } }
