:root {
  --blue: #77a4d4;
  --red: #c83235;
  --green: #79b243;
  --ink: #202833;
  --muted: #687582;
  --line: #dfe5e8;
  --paper: #ffffff;
  --soft: #f5f8f7;
  --deep: #16212a;
  --shadow: 0 18px 45px rgba(22, 33, 42, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 10px max(20px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(32, 40, 51, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 168px;
  height: 58px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 10px 16px;
  color: white !important;
  background: var(--red);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(200, 50, 53, 0.22);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.language-switcher button {
  min-width: 36px;
  min-height: 32px;
  padding: 6px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.language-switcher button.is-active {
  color: white;
  background: var(--green);
}

.header-language {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 99px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 76svh;
  padding: clamp(82px, 13vw, 148px) 0 clamp(70px, 10vw, 110px);
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-bottom-right-radius: clamp(42px, 8vw, 118px);
}

.hero-home {
  background-image: url("assets/hero-installacio.jpeg");
  background-position: 52% 48%;
}

.hero-services {
  background-image: url("assets/services-hero.jpeg");
  background-position: 52% 40%;
}

.hero-contact {
  background-image: url("assets/contact-bg.jpeg");
  background-position: 50% 48%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 23, 30, 0.84) 0%, rgba(13, 23, 30, 0.62) 48%, rgba(13, 23, 30, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08));
}

.hero-content {
  color: white;
  max-width: 820px;
  margin-left: max(20px, calc((100vw - var(--container)) / 2));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 34px;
  height: 3px;
  content: "";
  background: var(--green);
}

.eyebrow.dark {
  color: var(--red);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 6.3vw, 5.7rem);
  line-height: 0.97;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.mobile-line {
  display: inline;
}

.hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  overflow-wrap: break-word;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--red);
  box-shadow: 0 14px 28px rgba(200, 50, 53, 0.28);
}

.button-secondary {
  color: var(--ink);
  background: white;
}

.button-light {
  color: var(--deep);
  background: white;
}

.button-whatsapp {
  width: 100%;
  color: white;
  background: #23c35b;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-tight {
  padding-top: 42px;
}

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

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

.feature,
.solution,
.testimonial,
.service-item,
.contact-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.feature {
  min-height: 260px;
  padding: 24px;
  border-top-width: 5px;
  box-shadow: 0 14px 34px rgba(32, 40, 51, 0.06);
}

.feature-blue {
  border-top-color: var(--blue);
}

.feature-red {
  border-top-color: var(--red);
}

.feature-green {
  border-top-color: var(--green);
}

.feature-dark {
  border-top-color: var(--deep);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: white;
  background: var(--deep);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.feature h2,
.service-item h3,
.mini-list h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.feature p,
.solution p,
.testimonial p,
.service-item p,
.split-copy p,
.section-heading p,
.services-intro p,
.contact-panel p {
  color: var(--muted);
}

.feature p,
.service-item p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
}

.split-reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
}

.split-copy h2,
.section-heading h2,
.services-intro h2,
.statement h2,
.cta-inner h2,
.contact-strip h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.split-copy p {
  margin: 18px 0 0;
  font-size: 1.03rem;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.text-link::after {
  content: ">";
  margin-left: 8px;
}

.split-media {
  min-width: 0;
}

.image-stack {
  position: relative;
  min-height: 560px;
}

.image-stack img,
.framed-photo img,
.portfolio-grid img,
.solution img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.image-main {
  height: 520px;
  box-shadow: var(--shadow);
}

.image-floating {
  position: absolute;
  right: -22px;
  bottom: 0;
  width: min(48%, 290px);
  height: 330px;
  border: 8px solid white;
  box-shadow: var(--shadow);
}

.section-heading,
.services-intro {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p,
.services-intro p {
  margin: 16px 0 0;
  font-size: 1.06rem;
}

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

.solution {
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(32, 40, 51, 0.06);
}

.solution img {
  height: 300px;
  border-radius: 0;
}

.solution div {
  padding: 22px;
}

.solution h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.solution p {
  margin: 0;
}

.statement,
.contact-strip {
  color: white;
  background: var(--deep);
}

.grants-section {
  overflow: hidden;
  background: white;
}

.grants-copy {
  max-width: 900px;
  margin-bottom: 32px;
}

.grants-copy h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.grants-copy p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.logo-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.logo-carousel::before,
.logo-carousel::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(12vw, 120px);
  content: "";
  pointer-events: none;
}

.logo-carousel::before {
  left: 0;
  background: linear-gradient(90deg, white, rgba(255, 255, 255, 0));
}

.logo-carousel::after {
  right: 0;
  background: linear-gradient(270deg, white, rgba(255, 255, 255, 0));
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 18px;
  transform: translate3d(0, 0, 0);
  animation: logo-scroll 34s linear infinite;
  backface-visibility: hidden;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .logo-carousel:hover .logo-track {
    animation-play-state: paused;
  }
}

.logo-slide {
  display: grid;
  flex: 0 0 260px;
  height: 112px;
  padding: 18px;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(32, 40, 51, 0.06);
  backface-visibility: hidden;
}

.logo-slide.logo-wide {
  flex-basis: 360px;
}

.logo-slide img {
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
  pointer-events: none;
}

@keyframes logo-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 9px), 0, 0);
  }
}

