:root {
  --bg: #162033;
  --primary: #3a5faa;
  --white: #f8f6f2;

  --container: 1400px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, sans-serif;
}

.hero {
  width: 100%;
  min-height: 100vh;

  background: var(--bg);

  color: var(--white);

  overflow: hidden;

  display: flex;
  flex-direction: column;
}

/* =======================
   NAVBAR
======================= */

.navbar {
  width: min(92%, var(--container));

  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 2rem 0;

  position: relative;
}

.logo {
  width: clamp(140px, 15vw, 220px);
  height: auto;
}

.logo span {
  color: var(--primary);
}

nav {
  margin-left: auto;
}

.menu {
  display: flex;
  gap: 4rem;

  list-style: none;
}

.menu a {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.45rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #6f98e8;
  transform: translateX(-50%);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.menu a:hover::after,
.menu a:focus-visible::after {
  width: 100%;
}

/* =======================
   BURGER
======================= */

#menu-toggle {
  display: none;
}

.burger {
  display: none;

  flex-direction: column;

  gap: 6px;

  cursor: pointer;
}

.burger span {
  width: 40px;
  height: 5px;

  background: white;

  border-radius: 999px;

  transition: 0.3s;
}

/* Animation burger -> X */

#menu-toggle:checked + .burger span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

#menu-toggle:checked + .burger span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked + .burger span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* =======================
   HERO CONTENT
======================= */

.hero-content {
  flex: 1;

  width: min(92%, var(--container));

  margin: auto;

  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  align-items: center;

  gap: 4rem;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: clamp(2.8rem, 4vw, 3.1rem);

  line-height: 1.1;
}

.hero-text p {
  margin-top: 2rem;

  font-size: 1.35rem;

  line-height: 1.5;

  opacity: 0.9;
}

.cta {
  display: inline-block;

  margin-top: 2rem;

  padding: 1.2rem 3rem;

  background: var(--primary);

  color: white;

  text-decoration: none;

  border-radius: 20px;

  font-weight: 600;

  transition: 0.3s;
}

.cta:hover {
  transform: translateY(-3px);
}

.languages {
  margin-top: 2rem;
  color: rgba(248, 246, 242, 0.72);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* =======================
   IMAGE
======================= */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: min(100%, 820px);
  height: auto;
  display: block;
  object-fit: contain;
}

/* =======================
   TABLET
======================= */

@media (max-width: 1100px) {
  .menu {
    gap: 2rem;
  }
}

/* =======================
   MOBILE
======================= */

@media (max-width: 900px) {
  .burger {
    display: flex;
  }


  nav {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    background: var(--bg);

    padding: 2rem 0;
  }

  #menu-toggle:checked ~ nav {
    display: block;
  }

  .menu {
    flex-direction: column;

    align-items: center;

    gap: 2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;

    text-align: center;

    gap: 3rem;

    padding-bottom: 3rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .hero-image {
    width: min(100%, 600px);
  }

  .languages {
    text-align: center;
  }
}

.benefits {
  padding: 3rem 0;

  background: #ffffff;
}

.benefits .container {
  width: min(90%, 1200px);

  margin: 0 auto;
}

.benefits h2 {
  text-align: center;

  color: #1f2a44;

  font-size: clamp(2rem, 4vw, 3rem);

  margin-bottom: 4rem;
}

/* =======================
   GRID
======================= */

.benefits-grid {
  display: grid;

  grid-template-columns: repeat(6, 1fr);

  gap: 4rem 2rem;

  max-width: 1100px;

  margin: 0 auto;
}

/* Première ligne */

.benefit:nth-child(1) {
  grid-column: 1 / span 2;
}

.benefit:nth-child(2) {
  grid-column: 3 / span 2;
}

.benefit:nth-child(3) {
  grid-column: 5 / span 2;
}

/* Deuxième ligne centrée */

.benefit:nth-child(4) {
  grid-column: 2 / span 2;
}

.benefit:nth-child(5) {
  grid-column: 4 / span 2;
}

/* =======================
   ITEM
======================= */

.benefit {
  display: flex;

  align-items: center;

  gap: 1rem;
}

.benefit img {
  width: 56px;

  height: auto;

  flex-shrink: 0;
}

