/* ========================================================================
   GTM UI v1 – scoped styles
   Scope everything to .page-gtm so other brands stay untouched.
   Font: Open Sans (already loaded site-wide)
   ======================================================================== */

.page-gtm {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f1f1f;
}

/* NOTE:
   Removed global html { scroll-behavior: smooth; } to avoid impacting non-GTM pages.
   If you want smooth scroll only on GTM pages, do it via JS on pages that have .page-gtm.
*/

.page-gtm .gtm-scroll-target {
  scroll-margin-top: 170px; /* adjust for sticky header height */
}

/* -----------------------------
   Type scale & general text
------------------------------ */

.page-gtm .gtm-text,
.page-gtm p,
.page-gtm li,
.page-gtm td {
  font-size: 1.55rem;
  line-height: 1.6;
  color: #232323;
}

/* Hero H1 – main page title on GTM pages */
.page-gtm section.page-header h1.gtmred {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: 90%;          /* keeps distance from GTM logo */
  color: #EDEEEF;
  border: none;
  padding-bottom: 10px;
  margin-top: 5px;
}

.page-gtm .gtm-muted {
  font-size: 1.4rem;
  color: #5a5a5a;
}

.page-gtm .gtm-fineprint {
  font-size: 1.3rem;
  color: #666;
  margin-top: 0.8rem;
}

/* Headings */
.page-gtm .gtm-h1 {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.25;
  color: #EDEEEF;
  margin-top: 5px;
}

.page-gtm .gtm-h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 2.4rem;
  line-height: 1.25;
}

.page-gtm .gtm-h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0.2rem 0 0.6rem;
  line-height: 1.3;
}

/* Sections */
.page-gtm .gtm-section {
  margin: 2.6rem 0 3.0rem;
}

/* Link style: keep consistent across site */
.page-gtm a,
.page-gtm a:visited {
  color: #1a5fb4;
  text-decoration: none;
}
.page-gtm a:hover { text-decoration: underline; }

/* -----------------------------
   Color tokens (GTM red accents)
------------------------------ */

.page-gtm {
  --gtm-red: #E10A19;         /* GTM accent (calm, not neon) */
  --gtm-red-dark: #b30812;
  --gtm-ink: #1f1f1f;
  --gtm-surface: #ffffff;
  --gtm-muted-surface: #f7f7f7;
  --gtm-border: #e3e3e3;
  --gtm-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --gtm-shadow-strong: 0 6px 16px rgba(0, 0, 0, 0.18);
  --gtm-radius: 10px;
}

/* Optional: if you use .gtmred class already */
.page-gtm .gtmred { color: var(--gtm-red); }

/* -----------------------------
   Spacing
------------------------------ */

.gtm-spacing-sm { margin-top: 0.8rem; }
.gtm-spacing-md { margin-top: 1.6rem; }

/* Variant note (e.g. Honda engine option) */
.gtm-variant-note {
  margin-top: 0.8rem;
  color: #404243;
  font-size: 0.95em;
}

.gtm-variant-note a {
  font-weight: 600;
}


/* -----------------------------
   Hero
------------------------------ */

.page-gtm .gtm-hero {
  position: relative;
  margin: 0;
  background: #f3f3f3;
  overflow: hidden;
}

.page-gtm .gtm-hero > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

/* =========================================================
   GTM HERO – LEFT-ALIGNED CONTENT PANEL
   ========================================================= */

.page-gtm .gtm-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ← move panel to left */
  pointer-events: none;
}

.page-gtm .gtm-hero-panel {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.72);
  max-width: 460px;
  padding: 2.2rem 2.6rem;
  margin-left: 4%;           /* ← left spacing */
  margin-right: 0;
  border-left: 6px solid #E10A19; /* GTM red */
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.page-gtm .gtm-hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
  line-height: 1.2;
}

.page-gtm .gtm-hero-subtitle {
  font-size: 1.55rem;
  line-height: 1.55;
  margin: 0 0 1.4rem;
  color: #333;
}

.page-gtm .gtm-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
}

.page-gtm .gtm-hero-contact {
  font-size: 1.35rem;
  line-height: 1.5;
  color: #333;
  margin-top: 0.8rem;
}

/* =========================================================
   GTM – EQUAL HEIGHT TARGET GROUP CARDS
   ========================================================= */

.page-gtm .gtm-target-group-row {
  display: flex;
  flex-wrap: wrap;
}

