/*
Theme Name: Criterio Eléctrico
Theme URI: https://criterioelectrico.com
Author: Criterio Eléctrico
Author URI: https://criterioelectrico.com
Description: Tema corporativo de Criterio Eléctrico. Ingeniería de Javier Ramos: proyectos, legalización, dirección de obra y energía.
Version: 1.0.24
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: criterio-electrico
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --blue: #123e57;
  --blue-hover: #0d3043;
  --graphite: #27323a;
  --ink: #1d282f;
  --muted: #5f6a70;
  --line: #d7dcde;
  --line-dark: #526069;
  --soft: #f3f2ed;
  --white: #ffffff;
  --danger: #8a3131;
  --success: #245c49;
  --radius: 6px;
  --shadow: 0 14px 35px rgba(18, 62, 87, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.site-main {
  min-height: 50vh;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--white);
  color: var(--blue);
}

.alignwide {
  width: min(1200px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
}

.alignfull {
  width: 100%;
  max-width: none;
}

body,
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
summary,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(18, 62, 87, 0.3);
  outline-offset: 3px;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.narrow {
  width: min(800px, calc(100% - 48px));
}

.topbar {
  background: var(--graphite);
  color: #eef1f2;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.topbar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.topbar a {
  font-weight: 700;
}

.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 282px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav > a:not(.button),
.nav-dropdown > summary {
  padding: 12px 0;
  color: var(--graphite);
}

.main-nav > a:not(.button):hover,
.nav-dropdown > summary:hover {
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 3px 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav-dropdown[open] > summary::after {
  transform: rotate(225deg);
  margin-bottom: -1px;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(720px, 84vw);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 55px rgba(20, 38, 48, 0.16);
  transform: translateX(-35%);
}

.nav-dropdown-panel a {
  min-height: 56px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 3px;
  font-size: 13px;
}

.nav-dropdown-panel a:hover {
  background: var(--soft);
  color: var(--blue);
}

.nav-dropdown-panel a span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  min-height: 46px;
  padding: 0 14px;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--graphite);
  font-weight: 700;
}

.menu-icon {
  width: 22px;
  height: 22px;
}

.button {
  min-height: 48px;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-1px);
}

.button-small {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 13px;
}

.button-secondary {
  background: #fff;
  color: var(--blue);
}

.button-secondary:hover {
  background: var(--soft);
  color: var(--blue-hover);
}

.icon-arrow {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: 570px;
  padding-block: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 72px;
}

.page-hero .hero-grid {
  min-height: 470px;
  padding-block: 68px;
}

.page-hero .technical-visual {
  width: min(100%, 490px);
  min-height: 330px;
  justify-self: end;
}

.page-hero .technical-visual.is-project-cover {
  width: min(100%, 390px);
  min-height: 270px;
}

.technical-visual.is-project-cover figcaption {
  inset: auto 14px 14px;
  padding: 12px 14px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--graphite);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 5.2vw, 70px);
  font-weight: 750;
}

.page-hero h1 {
  font-size: clamp(40px, 4.7vw, 62px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(31px, 3.6vw, 48px);
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

p {
  margin: 0 0 20px;
}

.hero-lead,
.section-lead,
.large-copy {
  color: #43525a;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 30px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.technical-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: var(--graphite);
  border: 1px solid #394852;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.technical-visual::before,
.technical-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.technical-visual::before {
  width: 210px;
  height: 210px;
  top: 55px;
  right: 44px;
}

.technical-visual::after {
  width: 140px;
  height: 140px;
  top: 90px;
  right: 79px;
  border-color: rgba(72, 145, 178, 0.7);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
}

.visual-line {
  position: absolute;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transform-origin: left;
}

.visual-line-a {
  width: 65%;
  top: 42%;
  left: 8%;
  transform: rotate(-15deg);
}

.visual-line-b {
  width: 45%;
  top: 64%;
  left: 27%;
  background: #4b9cc2;
  transform: rotate(9deg);
}

.visual-label {
  position: absolute;
  inset: auto 26px 24px;
  padding: 20px;
  background: rgba(18, 62, 87, 0.92);
  border-left: 3px solid #fff;
  color: #fff;
}

.visual-label span,
.visual-label small,
.visual-label strong {
  display: block;
}

.visual-label span {
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.visual-label strong {
  font-size: 18px;
  line-height: 1.25;
}

.visual-label small {
  margin-top: 5px;
  color: #d7e1e6;
  font-size: 11px;
}

.trust-wrap {
  position: relative;
  z-index: 2;
  margin-top: -1px;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(32, 50, 60, 0.05);
}

.trust-band > div {
  min-height: 102px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--line);
}

.trust-band > div:last-child {
  border-right: 0;
}

.trust-band span,
.card-code,
.problem-list span,
.feature-card > span,
.process-grid > li > span,
.case-story article > span {
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.trust-band strong {
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.35;
}

.section {
  padding-block: 88px;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: var(--graphite);
  color: #e7ecee;
}

.section-dark h2,
.section-dark h3,
.section-dark .section-lead,
.section-dark .large-copy {
  color: #fff;
}

.section-dark .eyebrow {
  color: #94c8df;
}

.section-rule {
  border-block: 1px solid var(--line);
}

.section-header {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-header.is-centered {
  margin-inline: auto;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.feature-card,
.article-card {
  min-height: 292px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 22px rgba(25, 45, 56, 0.035);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover,
.sector-card:hover,
.project-card:hover,
.article-card:hover {
  border-color: #99aab3;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card h3,
.feature-card h2 {
  margin-top: 28px;
}

.service-card p,
.feature-card p,
.article-card p {
  color: var(--muted);
}

.text-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.text-link:hover {
  color: var(--blue-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.split-grid,
.editorial-grid,
.includes-grid,
.faq-layout,
.contact-layout,
.b2b-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 80px;
}

.problem-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.problem-list > div {
  min-height: 190px;
  padding: 24px;
  background: var(--graphite);
}

.problem-list span {
  color: #9bc4d8;
}

.problem-list p {
  margin: 0;
  color: #c7d0d4;
  font-size: 14px;
}

.editorial-grid {
  align-items: center;
}

.editorial-grid .technical-visual {
  min-height: 470px;
}

.editorial-grid .section-header {
  margin-bottom: 24px;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sector-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.sector-card > span,
.article-card > span,
.project-meta span,
.category-row span,
.case-strip > a > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sector-card h3,
.sector-card h2 {
  margin: 24px 0 12px;
}

.sector-card h2 {
  font-size: 28px;
}

.sector-card p {
  color: var(--muted);
  font-size: 14px;
}

.sector-card .icon-arrow {
  margin-top: auto;
  color: var(--blue);
}

.home-sector-secondary {
  margin-top: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-block: 1px solid var(--line);
}

.home-sector-secondary > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-sector-secondary-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.home-sector-secondary a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(18, 62, 87, 0.3);
  text-underline-offset: 4px;
}

.process-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-grid li {
  position: relative;
  min-height: 235px;
  padding: 28px 24px 24px 0;
  border-right: 1px solid var(--line);
}

.process-grid li:not(:first-child) {
  padding-left: 24px;
}

.process-grid li:last-child {
  border-right: 0;
}

.process-grid li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--blue);
}

.process-grid h3 {
  margin-top: 34px;
}

.process-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-list li {
  min-height: 56px;
  padding: 13px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.check-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--blue);
}

.section-dark .check-list,
.section-dark .check-list li {
  border-color: var(--line-dark);
}

.section-dark .check-icon {
  color: #96cae1;
}

.check-list.is-muted li {
  color: #c8d0d4;
}

.check-list.is-muted .check-icon {
  opacity: 0.58;
}

.b2b-panel {
  padding: 48px;
  align-items: end;
  background: var(--blue);
  color: #fff;
}

.b2b-panel h2,
.b2b-panel .eyebrow {
  color: #fff;
}

.b2b-panel p {
  color: #d7e4ea;
}

.b2b-links {
  display: grid;
  gap: 10px;
}

.b2b-links a,
.related-links a,
.article-related a {
  min-height: 58px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.b2b-links a:hover {
  background: #fff;
  color: var(--blue);
}

.case-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-strip > a {
  min-height: 220px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background: var(--graphite);
  color: #fff;
}

.case-strip h3 {
  margin: auto 0 12px;
  color: #fff;
}

.case-strip p {
  margin: 0;
  color: #bdc7cc;
  font-size: 14px;
}

.case-strip > a:hover {
  background: var(--blue-hover);
}

.section-link {
  margin-top: 28px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 70px;
  padding: 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--graphite);
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--blue);
  font-size: 26px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 720px;
  margin: 0;
  padding: 0 44px 22px 4px;
  color: var(--muted);
}

.section-cta {
  padding-block: 0 88px;
}

.cta-panel {
  min-height: 315px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 60px;
  background: var(--soft);
  border-left: 5px solid var(--blue);
}

.cta-panel h2 {
  max-width: 780px;
}

.cta-panel p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.footer {
  padding-top: 68px;
  background: var(--graphite);
  color: #c7d0d4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 56px;
}

.footer-logo {
  display: block;
  width: 310px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1362 / 327;
  object-fit: contain;
  margin-bottom: 22px;
  background: #fff;
  border-radius: 4px;
}

.footer-grid h2 {
  margin-bottom: 22px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid p {
  margin: 0 0 10px;
  display: block;
  color: #c7d0d4;
  font-size: 14px;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 56px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #45535c;
  font-size: 12px;
}

.footer-bottom nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.cookie-settings-button {
  margin: 0;
  padding: 0;
  color: #c7d0d4;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cookie-settings-button:hover,
.cookie-settings-button:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.cookie-consent {
  position: fixed;
  z-index: 9999;
  right: 20px;
  bottom: 20px;
  width: min(560px, calc(100% - 40px));
  padding: 24px;
  color: var(--graphite);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 4px;
  box-shadow: 0 18px 60px rgba(20, 38, 48, 0.22);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-consent a {
  color: var(--blue);
  font-weight: 700;
}

.cookie-consent-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cookie-consent-actions .button {
  width: 100%;
  min-height: 46px;
}

.cookie-consent-actions .button-secondary {
  color: var(--blue);
  background: #fff;
  border: 2px solid var(--blue);
}

.cookie-consent-actions .button-secondary:hover,
.cookie-consent-actions .button-secondary:focus-visible {
  color: #fff;
  background: var(--blue);
}

@media (max-width: 560px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 20px;
  }

  .cookie-consent-actions {
    grid-template-columns: 1fr;
  }
}

.audience-card {
  padding: 34px;
  background: var(--soft);
  border-left: 3px solid var(--blue);
}

.audience-card .eyebrow {
  display: block;
}

.includes-grid {
  gap: 110px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span,
.category-row span {
  padding: 8px 11px;
  background: #fff;
  border: 1px solid var(--line);
}

.content-pending,
.pending-data {
  margin-top: 24px;
  padding: 14px 16px;
  color: var(--muted);
  background: #fff;
  border-left: 3px solid #9ca6ab;
  font-size: 13px;
}

.contact-section {
  background: var(--soft);
}

.contact-layout {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 64px;
}

.contact-aside {
  position: sticky;
  top: 130px;
}

.contact-detail {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-detail span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-detail a,
.contact-detail p {
  margin: 4px 0 0;
  color: var(--graphite);
  font-weight: 700;
}

.contact-detail a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.contact-form {
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 28px;
}

.form-heading h2 {
  margin-bottom: 12px;
}

.form-heading p:last-child {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 750;
}

.contact-form label > span[aria-hidden="true"] {
  display: inline;
  color: var(--danger);
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.filters select {
  width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid #aeb8bd;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

.contact-form textarea {
  min-height: 144px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.filters select:focus {
  outline: 2px solid rgba(18, 62, 87, 0.2);
  border-color: var(--blue);
}

.form-span {
  grid-column: 1 / -1;
}

.checkbox-label {
  margin: 22px 0;
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 500 !important;
}

.checkbox-label input {
  width: 20px;
  min-height: 20px;
  margin: 1px 0 0;
}

.checkbox-label a {
  color: var(--blue);
  text-decoration: underline;
}

.form-message {
  padding: 12px 14px;
  font-size: 13px;
}

.form-error {
  background: #f8eeee;
  color: var(--danger);
  border-left: 3px solid var(--danger);
}

.form-success {
  background: #edf6f1;
  color: var(--success);
  border-left: 3px solid var(--success);
}

.mobile-service-bar {
  display: none;
}

.two-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card h2 {
  font-size: 34px;
}

.filters {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
  background: var(--soft);
  border: 1px solid var(--line);
}

.filters label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-actions .button {
  min-height: 52px;
  white-space: nowrap;
}

.filter-reset {
  min-height: 52px;
  padding: 10px 6px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.filter-count {
  margin: 24px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.project-card .technical-visual {
  min-height: 260px;
  box-shadow: none;
  border: 0;
}

.project-card-body {
  padding: 28px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.project-card h2 {
  margin: 24px 0 12px;
  font-size: 30px;
}

.project-card p {
  color: var(--muted);
}

.project-card dl {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.project-card dl div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.project-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.case-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.case-summary div {
  min-height: 110px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.case-summary div:last-child {
  border-right: 0;
}

.case-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-story {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.case-story article {
  min-height: 250px;
  padding: 30px;
  background: #fff;
}

.case-story article:last-child {
  grid-column: 1 / -1;
}

.case-story h2 {
  margin-top: 36px;
  font-size: 32px;
}

.case-story p {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid .technical-visual {
  min-height: 300px;
}

.related-links,
.article-related {
  display: grid;
  gap: 8px;
}

.related-links a,
.article-related a {
  border-color: var(--line);
  color: var(--blue);
}

.related-links a:hover,
.article-related a:hover {
  background: var(--soft);
}

.statement {
  max-width: 900px;
  text-align: center;
}

.statement p {
  margin: 0;
  color: var(--graphite);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.35;
}

.category-row {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card h2 {
  margin-top: 30px;
  font-size: 28px;
}

.article-featured {
  grid-column: span 2;
  background: var(--graphite);
  color: #fff;
}

.article-featured h2 {
  color: #fff;
  font-size: 38px;
}

.article-featured p {
  color: #cbd4d8;
}

.article-featured .text-link {
  color: #a4d2e6;
}

.article-header {
  padding-block: 96px 70px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.article-container {
  max-width: 900px;
}

.article-header h1 {
  font-size: clamp(42px, 5.5vw, 72px);
}

.article-byline {
  color: var(--muted);
  font-size: 13px;
}

.article-body {
  width: min(760px, calc(100% - 48px));
  padding-block: 74px;
}

.article-body p {
  color: #3f4c53;
  font-size: 18px;
  line-height: 1.78;
}

.article-body .article-intro {
  margin-bottom: 48px;
  color: var(--graphite);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.55;
}

.article-body h2 {
  margin: 54px 0 18px;
  font-size: 34px;
}

.article-callout {
  margin: 46px 0;
  padding: 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 2px;
}

.article-callout strong {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-callout p {
  margin: 12px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.article-related {
  margin-top: 58px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.article-related > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faq-groups {
  display: grid;
  gap: 68px;
}

.faq-group {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 72px;
}

.faq-group h2 {
  font-size: 30px;
}

.legal-hero {
  padding-block: 90px 62px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(42px, 5vw, 66px);
}

.legal-hero > .container > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 19px;
}

.legal-status {
  margin-top: 28px;
  padding: 10px 12px;
  display: inline-block;
  color: #704d19;
  background: #fff2d9;
  border: 1px solid #d9b77f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.legal-status.is-complete {
  color: var(--blue);
  background: #eaf1f4;
  border-color: #b9cbd3;
}

.legal-body section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-body h2 {
  font-size: 27px;
}

.legal-body p {
  color: #435159;
  font-size: 17px;
}

.legal-body ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: #435159;
  font-size: 17px;
}

.legal-body li + li {
  margin-top: 9px;
}

.legal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.legal-body table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
  color: #435159;
  font-size: 14px;
}

.legal-body th,
.legal-body td {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  color: var(--graphite);
  background: var(--soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-body tr:last-child td {
  border-bottom: 0;
}

.legal-body th:last-child,
.legal-body td:last-child {
  border-right: 0;
}

.not-found {
  padding-block: 96px;
  background: var(--soft);
}

.not-found-grid {
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 80px;
}

.error-code {
  margin: 0 0 8px;
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}

.not-found h1 {
  font-size: clamp(42px, 5vw, 66px);
}

@media (max-width: 1100px) {
  .brand img {
    width: 230px;
  }

  .main-nav {
    gap: 15px;
  }

  .main-nav > a:not(.button),
  .nav-dropdown > summary {
    font-size: 13px;
  }

  .hero-grid {
    gap: 46px;
  }

  .card-grid,
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .footer-grid > div:last-child h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .container,
  .narrow,
  .article-body {
    width: min(100% - 36px, 760px);
  }

  .topbar-inner {
    min-height: 34px;
    justify-content: space-between;
    gap: 16px;
  }

  .topbar-inner span:last-child {
    display: none;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand img {
    width: 225px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 112px);
    padding: 16px 18px 22px;
    display: none;
    overflow-y: auto;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 45px rgba(28, 44, 52, 0.13);
  }

  .main-nav.is-open {
    display: grid;
    gap: 0;
  }

  .main-nav > a:not(.button),
  .nav-dropdown > summary {
    min-height: 52px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .main-nav .button {
    margin-top: 14px;
  }

  .nav-dropdown-panel {
    position: static;
    width: 100%;
    padding: 8px 0 14px;
    grid-template-columns: 1fr;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .nav-dropdown-panel a {
    background: var(--soft);
  }

  .hero-grid,
  .page-hero .hero-grid {
    min-height: 0;
    padding-block: 58px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-hero .technical-visual {
    min-height: 330px;
  }

  .page-hero .technical-visual {
    width: 100%;
    min-height: 300px;
    justify-self: stretch;
  }

  .page-hero .technical-visual.is-project-cover {
    width: 100%;
    min-height: 240px;
  }

  .trust-band {
    grid-template-columns: 1fr 1fr;
  }

  .trust-band > div:nth-child(2) {
    border-right: 0;
  }

  .trust-band > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding-block: 72px;
  }

  .split-grid,
  .editorial-grid,
  .includes-grid,
  .faq-layout,
  .contact-layout,
  .b2b-panel {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid li:nth-child(2) {
    border-right: 0;
  }

  .process-grid li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .case-strip,
  .gallery-grid,
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-featured {
    grid-column: 1 / -1;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
    display: block;
  }

  .footer-grid > div:last-child h2 {
    grid-column: auto;
  }

  .contact-aside {
    position: static;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .filter-actions {
    grid-column: 1 / -1;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .case-summary {
    grid-template-columns: 1fr 1fr;
  }

  .case-summary div:nth-child(2) {
    border-right: 0;
  }

  .case-summary div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .faq-group {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .not-found-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Evidence-led release: real photography, personal profile and case studies. */