.benefit p {
  font-size: 1.1rem;

  line-height: 1.4;

  color: #2d3748;
}

/* =======================
   TABLET
======================= */

@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 3rem 2rem;
  }

  .benefit:nth-child(n) {
    grid-column: auto;
  }
}

/* =======================
   MOBILE
======================= */

@media (max-width: 768px) {
  .benefits {
    padding: 2rem 0;
  }

  .benefits h2 {
    margin-bottom: 3rem;
  }

  .benefit {
    flex-direction: column;

    text-align: center;
  }

  .benefit img {
    width: 48px;
  }

  .benefit p {
    font-size: 0.95rem;
  }
}

/* Très petits écrans */

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.services {
  background: var(--primary);

  padding: 3rem 0;
}

.services .container {
  width: min(92%, 1400px);

  margin: 0 auto;
}

.services h2 {
  text-align: center;

  color: white;

  font-size: clamp(2rem, 4vw, 3rem);

  margin-bottom: 4rem;
}

.services-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  border: 3px solid transparent;
  transition: border 0.3s;
}

.service-card:hover {
  border: 3px solid #26c6ff;
}

.service-card img {
  width: 80px;

  height: auto;

  margin-bottom: 1.5rem;
}

.service-card h3 {
  color: var(--primary);

  font-size: 1.8rem;

  margin-bottom: 1rem;
}

.service-description {
  color: #333;

  line-height: 1.6;

  margin-bottom: 2rem;
}

.service-card hr {
  width: 70%;

  border: none;

  border-top: 2px solid var(--primary);

  margin-bottom: 2rem;
}

.service-card ul {
  list-style: none;

  width: 100%;

  text-align: left;

  margin-bottom: auto;
}

.service-card li {
  position: relative;

  padding-left: 1.2rem;

  margin-bottom: 0.7rem;
}

.service-card li::before {
  content: "✓";

  position: absolute;

  left: 0;

  color: var(--primary);
}

.service-card a {
  margin-top: 2rem;

  text-decoration: none;

  color: var(--primary);

  font-weight: 600;

  transition: 0.3s;
}

.service-card a:hover {
  transform: translateX(5px);
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services {
    padding: 2rem 0;
  }

  .services-grid {
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card img {
    width: 60px;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-description {
    font-size: 0.9rem;
  }

  .service-card li {
    font-size: 0.85rem;
  }
}
.process {
  background: var(--primary);

  padding: 3rem 0;

  color: white;
}

.process h2 {
  text-align: center;

  font-size: clamp(2rem, 4vw, 3rem);

  margin-bottom: 1rem;
}

.process-intro {
  max-width: 800px;

  margin: 0 auto 2.5rem;

  text-align: center;

  line-height: 1.6;
}

.process-grid {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  align-items: center;
}

.process-item {
  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  padding: 0 1.5rem;

  position: relative;
}

.process-item:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 50%;

  right: 0;

  transform: translateY(-50%);

  width: 1px;

  height: 140px;

  background: rgba(255, 255, 255, 0.4);
}

.process-icon {
  width: 90px;

  height: 90px;

  border-radius: 50%;

  background: white;

  display: flex;

  justify-content: center;

  align-items: center;

  margin-bottom: 1rem;
}

.process-icon img {
  width: 45px;

  height: 45px;

  object-fit: contain;
}

.process-item h3 {
  font-size: 1rem;

  line-height: 1.4;

  font-weight: 600;
}

/* ==========================
   TABLETTE
========================== */

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(6, 1fr);

    gap: 2rem 1rem;
  }

  .process-item::after {
    display: none;
  }

  .process-item:nth-child(1) {
    grid-column: 1 / span 2;
  }

  .process-item:nth-child(2) {
    grid-column: 3 / span 2;
  }

  .process-item:nth-child(3) {
    grid-column: 5 / span 2;
  }

  .process-item:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .process-item:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .process-icon {
    width: 80px;

    height: 80px;
  }

  .process-icon img {
    width: 40px;

    height: 40px;
  }
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 600px) {
  .process {
    padding: 3rem 0;
  }

  .process-intro {
    font-size: 0.95rem;

    margin-bottom: 2rem;
  }

  .process-item {
    padding: 0 0.5rem;
  }

  .process-icon {
    width: 70px;

    height: 70px;
  }

  .process-icon img {
    width: 35px;

    height: 35px;
  }

  .process-item h3 {
    font-size: 0.85rem;
  }
}

