/* ==========================================================================
   Premium Post Tension — pages.css
   New, reusable patterns needed by inner pages (service, location, about,
   contact) that don't exist on the homepage. Built from the same tokens as
   global.css/components.css so they read as one system, not a bolt-on.
   Load order: global.css, then mmenu.css, then components.css, then this file.
   ========================================================================== */

/* --- Inner-page hero: same markup/classes as the homepage hero, but a
   single static picture instead of a slideshow (no dots/controls needed) -- */
.pt-hero--static { min-height: clamp(560px, 62vh, 720px); }
.pt-hero--static .pt-hero-content { padding-top: 70px; padding-bottom: 70px; }
.pt-hero--static .pt-hero-copy h1 { font-size: clamp(2.2rem, 3.4vw, 3.6rem); }

/* --- USP strip: four short claims in a card that overlaps the hero --- */
.pt-usp-strip { position: relative; z-index: 3; margin-top: -46px; }
.pt-usp-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--pt-white);
  box-shadow: var(--shadow-lg);
}
.pt-usp {
  padding: var(--space-6);
  border-right: 1px solid var(--pt-line);
}
.pt-usp:last-child { border-right: 0; }
.pt-usp > span {
  display: block;
  color: var(--pt-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}
.pt-usp p { margin-top: 9px; color: var(--pt-navy); font-size: 13px; font-weight: 700; line-height: 1.55; }

@media (max-width: 991px) { .pt-usp-strip { margin-top: 0; padding-top: var(--space-5); } .pt-usp-strip-inner { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575px) { .pt-usp-strip-inner { grid-template-columns: 1fr; } .pt-usp { border-right: 0; border-bottom: 1px solid var(--pt-line); } }

/* --- Media frame: rounded, shadowed image used in two-column content
   sections. Pairs with the existing .grid-split primitive from global.css -- */
.pt-media-frame { overflow: hidden; min-height: 460px; border-radius: var(--radius-panel); box-shadow: var(--shadow-md); }
.pt-media-frame picture, .pt-media-frame img { display: block; width: 100%; height: 100%; }
.pt-media-frame img { object-fit: cover; }
.grid-split--reverse > .pt-media-frame { order: 2; }
@media (max-width: 860px) { .pt-media-frame { min-height: 380px; } .grid-split--reverse > .pt-media-frame { order: 0; } }

/* Copy column next to a media frame */
.pt-split-copy h2 { color: var(--pt-navy); }
.pt-split-copy > p { margin-top: var(--space-5); color: var(--pt-copy); font-size: 15px; line-height: 1.8; }
.pt-split-copy > p + p { margin-top: var(--space-4); }

/* Standalone narrow variant: no paired image, so the whole block is centered
   to match its centered heading instead of reading as ragged left-aligned text */
.container-narrow .pt-split-copy { text-align: center; }
.container-narrow .pt-split-copy > p { margin-inline: auto; }

/* --- Dark glow card: a self-contained navy panel with a red radial glow,
   for a standalone narrow text section that needs visual weight instead of
   sitting as plain copy on a plain background. Same dark-card language as
   the homepage's .pt-feature-card-dark, packaged as a full-width panel. --- */
.pt-glow-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(44px, 7vw, 72px) clamp(24px, 7vw, 64px);
  background: linear-gradient(145deg, rgba(14,31,62,.98), rgba(1,16,45,.97));
  box-shadow: 0 24px 55px rgba(1,16,45,.22);
}
.pt-glow-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -190px;
  bottom: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,39,44,.55), rgba(122,16,21,0) 70%);
  filter: blur(10px);
}
.pt-glow-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  left: -140px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38,72,132,.35), transparent 70%);
}
.pt-glow-card .pt-section-heading-narrow h2 { color: var(--pt-white); }
.pt-glow-card .pt-split-copy > p { color: #BFCADA; }

/* --- Info card: base for project-evidence / capability / credential cards.
   Same visual language as the homepage's .pt-service-card. --- */
.pt-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--pt-card-gap, var(--card-gap)); }
.pt-info-card {
  position: relative;
  padding: var(--space-7);
  border: 1px solid var(--pt-line);
  border-radius: var(--radius-card);
  background: var(--pt-white);
  box-shadow: 0 2px 4px rgba(1,16,45,.02), 0 12px 30px rgba(1,16,45,.045);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pt-info-card:hover { transform: translateY(-5px); border-color: rgba(196,39,44,.3); box-shadow: 0 22px 45px rgba(1,16,45,.1); }
.pt-info-card > span { display: inline-block; color: var(--pt-red); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pt-info-card h3 { margin-top: var(--space-4); color: var(--pt-navy); font-size: 20px; line-height: 1.25; }
.pt-info-card p { margin-top: var(--space-3); color: var(--pt-copy); font-size: 14px; line-height: 1.68; }
.pt-info-card img { width: 56px; height: 56px; object-fit: contain; margin-bottom: var(--space-3); }

/* Anchor variant of the info card, plus a trailing link affordance that
   matches the homepage's existing card-link treatment (.pt-service-card > b,
   .pt-insight-card b) so a linked info card reads as the same component. */
a.pt-info-card { display: flex; flex-direction: column; color: inherit; }
a.pt-info-card:hover { color: inherit; }
.pt-info-card > b { display: block; margin-top: auto; padding-top: var(--space-4); color: var(--pt-red); font-size: 13px; }
.pt-info-card > b span { display: inline-block; transition: transform .2s ease; }
a.pt-info-card:hover > b span { transform: translateX(4px); }

/* --- Numbered process list: vertical steps on a dark section, for a
   process that reads as an ordered sequence rather than the homepage's
   6-icon horizontal strip. --- */
.pt-process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: var(--space-5);
}
.pt-process-list-item {
  min-height: 220px;
  padding: var(--space-6);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-card-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
}
.pt-process-list-item > span { display: block; color: #FF858A; font-size: 12px; font-weight: 800; }
.pt-process-list-item h3 { margin-top: var(--space-5); color: var(--pt-white); font-size: 19px; line-height: 1.3; }
.pt-process-list-item p { margin-top: var(--space-3); color: #BAC6D5; font-size: 13px; line-height: 1.65; }

/* --- Reverse variant: places .pt-service-visual on the right instead of the left --- */
.pt-service-layout--reverse { grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); }
.pt-service-layout--reverse .pt-service-visual { order: 2; }
@media (max-width: 860px) {
  /* Match components.css's own .pt-service-layout breakpoint so the reverse
     variant collapses to a single stacked column too, instead of keeping
     its two-column grid (it would otherwise win the cascade: this file
     loads after components.css and this selector carries no media query
     of its own, so its unconditional grid-template-columns would beat the
     base class's mobile override at equal specificity). */
  .pt-service-layout--reverse { grid-template-columns: 1fr; }
  .pt-service-layout--reverse .pt-service-visual { order: 0; }
}

/* --- Section heading, centered narrow variant used on inner pages --- */
.pt-section-heading-narrow { max-width: 640px; margin: 0 auto var(--pt-heading-gap, var(--heading-gap)); text-align: center; }
.pt-section-heading-narrow .pt-eyebrow { justify-content: center; }
.pt-section-heading-narrow > p { margin-top: var(--space-4); color: var(--pt-copy); font-size: 16px; line-height: 1.72; }

/* --- Section background utilities matching the approved palette exactly -- */
.pt-section--paper { background: var(--pt-paper); }
.pt-section--navy { background: var(--pt-deep); color: var(--pt-white); }
.pt-section--navy .pt-copy, .pt-section--navy .pt-split-copy { color: var(--pt-white); }

/* ==========================================================================
   Blog Article — shared long-form prose layout for every blog post
   ========================================================================== */
.pt-article-meta { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-6); color: var(--pt-copy); font-size: 13px; }
.pt-article-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Two-column layout: article + sticky sidebar (table of contents + CTA).
   .pt-article keeps its own max-width/centering for pages that render it
   alone; inside .pt-article-layout that's overridden so it fills its
   grid column instead. */
.pt-article-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(32px, 4vw, 64px); align-items: start; max-width: 1120px; margin: 0 auto; }
.pt-article-layout .pt-article { max-width: none; margin: 0; }