.page-gtm .gtm-target-group-row > [class*="col-"] {
  display: flex;
}

.page-gtm .gtm-target-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}


/* -----------------------------
   Buttons
------------------------------ */

.page-gtm .gtm-btn {
  display: inline-block;
  border-radius: 0.8rem;
  padding: 1.2rem 2.2rem;
	margin-top: 1.6rem;
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.page-gtm .gtm-btn--primary {
  background: var(--gtm-red);
  color: #fff !important;
  border-color: var(--gtm-red-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.16);
}

.page-gtm .gtm-btn--primary:hover {
  background: #c51a22;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  transform: translateY(-1px);
  text-decoration: none;
}

.page-gtm .gtm-btn--ghost {
  background: transparent;
  border-color: #cfcfcf;
  color: #222 !important;
}

.page-gtm .gtm-btn--ghost:hover {
  border-color: #bdbdbd;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transform: translateY(-1px);
  text-decoration: none;
}

.page-gtm .gtm-btn--small {
  padding: 0.7rem 1.4rem;
  font-size: 1.35rem;
  border-radius: 0.7rem;
}

/* -----------------------------
   Inline notes / availability
------------------------------ */

.page-gtm .gtm-inline-note {
  background: var(--gtm-muted-surface);
  border-left: 4px solid var(--gtm-red);
  padding: 1.2rem 1.6rem;
  border-radius: 0.8rem;
  margin-bottom: 2rem;
}

.page-gtm .gtm-price {
  font-weight: 800;
  color: #111;
}

.page-gtm .gtm-inline-link {
  margin-left: 0.8rem;
  font-weight: 700;
}

/* FIX: these were unscoped before */
.page-gtm .gtm-model-group-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin: 3.5rem 0 0.8rem;
}

.page-gtm .gtm-model-group-lead {
  font-size: 17px;
  color: #444;
  margin-bottom: 2rem;
}
/* -----------------------------
   FAQ items (GTM)
------------------------------ */

.gtm-faq-item {
  padding: 1.6rem 1.8rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
}

/* Zebra striping for easier scanning */
.gtm-faq-item:nth-child(odd) {
  background-color: #f7f8fa;
}

.gtm-faq-item:nth-child(even) {
  background-color: #ffffff;
}

/* -----------------------------
   FAQ headings
------------------------------ */

.gtm-faq .gtm-h3,
.gtm-faq h3 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1.2rem;
  text-transform: none;
}


/* FAQ answer text */
.gtm-faq p {
  margin-bottom: 0;
  color: #333;
  line-height: 1.6;
}

/* Optional: subtle separation on large FAQs */
.gtm-faq-item + .gtm-faq-item {
  margin-top: 0.8rem;
}

/* --------------------------------------------------
   Hero layout modifier: content on right side
-------------------------------------------------- */

.gtm-hero--content-right .gtm-hero-content {
  justify-content: flex-end;
  padding-right: 2rem;
  padding-left: 2rem; /* keep symmetry if you want */
}



/* -----------------------------
   Cards & bands
------------------------------ */

.page-gtm .gtm-card-row { margin-top: 1.4rem; }

.page-gtm .gtm-card {
  background: var(--gtm-surface);
  border: 1px solid var(--gtm-border);
  border-radius: var(--gtm-radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--gtm-shadow);
  height: 100%;
}

/* =========================================================
   GTM BADGES – SOLID BRAND RED
   ========================================================= */

.page-gtm .gtm-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: fit-content !important;
  flex: 0 0 auto !important;
  align-self: flex-start;

  padding: 0.45rem 1.15rem;
  margin-bottom: 1.0rem;

  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;

  color: #ffffff;
  background: var(--gtm-red);          /* #E10A19 */
  border: 1px solid var(--gtm-red-dark);

  border-radius: 999px;

  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.page-gtm .gtm-band {
  background: #f8f8f8;
  border: 1px solid #e6e6e6;
  border-radius: var(--gtm-radius);
  padding: 2.0rem 2.2rem;
}

.page-gtm .gtm-band-title { margin-bottom: 2.4rem; }

.page-gtm .gtm-band-foot {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e7e7e7;
}

/* Lists */
.page-gtm .gtm-list {
  margin: 0;
  padding-left: 1.7rem;
}
.page-gtm .gtm-list li { margin-bottom: 0.7rem; }

