/*
Theme Name: GeoSubsea
Theme URI: https://geosubsea.com/
Author: GeoSubsea
Description: A custom theme for GeoSubsea, a marine geophysical data processing and interpretation service. Built around processed survey imagery: multibeam, side-scan sonar, seismic and magnetometer. Includes a designed homepage, service page layout, insights listing and bundled images and fonts. Works with Pagelayer and Forminator content.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geosubsea
*/

/* ---------------------------------------------------------------------
   Fonts (bundled, no external requests)
   ------------------------------------------------------------------ */
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("assets/fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("assets/fonts/plex-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("assets/fonts/plex-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("assets/fonts/plex-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------ */
:root {
	--abyss: #05202e;
	--deep: #0a3447;
	--teal: #0b6b78;
	--aqua: #6ed3d8;
	--copper: #e09a3a;
	--copper-dark: #a8661a;
	--paper: #f3f6f7;
	--white: #ffffff;
	--ink: #0d2430;
	--muted: #4d626d;
	--line: #d5dee3;
	--line-dark: rgba(255, 255, 255, 0.16);

	--font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
	--font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(1.125rem, 4vw, 2.5rem);
	--section: clamp(3.5rem, 8vw, 6.5rem);
	--radius: 6px;
	--header-h: 76px;
}

/* ---------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-stretch: 108%; font-weight: 620; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--copper); color: var(--abyss); padding: 0.6rem 1rem; font-weight: 600; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7rem 1.35rem; border: 1.5px solid transparent; border-radius: var(--radius); font-family: var(--font-display); font-stretch: 104%; font-weight: 620; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn--accent { background: var(--copper); color: var(--abyss); }
.btn--accent:hover { background: #f0b25c; color: var(--abyss); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); color: var(--white); }
.btn--dark { background: var(--deep); color: var(--white); }
.btn--dark:hover { background: var(--abyss); color: var(--white); }
.btn--block { display: flex; width: 100%; }
.text-link { font-family: var(--font-display); font-weight: 620; color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: var(--copper); }
.text-link:hover { color: var(--ink); }

/* ---------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand__img { width: 56px; height: 56px; object-fit: contain; }
.brand--text { font-family: var(--font-display); font-stretch: 112%; font-weight: 750; font-size: 1.45rem; letter-spacing: -0.02em; }
.brand__geo { color: #1f9bd1; }
.brand__sub { color: #14457f; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list a { display: block; padding: 0.6rem 0.8rem; color: var(--ink); font-family: var(--font-display); font-weight: 560; font-size: 0.98rem; text-decoration: none; border-radius: var(--radius); }
.nav__list a:hover { color: var(--teal); }
.nav__list > li.is-current > a, .nav__list > li.current-menu-item > a, .nav__list > li.current-menu-ancestor > a { color: var(--teal); box-shadow: inset 0 -2px 0 var(--copper); border-radius: 0; }
.nav__more { width: 28px; height: 28px; margin-left: -0.6rem; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius); }
.nav__more span { display: block; width: 7px; height: 7px; margin: -3px auto 0; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.nav__sub, .nav__list--wp .sub-menu { position: absolute; top: 100%; left: 0; min-width: 270px; margin: 0; padding: 0.5rem; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(5, 32, 46, 0.35); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
.nav__list > li:hover > .nav__sub, .nav__list > li:focus-within > .nav__sub, .nav__list > li.is-open > .nav__sub,
.nav__list--wp > li:hover > .sub-menu, .nav__list--wp > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__sub a, .nav__list--wp .sub-menu a { padding: 0.55rem 0.75rem; font-weight: 500; font-family: var(--font-body); }
.nav__sub a:hover, .nav__list--wp .sub-menu a:hover { background: var(--paper); }
.nav__cta { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.95rem; white-space: nowrap; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; margin-inline: auto; background: var(--ink); border-radius: 2px; transition: transform 0.2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 1rem var(--gutter) 1.5rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(5, 32, 46, 0.4); }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav__list > li > a { flex: 1; padding: 0.9rem 0; font-size: 1.05rem; }
	.nav__list > li.is-current > a { box-shadow: none; }
	.nav__more { width: 48px; height: 48px; margin: 0; }
	.nav__sub, .nav__list--wp .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 0.75rem 0.75rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.nav__list > li.is-open > .nav__sub, .nav__list--wp .sub-menu { display: block; }
	.nav__cta { align-self: stretch; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------------------------------------------------------------------
   Hero and sensor viewer
   ------------------------------------------------------------------ */
.hero { position: relative; background: var(--abyss); color: var(--white); padding-block: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero::before, .page-hero::before, .cta::before { content: ""; position: absolute; inset: 0; background: url("assets/img/contours.svg") center / cover no-repeat; opacity: 0.13; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-stretch: 112%; font-weight: 650; font-size: clamp(2.2rem, 4.3vw, 3.55rem); line-height: 1.06; margin-bottom: 0.55em; }
.hero__lede { font-size: 1.14rem; color: #c9dbe2; max-width: 34em; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem; }
.hero__standards { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; list-style: none; margin: 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line-dark); font-size: 0.92rem; color: #a9c1cb; }
.hero__standards li { position: relative; padding-left: 1.1rem; }
.hero__standards li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); }

.viewer { background: #031722; border: 1px solid var(--line-dark); border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.viewer__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-dark); }
.viewer__tabs button { position: relative; min-height: 50px; padding: 0.5rem 0.4rem; border: 0; background: none; color: #a9c1cb; font-family: var(--font-display); font-weight: 580; font-size: 0.95rem; cursor: pointer; }
.viewer__tabs button + button { border-left: 1px solid var(--line-dark); }
.viewer__tabs button:hover { color: var(--white); }
.viewer__tabs button[aria-selected="true"] { color: var(--white); background: rgba(110, 211, 216, 0.1); }
.viewer__tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--copper); }
.viewer__tabs button:focus-visible { outline-offset: -3px; }
.viewer__panel { margin: 0; }
.viewer__panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0a2633; }
.viewer__panel figcaption { padding: 0.85rem 1.1rem 1rem; font-size: 0.93rem; line-height: 1.5; color: #c9dbe2; min-height: 4.2em; }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.viewer__panel figcaption { min-height: 0; }
}
@media (max-width: 480px) {
	.viewer__tabs button { font-size: 0.82rem; font-stretch: 92%; }
}

/* ---------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.section { padding-block: var(--section); }
.section__head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.section__head--row > div { max-width: 44rem; }

/* Services */
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 1.4rem; align-items: start; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.service__media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.service__media img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s ease; }
.service:hover .service__media img { transform: scale(1.05); }
.service__abbr { margin: 0 0 0.3rem; font-size: 0.86rem; font-weight: 600; color: var(--copper-dark); letter-spacing: 0.02em; }
.service h3 { margin-bottom: 0.4rem; font-size: 1.28rem; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { color: var(--teal); text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.service__body p:last-child { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
@media (max-width: 860px) { .service-list { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .service { grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; } }

/* Gallery */
.gallery-section { background: var(--abyss); color: var(--white); }
.gallery-section .section__head p { color: #b5cad3; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 22vw, 290px); gap: 12px; grid-auto-flow: dense; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #0a2633; }
.gallery__item:nth-child(3) { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item button:focus-visible { outline-offset: -4px; }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 0.95rem 0.75rem; background: linear-gradient(transparent, rgba(3, 20, 30, 0.9)); font-size: 0.9rem; font-weight: 500; line-height: 1.35; pointer-events: none; }
@media (max-width: 820px) {
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 38vw, 260px); }
	.gallery__item:nth-child(3) { grid-row: span 2; }
}
@media (max-width: 480px) {
	.gallery { gap: 8px; }
	.gallery__item figcaption { font-size: 0.8rem; padding: 1.6rem 0.6rem 0.5rem; }
}

.lightbox { max-width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 10px; background: #031722; color: var(--white); overflow: hidden; }
.lightbox::backdrop { background: rgba(3, 16, 24, 0.86); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: calc(92vh - 4.5rem); margin-inline: auto; object-fit: contain; }
.lightbox figcaption { padding: 0.8rem 5.5rem 0.9rem 1.1rem; font-size: 0.95rem; }
.lightbox__close { position: absolute; right: 0.6rem; bottom: 0.45rem; min-height: 36px; padding: 0.3rem 0.9rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: #031722; color: var(--white); cursor: pointer; }
.lightbox__close:hover { background: var(--deep); }

/* Workflow: a real sequence, so it is numbered */
.workflow { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding-top: 3.6rem; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--deep); color: var(--white); font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; }
.step::after { content: ""; position: absolute; top: 19px; left: 40px; right: -1.75rem; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 14px); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 0.45rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
@media (max-width: 980px) {
	.steps { grid-template-columns: 1fr; gap: 0; max-width: 40rem; }
	.step { padding: 0 0 1.9rem 3.6rem; }
	.step::after { top: 40px; bottom: 0; left: 19px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 14px); }
	.step h3 { padding-top: 0.45rem; }
}

/* About */
.about__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__grid > div:first-child p { max-width: 36em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 2rem; padding: 0 0 2rem; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-display); font-stretch: 112%; font-weight: 680; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: var(--teal); }
.facts dd { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
.software h3 { font-size: 1rem; margin-bottom: 0.8rem; }
.software ul { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.software li { padding: 0.28rem 0.7rem; border: 1px solid var(--line); border-radius: 100px; font-size: 0.9rem; color: var(--ink); background: var(--paper); }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }

/* Post cards */
.insights { border-top: 1px solid var(--line); }
.related { background: var(--paper); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; margin: 0 0 0.45rem; font-size: 0.88rem; color: var(--muted); }
.post-card__meta a { color: var(--copper-dark); font-weight: 600; text-decoration: none; }
.post-card__meta a:hover { text-decoration: underline; }
.post-card__title { font-size: 1.22rem; margin-bottom: 0.5rem; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--teal); }
.post-card__excerpt { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* Call to action */
.cta { position: relative; background: var(--teal); color: var(--white); padding-block: clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.cta::before { opacity: 0.16; }
.cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: center; }
.cta h2 { max-width: 20em; margin-bottom: 0.5em; }
.cta p { max-width: 38em; margin: 0; color: #d7edf0; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.cta__mail { color: var(--white); font-weight: 500; }
.cta__mail:hover { color: var(--white); text-decoration-thickness: 2px; }
@media (max-width: 820px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Inner page hero
   ------------------------------------------------------------------ */
.page-hero { position: relative; background: var(--abyss); color: var(--white); padding-block: clamp(2.75rem, 6vw, 4.5rem); overflow: hidden; }
.page-hero__bg { position: absolute; top: 0; right: 0; width: 58%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); opacity: 0.85; }
.page-hero--image::before { display: none; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--abyss) 38%, rgba(5, 32, 46, 0.35)); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__inner--narrow { max-width: calc(820px + var(--gutter) * 2); }
.page-hero h1 { max-width: 19em; margin-bottom: 0; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero--image h1 { max-width: 14em; }
.page-hero__crumb { margin: 0 0 0.9rem; font-size: 0.95rem; color: #a9c1cb; }
.page-hero__crumb a { color: var(--aqua); text-decoration: none; font-weight: 500; }
.page-hero__crumb a:hover { text-decoration: underline; color: var(--white); }
.page-hero__lede { max-width: 34em; margin: 1.1rem 0 0; font-size: 1.12rem; color: #c9dbe2; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin: 1.2rem 0 0; font-size: 0.95rem; color: #a9c1cb; }
@media (max-width: 700px) {
	.page-hero__bg { width: 100%; opacity: 0.35; -webkit-mask-image: none; mask-image: none; }
	.page-hero--image::after { background: rgba(5, 32, 46, 0.72); }
}

/* ---------------------------------------------------------------------
   Layouts
   ------------------------------------------------------------------ */
.layout { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.layout > .entry-content { max-width: 820px; }
.layout--post > * { max-width: 820px; margin-inline: auto; }
.layout--post > .post-figure { max-width: 1040px; margin-bottom: 2.5rem; }
.layout--sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.layout--sidebar > .entry-content { max-width: none; }
@media (max-width: 980px) { .layout--sidebar { grid-template-columns: 1fr; } }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.25rem; }
.admin-bar .sidebar { top: calc(var(--header-h) + 56px); }
.sidebar__box { padding: 1.4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.sidebar__box h2 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.sidebar__box--dark { background: var(--abyss); border-color: var(--abyss); color: var(--white); }
.sidebar__note { margin: 0.9rem 0 0; font-size: 0.9rem; color: #a9c1cb; text-align: center; }
.sidebar__note a { color: var(--aqua); }
.ticks { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.ticks li { position: relative; padding: 0.35rem 0 0.35rem 1.6rem; font-size: 0.97rem; line-height: 1.4; color: #dbe8ec; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.72em; width: 10px; height: 5px; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(-45deg); }
.sidebar__nav { list-style: none; margin: 0; padding: 0; }
.sidebar__nav a { display: block; padding: 0.55rem 0.7rem; margin-inline: -0.7rem; border-radius: var(--radius); color: var(--ink); font-size: 0.97rem; line-height: 1.35; text-decoration: none; }
.sidebar__nav a:hover { background: var(--paper); color: var(--teal); }
.sidebar__nav a[aria-current="page"] { background: var(--paper); font-weight: 600; box-shadow: inset 3px 0 0 var(--copper); }
@media (max-width: 980px) { .sidebar { position: static; } }

.post-figure { margin: 0; border-radius: 10px; overflow: hidden; }
.post-figure img { width: 100%; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav span { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.2rem; }
.post-nav a { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.3; }
.post-nav a:hover { color: var(--teal); text-decoration: underline; }
.post-nav__next { grid-column: 2; text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { grid-column: 1; text-align: left; } }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filters a { padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.filters a:hover { border-color: var(--teal); color: var(--teal); }
.filters a[aria-current="page"] { background: var(--deep); border-color: var(--deep); color: var(--white); }

.pagination, .comments-pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 500; text-decoration: none; }
a.page-numbers:hover { border-color: var(--teal); color: var(--teal); }
.page-numbers.current { background: var(--deep); border-color: var(--deep); color: var(--white); }
.page-numbers.dots { border-color: transparent; }

.empty { max-width: 36rem; }
.search-form { display: flex; gap: 0.5rem; margin-block: 1.25rem 1.5rem; }
.search-form input[type="search"] { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------------
   Entry content (pages and posts, including Pagelayer output)
   ------------------------------------------------------------------ */
.entry-content { font-size: 1.0625rem; overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { font-family: var(--font-display) !important; color: var(--ink); font-stretch: 106%; letter-spacing: -0.01em; text-wrap: balance; }
.entry-content h1, .entry-content h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 640; line-height: 1.18; margin: 2.2em 0 0.6em; }
.entry-content h3 { font-size: 1.25rem; font-weight: 620; margin: 1.9em 0 0.5em; }
.entry-content h4, .entry-content h5, .entry-content h6 { font-size: 1.08rem; font-weight: 620; margin: 1.6em 0 0.4em; }
.entry-content p, .entry-content li { font-family: var(--font-body); color: #1d3642; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content strong, .entry-content b { font-weight: 600; color: var(--ink); }
.entry-content a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(11, 107, 120, 0.4); }
.entry-content a:hover { color: var(--ink); text-decoration-color: var(--copper); }
.entry-content ul, .entry-content ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.entry-content ul > li, .entry-content ol > li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5em; line-height: 1.55; }
.entry-content ul > li::before { content: ""; position: absolute; left: 0.25rem; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.entry-content ol { counter-reset: item; }
.entry-content ol > li { counter-increment: item; padding-left: 2rem; }
.entry-content ol > li::before { content: counter(item) "."; position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 650; color: var(--teal); }
.entry-content li > ul, .entry-content li > ol { margin: 0.5em 0 0; }
.entry-content img { border-radius: var(--radius); height: auto; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption, .entry-content .wp-caption-text { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.entry-content blockquote { margin: 2em 0; padding: 0.2em 0 0.2em 1.4rem; border-left: 3px solid var(--copper); font-size: 1.15rem; color: var(--ink); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content hr { height: 1px; margin: 2.5em 0; border: 0; background: var(--line); }
.entry-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: 0.96rem; }
.entry-content th, .entry-content td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--paper); border-bottom: 2px solid var(--deep); font-family: var(--font-display); font-weight: 620; }
.entry-content .wp-block-table, .entry-content .table-wrap { overflow-x: auto; }
.entry-content code, .entry-content kbd { padding: 0.12em 0.4em; border-radius: 4px; background: var(--paper); font-size: 0.92em; }
.entry-content pre { padding: 1.1rem; border-radius: var(--radius); background: var(--abyss); color: #e5f1f4; overflow-x: auto; font-size: 0.9rem; }
.entry-content pre code { padding: 0; background: none; }
.entry-content .alignwide { max-width: none; }
.entry-content iframe { max-width: 100%; }

/* Forms (Forminator, comments, search) */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], input[type="date"], select, textarea,
.entry-content .forminator-ui .forminator-input, .entry-content .forminator-ui .forminator-textarea, .entry-content .forminator-ui .forminator-select2 + .select2 .selection .select2-selection { width: 100%; min-height: 48px; padding: 0.65rem 0.85rem; border: 1px solid #b9c7ce; border-radius: var(--radius); background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; }
textarea { min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(224, 154, 58, 0.55); outline-offset: 1px; border-color: var(--copper-dark); }
label, .entry-content .forminator-ui .forminator-label { font-weight: 500; color: var(--ink); }
.entry-content .forminator-ui .forminator-button-submit, .comment-form .submit, .entry-content input[type="submit"], .entry-content button[type="submit"] { min-height: 48px; padding: 0.7rem 1.6rem; border: 0; border-radius: var(--radius); background: var(--copper) !important; color: var(--abyss) !important; font-family: var(--font-display) !important; font-weight: 620 !important; font-size: 1rem !important; cursor: pointer; box-shadow: none !important; }
.entry-content .forminator-ui .forminator-button-submit:hover, .comment-form .submit:hover { background: #f0b25c !important; }
.entry-content .forminator-ui { margin-block: 2rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }

/* Comments */
.comments h2, .comment-reply-title { font-size: 1.4rem; }
.comments__list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comments__list .comment-body { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.comments__list .avatar { float: left; margin-right: 0.8rem; border-radius: 50%; }
.comments__list .children { list-style: none; padding-left: 1.5rem; }
.comment-metadata { font-size: 0.88rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.3rem; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ---------------------------------------------------------------------
   Service pages: processing flow, spec strip, figures, step headings
   ------------------------------------------------------------------ */
.icon { display: block; }
.icon--chat { display: inline-block; vertical-align: -3px; margin-right: 0.4rem; }
.wa-link { display: inline-block; margin-top: 0.35rem; }
.cta__wa { display: inline-flex; align-items: center; }

.flow { background: var(--deep); color: var(--white); padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.flow__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.flow__head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.flow__io { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin: 0; font-size: 0.92rem; }
.flow__chip { padding: 0.4rem 0.85rem; border: 1px solid var(--line-dark); border-radius: 100px; color: #d6e4e9; line-height: 1.35; }
.flow__chip b { margin-right: 0.35rem; color: var(--aqua); font-weight: 600; }
.flow__chip--out { border-color: rgba(224, 154, 58, 0.6); }
.flow__chip--out b { color: var(--copper); }
.flow__arrow { position: relative; width: 34px; height: 2px; background: var(--aqua); }
.flow__arrow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--aqua); border-right: 2px solid var(--aqua); transform: rotate(45deg); }

.flow__steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flow__step { position: relative; counter-increment: flow; }
.flow__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1rem; border-radius: 50%; background: var(--abyss); border: 1.5px solid var(--aqua); color: var(--aqua); }
.flow__icon::after { content: counter(flow); position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--copper); color: var(--abyss); font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; }
.flow__step::before { content: ""; position: absolute; top: 27px; left: 64px; right: calc(-1.5rem + 8px); height: 2px; background: repeating-linear-gradient(90deg, rgba(110, 211, 216, 0.7) 0 6px, transparent 6px 11px); }
.flow__step::after { content: ""; position: absolute; top: 23px; right: calc(-1.5rem + 6px); width: 8px; height: 8px; border-top: 2px solid var(--aqua); border-right: 2px solid var(--aqua); transform: rotate(45deg); }
.flow__step:last-child::before, .flow__step:last-child::after { display: none; }
.flow__step h3 { margin: 0 0 0.35rem; font-size: 1.02rem; line-height: 1.25; }
.flow__step p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: #b5cad3; }

.flow__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2.5rem; margin: 2.25rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.flow__specs dt { margin-bottom: 0.2rem; font-size: 0.85rem; font-weight: 600; color: var(--aqua); }
.flow__specs dd { margin: 0; font-size: 0.95rem; line-height: 1.45; color: #dbe8ec; }

@media (max-width: 1080px) {
	.flow__arrow { display: none; }
	.flow__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
	.flow__step:nth-child(3n)::before, .flow__step:nth-child(3n)::after { display: none; }
}
@media (max-width: 640px) {
	.flow__steps { grid-template-columns: 1fr; row-gap: 0; }
	.flow__step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 1rem; padding-bottom: 1.5rem; }
	.flow__icon { grid-row: span 2; margin: 0; }
	.flow__step h3 { align-self: end; }
	.flow__step::before, .flow__step:nth-child(3n)::before { display: block; top: 58px; bottom: 2px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(110, 211, 216, 0.7) 0 6px, transparent 6px 11px); }
	.flow__step::after, .flow__step:nth-child(3n)::after { display: none; }
	.flow__step:last-child::before { display: none; }
	.flow__specs { grid-template-columns: 1fr; }
	.flow__arrow { display: none; }
}

.entry-content .figset { display: grid; gap: 1rem; margin: 2.25rem 0 2.5rem; }
.entry-content .figset--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content .figset__item { margin: 0; }
.entry-content .figset__item button { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.entry-content .figset__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; transition: transform 0.5s ease; }
.entry-content .figset--2 .figset__item img { aspect-ratio: 4 / 3; }
.entry-content .figset__item button:hover img { transform: scale(1.03); }
.entry-content .figset__item figcaption { margin-top: 0.6rem; padding-left: 0.75rem; border-left: 2px solid var(--copper); }
@media (max-width: 560px) { .entry-content .figset--2 { grid-template-columns: 1fr; } }

.entry-content .step-heading { display: flex; align-items: center; gap: 0.85rem; margin-top: 2.4em; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.entry-content .step-heading__n { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--deep); color: var(--white); font-size: 1rem; font-weight: 650; }

.services--overview { padding-bottom: 0; }
.services--overview + .layout { padding-top: clamp(2rem, 4vw, 3rem); }

/* ---------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer { background: var(--abyss); color: #b5cad3; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.97rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1.2fr; gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); padding-bottom: 3rem; }
.site-footer h2 { font-size: 1rem; color: var(--white); margin-bottom: 1rem; font-stretch: 104%; }
.site-footer__name { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.4rem; color: var(--white); margin-bottom: 0.7rem; letter-spacing: -0.015em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; line-height: 1.4; }
.site-footer a:not(.btn) { color: #d6e4e9; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--copper); }
.site-footer__contact a { font-weight: 500; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 2rem; padding-block: 1.4rem; border-top: 1px solid var(--line-dark); font-size: 0.88rem; color: #8ea9b4; }
.site-footer__base p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Motion and print
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
	.site-header, .site-footer, .cta, .sidebar, .nav-toggle { display: none !important; }
	.page-hero, .hero { background: none; color: #000; padding-block: 1rem; }
	.page-hero__bg, .page-hero::before, .page-hero::after { display: none; }
}

/* Block editor elements inside content */
.entry-content .wp-block-button__link { padding: 0.75rem 1.4rem; border-radius: var(--radius); background: var(--copper); color: var(--abyss); font-family: var(--font-display); font-weight: 620; font-size: 1rem; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: #f0b25c; color: var(--abyss); }
.entry-content .wp-block-separator { width: 100%; max-width: none; height: 1px; border: 0; background: var(--line); opacity: 1; }
.entry-content .wp-block-image img { border-radius: var(--radius); }
.entry-content .wp-block-columns { gap: 2rem; }