/* ==========================================================
   WORKFLOW
========================================================== */

.workflow {
  padding: 6rem 0;
}

.workflow .section-heading {
  text-align: center;
  margin-bottom: 5rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  align-items: start;
}

.workflow-card {
  text-align: center;
  transition: transform 0.35s ease;
}

.workflow-card h3 {
  color: var(--primary);
}

.workflow-top {
  position: relative;
  width: 180px;
  height: 90px;
  margin: 0 auto 1.8rem;
}

/* ==========================
   SVG
========================== */

.workflow-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.workflow-arc path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.arc-bg {
  stroke: #dbe5f5;
}

.arc-fill {
  stroke: var(--primary);

  stroke-dasharray: 100;
  stroke-dashoffset: 100;

  transition: stroke-dashoffset 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================
   POINTS
========================== */

.dot {
  fill: #dbe5f5;
  transition: fill 0.25s ease;
}

.workflow-card:hover .dot-left {
  fill: var(--primary);
  transition-delay: 0s;
}

.workflow-card:hover .dot-top {
  fill: var(--primary);
  transition-delay: 0.1s;
}

.workflow-card:hover .dot-right {
  fill: var(--primary);
  transition-delay: 0.55s;
}

/* ==========================
   NUMERO
========================== */

.step-number {
  position: absolute;

  left: 50%;
  bottom: -18px;

  transform: translateX(-50%);

  width: 74px;
  height: 74px;

  border-radius: 50%;

  background: var(--primary);

  color: white;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 1.9rem;
  font-weight: 700;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.workflow-card:hover .step-number {
  transform: translateX(-50%) translateY(-6px) scale(1.06) rotate(-2deg);

  box-shadow: 0 12px 28px rgba(58, 95, 170, 0.3);
}

/* ==========================
   ICONE
========================== */

.workflow-icon {
  width: 48px;
  height: 48px;

  margin-top: 1.5rem;
  margin-bottom: 1.2rem;

  transition: transform 0.35s ease;
}

.workflow-card:hover .workflow-icon {
  transform: translateY(-4px);
}

/* ==========================
   TITRE
========================== */

.workflow-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;

  transition: color 0.35s ease;
}

.workflow-card:hover h3 {
  color: var(--primary);
}

/* ==========================
   TEXTE
========================== */

.workflow-card p {
  color: #6b7280;
  line-height: 1.7;
  font-size: 0.96rem;
}

/* ==========================
   ANIMATION ARC
========================== */

.workflow-card:hover .arc-fill {
  stroke-dashoffset: 0;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1100px) {
  .workflow-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .workflow {
    padding: 4rem 0;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .workflow-top {
    width: 170px;
    height: 85px;
  }
}

/* ==========================================================
   FOOTER
========================================================== */

.footer {
  background: var(--bg);
  color: var(--white);

  padding: 5rem 0 2rem;
}

.footer .container {
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;

  margin-bottom: 4rem;
}

/* ==========================
   INFORMATIONS
========================== */

.footer-info {
  max-width: 560px;
}

.footer-info h2 {
  font-size: 2.1rem;
  margin-bottom: 2rem;
}

.footer-info address {
  font-style: normal;
}

.footer-contact {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 1.4rem;

  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-contact img,
.footer-contact svg {
  width: 28px;
  height: 28px;

  flex-shrink: 0;

  transition: transform 0.3s ease;
}

.footer-contact li:hover img {
  transform: translateX(4px);
}

.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.9);

  text-decoration: none;

  font-size: 1.1rem;
  line-height: 1.5;

  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--primary);
}

/* ==========================
   RESEAUX SOCIAUX
========================== */

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 1.4rem;
}

.footer-social a {
  width: 68px;
  height: 68px;

  border-radius: 50%;

  border: 2px solid var(--primary);

  display: flex;
  justify-content: center;
  align-items: center;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.footer-social svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
  transition: transform 0.35s ease;
}
/* ==========================
   BAS DU FOOTER
========================== */