.pt-article-sidebar { position: sticky; top: 110px; display: grid; gap: var(--space-6); }

.pt-sidebar-toc { padding: var(--space-6); border: 1px solid var(--pt-line); border-radius: var(--radius-card); background: var(--pt-white); box-shadow: 0 2px 4px rgba(1,16,45,.02), 0 12px 30px rgba(1,16,45,.045); }
.pt-sidebar-toc > p { margin: 0 0 var(--space-4); color: var(--pt-red); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pt-sidebar-toc nav ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.pt-sidebar-toc nav a { display: block; padding: 9px 11px; border-radius: 9px; color: var(--pt-copy); font-size: 13.5px; font-weight: 650; line-height: 1.45; text-decoration: none; transition: background .2s ease, color .2s ease; }
.pt-sidebar-toc nav a:hover, .pt-sidebar-toc nav a:focus-visible { background: var(--pt-paper); color: var(--pt-navy); }

.pt-sidebar-cta.pt-glow-card { padding: var(--space-7) var(--space-6); border-radius: 22px; }
.pt-sidebar-cta h3 { margin-top: var(--space-4); color: var(--pt-white); font-size: 19px; line-height: 1.3; }
.pt-sidebar-cta > p:not(.pt-eyebrow) { margin-top: var(--space-3); color: #BFCADA; font-size: 13.5px; line-height: 1.65; }
.pt-sidebar-cta .pt-button { width: 100%; margin-top: var(--space-5); }
.pt-sidebar-phone { display: block; margin-top: var(--space-4); color: #FF9EA1; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.pt-sidebar-phone:hover { color: var(--pt-white); }

@media (max-width: 991px) {
  .pt-article-layout { grid-template-columns: 1fr; max-width: 760px; }
  .pt-article-sidebar { position: static; order: 2; margin-top: var(--space-8); }
}

.pt-article { max-width: 760px; margin: 0 auto; }
.pt-article > p { margin-top: var(--space-5); color: var(--pt-copy); font-size: 16px; line-height: 1.8; }
.pt-article > p:first-child { margin-top: 0; }
.pt-article h2 { margin-top: var(--space-14); margin-bottom: var(--space-4); color: var(--pt-navy); font-size: var(--text-2xl); line-height: 1.25; }
.pt-article h2:first-child { margin-top: 0; }
.pt-article h3 { margin-top: var(--space-7); margin-bottom: var(--space-3); color: var(--pt-navy); font-size: var(--text-lg); line-height: 1.3; }
.pt-article strong { color: var(--pt-navy); }
.pt-article a { color: var(--pt-red); font-weight: 700; }

.pt-article-figure { margin: var(--space-8) 0; overflow: hidden; border-radius: var(--radius-card-lg); box-shadow: 0 12px 30px rgba(1,16,45,.08); }
.pt-article-figure img { width: 100%; height: auto; display: block; }
.pt-article-figure figcaption { padding: var(--space-4) var(--space-5); background: var(--pt-paper); color: var(--pt-copy); font-size: 13px; line-height: 1.6; }

.pt-article-callout { margin-top: var(--space-8); padding: var(--space-7); border-left: 4px solid var(--pt-red); border-radius: 14px; background: var(--pt-paper); }
.pt-article-callout > p { margin: 0; color: var(--pt-copy); font-size: 15px; line-height: 1.75; }
.pt-article-callout > p + p { margin-top: var(--space-4); }

/* Article comparison table */
.pt-article-table-wrap { margin-top: var(--space-8); overflow-x: auto; border: 1px solid var(--pt-line); border-radius: 14px; }
.pt-article-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-article-table th, .pt-article-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--pt-line); line-height: 1.55; }
.pt-article-table th { background: var(--pt-paper); color: var(--pt-navy); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pt-article-table tr:last-child td { border-bottom: none; }
.pt-article-table td:first-child { color: var(--pt-navy); font-weight: 700; white-space: nowrap; }

@media (max-width: 680px) {
  .pt-article h2 { margin-top: var(--space-10); }
}

/* ========== About page enhancements ========== */
.pt-about-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--pt-grid-gap, var(--grid-gap)); margin-top: var(--pt-content-gap, var(--content-gap)); }
.pt-about-stat { text-align: center; padding: 30px 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.035); }
.pt-about-stat img { width: 42px; height: 42px; object-fit: contain; margin: 0 auto 16px; }
.pt-about-stat strong { display: block; font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; color: var(--pt-white); letter-spacing: -.02em; line-height: 1; }
.pt-about-stat span { display: block; margin-top: 10px; color: #BFCADA; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 900px) { .pt-about-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .pt-about-stats { grid-template-columns: 1fr; } }

.pt-about-why-highlights { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: var(--space-6); }
.pt-about-why-highlights > div { padding: 16px 18px; border-left: 2px solid rgba(196,39,44,.35); background: rgba(246,247,249,.75); }
.pt-about-why-highlights strong { display: block; color: var(--pt-navy); font-size: 14px; margin-bottom: 5px; }
.pt-about-why-highlights span { color: var(--pt-copy); font-size: 12.5px; line-height: 1.55; }
@media (max-width: 900px) { .pt-about-why-highlights { grid-template-columns: 1fr; } }
.pt-section--navy .pt-about-why-highlights > div { background: rgba(255,255,255,.06); border-color: rgba(255,133,138,.5); }
.pt-section--navy .pt-about-why-highlights strong { color: var(--pt-white); }
.pt-section--navy .pt-about-why-highlights span { color: #BFCADA; }
