/* ==========================================================================
   Goliath Technologies — theme styles (front end and editor)
   Tokens (palette, fonts, sizes, spacing) live in theme.json. This file holds
   the responsive system carried over from the Astro site and the CSS behind
   the block styles registered in functions.php:
     --gx  caps horizontal gutters (min(44px, var(--gx)))
     --sy  scales large vertical spacing (spacing presets XL and up use it)
     --sg  scales large gaps
     .rg / .rg-N        grids that collapse on smaller screens
     .fx-sb / .fx-eq    flex rows that wrap / stack on small screens
   ========================================================================== */

:root {
  --gx: 9999px;
  --sy: 1;
  --sg: 1;
  --nav-h: 84px;
}
@media (max-width: 1100px) {
  :root { --gx: 32px; --sy: 0.85; --sg: 0.8; --nav-h: 76px; }
}
@media (max-width: 640px) {
  :root { --gx: 20px; --sy: 0.62; --sg: 0.6; --nav-h: 68px; }
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` must win over author display values (state toggles rely on it) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, iframe, video { max-width: 100%; }
/* long words / email addresses must never push past the viewport */
h1, h2, h3, h4, p, li, a { overflow-wrap: break-word; }
/* no one-word last lines (widows) in headings or body copy */
h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption { text-wrap: pretty; }
button { font: inherit; }
/* Weights by role (Poppins): headings 600 (theme.json), lead text 500, body 400.
   A <strong>/<b> around heading text keeps the heading weight instead of jumping to "bolder". */
:is(h1, h2, h3, h4, h5, h6) :is(strong, b) { font-weight: inherit; }
/* Lead text: paragraphs set in the 17–22px presets. :where() keeps this below every block style. */
:where(p.has-md-font-size, p.has-lg-font-size, p.has-card-font-size, p.has-card-l-font-size, p.has-xl-font-size) { font-weight: 500; }
:focus-visible { outline: 2px solid var(--wp--preset--color--blue); outline-offset: 2px; }

.skip-link.screen-reader-text:focus {
  left: 12px; top: 12px; z-index: 100000;
  padding: 10px 16px; background: #fff; color: var(--wp--preset--color--navy);
  font: 700 14px var(--wp--preset--font-family--poppins); border-radius: 8px;
}

/* --- Page frame ------------------------------------------------------------ */
/* Sections own their vertical spacing; no block gap between the header, main,
   footer, or between top-level sections of a page. */
.wp-site-blocks > * { margin-block: 0; }
.wp-block-post-content.wp-block-post-content > * { margin-block-start: 0; }
.wp-site-blocks > header.wp-block-template-part {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100;
}
@media (max-width: 600px) {
  .wp-site-blocks > header.wp-block-template-part { top: 0; }
}

/* --- Buttons: every button gets the sliding arrow ------------------------- */
.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.wp-block-button__link::after {
  content: '→';
  display: inline-block; max-width: 0; opacity: 0; overflow: hidden;
  transform: translateX(-6px); margin-left: 0;
  transition: max-width 0.25s ease, opacity 0.25s ease, transform 0.25s ease, margin-left 0.25s ease;
}
.wp-block-button__link:is(:hover, :focus-visible)::after { max-width: 20px; opacity: 1; transform: translateX(0); margin-left: 8px; }
/* Large size = the Base font size in the button's typography panel (the class lands on the wrapper) */
.wp-block-button.has-base-font-size .wp-block-button__link { font-size: 16px; padding: 18px 28px; border-radius: 12px; }
.is-style-orange .wp-block-button__link,
.is-style-orange .wp-block-button__link:is(:hover, :focus-visible) { background: var(--wp--preset--color--orange); color: var(--wp--preset--color--navy); }
.is-style-white .wp-block-button__link { background: #fff; color: var(--wp--preset--color--navy); }
.is-style-white .wp-block-button__link:is(:hover, :focus-visible) { background: #EAF2FB; color: var(--wp--preset--color--navy); }
.is-style-navy .wp-block-button__link { background: var(--wp--preset--color--navy); color: #fff; }
.is-style-navy .wp-block-button__link:is(:hover, :focus-visible) { background: var(--wp--preset--color--navy-glow); color: #fff; }

/* --- Paragraph styles ------------------------------------------------------- */
p.is-style-eyebrow,
p.is-style-eyebrow-live {
  font-family: var(--wp--preset--font-family--poppins); font-weight: 500; font-size: 13px;
  line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase;
}
p.is-style-eyebrow:not(.has-text-color),
p.is-style-eyebrow-live:not(.has-text-color) { color: var(--wp--preset--color--brand-blue); }
p.is-style-eyebrow-live,
p.is-style-eyebrow-verified { display: flex; align-items: center; gap: 8px; }
p.is-style-eyebrow-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #e53935; flex: none; }
p.is-style-eyebrow-verified {
  font-family: var(--wp--preset--font-family--poppins); font-weight: 500; font-size: 13px;
  line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase;
}
p.is-style-eyebrow-verified:not(.has-text-color) { color: var(--wp--preset--color--blue-light); }
p.is-style-eyebrow-verified::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4CD964; flex: none; }
p.is-style-card-title {
  font-family: var(--wp--preset--font-family--poppins); font-weight: 600; line-height: 1.3;
}
p.is-style-card-title:not(.has-text-color) { color: inherit; }

/* --- Group styles ------------------------------------------------------------ */
.is-style-hero {
  background: var(--wp--preset--gradient--hero);
  color: #fff;
}
.is-style-hero :where(h1, h2, h3, h4) { color: #fff; }
.is-style-hero :where(p:not(.has-text-color)) { color: #B8C4DA; }

.is-style-glass-card {
  background: #ffffff0f; border: 1px solid #ffffff26; border-radius: 16px; padding: 28px;
}
.is-style-hero .is-style-glass-card :where(p:not(.has-text-color):not([class*='is-style-'])) { color: #C9D6E8; }
.is-style-hero p.is-style-card-title { color: #fff; }
.is-style-glass-card p:not([class*='-font-size']) { font-size: 15px; line-height: 1.55; text-wrap: pretty; }

.is-style-outlined-orange {
  background: #fff; border: 2px solid var(--wp--preset--color--orange); border-radius: 20px;
  padding: 24px min(52px, var(--gx));
}
@media (max-width: 760px) {
  .is-style-outlined-orange.is-layout-flex { flex-wrap: wrap !important; }
  .is-style-outlined-orange.is-layout-flex > .wp-block-group { flex: 1 1 220px !important; }
}
.is-style-outlined-orange > .wp-block-image { flex: none; }
@media (max-width: 640px) {
  .is-style-outlined-orange > .wp-block-image:first-child { display: none; }
}

.is-style-panel-blue {
  background: var(--wp--preset--color--band-blue); border-radius: 20px;
  padding: 44px min(52px, var(--gx));
}

:is(.is-style-cta-orange, .is-style-cta-blue) {
  background: var(--wp--preset--color--orange); border-radius: 20px;
  padding: calc(60px * var(--sy)) min(60px, var(--gx));
}
.is-style-cta-blue { background: var(--wp--preset--color--blue); }
:is(.is-style-cta-orange, .is-style-cta-blue) :where(h1, h2, h3) { line-height: 1.02; letter-spacing: -0.025em; }
.is-style-cta-orange :where(p:not(.has-text-color)) { color: #3A2A12; font-weight: 600; }
.is-style-cta-blue :is(h1, h2, h3, h4):not(.has-text-color) { color: #fff; }
.is-style-cta-blue :where(p:not(.has-text-color)) { color: #fff; font-weight: 600; }
:is(.is-style-cta-orange, .is-style-cta-blue) .wp-block-button.has-base-font-size .wp-block-button__link { padding: 20px 34px; }

/* --- Columns / media --------------------------------------------------------- */
@media (max-width: 960px) {
  .wp-block-columns.is-style-stack-tablet { flex-wrap: wrap !important; }
  .wp-block-columns.is-style-stack-tablet > .wp-block-column { flex-basis: 100% !important; }
}
.wp-block-embed { margin: 0; }
/* The hero video keeps its design width when the columns stack */
.wp-block-embed.is-style-framed { max-width: 460px; }
.wp-block-embed.is-style-framed .wp-block-embed__wrapper {
  border: 1px solid #ffffff26; border-radius: 16px; overflow: hidden; background: #000;
}
.wp-block-image { margin: 0; }
.wp-block-image.is-style-rounded img { border-radius: 9999px; aspect-ratio: 1 / 1; object-fit: cover; }

/* --- Inner-page styles -------------------------------------------------------- */
.is-style-hero-grid {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 500px at 82% -20%, #14315C 0%, transparent 62%),
    linear-gradient(160deg, #0D2844 0%, #0D2844 30%, #0A1A33 100%);
}
.is-style-hero-grid::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.is-style-hero-grid > * { position: relative; }
.is-style-hero-grid :where(h1, h2, h3, h4) { color: #fff; }
.is-style-hero-grid :where(p:not(.has-text-color)) { color: #B8C4DA; }

/* KLAS-style announcement pill: a row group holding a short label and a small button */
.is-style-pill {
  width: fit-content; max-width: 100%; padding: 6px 6px 6px 16px;
  background: #ffffff0d; border: 1px solid #ffffff24; border-radius: 999px;
}
.is-style-pill p { font-family: var(--wp--preset--font-family--poppins); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; }
.is-style-pill p:not(.has-text-color) { color: #E7EDF7; }

/* Small size = the XS font size in the button's typography panel */
.wp-block-button.has-xs-font-size .wp-block-button__link { font-size: 13px; padding: 8.5px 14px; border-radius: 999px; }
.is-style-ghost .wp-block-button__link { background: #ffffff12; border: 1px solid #ffffff2e; color: #fff; }
.is-style-ghost .wp-block-button__link:is(:hover, :focus-visible) { background: #ffffff1f; color: #fff; }

ul.is-style-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
ul.is-style-checklist:not(.has-text-color) { color: var(--wp--preset--color--slate); }
ul.is-style-checklist > li { position: relative; padding-left: 32px; margin: 0; }
ul.is-style-checklist > li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #00A9ED1f; color: #00A9ED; font-size: 12px; font-weight: 700; line-height: 1;
}
/* Checks / Dashes: plain 20px marks before each item (the From / To cards on the homepage) */
ul:is(.is-style-checks, .is-style-dashes) { list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; line-height: 1.5; }
ul:is(.is-style-checks, .is-style-dashes) > li { position: relative; padding-left: 32px; margin: 0; }
ul:is(.is-style-checks, .is-style-dashes) > li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat;
}
ul.is-style-checks:not(.has-text-color) { color: #fff; }
ul.is-style-checks > li::before { color: var(--wp--preset--color--blue); --mark: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.5%27/%3E%3C/svg%3E"); }
ul.is-style-dashes:not(.has-text-color) { color: var(--wp--preset--color--slate); }
ul.is-style-dashes > li::before { color: #8A97AD; --mark: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M6 12h12%27/%3E%3C/svg%3E"); }

.is-style-card-gray { background: var(--wp--preset--color--band-gray); border: 1px solid var(--wp--preset--color--border); border-radius: 16px; padding: 28px; }
.is-style-card { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; padding: 28px; }
.is-style-card-navy { background: linear-gradient(160deg, var(--wp--preset--color--navy) 0%, var(--wp--preset--color--navy-deep) 100%); color: #fff; border-radius: 16px; padding: 28px; }
.is-style-card-navy :where(h1, h2, h3, h4, p:not(.has-text-color)) { color: #fff; }
.is-style-panel-gray { background: var(--wp--preset--color--band-gray); border: 1px solid var(--wp--preset--color--border); border-radius: 20px; padding: 44px min(48px, var(--gx)); }
.is-style-panel-navy { background: var(--wp--preset--color--navy); color: #fff; border-radius: 20px; padding: 44px min(48px, var(--gx)); }
.is-style-panel-navy :where(h1, h2, h3, h4) { color: #fff; }
.is-style-panel-navy :where(p:not(.has-text-color)) { color: #B8C4DA; }

/* Logo grid: a grid group of images, each centered in a 56px-tall cell */
.is-style-logos > .wp-block-image { height: 56px; display: flex; align-items: center; justify-content: center; }
.is-style-logos > .wp-block-image img { max-height: 56px; max-width: 100%; width: auto; height: auto; object-fit: contain; }

.wp-block-image.is-style-screenshot img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 16px; }

.wp-block-quote.is-style-large { position: relative; margin: 0; border: 0; padding: 8px 0 0 min(56px, var(--gx)); }
.wp-block-quote.is-style-large::before {
  content: '“'; position: absolute; left: -6px; top: -48px; pointer-events: none;
  font-family: var(--wp--preset--font-family--poppins); font-weight: 600; line-height: 1;
  font-size: clamp(99px, calc(99px + 81 * (100vw - 400px) / 880), 180px); color: #00A9ED; opacity: 0.12;
}
.wp-block-quote.is-style-large p {
  position: relative; max-width: 1080px; margin: 0 0 28px; text-wrap: pretty; font-style: normal;
  font-family: var(--wp--preset--font-family--poppins); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em;
  font-size: clamp(20px, calc(20px + 12 * (100vw - 400px) / 880), 32px); color: var(--wp--preset--color--navy);
}
.wp-block-quote.is-style-large cite {
  display: flex; align-items: center; gap: 14px; font-style: normal;
  font-family: var(--wp--preset--font-family--poppins); font-size: 15px; color: var(--wp--preset--color--slate);
}
.wp-block-quote.is-style-large cite::before { content: ''; width: 28px; height: 2px; background: #00A9ED; flex: none; }
.wp-block-quote.is-style-large cite strong { color: var(--wp--preset--color--navy); }
/* Narrow screens: the name and title wrap as one line of text beside the rule, instead of splitting into columns */
@media (max-width: 781px) {
  .wp-block-quote.is-style-large cite { display: block; position: relative; padding-left: 42px; line-height: 1.5; text-align: left; }
  .wp-block-quote.is-style-large cite::before { position: absolute; left: 0; top: 0.75em; }
}

/* Stat band: navy panel holding a grid of stat groups (value, label, source) */
.is-style-stat-band { background: var(--wp--preset--color--navy); color: #fff; border-radius: 20px; padding: calc(48px * var(--sy)) 0 calc(52px * var(--sy)); }
.is-style-stat-band > * { padding-inline: min(40px, var(--gx)); }
.is-style-stat-band > .is-layout-grid { padding-inline: 0; }
.is-style-stat-band > .is-layout-grid > * { padding: 4px 32px; }
.is-style-stat-band > .is-layout-grid > * + * { border-left: 1px solid #ffffff1f; }
.is-style-stat-band p { color: #fff; }
.is-style-stat-band p.is-style-eyebrow { color: var(--wp--preset--color--blue); }

/* Section bands: panels, CTA bands and the stat band run edge to edge with square corners; their content
   stays on the page's 1352px column. Bands inside columns, side by side in a row, or anywhere in a
   blog/news article stay boxed (rounded, on the text column). */
body :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):not(.wp-block-column *, .is-layout-grid > *, .is-layout-flex > *, .single-post .wp-block-post-content *) {
  width: auto; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
  padding-left: max(var(--wp--style--root--padding-left, 24px), calc((100vw - 1352px) / 2)) !important;
  padding-right: max(var(--wp--style--root--padding-right, 24px), calc((100vw - 1352px) / 2)) !important;
  border-radius: 0; border-left: 0; border-right: 0;
}
body .is-style-stat-band:not(.wp-block-column *, .is-layout-grid > *, .is-layout-flex > *, .single-post .wp-block-post-content *) > * { padding-inline: 0; }
/* Color blocks touch: no white gap where one band (or a section ending in one) meets the next band
   (or a section starting with one), nor between the last band and the footer. A section is a plain
   group, not a band itself or a row of boxed panels. */
.wp-block-post-content > :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band, .is-style-hero, .is-style-hero-grid):has(+ :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band, .is-style-hero, .is-style-hero-grid), + :not(.is-layout-grid, .is-layout-flex, [class*="is-style-"]) > :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):first-child),
main > .wp-block-post-content:last-child > :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):last-child { margin-bottom: 0 !important; }
.wp-block-post-content > :not(.is-layout-grid, .is-layout-flex, [class*="is-style-"]):has(> :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):last-child):has(+ :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band, .is-style-hero, .is-style-hero-grid), + :not(.is-layout-grid, .is-layout-flex, [class*="is-style-"]) > :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):first-child),
main > .wp-block-post-content:last-child > :not(.is-layout-grid, .is-layout-flex, [class*="is-style-"]):has(> :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):last-child):last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }
:is(.wp-block-post-content > :not(.is-layout-grid, .is-layout-flex, [class*="is-style-"]):has(+ :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band, .is-style-hero, .is-style-hero-grid), + :not(.is-layout-grid, .is-layout-flex, [class*="is-style-"]) > :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):first-child), main > .wp-block-post-content:last-child > :last-child) > :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):last-child { margin-bottom: 0 !important; }
.wp-block-post-content > :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band, .is-style-hero, .is-style-hero-grid, :not(.is-layout-grid, .is-layout-flex, [class*="is-style-"]):has(> :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):last-child)) + :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band) { margin-top: 0 !important; }
.wp-block-post-content > :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band, .is-style-hero, .is-style-hero-grid, :not(.is-layout-grid, .is-layout-flex, [class*="is-style-"]):has(> :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):last-child)) + :not(.is-layout-grid, .is-layout-flex, [class*="is-style-"]):has(> :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):first-child) { margin-top: 0 !important; padding-top: 0 !important; }
.wp-block-post-content > :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band, .is-style-hero, .is-style-hero-grid, :not(.is-layout-grid, .is-layout-flex, [class*="is-style-"]):has(> :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):last-child)) + :not(.is-layout-grid, .is-layout-flex, [class*="is-style-"]) > :is(.is-style-panel-gray, .is-style-panel-navy, .is-style-panel-blue, .is-style-cta-orange, .is-style-cta-blue, .is-style-stat-band):first-child { margin-top: 0 !important; }
p.is-style-stat-value {
  font-family: var(--wp--preset--font-family--poppins); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap;
  font-size: clamp(21px, calc(21px + 13 * (100vw - 400px) / 880), 34px);
}
p.is-style-stat-value:not(.has-text-color) { color: var(--wp--preset--color--orange); }
p.is-style-stat-source:not(.has-text-color) { color: #B8C4DA; }
p.is-style-stat-source { font-size: 13.5px; line-height: 1.45; }
@media (max-width: 1100px) {
  .is-style-stat-band > .is-layout-grid > *:nth-child(odd) { border-left: 0; }
}
@media (max-width: 640px) {
  .is-style-stat-band > .is-layout-grid > * { border-left: 0; padding-inline: min(40px, var(--gx)); }
}

/* Numbered steps: a grid of groups divided by vertical rules */
.is-style-steps > * { padding: 30px 26px 8px; }
.is-style-steps > * + * { border-left: 1px solid #DFE6F0; }
@media (max-width: 860px) {
  .is-style-steps > * + * { border-left: 0; border-top: 1px solid #DFE6F0; }
}
p.is-style-step-number {
  font-family: var(--wp--preset--font-family--poppins); font-weight: 600; line-height: 1.2;
  font-size: clamp(24px, calc(24px + 14 * (100vw - 400px) / 880), 38px);
}
p.is-style-step-number:not(.has-text-color) { color: var(--wp--preset--color--orange-dark, #e67700); }

/* Feature row: groups with a light top rule (icon, then text) */
.is-style-top-rule { padding-top: 24px; border-top: 2px solid var(--wp--preset--color--band-blue); }
.is-style-rule-above { padding-top: 28px; border-top: 1px solid #DFE6F0; }

p.is-style-tag {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px;
  background: #EAF2FB; border: 1px solid #CFE0F5; font-size: 13px; font-weight: 700; line-height: 1.3;
}
p.is-style-tag:not(.has-text-color) { color: var(--wp--preset--color--brand-blue); }

/* Banner row: bordered strip with a label/heading on the left and a button on the right */
.is-style-banner-row { border: 1px solid var(--wp--preset--color--border); border-radius: 16px; padding: 32px; }

/* --- Homepage: narrower 96px measure and its original heading metrics ------- */
.home .wp-block-post-content {
  --wp--style--global--content-size: min(1248px, calc(100% - 2 * (min(96px, var(--gx)) - min(44px, var(--gx)))));
}
.home .wp-block-post-content h1 { line-height: 1.12; letter-spacing: normal; }
.home .wp-block-post-content h2:not(.has-heading-s-font-size):not(.has-heading-l-font-size) { line-height: 1.2; letter-spacing: normal; }
.home .is-style-hero :is(h1, h1 + p) { text-wrap: pretty; }

/* Value points (Why Goliath): one row with dividers between items; two by two on phones */
.value-points > * { padding: 4px 24px; min-width: 0; }
.value-points > :first-child { padding-left: 0; }
.value-points > :last-child { padding-right: 0; }
.value-points > * + * { border-left: 1px solid var(--wp--preset--color--border); }
.value-points p { text-wrap: pretty; line-height: 1.5; }
@media (max-width: 640px) {
  .value-points { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 24px !important; }
  .value-points > * { padding: 4px 16px; }
  .value-points > :nth-child(odd) { padding-left: 0; border-left: 0; }
  .value-points > :nth-child(even) { padding-right: 0; }
}

/* --- Utilities (add as "Additional CSS class(es)") ------------------------ */
.measure { max-width: 620px; text-wrap: pretty; }
.measure-wide { max-width: 760px; text-wrap: pretty; }
.balance { text-wrap: balance; }

/* --- Footer (parts/footer.html → patterns/footer.php) --------------------- */
.site-footer { background: var(--wp--preset--color--navy-deep); color: #8FA6C6; font-size: 14px; }
.site-footer > * {
  padding-left: max(min(44px, var(--gx)), calc((100% - 1440px) / 2 + 44px));
  padding-right: max(min(44px, var(--gx)), calc((100% - 1440px) / 2 + 44px));
}
.site-footer.site-footer > * { margin-block: 0; }
.site-footer p, .site-footer li { font-family: var(--wp--preset--font-family--poppins); }
.site-footer .footer-top { padding-top: 60px; padding-bottom: 44px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .footer-top > * { margin: 0; }
.site-footer .footer-brand > * { margin: 0; }
.site-footer .footer-brand img { height: 30px; width: auto; display: block; }
.site-footer .footer-brand p { font-size: 14px; line-height: 1.6; color: #7C90B0; max-width: 240px; margin: 20px 0 22px; }
.site-footer .footer-social { gap: 10px; }
.site-footer .footer-social .wp-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: #152A47; color: #9DB0CC;
  transition: background 0.2s ease, color 0.2s ease; transform: none;
}
.site-footer .footer-social .wp-social-link a { padding: 0; color: inherit; }
.site-footer .footer-social .wp-social-link svg { width: 15px; height: 15px; fill: currentColor; }
.site-footer .footer-social .wp-social-link:hover { background: var(--wp--preset--color--blue); color: var(--wp--preset--color--navy); transform: none; }
.site-footer .footer-col > * { margin: 0; }
.site-footer .footer-col-title { font-family: var(--wp--preset--font-family--poppins); font-weight: 500; font-size: 12px; line-height: normal; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.site-footer .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; line-height: normal; }
.site-footer .footer-links a { color: #9DB0CC; transition: color 0.2s ease; }
.site-footer .footer-links a:hover { color: var(--wp--preset--color--blue); }
.site-footer .footer-reviews {
  border-top: 1px solid #14263F; padding-top: 26px; padding-bottom: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.site-footer .footer-reviews-title { font-family: var(--wp--preset--font-family--poppins); font-weight: 600; font-size: 16px; color: #C9D6EA; margin: 0; }
.site-footer .footer-badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-footer :is(.footer-reviews, .footer-badges, .footer-bottom) > * { margin: 0; }
.site-footer .footer-badges img { display: block; height: 56px; width: auto; }
.site-footer .footer-bottom {
  border-top: 1px solid #14263F; padding-top: 22px; padding-bottom: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--wp--preset--font-family--poppins); font-size: 13px; color: #5F7599;
}
.site-footer .footer-bottom > * { margin: 0; font-size: 13px; line-height: normal; color: #5F7599; }
.site-footer .footer-bottom .footer-tm { text-align: right; font-family: var(--wp--preset--font-family--poppins); }
@media (max-width: 960px) {
  .site-footer .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 44px; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer .footer-bottom .footer-tm { text-align: left; }
  .site-footer .footer-badges img { height: 48px; }
}

/* --- Forms ------------------------------------------------------------------- */
input, select, textarea { font: inherit; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--blue) !important;
  box-shadow: 0 0 0 3px rgba(0,169,237,0.15);
}

/* --- Image placeholder (slots with no artwork supplied yet) ------------------ */
.img-ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, #00A9ED40 0%, transparent 55%),
    linear-gradient(135deg, var(--wp--preset--color--navy-glow) 0%, var(--wp--preset--color--navy-deep) 70%);
}
.img-ph::after {
  content: ''; position: absolute; inset: 0;
  background: url('../images/goliath-g.png') center / auto 34% no-repeat;
  opacity: 0.18;
}

/* --- Responsive layout (add these as "Additional CSS class(es)") -------------- */
/* g-span: a grid item that spans two columns, then the full row once the grid narrows */
.rg > .g-span { grid-column: span 2; }
@media (max-width: 1100px) {
  .rg-4, .rg-5, .rg-6 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .rg-logos.rg-4, .rg-logos.rg-5, .rg-logos.rg-6 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 960px) {
  .rg-2:not(.rg-form):not(.rg-logos) { grid-template-columns: minmax(0, 1fr) !important; }
  .rg > .g-span { grid-column: 1 / -1 !important; }
}
@media (max-width: 860px) {
  .rg-3:not(.rg-logos) { grid-template-columns: minmax(0, 1fr) !important; }
  .rg-logos.rg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .fx-sb { flex-wrap: wrap !important; }
  .fx-eq { flex-direction: column !important; align-items: stretch !important; }
}
@media (max-width: 640px) {
  .rg-4:not(.rg-logos), .rg-5:not(.rg-logos), .rg-6:not(.rg-logos) { grid-template-columns: minmax(0, 1fr) !important; }
  .rg-logos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .rg-form { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