.footer-bottom {
  text-align: center;

  font-size: 1rem;

  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom span {
  color: white;
  font-weight: 700;
  letter-spacing: 0.8px;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 900px) {
  .footer {
    padding: 4rem 0 2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;

    gap: 3rem;

    margin-bottom: 3rem;
  }

  .footer-info {
    width: 100%;
  }

  .footer-info h2 {
    font-size: 1.8rem;
  }

  .footer-contact a,
  .footer-contact span {
    font-size: 1rem;
  }

  .footer-social {
    width: 100%;

    justify-content: center;
  }
}

@media (max-width: 500px) {
  .footer {
    padding: 3rem 0 2rem;
  }

  .footer-contact {
    gap: 1.2rem;
  }

  .footer-contact li {
    align-items: flex-start;
  }
  .footer-contact img,
  .footer-contact li svg {
    width: 24px;
    height: 24px;
    color: var(--white);
    margin-top: 2px;
  }

  .footer-social a {
    width: 58px;
    height: 58px;
  }
  .footer-contact img,
  .footer-social svg {
    width: 26px;
    height: 26px;
  }

  .footer-bottom {
    font-size: 0.9rem;
  }
}

/* ==========================================================
   GLOBAL POLISH / ACCESSIBILITY / PERFORMANCE
========================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  color: #1f2a44;
  background: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

.container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu a,
.cta,
.project-card,
.footer a {
  -webkit-tap-highlight-color: transparent;
}

.menu a:focus-visible,
.cta:focus-visible,
.project-card:focus-visible,
.footer a:focus-visible,
.burger:focus-visible {
  outline: 3px solid #8eb6ff;
  outline-offset: 4px;
}

/* ==========================================================
   PROJECTS
========================================================== */
.projects {
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: #fff;
}

.projects-heading {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}

.projects-heading h2 {
  margin-bottom: 1rem;
  color: #1f2a44;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.projects-heading > p:last-child {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.65;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.project-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.project-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #eef2f7;
  box-shadow: 0 14px 38px rgba(22, 32, 51, 0.1);
}

.project-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 22, 39, 0.5), transparent 42%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-link {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2a44;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-image-wrap img,
.project-card:focus-visible .project-image-wrap img {
  transform: scale(1.025);
}

.project-card:hover .project-image-wrap::after,
.project-card:focus-visible .project-image-wrap::after,
.project-card:hover .project-link,
.project-card:focus-visible .project-link {
  opacity: 1;
}

.project-card:hover .project-link,
.project-card:focus-visible .project-link {
  transform: translateY(0);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: 1.25rem 0.25rem 0;
}

.project-meta h3 {
  margin-bottom: 0.25rem;
  color: #1f2a44;
  font-size: 1.35rem;
}

.project-meta p {
  color: #64748b;
  line-height: 1.45;
}

.project-type {
  flex-shrink: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================
   FINAL CTA
========================================================== */
.final-cta {
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: #fff;
  overflow: hidden;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.final-cta-copy {
  max-width: 650px;
}

.final-cta-copy h2 {
  max-width: 620px;
  color: #1f2a44;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.final-cta-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin-top: 1.25rem;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.65;
}

.final-cta .cta {
  border-radius: 12px;
}

.final-cta-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.final-cta-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 72%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: #edf3ff;
  transform: translate(-50%, -50%);
}

.final-cta-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 650px);
  height: auto;
}

/* Keep in-page anchors visually clear and clickable */
#servicios,
#proyectos,
#proceso,
#contacto {
  scroll-margin-top: 1rem;
}

@media (max-width: 900px) {
  .projects-grid,
  .final-cta-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-copy {
    max-width: 700px;
    text-align: center;
    margin-inline: auto;
  }

  .final-cta-copy h2,
  .final-cta-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }

  .final-cta-visual {
    order: -1;
  }
}