/* Features */
.page-gtm .gtm-feature-row { margin-top: 1.2rem; }
.page-gtm .gtm-feature {
  background: #fff;
  border: 1px solid var(--gtm-border);
  border-radius: var(--gtm-radius);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  height: 100%;
}
.page-gtm .gtm-feature-title {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

/* Info box (for the “China” reassurance) */
.page-gtm .gtm-info-box {
  background: #f7f7f7;
  padding: 1.4rem 1.8rem;
  margin: 2.0rem 0 0;
  border-radius: var(--gtm-radius);
  font-size: 1.45rem;
  line-height: 1.6;
}
.page-gtm .gtm-info-box--red { border-left: 6px solid var(--gtm-red); }

/* -----------------------------
   Proof + quote
------------------------------ */

.page-gtm .gtm-proof-box {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 1.2rem;
  align-items: center;
  background: #f3f3f3;
  border: 1px solid #e1e1e1;
  border-radius: var(--gtm-radius);
  padding: 1.6rem 1.8rem;
}

.page-gtm .gtm-kpi-number {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gtm-red);
}
.page-gtm .gtm-kpi-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #444;
}

.page-gtm .gtm-proof-text { font-size: 1.5rem; color: #222; }

.page-gtm .gtm-quote {
  margin: 1.6rem 0 0;
  padding: 1.4rem 1.8rem;
  border-left: 6px solid var(--gtm-red);
  background: #fff;
  border-radius: var(--gtm-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  font-size: 1.5rem;
  line-height: 1.6;
}

.page-gtm .gtm-quote-meta {
  display: block;
  margin-top: 0.8rem;
  font-size: 1.3rem;
  color: #666;
  font-weight: 700;
}

/* -----------------------------
   Media embed
------------------------------ */

.page-gtm .gtm-media-embed {
  border-radius: var(--gtm-radius);
  overflow: hidden;
  border: 1px solid var(--gtm-border);
  box-shadow: var(--gtm-shadow);
  background: #fff;
}

.page-gtm .gtm-media-placeholder {
  padding: 3.0rem 1.8rem;
  text-align: center;
  color: #666;
}

/* -----------------------------
   Comparison table
------------------------------ */

.page-gtm .gtm-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--gtm-radius);
  border: 1px solid var(--gtm-border);
  box-shadow: var(--gtm-shadow);
  background: #fff;
}

.page-gtm .gtm-table {
  margin: 0;
}

.page-gtm .gtm-table th {
  white-space: nowrap;
  font-weight: 900;
}

.page-gtm .gtm-table td {
  vertical-align: middle;
}

/* GTM tech specs table layout */
.page-gtm .gtm-table td:first-child {
  width: 42%;
  font-weight: 600;
}


/* -----------------------------
   Highlight block (tracked model)
------------------------------ */

.page-gtm .gtm-highlight-box {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.6rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gtm-border);
  border-radius: var(--gtm-radius);
  padding: 2.0rem 2.2rem;
  box-shadow: var(--gtm-shadow);
}

.page-gtm .gtm-highlight-media img {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  border: 1px solid #e7e7e7;
}

/* -----------------------------
   Model tiles (reuse Porto tiles, add GTM tuning)
------------------------------ */

.page-gtm #products .thumb-info {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--gtm-border);
  border-radius: 10px;
  overflow: hidden;
}

.page-gtm #products .thumb-info-wrapper {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-gtm #products .thumb-info-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

/* Title band */
.page-gtm #products .thumb-info-title {
  background: rgba(40, 40, 40, 0.72) !important;
  padding: 8px 14px 10px;
}

.page-gtm #products .thumb-info-inner {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.page-gtm #products .thumb-info-type {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 600;
  opacity: 0.95;
}

/* -----------------------------
   CTA box
------------------------------ */

.page-gtm .gtm-cta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.0rem;
  align-items: center;
  justify-content: space-between;
  background: #f3f3f3;
  border: 1px solid #e1e1e1;
  border-radius: var(--gtm-radius);
  padding: 1.8rem 2.0rem;
}

.page-gtm .gtm-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.0rem;
}

/* -----------------------------
   Download box (PDF)
------------------------------ */

.page-gtm .gtm-download-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #f7f7f7;
  border-left: 4px solid var(--gtm-red);
  padding: 1.4rem 1.8rem;
  border-radius: var(--gtm-radius);
}

.page-gtm .gtm-download-icon {
  font-size: 2.6rem;
  line-height: 1;
  margin-top: -2px;
}