.statement-inner,
.contact-strip-inner,
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(26px, 6vw, 74px);
  align-items: center;
}

.statement p,
.contact-strip p {
  color: rgba(255, 255, 255, 0.8);
}

.statement p {
  margin: 0 0 16px;
}

.mini-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.mini-list div {
  padding-left: 18px;
  border-left: 4px solid var(--green);
}

.mini-list p {
  margin-top: 6px;
}

.framed-photo img {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.cta-band {
  padding: clamp(46px, 7vw, 76px) 0;
  color: white;
  background:
    linear-gradient(90deg, rgba(200, 50, 53, 0.95), rgba(121, 178, 67, 0.92)),
    url("assets/contact-bg.jpeg") center / cover;
}

.cta-inner {
  grid-template-columns: minmax(0, 1fr) auto;
}

.cta-inner p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

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

.portfolio-grid img {
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}

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

.testimonial {
  padding: 24px;
}

.testimonial img {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  object-fit: cover;
  border: 4px solid var(--soft);
  border-radius: 50%;
}

.testimonial h3 {
  margin: 14px 0 0;
  color: var(--red);
  font-size: 1rem;
}

.testimonial p {
  margin: 0;
}

.contact-strip {
  padding: clamp(48px, 7vw, 80px) 0;
}

.contact-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.contact-actions a,
.contact-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

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

.service-item {
  padding: 26px;
}

.service-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 18px;
  padding: 0 10px;
  color: white;
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.service-item:nth-child(2) span,
.service-item:nth-child(5) span {
  background: var(--red);
}

.service-item:nth-child(3) span,
.service-item:nth-child(4) span,
.service-item-accent span {
  background: var(--green);
}

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.contact-panel,
.contact-form {
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 14px 34px rgba(32, 40, 51, 0.06);
}

.contact-panel img {
  width: min(100%, 340px);
  margin-bottom: 22px;
}

.contact-panel h2 {
  margin: 0 0 8px;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-lines a {
  color: var(--ink);
  background: var(--soft);
  border-color: var(--line);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-hp {
  position: absolute;
  left: -100vw;
  opacity: 0;
}

.form-status {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-status.is-success {
  color: #155b2f;
  background: #e6f6eb;
  border: 1px solid #bde7ca;
}

.form-status.is-error {
  color: #8b1f22;
  background: #fdecec;
  border: 1px solid #f3c5c7;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(121, 178, 67, 0.14);
}

.privacy-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700 !important;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.privacy-check a {
  color: var(--red);
  font-weight: 900;
}

.site-footer {
  padding: 34px 0;
  background: white;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner img {
  width: min(260px, 54vw);
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.footer-copy {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--red);
}

.legal-page,
.thanks-page,
.not-found-page {
  background: var(--soft);
}

.legal-hero,
.simple-hero {
  padding: clamp(70px, 10vw, 118px) 0;
  color: white;
  background: var(--deep);
}

.legal-hero h1,
.simple-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.legal-content {
  display: grid;
  gap: 18px;
  max-width: 980px;
  padding: clamp(38px, 7vw, 70px);
  margin: clamp(42px, 7vw, 76px) auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-content h2 {
  margin: 26px 0 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.legal-content p,
.legal-content li {
  margin: 0;
  color: var(--muted);
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.simple-content {
  max-width: 760px;
  padding: clamp(38px, 7vw, 70px);
  margin: clamp(42px, 7vw, 76px) auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.simple-content p {
  color: var(--muted);
  font-size: 1.1rem;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 170;
  display: none;
  width: min(430px, calc(100vw - 40px));
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.cookie-banner p {
  margin: 0 0 14px;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-ghost {
  color: var(--ink);
  background: var(--soft);
}

.whatsapp-widget {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 150;
}

.whatsapp-toggle {
  display: grid;
  width: 62px;
  height: 62px;
  padding: 0;
  place-items: center;
  color: white;
  background: #25d366;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(12, 82, 45, 0.3);
  cursor: pointer;
}

.whatsapp-toggle svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.whatsapp-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(342px, calc(100vw - 32px));
  padding: 22px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.whatsapp-widget.is-open .whatsapp-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.whatsapp-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whatsapp-panel h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.whatsapp-panel p:not(.whatsapp-kicker) {
  margin: 12px 0 18px;
  color: var(--muted);
}

.whatsapp-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.4rem;
}

@media (max-width: 980px) {
  .feature-grid,
  .solution-grid,
  .testimonial-grid,
  .service-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split-reverse,
  .statement-inner,
  .contact-strip-inner,
  .cta-inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .image-stack {
    min-height: 500px;
  }

  .cta-inner {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .site-header {
    gap: 8px;
    min-height: 66px;
    padding: 8px 14px;
  }

  .brand img {
    width: clamp(106px, 30vw, 132px);
    height: 48px;
  }

  .site-header > .header-language {
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    width: auto;
    margin: 0 0 0 auto;
  }

  .site-header > .header-language button {
    min-width: 32px;
    min-height: 30px;
    padding: 5px 7px;
  }

  .nav-toggle {
    flex: 0 0 auto;
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 14px 16px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(32, 40, 51, 0.1);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .site-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 4px;
    text-align: center;
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 8px;
    padding: 13px 16px !important;
    text-align: center;
  }

  .site-nav .language-switcher {
    display: none;
  }

  .language-switcher {
    justify-content: center;
    width: 100%;
    margin: 8px 0;
  }

  .site-header > .header-language {
    width: auto;
    margin: 0 0 0 auto;
  }

  .hero {
    min-height: 70svh;
    padding: 76px 0 64px;
    border-bottom-right-radius: 42px;
  }

  .hero-content {
    width: min(var(--container), calc(100% - 28px));
    max-width: calc(100% - 28px);
    margin: 0 auto;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(1.72rem, 7vw, 1.85rem);
    line-height: 1.07;
  }

  .mobile-line {
    display: block;
  }

  .hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .button-row,
  .contact-actions {
    width: 100%;
    justify-content: center;
  }

  .button-row .button,
  .cta-inner .button {
    width: 100%;
  }

  .feature-grid,
  .solution-grid,
  .testimonial-grid,
  .service-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }

  .image-stack {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .image-main,
  .image-floating {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    border: 0;
  }

  .solution img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .grants-copy,
  .grants-copy p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .logo-carousel {
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
  }

  .logo-slide {
    flex-basis: 220px;
    height: 100px;
  }

  .logo-slide.logo-wide {
    flex-basis: 300px;
  }

  .footer-inner {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .split-copy,
  .section-heading,
  .services-intro,
  .statement-inner,
  .cta-inner,
  .contact-strip-inner,
  .contact-panel,
  .contact-form,
  .feature,
  .solution,
  .testimonial,
  .service-item {
    text-align: center;
  }

  .mini-list div {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 4px solid var(--green);
  }

  .contact-panel img {
    margin-right: auto;
    margin-left: auto;
  }

  .footer-copy,
  .footer-links {
    justify-items: center;
    justify-content: center;
  }

  .cookie-banner {
    right: 14px;
    bottom: 88px;
    width: calc(100vw - 28px);
  }

  .whatsapp-toggle {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 420px) {
  .section {
    padding: 56px 0;
  }

  .split-copy h2,
  .section-heading h2,
  .services-intro h2,
  .statement h2,
  .cta-inner h2,
  .contact-strip h2 {
    font-size: 2rem;
  }

  .contact-actions a,
  .contact-lines a {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-panel {
    right: -4px;
  }
}