@media (max-width: 600px) {
  .projects,
  .final-cta {
    padding: 3.5rem 0;
  }

  .projects-heading {
    margin-bottom: 2.25rem;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .project-link {
    opacity: 1;
    transform: none;
  }

  .final-cta-grid {
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* ==========================================================
   FINAL HARMONISATION PASS
   Small spacing/scale refinements without changing the site's
   existing interaction model or workflow animations.
========================================================== */

:root {
  --section-title-size: clamp(2rem, 3vw, 2.55rem);
  --section-pad-y: clamp(3.75rem, 5vw, 5rem);
}

/* Keep section hierarchy consistent across the landing page. */
.benefits h2,
.services h2,
.process h2,
.projects-heading h2,
.workflow .section-heading h2,
.final-cta-copy h2 {
  font-size: var(--section-title-size);
}

/* Projects felt a little too airy on large desktop screens. */
.projects {
  padding: var(--section-pad-y) 0;
}

.projects-heading {
  margin-bottom: clamp(2.25rem, 3.5vw, 3.25rem);
}

.projects-grid {
  max-width: 1200px;
  margin-inline: auto;
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}

.project-meta {
  padding-top: 1rem;
}

/* The blue value-proposition section and process now share a tighter rhythm. */
.process {
  padding: clamp(3.25rem, 4vw, 4rem) 0;
}

.workflow {
  padding: var(--section-pad-y) 0;
}

.workflow .section-heading {
  margin-bottom: clamp(3rem, 4vw, 4rem);
}

/* Match the clean reference CTA: let the mockup stand on its own. */
.final-cta {
  padding: var(--section-pad-y) 0;
}

.final-cta-grid {
  gap: clamp(2.5rem, 5vw, 5rem);
}

.final-cta-visual::before {
  display: none;
}

.final-cta-visual img {
  width: min(100%, 560px);
}

/* Slightly calmer secondary text treatment. */
.languages,
.projects-heading > p:last-child,
.project-meta p,
.final-cta-copy > p:not(.eyebrow) {
  color: #667085;
}

/* Service links should read as secondary actions and remain aligned. */
.service-card > a {
  margin-top: auto;
}

@media (max-width: 900px) {
  :root {
    --section-pad-y: 3.75rem;
  }

  .projects-grid {
    max-width: 680px;
  }

  .final-cta-visual img {
    width: min(100%, 520px);
  }
}

@media (max-width: 600px) {
  :root {
    --section-title-size: clamp(1.8rem, 8vw, 2.15rem);
    --section-pad-y: 3.25rem;
  }

  .projects,
  .final-cta {
    padding: var(--section-pad-y) 0;
  }

  .workflow {
    padding: 3.5rem 0;
  }
}

/* ==========================================================
   MOTION + HERO COMPACTNESS POLISH
   Added after the base styles so the existing design/animations remain intact.
========================================================== */

/* Keep the hero airy without forcing the content to the vertical center of 100vh. */
.hero {
  min-height: auto;
}

.hero-content {
  flex: none;
  margin: 0 auto;
  padding: clamp(2.25rem, 4.5vw, 4.75rem) 0 clamp(4.25rem, 6.5vw, 6.75rem);
  align-items: center;
}

/* Hero entrance: deliberately subtle and short. */
@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translate3d(-18px, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-visual-in {
  from {
    opacity: 0;
    transform: translate3d(26px, 12px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero-text {
  animation: hero-copy-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-visual {
  animation: hero-visual-in 0.82s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-image {
  animation: hero-float 6.5s 1.1s ease-in-out infinite;
  will-change: transform;
}

/* Slightly richer, still restrained CTA feedback. */
.cta {
  box-shadow: 0 8px 20px rgba(25, 47, 91, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(25, 47, 91, 0.2);
}

/* Scroll reveal. JS adds .reveal-ready; without JS, content stays visible. */
.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-ready.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cards get a tiny lift on hover; existing card-specific effects still apply. */
.benefit,
.service-card,
.project-card,
.process-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (hover: hover) {
  .benefit:hover,
  .process-item:hover {
    transform: translateY(-4px);
  }

  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(22, 32, 51, 0.12);
  }

  .project-card:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 900px) {
  .hero-content {
    padding-top: 1.25rem;
    padding-bottom: 3.5rem;
  }

  .hero-image {
    animation-duration: 7.5s;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding-top: 0.75rem;
    gap: 2.25rem;
  }

  .reveal-ready {
    transform: translateY(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text,
  .hero-visual,
  .hero-image {
    animation: none !important;
  }

  .reveal-ready,
  .reveal-ready.reveal-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

