/* Applize — site statique */

:root {
  --brand: #1a9fd8;
  --brand-deep: #0e7fb0;
  --ink: #101820;
  --ink-soft: #3a4754;
  --mist: #eef4f8;
  --paper: #f7fafc;
  --line: rgba(16, 24, 32, 0.1);
  --whatsapp: #128c7e;
  --whatsapp-deep: #0b6b60;
  --radius: 4px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 159, 216, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(14, 127, 176, 0.08), transparent 50%),
    linear-gradient(180deg, #f3f7fa 0%, var(--paper) 40%, #e8eef3 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-deep);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 250, 252, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  display: block;
  width: 148px;
  height: auto;
}

.logo-footer {
  width: 132px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.nav a:hover {
  opacity: 1;
  color: var(--brand-deep);
}

.nav-cta {
  padding: 0.55rem 1rem;
  background: var(--whatsapp);
  color: #fff !important;
  opacity: 1 !important;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--whatsapp-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.4rem;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  overflow: clip;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 28, 42, 0.35) 0%, rgba(10, 28, 42, 0.72) 55%, rgba(8, 20, 32, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 24, 38, 0.55) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand {
  margin: 0 0 1rem;
  line-height: 0;
}

.hero-brand .logo-hero {
  width: min(100%, 22rem);
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 24px rgba(0, 0, 0, 0.28));
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-whatsapp {
  background: var(--whatsapp);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-deep);
  color: #fff;
}

/* Sections */

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.section-head h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Approach */

.approach {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.65) 20%, rgba(255, 255, 255, 0.65) 80%, transparent);
}

.approach-list {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.approach-item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.approach-item:nth-child(even) {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.approach-item:nth-child(even) .approach-visual {
  order: 2;
}

.approach-visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: var(--mist);
}

.approach-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.approach-item:hover .approach-visual img {
  transform: scale(1.04);
}

.approach-copy h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.approach-copy > p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.approach-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.approach-copy li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink);
  font-weight: 500;
}

.approach-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--brand);
  border-radius: 1px;
}

/* Expertises */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.expertise figure {
  margin: 0 0 1.25rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
}

.expertise img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.expertise:hover img {
  transform: scale(1.05);
}

.expertise h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.expertise p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Clients */

.clients {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.client-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
}

.client-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 0.5rem;
  opacity: 0.78;
  filter: grayscale(0.15);
  transition: opacity 0.25s, filter 0.25s;
}

.client-logos li:hover {
  opacity: 1;
  filter: none;
}

.client-logos img {
  max-height: 3.5rem;
  width: auto;
  object-fit: contain;
}

/* Services */

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.service {
  padding: 1.6rem 1.4rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.service:nth-child(3n) {
  border-right: 0;
  padding-right: 0;
}

.service:nth-child(3n + 1) {
  padding-left: 0;
}

.service h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Contact */

.contact {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3.25rem);
  background:
    linear-gradient(135deg, rgba(26, 159, 216, 0.1), transparent 45%),
    linear-gradient(180deg, #fff, #f2f7fb);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
}

.contact-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.contact-copy > p:not(.eyebrow) {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

.contact-places {
  display: grid;
  gap: 1.75rem;
  align-content: start;
  padding-top: 2.2rem;
}

.contact-places h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.contact-places p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 5.5rem;
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.footer-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-inner a:not(.brand) {
  font-weight: 600;
  text-decoration: none;
  color: var(--whatsapp);
}

.footer-inner a:not(.brand):hover {
  color: var(--whatsapp-deep);
}

/* WhatsApp FAB */

.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.35);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--whatsapp-deep);
  color: #fff;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

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

  .hero-media img,
  .reveal,
  .hero-content {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .approach-item,
  .approach-item:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .approach-item:nth-child(even) .approach-visual {
    order: 0;
  }

  .expertise-grid,
  .service-list,
  .client-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .service:nth-child(3n) {
    border-right: 1px solid var(--line);
    padding-right: 1.4rem;
  }

  .service:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-places {
    padding-top: 0;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(247, 250, 252, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 0 !important;
  }

  .hero {
    align-items: center;
    padding-bottom: 3.5rem;
  }

  .hero-brand {
    font-size: clamp(2.4rem, 14vw, 3.6rem);
  }

  .expertise-grid,
  .service-list,
  .client-logos,
  .contact-places {
    grid-template-columns: 1fr;
  }

  .service {
    border-right: 0 !important;
    padding-right: 0 !important;
  }

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

  .site-header.is-scrolled,
  .site-header {
    background: rgba(247, 250, 252, 0.92);
    backdrop-filter: blur(10px);
  }

  .hero-brand .logo-hero {
    width: min(100%, 16rem);
  }
}

@media (min-width: 721px) {
  .site-header:not(.is-scrolled) .nav a:not(.nav-cta) {
    color: #fff;
  }

  .site-header:not(.is-scrolled) .logo {
    filter: brightness(0) invert(1);
  }
}