.technical-photo {
  margin: 0;
}

.technical-photo::before,
.technical-photo::after {
  display: none;
}

.technical-photo > img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.technical-photo figcaption {
  position: absolute;
  inset: auto 22px 20px;
  padding: 16px 18px;
  background: rgba(18, 62, 87, 0.92);
  border-left: 3px solid #fff;
  color: #fff;
}

.technical-photo figcaption span,
.technical-photo figcaption strong {
  display: block;
}

.technical-photo figcaption span {
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.technical-photo figcaption strong {
  font-size: 16px;
  line-height: 1.3;
}

.profile-proof,
.initial-review {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 70px;
}

.profile-proof > figure {
  margin: 0;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}

.profile-proof > figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.case-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-preview-grid article {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(25, 45, 56, 0.035);
}

.case-preview-image {
  display: block;
  height: 240px;
  overflow: hidden;
  background: var(--graphite);
}

.project-image {
  height: 300px;
}

.case-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.case-preview-image:hover img {
  transform: scale(1.025);
}

.case-preview-grid article > div {
  padding: 24px;
}

.case-preview-grid article > div > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-preview-grid h3 {
  margin-top: 18px;
  font-size: 25px;
}

.case-preview-grid p {
  color: var(--muted);
  font-size: 14px;
}

.contact-choice-intro {
  max-width: 780px;
}

.contact-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.contact-route-grid .contact-form {
  height: 100%;
}

.contact-form-expediente {
  border-top: 4px solid var(--blue);
}

.form-scope-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.case-facts {
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-facts span {
  padding: 8px 11px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--graphite);
  font-size: 13px;
  font-weight: 700;
}

.case-gallery {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-gallery figure {
  margin: 0;
}

.case-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.case-gallery figcaption {
  padding: 9px 2px;
  color: var(--muted);
  font-size: 12px;
}

.editor-note {
  margin: 28px auto 0;
  padding: 18px 20px;
  background: #edf3f5;
  border-left: 3px solid var(--blue);
  color: #3d4d55;
  font-size: 14px;
}

.case-reference {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.case-reference a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .profile-proof,
  .initial-review,
  .contact-route-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .profile-proof > figure {
    width: min(360px, 100%);
  }

  .case-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .case-preview-grid,
  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-preview-image,
  .case-gallery img {
    height: 250px;
  }

  .technical-photo figcaption {
    inset: auto 14px 14px;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 104px;
  }

  body {
    font-size: 15px;
  }

  .container,
  .narrow,
  .article-body {
    width: min(100% - 28px, 560px);
  }

  .topbar-inner {
    justify-content: center;
  }

  .topbar-inner span {
    display: none;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 184px;
  }

  .menu-toggle {
    min-height: 44px;
    padding: 0 10px;
  }

  .menu-toggle span {
    display: none;
  }

  h1,
  .page-hero h1,
  .article-header h1,
  .legal-hero h1,
  .not-found h1 {
    font-size: clamp(35px, 10.5vw, 48px);
  }

  h2 {
    font-size: clamp(28px, 8vw, 37px);
  }

  .hero-grid,
  .page-hero .hero-grid {
    padding-block: 44px;
    gap: 28px;
  }

  .hero-lead,
  .section-lead,
  .large-copy {
    font-size: 17px;
  }

  .button-row {
    display: grid;
  }

  .button-row .button {
    width: 100%;
  }

  .technical-visual,
  .home-hero .technical-visual,
  .page-hero .technical-visual,
  .editorial-grid .technical-visual {
    min-height: 250px;
  }

  .technical-visual::before {
    width: 140px;
    height: 140px;
    top: 34px;
    right: 26px;
  }

  .technical-visual::after {
    width: 90px;
    height: 90px;
    top: 59px;
    right: 51px;
  }

  .visual-label {
    inset: auto 14px 14px;
    padding: 14px;
  }

  .visual-label strong {
    font-size: 15px;
  }

  .trust-wrap {
    width: 100%;
  }

  .trust-band {
    grid-template-columns: 1fr;
    border-inline: 0;
  }

  .trust-band > div {
    min-height: 72px;
    padding: 15px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding-block: 62px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .card-grid,
  .sector-grid,
  .case-strip,
  .gallery-grid,
  .article-grid,
  .two-card-grid,
  .case-story {
    grid-template-columns: 1fr;
  }

  .home-sector-secondary {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-sector-secondary-links {
    justify-content: flex-start;
  }

  .service-card,
  .feature-card,
  .article-card {
    min-height: 250px;
    padding: 24px;
  }

  .problem-list {
    grid-template-columns: 1fr;
  }

  .problem-list > div {
    min-height: 155px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid li,
  .process-grid li:not(:first-child) {
    min-height: 185px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .b2b-panel,
  .cta-panel {
    padding: 30px 22px;
  }

  .cta-panel {
    width: 100%;
    min-height: 0;
    border-left-width: 3px;
  }

  .section-cta {
    padding-bottom: 62px;
  }

  .footer {
    padding-top: 54px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-logo {
    width: 285px;
  }

  .footer-bottom {
    padding-block: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-span {
    grid-column: auto;
  }

  .mobile-service-bar {
    position: fixed;
    z-index: 60;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 58px;
    padding: 8px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 8px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 22px rgba(22, 39, 48, 0.12);
  }

  .mobile-service-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blue);
    border-radius: var(--radius);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-service-bar a:last-child {
    background: var(--blue);
    color: #fff;
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .filter-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .project-card-body {
    padding: 22px;
  }

  .project-card h2 {
    font-size: 26px;
  }

  .case-summary {
    grid-template-columns: 1fr;
  }

  .case-summary div,
  .case-summary div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-story article:last-child {
    grid-column: auto;
  }

  .article-featured {
    grid-column: auto;
  }

  .article-featured h2,
  .article-card h2 {
    font-size: 27px;
  }

  .article-header {
    padding-block: 62px 48px;
  }

  .article-body {
    padding-block: 54px;
  }

  .article-body p {
    font-size: 17px;
  }

  .article-body .article-intro {
    font-size: 20px;
  }

  .article-body h2 {
    margin-top: 44px;
    font-size: 29px;
  }

  .article-callout p {
    font-size: 20px;
  }

  .legal-hero,
  .not-found {
    padding-block: 60px;
  }

  .not-found-grid {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* WordPress integration --------------------------------------------------- */
.main-nav .menu {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.main-nav .menu-item {
  position: relative;
}

.main-nav .menu-item > a {
  min-height: 44px;
  padding: 11px 0;
  display: flex;
  align-items: center;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 700;
}

.main-nav .menu-item > a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
  color: var(--blue);
}

.main-nav .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -4px 0 0 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.submenu-toggle {
  display: none;
}

.main-nav .menu-item-has-children::before {
  content: "";
  position: absolute;
  z-index: 9;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 12px;
}

.main-nav .sub-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: -20px;
  width: 380px;
  margin: 0;
  padding: 14px;
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 55px rgba(20, 38, 48, 0.16);
  list-style: none;
}

.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
  display: grid;
}

.main-nav .sub-menu a {
  min-height: 48px;
  padding: 9px 11px;
  border-radius: 3px;
  font-size: 13px;
}

.main-nav .sub-menu a:hover {
  background: var(--soft);
}

.custom-logo-link {
  display: block;
}

.custom-logo-link img {
  width: 282px;
  height: auto;
}

.ce-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.project-image,
.project-hero-image {
  display: block;
  overflow: hidden;
  background: var(--soft);
}

.project-image img,
.project-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.project-body {
  padding-block: 0;
}

.entry-content > :first-child {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .main-nav .menu {
    gap: 15px;
  }
}

@media (max-width: 900px) {
  .main-nav .menu-item-has-children::before {
    display: none;
  }

  .main-nav .menu {
    display: grid;
    gap: 0;
  }

  .main-nav .menu-item > a {
    min-height: 52px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .main-nav .menu-item-has-children > a {
    padding-right: 56px;
  }

  .main-nav .menu-item-has-children > a::after {
    display: none;
  }

  .submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    padding: 0;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--graphite);
    cursor: pointer;
  }

  .submenu-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 160ms ease;
  }

  .menu-item-has-children.submenu-open > .submenu-toggle::before {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .submenu-toggle:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -3px;
  }

  .main-nav .sub-menu,
  .main-nav .menu-item-has-children:hover > .sub-menu,
  .main-nav .menu-item-has-children:focus-within > .sub-menu {
    position: static;
    width: 100%;
    padding: 8px 0 14px;
    display: none;
    border: 0;
    box-shadow: none;
  }

  .main-nav .menu-item-has-children.submenu-open > .sub-menu,
  .main-nav .menu-item-has-children.submenu-open:hover > .sub-menu,
  .main-nav .menu-item-has-children.submenu-open:focus-within > .sub-menu {
    display: grid;
  }

  .main-nav .sub-menu a {
    min-height: 46px;
    padding-inline: 12px;
    background: var(--soft);
    border-bottom: 3px solid var(--white);
  }

  .header-cta {
    width: 100%;
  }
}
