/*
Theme Name: InfoTrust
Theme URI: https://infotrust.com
Description: Modernized infotrust.com. Block theme built on Twenty Twenty-Five with the InfoTrust brand system: navy/blue gradients, orange accents, Poppins, rounded cards.
Author: Adam Warniment
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: infotrust
*/

/* ------------------------------------------------------------------
   Tokens not expressible in theme.json
------------------------------------------------------------------- */
:root {
  --it-radius: 18px;
  --it-radius-sm: 10px;
  --it-ease: cubic-bezier(.2,.7,.2,1);
  --it-header-h: 76px;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Text rendering */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { height: auto; }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
.it-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(1,48,87,.08);
}
.it-header .wp-block-site-logo img,
.it-logo img { width: 168px; height: auto; display: block; }
.it-header .wp-block-navigation a { padding: .35rem .15rem; }
.it-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--bright); }

/* Mega-menu-ish dropdowns */
.wp-block-navigation .wp-block-navigation__submenu-container {
  border: 1px solid rgba(1,48,87,.08) !important;
  border-radius: var(--it-radius-sm);
  box-shadow: var(--wp--preset--shadow--card);
  padding: .5rem !important;
  min-width: 260px !important;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  border-radius: 8px;
  padding: .5rem .75rem !important;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--wp--preset--color--mist);
}
.wp-block-navigation__responsive-container.is-menu-open { padding-top: var(--it-header-h); }

/* Header CTA: compact */
.it-header .wp-block-button .wp-block-button__link { padding: .6rem 1.2rem; font-size: .9rem; }

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------- */
.wp-block-button .wp-block-button__link {
  transition: transform .2s var(--it-ease), background-color .2s, box-shadow .2s;
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(1,48,87,.5); }
.wp-block-button.is-style-accent .wp-block-button__link { background: var(--wp--preset--color--orange); color: #fff; }
.wp-block-button.is-style-accent .wp-block-button__link:hover { background: #e14d1a; }
.wp-block-button.is-style-ghost .wp-block-button__link {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.22); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid var(--wp--preset--color--blue); color: var(--wp--preset--color--blue); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--blue); color: #fff; }

/* ------------------------------------------------------------------
   Typography helpers
------------------------------------------------------------------- */
.is-style-eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--wp--preset--color--bright); margin-bottom: .5rem;
}
.has-navy-background-color .is-style-eyebrow,
.has-brand-sweep-gradient-background .is-style-eyebrow,
.it-on-dark .is-style-eyebrow { color: var(--wp--preset--color--amber); }
.is-style-stat {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -.03em;
  background: var(--wp--preset--gradient--brand-sweep);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.it-on-dark .is-style-stat { background: linear-gradient(135deg,#fff,#D4E7FE); -webkit-background-clip: text; background-clip: text; }
.it-on-dark, .it-on-dark h1, .it-on-dark h2, .it-on-dark h3, .it-on-dark h4, .it-on-dark p, .it-on-dark a { color: #fff; }
.it-on-dark .it-muted { color: rgba(255,255,255,.78); }
.it-muted { color: var(--wp--preset--color--slate); }

/* ------------------------------------------------------------------
   Cards
------------------------------------------------------------------- */
.is-style-card, .is-style-card-dark {
  border-radius: var(--it-radius);
  padding: clamp(1.25rem, 2.5vw, 2rem) !important;
  transition: transform .25s var(--it-ease), box-shadow .25s var(--it-ease), border-color .25s;
  height: 100%;
}
.is-style-card {
  background: #fff; border: 1px solid rgba(1,48,87,.08); box-shadow: 0 1px 2px rgba(1,48,87,.04);
}
.is-style-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--card); border-color: rgba(12,109,199,.35); }
.is-style-card-dark { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.is-style-card-dark:hover { background: rgba(255,255,255,.11); transform: translateY(-4px); }
.is-style-card h3, .is-style-card-dark h3 { margin-top: 0; }
.is-style-card > * + *, .is-style-card-dark > * + * { margin-top: .75rem; }
.it-card-link { font-weight: 600; }
.it-card-link::after { content: " \2192"; display: inline-block; transition: transform .2s var(--it-ease); }
.is-style-card:hover .it-card-link::after { transform: translateX(4px); }

/* Icon chip on service/solution cards */
.it-chip {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--wp--preset--color--ice); color: var(--wp--preset--color--blue);
  font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; margin-bottom: 1rem !important;
}
.is-style-card-dark .it-chip { background: rgba(255,255,255,.14); color: #fff; }

/* ------------------------------------------------------------------
   Hero glow (decorative radial lights on the brand gradient)
------------------------------------------------------------------- */
.is-style-glow { position: relative; overflow: hidden; isolation: isolate; }
.is-style-glow::before, .is-style-glow::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; filter: blur(60px);
}
.is-style-glow::before { width: 55vw; height: 55vw; right: -15vw; top: -25vw; background: radial-gradient(closest-side, rgba(12,109,199,.75), transparent); }
.is-style-glow::after  { width: 40vw; height: 40vw; left: -15vw; bottom: -25vw; background: radial-gradient(closest-side, rgba(250,94,40,.45), transparent); }
.is-style-glow.it-hero::after {
  inset: 0; width: auto; height: auto; border-radius: 0; filter: none; left: auto; bottom: auto;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 0%, #000 20%, transparent 70%);
}

/* Announcement bar */
.it-announce { font-size: .85rem; }
.it-announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------
   Logo strip / pills
------------------------------------------------------------------- */
.it-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: #fff; border: 1px solid rgba(1,48,87,.1); color: var(--wp--preset--color--navy);
  box-shadow: 0 1px 2px rgba(1,48,87,.04);
}
.it-pill small { font-weight: 500; color: var(--wp--preset--color--slate); }
.it-logo-strip { opacity: .85; }
.it-logo-strip p { font-weight: 700; letter-spacing: .02em; color: var(--wp--preset--color--slate); font-size: 1.15rem; }

/* ------------------------------------------------------------------
   Testimonials
------------------------------------------------------------------- */
.it-quote .wp-block-quote { border: 0; padding: 0; margin: 0; font-size: 1.05rem; }
.it-quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--wp--preset--color--navy); }
.it-quote cite span { display: block; font-weight: 400; color: var(--wp--preset--color--slate); font-size: .9rem; }
.it-stars { color: var(--wp--preset--color--amber); letter-spacing: .1em; font-size: .95rem; }

