/*
Theme Name: SiteRank
Description: Tema de blocos premium do SiteRank.pt, com padrões editáveis e portfólio gerido por CPT UI.
Version: 1.0.1
Requires at least: 6.9
Requires PHP: 8.3
Text Domain: siterank
*/

@font-face {
  font-family: Instrument Sans;
  src: url(assets/fonts/instrument-sans-latin.woff2) format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --bg: #08141c;
  --panel: #10232e;
  --text: #f1f9fb;
  --muted: #afc6cc;
  --line: #294650;
  --accent: #6cd4df;
  --electric: #21b9c8;
  --light: #eef7f7;
  --ink: #12252e;
  --max: 1184px;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 17px/1.55 'Instrument Sans',
    system-ui,
    sans-serif;
}
[hidden] {
  display: none !important;
}
figure,
p,
h1,
h2,
h3,
ol {
  margin: 0;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #53cad9;
  outline-offset: 5px;
}
button,
summary {
  font: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip-path: none;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: white;
  color: var(--ink);
}
.shell {
  width: min(var(--max), calc(100% - 96px));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(8, 20, 28, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #25424c;
  transition: background 0.25s;
}
.site-header.is-scrolled {
  background: rgba(8, 20, 28, 0.96);
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
}
.brand-logo {
  width: 151px;
  height: auto;
}
.site-footer .brand-logo {
  width: 124px;
}
.site-nav,
.footer-inner nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.7rem);
}
.site-nav a,
.footer-inner nav a {
  color: #d1e4e7;
  text-decoration: none;
  font-size: 0.925rem;
}
.site-nav a:hover,
.footer-inner nav a:hover {
  color: white;
}
.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  border: 1px solid #395d69;
  border-radius: 8px;
  padding: 0.62rem 0.9rem;
  font-size: 0.9rem;
  white-space: nowrap;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.header-contact:hover {
  border-color: #6bd4df;
  background: #17333f;
}
.menu-toggle,
.site-nav .mobile-contact {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 70%, #102f3d 0%, #08141c 68%);
  border-bottom: 1px solid #254750;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 27%;
  z-index: -1;
  display: grid;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  mask-image:
    linear-gradient(90deg, transparent, #000 48%),
    linear-gradient(0deg, transparent, #000 23%, #000 82%, transparent);
  mask-composite: intersect;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 51%;
  animation: hero-appear 1s ease-out both;
}
@keyframes hero-appear {
  from {
    transform: scale(1.035);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.hero-inner {
  min-height: 650px;
  display: grid;
  align-items: center;
  position: relative;
  padding-block: 5.3rem 6rem;
}
.hero-copy {
  max-width: 710px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.eyebrow span {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 14px #1fb9cb72;
}
h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.02;
}
h1 {
  font-size: clamp(3.5rem, 5.95vw, 5.9rem);
  max-width: 13ch;
}
h1 em {
  font-style: normal;
  display: block;
  color: #62d7e3;
  background: linear-gradient(102deg, #b7f4f3 8%, #71dce3 54%, #37bfd1);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-intro {
  font-size: clamp(1.08rem, 1.4vw, 1.23rem);
  color: #bbd0d5;
  max-width: 445px;
  margin-top: 1.55rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.84rem 1.18rem;
  min-height: 49px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.91rem;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
}
.button:hover {
  transform: translateY(-3px);
}
.button-primary {
  background: #62d5df;
  color: #09252b;
  box-shadow: 0 8px 32px #16a9b638;
  border: 1px solid #81e1e7;
}
.button-primary:hover {
  background: #94e8ed;
  box-shadow: 0 12px 32px #2cb6c455;
}
.button-secondary {
  background: #102932db;
  color: var(--text);
  border: 1px solid #426671;
}
.button-secondary:hover {
  background: #1b424e;
}
.hero-scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 0;
  width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
}
.hero-scroll span {
  width: 10px;
  height: 10px;
  border: solid #9cc7d0;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.section {
  padding-block: clamp(4.3rem, 8vw, 7rem);
}
.section-head {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.4rem;
}
h2 {
  font-size: clamp(2.55rem, 5.1vw, 5.05rem);
}
.section-head > p,
.method-intro {
  color: var(--muted);
  max-width: 340px;
}
.services {
  background: radial-gradient(ellipse at 6% 90%, #12303b 0, transparent 54%), #0b1a23;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
.service {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.4rem 1.65rem;
  border: 1px solid #2c505b;
  border-radius: 14px;
  background: linear-gradient(140deg, #14313d, #10222c 60%);
  transition:
    transform 0.24s,
    border-color 0.24s,
    box-shadow 0.24s;
}
.service:hover {
  transform: translateY(-5px);
  border-color: #5cbfcf;
  box-shadow: 0 16px 36px #03141996;
}
.service-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #205766, #14323f);
  color: #a1edf0;
  border: 1px solid #3b8495;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 1.75rem;
}
.service-icon .icon {
  width: 26px;
  height: 26px;
}
h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.service h3 {
  margin-bottom: 0.68rem;
}
.service p {
  font-size: 0.94rem;
  color: var(--muted);
}
.portfolio {
  background: #eef7f7;
  color: var(--ink);
  padding-bottom: 0;
  color-scheme: light;
}
.portfolio .eyebrow {
  color: #116778;
}
.portfolio .section-head > p,
.feature-info > p,
.inhouse-info > p:not(.project-type) {
  color: #39545e;
}
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin: 0 0 1.65rem;
}
.project-filters button {
  min-height: 44px;
  border-radius: 100px;
  border: 1px solid #b2ccd1;
  background: transparent;
  color: #23454f;
  padding: 0.49rem 0.92rem;
  font-weight: 650;
  font-size: 0.88rem;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.project-filters button:hover {
  border-color: #16788b;
  background: #dcf1f2;
}
.project-filters button[aria-pressed='true'] {
  background: #123d49;
  border-color: #123d49;
  color: white;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 5rem;
}
.featured-grid:has(> article:only-child),
.featured-grid:has(> article[hidden]) {
  grid-template-columns: minmax(0, 700px);
}
.feature-card {
  overflow: hidden;
  background: #fbfefe;
  border: 1px solid #c7dce0;
  border-radius: 18px;
}
.feature-card.slack:nth-child(2) {
  margin-top: 2.35rem;
}
.featured-grid:has(> article[hidden]) .feature-card {
  margin-top: 0;
}
.feature-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.5;
  display: grid;
  align-items: end;
  justify-items: center;
  background: #193f4d;
}
.feature-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.feature-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #0a222ca9, #0a2b3524);
}
.feature-card:hover .feature-photo,
.inhouse-card:hover .inhouse-photo {
  transform: scale(1.045);
}
.device {
  background: #132934;
  border: 1px solid #64838c;
  border-radius: 12px 12px 7px 7px;
  overflow: hidden;
  box-shadow: 0 25px 50px #071c277d;
  position: relative;
}
.desktop-device,
.tablet-device {
  width: 82%;
  margin-block: 2rem -5%;
  transform: rotate(-3deg);
}
.tablet-device {
  width: 77%;
  transform: rotate(5deg);
  border-width: 4px;
  border-radius: 15px;
}
.phone-device {
  position: absolute;
  right: 4%;
  bottom: -15%;
  width: 22%;
  border: 4px solid #172d38;
  border-radius: 16px;
  transform: rotate(8deg);
}
.device-top {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  background: #203c49;
}
.device-top i {
  width: 5px;
  height: 5px;
  background: #83a3ac;
  border-radius: 50%;
}
.device img {
  display: block;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1.588;
}
.phone-device img {
  aspect-ratio: 380/725;
}
.feature-info,
.inhouse-info {
  padding: 1.45rem 1.5rem 1.6rem;
}
.feature-info h3,
.inhouse-info h3 {
  margin: 0.5rem 0 0.75rem;
}
.project-type {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #156c7b;
  line-height: 1.4;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: #125766;
  margin-top: 0.45rem;
}
.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.inhouse {
  border-top: 1px solid #c4dfe1;
  background: radial-gradient(ellipse at 95% 10%, #cdf0f0 0, transparent 60%), #e0eff1;
}
.inhouse-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}
.inhouse-card {
  overflow: hidden;
  background: #f9fdfd;
  border: 1px solid #bad5da;
  border-radius: 15px;
}
.inhouse-visual {
  height: clamp(155px, 24vw, 272px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #274951;
}
.inhouse-andaimes .inhouse-visual {
  height: clamp(170px, 28vw, 310px);
}
.inhouse-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.inhouse-andaimes .inhouse-photo,
.inhouse-pastel .inhouse-photo {
  filter: brightness(0.61);
}
.inhouse-pastel .inhouse-photo {
  object-position: center 47%;
}
.project-brand {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  background: #fff;
  color: #162932;
  padding: 0.42rem 0.64rem;
  border-radius: 8px;
  min-height: 48px;
  box-shadow: 0 10px 25px #101f2840;
}
.project-brand img {
  max-width: 108px;
  max-height: 40px;
  width: auto;
  height: auto;
}
.compact-device {
  width: 82%;
  margin: 2.1rem auto 0;
  transform: rotate(-4deg);
}
.inhouse-press .inhouse-visual {
  background: linear-gradient(141deg, #93b7c0, #365361);
}
.inhouse-carga .inhouse-visual {
  background: radial-gradient(ellipse at 60% 80%, #245c6e, #102f3d 70%);
  display: grid;
  place-items: center;
}
.carga-symbol {
  width: clamp(75px, 12vw, 146px);
  max-height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px #071c258a);
}
.project-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border: 1px solid #5d8692;
  padding: 0.35rem 0.56rem;
  background: #173e4b;
  color: #eaf9fa;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
}
.inhouse-card:nth-child(2n) {
  margin-top: 1.7rem;
}
.method {
  background: #0b1c25;
}
.method-inner {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(2rem, 7vw, 7rem);
}
.method-intro {
  margin-top: 1.25rem;
}
.method-list {
  list-style: none;
  padding: 0;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.method-list li {
  counter-increment: step;
  border-bottom: 1px solid var(--line);
}
.method-list summary {
  list-style: none;
  display: grid;
  grid-template-columns: 2.7rem 1fr 1.4rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 0;
  min-height: 56px;
  font-size: 1.12rem;
  font-weight: 650;
}
.method-list summary::-webkit-details-marker {
  display: none;
}
.method-list summary::before {
  content: counter(step, decimal-leading-zero);
  color: #6cd4df;
  font:
    500 0.75rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.08em;
}
.method-list summary::after {
  content: '+';
  color: #9ce5e9;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 400;
}
.method-list details[open] summary::after {
  content: '−';
}
.method-list details p {
  color: var(--muted);
  padding: 0 1.5rem 1.1rem 3.45rem;
  max-width: 555px;
  font-size: 0.95rem;
}
.contact {
  padding-top: 1rem;
  background: #0b1c25;
}
.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  border: 1px solid #387383;
  border-radius: 20px;
  padding: clamp(1.7rem, 5.1vw, 4.4rem);
  background:
    radial-gradient(ellipse at 92% 26%, #1d6779 0, transparent 55%),
    linear-gradient(135deg, #0d2833, #133d49);
}
.contact-panel h2 {
  font-size: clamp(2.4rem, 4.7vw, 4.8rem);
}
.contact-panel p:not(.eyebrow) {
  color: #c4dfe3;
  margin-top: 1rem;
}
.contact-actions {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
}
.contact-actions > a:not(.button) {
  font-size: 0.9rem;
  color: #daf1f2;
}
.contact-actions .button {
  margin-bottom: 0.35rem;
}
.site-footer {
  border-top: 1px solid #264650;
  background: #08141c;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  min-height: 110px;
  padding-block: 1.15rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-inner nav {
  gap: 1.25rem;
}
@media (max-width: 1100px) {
  .hero-art img {
    object-position: 82% 51%;
  }
}
@media (max-width: 940px) {
  .shell {
    width: min(var(--max), calc(100% - 56px));
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-inner {
    min-height: 595px;
  }
  .hero-art {
    left: 18%;
  }
}
@media (max-width: 740px) {
  .shell {
    width: calc(100% - 40px);
  }
  .header-inner {
    height: 66px;
    gap: 0.8rem;
  }
  .brand-logo {
    width: 132px;
  }
  .header-contact {
    margin-left: auto;
    padding: 0.53rem 0.66rem;
    font-size: 0.8rem;
  }
  .header-contact .icon {
    width: 0.9rem;
    height: 0.9rem;
  }
  .menu-toggle {
    display: none;
    order: 3;
    align-content: center;
    justify-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid #426674;
    color: white;
    border-radius: 8px;
  }
  .js .menu-toggle {
    display: grid;
  }
  .menu-toggle span {
    height: 1px;
    width: 17px;
    background: currentColor;
    transition: transform 0.2s;
  }
  .menu-toggle[aria-expanded='true'] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  .menu-toggle[aria-expanded='true'] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
  .site-nav {
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
  }
  .site-nav .mobile-contact {
    display: inline-flex;
  }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.8rem 20px 1.15rem;
    background: #102730;
    border-bottom: 1px solid #3b6570;
    gap: 0;
  }
  .js .site-nav.is-open {
    display: grid;
  }
  .js .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid #294854;
  }
  .hero-inner {
    min-height: 0;
    display: block;
    padding-block: 14.3rem 3.8rem;
  }
  .hero-art {
    inset: 0 0 auto;
    height: 310px;
    mask-image: linear-gradient(0deg, transparent, #000 62%);
  }
  .hero-art img {
    object-position: 73% 50%;
  }
  .hero-copy {
    max-width: 570px;
  }
  h1 {
    font-size: clamp(2.7rem, 9.5vw, 4.35rem);
  }
  .hero-intro {
    margin-top: 1rem;
  }
  .hero-actions {
    margin-top: 1.45rem;
  }
  .hero-scroll {
    display: none;
  }
  .section-head,
  .method-inner,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .section-head {
    margin-bottom: 1.85rem;
  }
  .section-head > p {
    max-width: 450px;
  }
  .featured-grid,
  .inhouse-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .featured-grid {
    margin-bottom: 3rem;
  }
  .feature-card.slack:nth-child(2),
  .inhouse-card:nth-child(2n) {
    margin-top: 0;
  }
  .inhouse-visual {
    height: clamp(170px, 49vw, 260px);
  }
  .inhouse-andaimes .inhouse-visual {
    height: clamp(170px, 54vw, 282px);
  }
  .carga-symbol {
    width: 105px;
  }
}
@media (max-width: 440px) {
  .service-grid {
    gap: 0.65rem;
  }
  .service {
    padding: 1.12rem 0.85rem 1.2rem;
  }
  .service h3 {
    font-size: 1.15rem;
  }
  .service p {
    font-size: 0.86rem;
  }
  .service-icon {
    margin-bottom: 1.05rem;
    width: 40px;
    height: 40px;
  }
  .service-icon .icon {
    width: 23px;
    height: 23px;
  }
  .hero-actions .button {
    padding: 0.73rem 0.83rem;
    font-size: 0.8rem;
    gap: 0.46rem;
  }
  .hero-actions .icon {
    width: 1rem;
    height: 1rem;
  }
  .footer-inner nav {
    gap: 0.8rem;
  }
}
@media (max-width: 359px) {
  .header-contact {
    display: none;
  }
  .header-inner {
    gap: 0.5rem;
  }
  h1 {
    font-size: clamp(2.24rem, 10vw, 2.7rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.portfolio.without-inhouse {
  padding-bottom: clamp(4.3rem, 8vw, 7rem);
}
.portfolio.without-inhouse .featured-grid {
  margin-bottom: 0;
}

/* Block wrappers preserve the approved composition in WordPress. */
.wp-site-blocks {
  padding: 0;
}
.wp-site-blocks > *,
.wp-block-template-part,
.wp-block-post-content > * {
  margin-block: 0;
}
:where(.wp-block-group, .wp-block-image, .wp-block-buttons) {
  margin-block: 0;
}
.wp-block-heading {
  margin-block: 0;
}
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  gap: 0.7rem;
  padding: 0.84rem 1.18rem;
  border-radius: 9px;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.wp-block-button__link:hover {
  transform: translateY(-3px);
}
.sr-primary .wp-block-button__link {
  background: #62d5df;
  color: #09252b;
  box-shadow: 0 8px 32px #16a9b638;
  border: 1px solid #81e1e7;
}
.sr-primary .wp-block-button__link:hover {
  background: #94e8ed;
}
.sr-secondary .wp-block-button__link {
  background: #102932db;
  color: var(--text);
  border: 1px solid #426671;
}
.sr-secondary .wp-block-button__link:hover {
  background: #1b424e;
}
.header-inner > .wp-block-image {
  flex: none;
}
.brand-logo a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.brand-logo img {
  width: 100%;
  height: auto;
}
.sr-header-cta {
  flex: none;
}
.sr-header-cta .wp-block-button__link {
  padding: 0.62rem 0.9rem;
  min-height: 44px;
  font-size: 0.9rem;
  background: transparent;
}
.sr-site-navigation {
  margin-inline: auto;
  font-size: 0.925rem;
}
.wp-block-navigation__container {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(1rem, 3vw, 2.7rem);
  display: flex;
  align-items: center;
}
.wp-block-navigation-item__content {
  color: #d1e4e7;
  text-decoration: none;
  padding-block: 0.65rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.wp-block-navigation-item__content:hover {
  color: white;
}
.wp-block-navigation-item.current-menu-item > a {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}
.footer-inner .wp-block-navigation__container {
  flex-wrap: wrap;
  gap: 1.1rem;
}
.footer-inner .wp-block-navigation-item__content {
  font-size: 0.88rem;
}
.hero-art .wp-block-image,
.hero-art .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-block-image.feature-photo img,
.wp-block-image.inhouse-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device > .wp-block-image img {
  width: 100%;
}
.wp-block-image.feature-photo,
.wp-block-image.inhouse-photo {
  margin: 0;
}
.wp-block-image.carga-symbol {
  margin: 0;
}
.wp-block-image.carga-symbol img {
  width: 100%;
  height: auto;
}
.project-group .shell {
  margin-inline: auto;
}
.eyebrow:not(:has(span))::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.featured-grid:has(> .project-item[hidden]) {
  grid-template-columns: minmax(0, 700px);
}
.featured-grid:has(> .project-item[hidden]) .feature-card {
  margin-top: 0;
}
.contact-actions .wp-block-buttons {
  margin-bottom: 0.35rem;
}
.method-list > .wp-block-details {
  counter-increment: step;
  border-bottom: 1px solid var(--line);
}
.method-list .wp-block-details > p {
  margin-block: 0;
}

/* Page headers, readable editorial content and reusable project lists. */
.page-hero {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 90% 20%, #164658, transparent 58%), #0b1c25;
}
.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.65rem, 6vw, 5.3rem);
}
.page-intro {
  max-width: 620px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
}
.page-hero .wp-block-post-terms {
  margin-bottom: 1rem;
}
.page-hero .wp-block-post-date {
  color: var(--muted);
  margin-top: 1.4rem;
  font-size: 0.94rem;
}
.prose {
  max-width: min(760px, calc(100% - 96px));
}
.prose h2,
.service-editorial h2,
.contact-layout h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  letter-spacing: -0.035em;
}
.prose h3 {
  font-size: 1.35rem;
  margin-block: 1.8rem 0.7rem;
}
.prose p,
.prose ul,
.prose ol,
.service-editorial p {
  color: #bbd0d5;
  margin-block: 0.95rem 0;
}
.prose a:not(.wp-block-button__link),
.service-editorial a,
.contact-layout a:not(.wp-block-button__link) {
  color: #8fe4e9;
  text-underline-offset: 0.2em;
}
.prose li {
  margin-top: 0.5rem;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}
.prose .wp-block-heading {
  margin-block: 2.4rem 0.85rem;
}
.prose .wp-block-buttons {
  margin-top: 2rem;
}
.prose .wp-block-post-content > :first-child {
  margin-top: 0;
}
.prose .article-lead {
  font-size: 1.2rem;
}
.editorial-section {
  padding-block: 1.7rem;
  border-bottom: 1px solid var(--line);
}
.editorial-section:first-child {
  padding-top: 0;
}
.editorial-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.service-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.service-editorial .editorial-section {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(150deg, #14313d, #10222c);
  border: 1px solid #2c505b;
  border-radius: 15px;
}
.service-editorial h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-details p,
.sr-form > p {
  margin-top: 1rem;
  color: var(--muted);
}
.contact-email {
  font-size: clamp(1.1rem, 2.7vw, 1.6rem);
  overflow-wrap: anywhere;
}
.sr-form {
  border: 1px solid #387383;
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #102b37;
}
.sr-wpforms-slot:empty {
  display: none;
}
.contact-fallback {
  font-size: 0.94rem;
}
.sr-entry-image {
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.sr-entry-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.sr-article .wp-block-post-content + .sr-link-row {
  margin-top: 2.5rem;
}

/* WordPress Query Loop cards and taxonomy links remain usable without scripts. */
.sr-listing {
  padding-bottom: clamp(4rem, 7vw, 6rem);
}
.sr-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sr-card-grid > .wp-block-post {
  overflow: hidden;
  border: 1px solid #bad5da;
  border-radius: 16px;
  background: #fbfefe;
  min-width: 0;
}
.sr-card-grid .wp-block-post-featured-image {
  margin: 0 0 1.35rem;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #d2e7ea;
}
.sr-card-grid .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.sr-card-grid > .wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.025);
}
.sr-card-grid > .wp-block-post:not(.has-post-thumbnail)::before {
  content: '';
  display: block;
  aspect-ratio: 3/2;
  margin-bottom: 1.35rem;
  background: radial-gradient(ellipse at 60% 30%, #4d9fad, #123b4b);
}
.sr-card-grid .wp-block-post-terms,
.sr-card-grid .wp-block-post-title,
.sr-card-grid .wp-block-post-excerpt,
.sr-card-grid .wp-block-post-date,
.sr-card-grid .wp-block-read-more {
  margin-inline: 1.4rem;
}
.sr-card-grid .wp-block-post-title {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  margin-top: 0.65rem;
}
.sr-card-grid .wp-block-post-title a {
  color: var(--ink);
  text-decoration: none;
}
.sr-card-grid .wp-block-post-excerpt {
  margin-top: 0.8rem;
  color: #39545e;
}
.wp-block-post-excerpt__excerpt {
  margin: 0;
}
.sr-card-grid .wp-block-post-terms,
.sr-card-grid .wp-block-post-date {
  font-size: 0.85rem;
  color: #39545e;
}
.sr-card-grid .wp-block-post-date {
  margin-top: 0.8rem;
}
.sr-card-grid .wp-block-post-terms a,
.sr-card-grid .wp-block-read-more {
  color: #125766;
}
.sr-card-grid .wp-block-read-more {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-block: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.93rem;
}
.sr-category-filters {
  margin-bottom: 2rem;
}
.sr-category-filters .wp-block-navigation__container {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wp-block-navigation.sr-category-filters .wp-block-navigation-item__content {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid #b2ccd1;
  border-radius: 99px;
  color: #23454f;
  font-size: 0.9rem;
}
.sr-category-filters .wp-block-navigation-item__content:hover,
.sr-category-filters .wp-block-navigation-item__content[aria-current='page'] {
  background: #123d49;
  color: white;
  border-color: #123d49;
}
.wp-block-query-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.5rem;
}
.wp-block-query-pagination a,
.wp-block-query-pagination .current {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #b2ccd1;
  border-radius: 8px;
  padding-inline: 0.75rem;
  color: #23454f;
}
.wp-block-query-pagination .current {
  background: #123d49;
  color: white;
}

/* WPForms Lite uses its own validation, nonce and submission handlers. */
.sr-form .wpforms-container {
  margin-block: 1.5rem 0;
  color: var(--text);
}
.sr-form .wpforms-field-label {
  color: var(--text) !important;
  font-weight: 650;
}
.sr-form .wpforms-field-sublabel,
.sr-form .wpforms-field-description {
  color: var(--muted) !important;
}
.sr-form .wpforms-field {
  margin-block: 0 1.2rem;
}
.sr-form input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.sr-form textarea,
.sr-form select {
  width: 100%;
  max-width: none !important;
  padding: 0.8rem;
  border: 1px solid #557d88 !important;
  border-radius: 8px;
  background: #081d28 !important;
  color: #f1f9fb !important;
  font: inherit;
  box-shadow: none;
}
.sr-form textarea {
  min-height: 180px;
}
.sr-form .wpforms-submit {
  min-height: 49px;
  border-radius: 9px;
  background: #62d5df !important;
  color: #09252b !important;
  font:
    700 0.95rem 'Instrument Sans',
    sans-serif;
  border: 1px solid #81e1e7 !important;
  padding: 0.8rem 1.1rem;
}
.sr-form :is(input, textarea, select, button):focus-visible {
  outline: 3px solid #8fe4e9 !important;
  outline-offset: 4px;
}
.sr-form .wpforms-error,
.sr-form .wpforms-required-label {
  color: #ffc4c4 !important;
}
.sr-form .wpforms-confirmation-container-full {
  background: #123d49 !important;
  color: #f1f9fb !important;
  border: 1px solid #71dce3 !important;
  padding: 1.2rem !important;
}
.sr-preview-note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.sr-preview-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem;
  background: #102b37;
  border-bottom: 1px solid var(--line);
}
.sr-preview-tools button {
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--text);
  border: 1px solid #426674;
  border-radius: 8px;
}
.sr-preview-tools button[aria-pressed='true'] {
  background: #6cd4df;
  color: #09252b;
}
.sr-preview-viewport[data-mode='mobile'] {
  max-width: 390px;
  margin-inline: auto;
}

@media (min-width: 741px) {
  .sr-site-navigation .wp-block-navigation__responsive-container-open {
    display: none !important;
  }
}
@media (max-width: 1000px) {
  .sr-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prose {
    max-width: min(760px, calc(100% - 56px));
  }
}
@media (max-width: 740px) {
  .header-inner {
    gap: 0.8rem;
  }
  .sr-site-navigation {
    order: 3;
    margin: 0;
  }
  .sr-site-navigation .wp-block-navigation__responsive-container-open {
    display: flex !important;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    border: 1px solid #426674;
    border-radius: 8px;
  }
  .sr-site-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  .sr-site-navigation .wp-block-navigation__responsive-container.is-menu-open {
    background: #102730;
    color: #f1f9fb;
    padding: 1.5rem;
  }
  .sr-site-navigation .wp-block-navigation__responsive-container-close {
    min-width: 44px;
    min-height: 44px;
  }
  .sr-header-cta {
    margin-left: auto;
  }
  .sr-header-cta .wp-block-button__link {
    font-size: 0.8rem;
    padding: 0.5rem 0.65rem;
  }
  .hero-actions .wp-block-button__link {
    padding: 0.73rem 0.83rem;
    font-size: 0.8rem;
  }
  .service-editorial,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .sr-card-grid {
    grid-template-columns: 1fr;
  }
  .prose {
    max-width: calc(100% - 40px);
  }
  .page-hero h1 {
    font-size: clamp(2.5rem, 9.5vw, 4.35rem);
  }
  .footer-inner .wp-block-navigation {
    width: 100%;
  }
  .footer-inner .wp-block-navigation__container {
    column-gap: 1rem;
    row-gap: 0;
  }
}
@media (max-width: 359px) {
  .sr-header-cta {
    display: none;
  }
  .sr-site-navigation {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.wp-block-button__link::after {
  content: '↗';
  font-weight: 400;
}
.hero-actions .sr-primary .wp-block-button__link::after {
  content: '→';
}

.sr-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.sr-form .wpforms-field-label {
  display: block;
  margin-bottom: 0.4rem;
}

.page-hero h1 { overflow-wrap: anywhere; }
.hero-art .wp-block-image, .device .wp-block-image, .wp-block-image.brand-logo { margin: 0; }