.page-gtm .gtm-download-label {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.page-gtm .gtm-download-link {
  font-size: 1.45rem;
  font-weight: 700;
}

/* Breadcrumb slightly tighter (match Cedima style) */
.page-gtm .breadcrumb {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

.page-gtm .gtm-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: #f1f1f1;
  border: 1px solid #e2e2e2;
  color: #333;
}

.page-gtm .gtm-chip--track {
  background: rgba(225, 10, 25, 0.10);
  border-color: rgba(225, 10, 25, 0.28);
  color: var(--gtm-red-dark);
}

/* ========================================================================
   ADDITIONS for GTM model pages (gallery, video grid, price/stock card)
   ======================================================================== */

/* Small utilities */
.page-gtm .gtm-divider { border-top: 1px solid #e7e7e7; margin: 2.2rem 0; }
.page-gtm .gtm-kicker {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.6rem;
}
/* Screen-reader only */
.page-gtm .gtm-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Purchase / price card */
.page-gtm .gtm-purchase-card {
  background: #fff;
  border: 1px solid var(--gtm-border);
  border-radius: var(--gtm-radius);
  box-shadow: var(--gtm-shadow);
  padding: 1.8rem 2.0rem;
}
.page-gtm .gtm-purchase-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.8rem;
  align-items: center;
  justify-content: space-between;
}
.page-gtm .gtm-price-big {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.05;
  color: #111;
}
.page-gtm .gtm-vat-note {
  font-size: 1.3rem;
  color: #666;
  margin-top: 0.35rem;
}
.page-gtm .gtm-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.0rem;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid #e1e1e1;
  background: #f7f7f7;
  color: #222;
}
.page-gtm .gtm-stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #999;
}
/* states */
.page-gtm .gtm-stock--in {
  background: rgba(35, 155, 86, 0.10);
  border-color: rgba(35, 155, 86, 0.28);
  color: #166b3a;
}
.page-gtm .gtm-stock--in .gtm-stock-dot { background: #239b56; }

.page-gtm .gtm-stock--limited {
  background: rgba(224, 144, 0, 0.12);
  border-color: rgba(224, 144, 0, 0.30);
  color: #7a5200;
}
.page-gtm .gtm-stock--limited .gtm-stock-dot { background: #e09000; }

.page-gtm .gtm-stock--order {
  background: rgba(90, 90, 90, 0.10);
  border-color: rgba(90, 90, 90, 0.22);
  color: #333;
}
.page-gtm .gtm-stock--order .gtm-stock-dot { background: #666; }

/* Gallery */
.page-gtm .gtm-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.page-gtm .gtm-gallery a,
.page-gtm .gtm-gallery a:hover { text-decoration: none; }
.page-gtm .gtm-gallery-item {
  border-radius: var(--gtm-radius);
  overflow: hidden;
  border: 1px solid var(--gtm-border);
  box-shadow: var(--gtm-shadow);
  background: #fff;
}
.page-gtm .gtm-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.18s ease;
}
.page-gtm .gtm-gallery-item:hover img { transform: scale(1.02); }

/* Video grid (for multiple embeds) */
.page-gtm .gtm-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}
.page-gtm .gtm-video-grid .embed-responsive {
  margin-bottom: 0 !important;
  border-radius: var(--gtm-radius);
  overflow: hidden;
  border: 1px solid var(--gtm-border);
  box-shadow: var(--gtm-shadow);
}

/* -----------------------------
   Responsive tweaks
------------------------------ */

/* Tablet & below: hero overlay becomes normal block under image */
@media (max-width: 991px) {
  .page-gtm .gtm-hero-content { position: static; }
  .page-gtm .gtm-hero-panel {
    max-width: none;
    margin: 0;
    border-left-width: 0;
    border-top: 4px solid var(--gtm-red);
    border-radius: 0;
    box-shadow: none;
  }

  .page-gtm .gtm-proof-box {
    grid-template-columns: 1fr;
  }

  .page-gtm .gtm-highlight-box {
    grid-template-columns: 1fr;
  }

  .page-gtm .gtm-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-gtm .gtm-video-grid { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 767px) {
  .page-gtm .gtm-btn { width: 100%; text-align: center; }
  .page-gtm .gtm-cta-actions { width: 100%; }
  .page-gtm .gtm-cta-actions .gtm-btn { width: 100%; }

  .page-gtm .gtm-section { margin: 2.0rem 0 2.4rem; }

  .page-gtm .gtm-gallery { grid-template-columns: 1fr; }
}