/* ------------------------------------------------------------------
   Post cards (query loop)
------------------------------------------------------------------- */
.it-post-card {
  border-radius: var(--it-radius); overflow: hidden; background: #fff;
  border: 1px solid rgba(1,48,87,.08); height: 100%;
  transition: transform .25s var(--it-ease), box-shadow .25s var(--it-ease);
}
.it-post-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--card); }
.it-post-card .wp-block-post-featured-image { margin: 0; aspect-ratio: 16/9; background: var(--wp--preset--gradient--brand-sweep); }
.it-post-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.it-post-card .it-post-body { padding: 1.25rem 1.4rem 1.5rem; }
.it-post-card .wp-block-post-terms { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.it-post-card .wp-block-post-terms a { color: var(--wp--preset--color--bright); }
.it-post-card .wp-block-post-title { font-size: 1.15rem; line-height: 1.3; margin: .5rem 0; }
.it-post-card .wp-block-post-title a { color: var(--wp--preset--color--navy); }
.it-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--bright); }
.it-post-card .wp-block-post-excerpt__excerpt { font-size: .95rem; color: var(--wp--preset--color--slate); }
.it-post-card .wp-block-post-date { font-size: .8rem; color: var(--wp--preset--color--slate); }
.wp-block-query-pagination a { font-weight: 600; }

/* Page title band */
.it-title-band { border-bottom: 1px solid rgba(1,48,87,.08); }

/* Single post */
.it-single .wp-block-post-featured-image img { border-radius: var(--it-radius); }
.it-single .wp-block-post-content > p:first-of-type { font-size: 1.15rem; color: var(--wp--preset--color--slate); }
.it-meta { font-size: .9rem; color: var(--wp--preset--color--slate); }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.it-footer { background: var(--wp--preset--color--navy); color: rgba(255,255,255,.8); }
.it-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.it-footer a { color: rgba(255,255,255,.8); }
.it-footer a:hover { color: #fff; }
.it-footer .wp-block-navigation { gap: .45rem; }
.it-footer .wp-block-navigation a { padding: 0; font-weight: 400; font-size: .95rem; }
.it-footer .wp-block-social-links .wp-social-link { background: rgba(255,255,255,.1); border-radius: 10px; }
.it-footer .wp-block-social-links .wp-social-link:hover { background: var(--wp--preset--color--bright); }
.it-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.it-footer-bottom a { margin-left: 1.25rem; }
.it-footer .it-logo img { width: 150px; }

/* Wide grids collapse gracefully */
@media (max-width: 781px) {
  .is-hidden-on-mobile { display: none !important; }
  .it-header .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--navy); }
  .it-footer-bottom .wp-block-group { justify-content: center !important; text-align: center; }
  .it-footer-bottom a { margin: 0 .6rem; }
}
