/* =====================
   GLOBAL RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0a0a0a;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 48px;
}

.red { color: #FF1515; }


/* =====================
   REVEAL ANIMATIONS
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.team-member.reveal-scale:nth-child(2) {
  transition-delay: 160ms;
}


/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('Banners web/Banner_Favicon_0_Blur_2560x1440_1.png');
  background-size: cover;
  background-position: center top;
  opacity: 0.88;
  transform: scale(1.08);
  transform-origin: center center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 40px 180px;
  align-self: flex-end;
}

.hero-logo-img {
  position: absolute;
  bottom: 36px;
  left: 50%;
  width: clamp(140px, 18vw, 220px);
  height: auto;
  z-index: 3;
  opacity: 0;
  animation: heroLogoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: translateX(-50%) scale(0.82) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) scale(1)    translateY(0);    }
}

.hero-title {
  font-weight: 800;
  font-size: clamp(38px, 5.8vw, 68px);
  line-height: 1.07;
  letter-spacing: -1.5px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(80px);
  will-change: transform, opacity;
}


/* =====================
   SECTIONS (general)
   ===================== */
.section {
  padding: 112px 0;
}


/* =====================
   HEADINGS
   ===================== */
.heading-xl {
  font-weight: 800;
  font-size: clamp(52px, 7.5vw, 96px);
  line-height: 1;
  letter-spacing: -2.5px;
  margin-bottom: 48px;
}

.heading-xxl {
  font-weight: 800;
  font-size: clamp(64px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -3px;
  text-align: right;
}


/* =====================
   ABOUT (desfilming?)
   ===================== */
.about-body {
  max-width: 100%;
}

.about-body p {
  font-size: 17px;
  line-height: 1.7;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
}

.about-body p:last-child {
  margin-bottom: 0;
}


/* =====================
   TEAM (Nosaltres)
   ===================== */
.team-intro {
  font-size: 17px;
  line-height: 1.7;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  max-width: 100%;
  margin-bottom: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 72px;
}

.team-member {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-member:hover {
  transform: translateY(-8px);
}

.team-member.reveal-scale:hover {
  transform: scale(1) translateY(-8px);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  margin-bottom: 24px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-member:hover .team-photo {
  transform: scale(1.04);
}

.member-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.member-facts {
  list-style: none;
  padding: 0;
}

.member-facts li {
  font-size: 15px;
  line-height: 1.75;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.team-outro {
  margin-top: 28px;
}

.team-outro p {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}


/* =====================
   PROJECTS (PROJECTES)
   ===================== */
.projects-header {
  text-align: right;
  margin-bottom: 56px;
}

.projects-sub {
  font-weight: 700;
  font-size: clamp(26px, 4vw, 50px);
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-top: 6px;
  text-align: right;
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
  filter: brightness(0) invert(1);
  cursor: pointer;
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.1) translateY(-4px);
  filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(255, 255, 255, 0.25));
}

.partner-logo img {
  max-height: 110px;
  max-width: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.projects-disclaimer {
  margin-top: 48px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 640px;
  font-style: italic;
}


/* =====================
   TESTIMONIALS
   ===================== */
.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-card {
  background-color: #F4EFE9;
  border-radius: 22px;
  padding: 36px 40px;
  max-width: 620px;
  width: 75%;
  margin-left: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card:hover {
  transform: translateY(-6px);
}

.testimonial-card--right {
  margin-left: auto;
  margin-right: 0;
}

.testimonial-text {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.55;
  color: #111111;
  margin-bottom: 24px;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stars {
  color: #FF1515;
  font-size: 16px;
  letter-spacing: 3px;
}

.testimonial-author {
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
}


/* =====================
   CONTACT (Contacta'ns)
   ===================== */
.contact-body {
  max-width: 100%;
}

.contact-body p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-body p:last-child {
  margin-bottom: 0;
}

.contact-body--outro {
  margin-top: 56px;
}

.contact-body--outro p {
  color: #ffffff;
}

.link-red {
  color: #FF1515;
  text-decoration: none;
}

.link-red:hover {
  text-decoration: underline;
}


/* =====================
   CONTACT FORM
   ===================== */
.contact-form {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 18px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.btn-enviar {
  align-self: flex-start;
  margin-top: 8px;
  background-color: #FF1515;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-enviar:hover {
  background-color: #e00;
  transform: translateY(-1px);
}

.btn-enviar:active {
  transform: translateY(0);
}

.btn-enviar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-feedback {
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

.form-success { color: #4ade80; }
.form-error   { color: #FF1515; }


/* =====================
   FOOTER
   ===================== */
.site-footer {
  text-align: center;
  padding: 64px 0 40px;
}

.site-footer p {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.2px;
}


/* =====================
   RESPONSIVE — TABLET
   ===================== */
@media (max-width: 768px) {
  .container {
    padding: 0 28px;
  }

  .section {
    padding: 80px 0;
  }

  .heading-xl {
    font-size: clamp(44px, 10vw, 72px);
    letter-spacing: -1.5px;
    margin-bottom: 36px;
  }

  .heading-xxl {
    font-size: clamp(64px, 15vw, 110px);
    letter-spacing: -2px;
  }

  .hero {
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: clamp(34px, 7vw, 52px);
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 440px;
  }

  .testimonial-card {
    width: 100%;
    max-width: 100%;
  }

  .testimonial-card--right {
    margin-left: 0;
  }

  .project-card-text {
    font-size: clamp(32px, 9vw, 60px);
  }

  .reveal-left,
  .reveal-right {
    transform: translateX(0);
    transform: translateY(36px);
  }
}


/* =====================
   RESPONSIVE — MOBILE
   ===================== */
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-bottom: 48px;
  }

  .hero-logo-img {
    width: clamp(110px, 40vw, 160px);
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: -0.8px;
  }

  .heading-xl {
    font-size: clamp(38px, 12vw, 56px);
    letter-spacing: -1px;
    margin-bottom: 28px;
  }

  .heading-xxl {
    font-size: clamp(52px, 18vw, 88px);
    letter-spacing: -1.5px;
  }

  .projects-sub {
    font-size: 16px;
  }

  .testimonial-card {
    padding: 28px 24px;
    border-radius: 16px;
  }
}
